2004-11-08 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cbafadeb
AC
12004-11-08 Andrew Cagney <cagney@gnu.org>
2
3 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
4 (sentinel_frame_unwinder): Add the prev_pc method.
5 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
6 available. Do not handle the sentinel-frame case.
7 * frame-unwind.h (frame_prev_register_ftype): Define.
8 (struct frame_unwind): Add prev_pc;
9
3b78cdbb
DA
102004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11
12 * configure.in: Check for ncurses/term.h.
13 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
14 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
15 * tui/tui.c: Don't include term.h.
16 * configure, config.in: Rebuilt.
17
bcfca652
MK
182004-11-08 Mark Kettenis <kettenis@gnu.org>
19
20 * m68kbsd-nat.c: Include "inf-ptrace.h".
21 (_initialize_m68kbsd_nat): Fix pasto.
22 * Makefile.in (m68kbsd-nat.o): Update dependencies.
23
527159b7
RC
242004-11-08 Randolph Chung <tausq@debian.org>
25
26 * infrun.c (debug_infrun): New variable.
27 (resume, proceed, wait_for_inferior): Annotate with debug messages.
28 (handle_inferior_event, keep_going): Likewise.
29 (_initialize_infrun): Register "set debug infrun" command.
30
c874c7fc
AS
312004-11-08 Andreas Schwab <schwab@suse.de>
32
33 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
34 PTRACE_EVENT_VFORKDONE.
35 (child_follow_fork): Adjust.
36
3c8fa307
AC
372004-11-08 Andrew Cagney <cagney@gnu.org>
38
5c26072a
AC
39 * README: Refer to 6.3, not 6.2, update directory listing droppng
40 references to intl/ and mmalloc/.
41 * PROBLEMS: Refer to 6.3 not 6.2.
42
3c8fa307
AC
43 * PROBLEMS: Delete no-longer applicable problems.
44
12b8a2cb
DJ
452004-11-07 Andrew Cagney <cagney@redhat.com>
46 Daniel Jacobowitz <dan@debian.org>
47 Roland McGrath <roland@redhat.com>
48
49 * Makefile.in (symfile-mem.o): Update dependencies.
50 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
51 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
52 * inf-ptrace.c (inf_ptrace_attach): Call
53 observer_notify_inferior_created.
54 * inftarg.c (child_attach): Likewise.
55 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
56 (symbol_file_add_from_memory): Take NAME argument. Use it for
57 the new BFD's filename.
58 (add_symbol_file_from_memory_command): Update call to
59 symbol_file_add_from_memory.
60 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
61 (symbol_file_add_from_memory_wrapper): New.
62 (_initialize_symfile_mem): Register add_vsyscall_page as an
63 inferior_created observer.
64
abbc6945
MK
652004-11-07 Mark Kettenis <kettenis@gnu.org>
66
67 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
68 fetch_inferior_registers. Make static.
69 (m68kbsd_store_inferior_registers): Rename from
70 store_inferior_registers. Make static.
71 (_initialize_m68kbsd_nat): Construct and add target vector.
72 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
73 inftarg.o. Add inf-ptrace.o.
74 (NAT_FILE): Set to tm-solib.h.
75 (LOADLIBES): New variable.
76 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
77 inftarg.o. Add inf-ptrace.o.
78 (NAT_FILE): Delete variable.
79 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
80 inftarg.o. Add inf-ptrace.o.
81 (NAT_FILE): Set to tm-solib.h.
82 * config/m68k/nm-nbsdaout.h: Remove file.
83
3ed09a32
DJ
842004-11-07 Daniel Jacobowitz <dan@debian.org>
85
86 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
87 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
88 (dwarf2_signal_frame_unwind): New.
89 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
90 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
91
8e763687
MK
922004-11-07 Mark Kettenis <kettenis@gnu.org>
93
4fb31ed0
MK
94 * Makefile.in (mips64obsd-tdep.o): Fix typo.
95
fabe86c8
MK
96 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
97 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
98 to only include the structure members we actually need.
99 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
100 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
101 only include the structure members we actually need.
102 (mipsnbsd_init_abi): Update.
103
366e93e8
MK
104 * mips64obsd-nat.c: Include "mips-tdep.h".
105 (MIPS64OBSD_NUM_REGS): Remove define.
106 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
107 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
108 floating-point registers correctly.
109 * Makefile.in (mips64obsd-nat.o): Update dependencies.
110
8e763687
MK
111 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
112 "gdb_assert.h".
113 (mips64obsd_sigframe_init): New function.
114 (mips64obsd_sigframe): New variable.
115 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
116 unwinder.
117 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
118
5f6a2351
JB
1192004-11-06 Joel Brobecker <brobecker@gnat.com>
120
121 * alpha-mdebug-tdep.c: #include mdebugread.h.
122 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
123 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
124
f059bf6f
AC
1252004-11-05 Andrew Cagney <cagney@gnu.org>
126
127 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
128 CFI and the init_reg method leave the register unspecified.
129 Include the register name in the "Incomplete CFI data" complaint.
130 Supress leading zeros in the address.
131
1234d960
MK
1322004-11-05 Mark Kettenis <kettenis@gnu.org>
133
134 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
135 skipping a personality routine in a CIE augmentation.
136
d75e3c94
JJ
1372004-11-05 Jeff Johnston <jjohnstn@redhat.com>
138
139 * defs.h (fatal, vfatal): New function prototypes.
140 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
141 via catch_errors.
142 (backtrace_command): Change to call backtrace_command_stub via
143 catch_errors instead of calling backtrace_command_1 directly.
144 (backtrace_full_command): Ditto.
145 * utils.c (error_stream_1): New static function.
146 (verror): Change to call error_stream_1 instead of error_stream.
147 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
148 (vfatal, fatal): New functions.
149
98f276a0
AC
1502004-11-05 Andrew Cagney <cagney@gnu.org>
151
152 * stack.c (parse_frame_specification_1): Clear selected_frame_p
153 when not using selected frame.
154
f724bf08
MK
1552004-11-05 Mark Kettenis <kettenis@jive.nl>
156
157 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
158 personality routine in a CIE augmentation.
159
c789492a
FL
1602004-11-05 Felix Lee <felix+log1@specifixinc.com>
161
162 * stack.c (set_current_sal_from_frame): New function.
163 (print_args_stub): Use it.
164 (print_frame_info): Don't set sal here.
165
a81b10ae
MK
1662004-11-04 Mark Kettenis <kettenis@gnu.org>
167
168 * dwarf2-frame.c (read_encoded_value): Change type of third
169 argument to `unsigned char *'. Add support for LEB128 encodings.
170
ad766c0a
JB
1712004-11-04 Jim Blandy <jimb@redhat.com>
172
173 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
174 prevent cross-objfile references.
175 (make_cv_type): Doc fix. Don't create cross-objfile references,
176 even for stub types.
177 (replace_type): Add assertion to prevent cross-objfile references.
178 (check_typedef): Never resolve a stub type by copying over a type
179 from another file.
180
c46b0409 1812004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 182
c46b0409
KI
183 * Makefile.in (m32r-tdep.o): Update dependencies.
184 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
185 ABI-specific overrides.
186
9f0b0322 1872004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 188
9f0b0322
KI
189 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
190 unnecessary parallel execution bit.
191 (m32r_memory_remove_breakpoint): Ditto.
192 (m32r_breakpoint_from_pc): Update.
193
d5c27f81
RC
1942004-11-03 Randolph Chung <tausq@debian.org>
195
196 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 197 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
198 (hppa_frame_this_id): Likewise.
199
4577593c
AC
2002004-11-03 Andrew Cagney <cagney@gnu.org>
201
202 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
203 packet, obsolete configurations, end-of-life deprecated_registers.
204
b04de778
MK
2052004-11-02 Mark Kettenis <kettenis@gnu.org>
206
207 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
208 encodings as well as unsigned encodings.
209
9f2feefc
AC
2102004-11-02 Andrew Cagney <cagney@gnu.org>
211
212 * value.h (COERCE_VARYING_ARRAY): Delete.
213 * valops.c (value_cast, value_slice): Delete use.
214 * valarith.c (value_subscript, value_concat): Delete use.
215
117ea3cf
PH
2162004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
217
218 * NEWS: GDB understands GNAT Ada.
219
0bbc026e
JM
2202004-11-01 Joseph S. Myers <joseph@codesourcery.com>
221
222 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
223 (amd64-sol2-tdep.o): Add dependencies.
224 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
225 config/i386/sol2-64.mt: New files.
226 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
227 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
228 (supply_gregset): Correct order of arguments to
229 amd64_supply_native_gregset.
230 (fill_gregset): Correct order of arguments to
231 amd64_collect_native_gregset.
232 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
233 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
234 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
235 for definition of NEW_PROC_API.
236 * configure: Regenerate.
237
3d38a0a5
JM
2382004-11-01 Joseph S. Myers <joseph@codesourcery.com>
239
240 * MAINTAINERS (Write After Approval): Add myself.
241
f81cd1cf
AC
2422004-11-01 Andrew Cagney <cagney@gnu.org>
243
244 * configure.tgt: Mark d10v-*-* as obsolete.
245 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
246
f4e88c8e
PH
2472004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
248
249 * values.c (modify_field): Correct handling of bit-fields that
250 don't fit in 32 bits. Use unsigned operations throughout and
251 simplify the code a bit. Document preconditions.
252
84674fe1
AC
2532004-10-31 Andrew Cagney <cagney@gnu.org>
254
96693b3a
AC
255 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
256 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
257 (in_plt_section): Delete.
258
6f296f8f
AC
259 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
260 (mips_gdbarch_init): Do not set same.
261
618501c0
AC
262 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
263 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
264
b22e8f02
AC
265 * gdbarch.sh (in_solib_call_trampoline): Delete.
266 * gdbarch.h, gdbarch.c: Re-generate.
267
84674fe1
AC
268 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
269 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
270 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
271 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
272 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
273
c6d1029f
MK
2742004-10-31 Mark Kettenis <kettenis@gnu.org>
275
276 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
277 (mipsnbsd_fetch_inferior_registers): Rename from
278 fetch_inferior_registers. Make static.
279 (mipsnbsd_store_inferior_registers): Rename from
280 store_inferior_registers. Make static.
281 (_initialize_mipsnbsd_nat): New function and prototype.
282 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
283 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
284 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
285 inf-ptrace.o.
286
bd9ca83f
AC
2872004-10-31 Andrew Cagney <cagney@gnu.org>
288
19d718a3
AC
289 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
290 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
291 delete corresponding unused function.
292 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
293 in_solib_call_trampoline.
294 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
295 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
296 * config/mips/tm-nbsd.h: Ditto.
297 * config/arm/tm-linux.h: Ditto.
298 * config/mips/tm-linux.h: Ditto.
299
e8ce19c0
AC
300 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
301 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
302 in_solib_call_trampoline, delete corresponding unused function.
303 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
304 (vaxnbsd_aout_init_abi): Ditto.
305 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
306 (sparc32nbsd_aout_init_abi): Ditto.
307 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
308 (ppc_linux_init_abi): Ditto.
309 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
310 (ns32knbsd_init_abi_aout): Ditto.
311 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
312 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
313 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
314 (m68kbsd_aout_init_abi): Ditto.
315 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
316 (i386_cygwin_init_abi): Ditto.
317 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
318 (i386bsd_init_abi): Ditto.
319
af380d61
AC
320 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
321 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
322 isn't used by this architecture.
323 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
324 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
325 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
326 * s390-tdep.c (s390_gdbarch_init): Ditto.
327 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
328 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
329 * i386-tdep.c (i386_svr4_init_abi): Ditto.
330 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
331 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
332 * amd64-tdep.c (amd64_init_abi): Ditto.
333
0528d9f7
AC
334 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
335 in_solib_call_trampoline to its default value of
336 generic_in_solib_call_trampoline.
337 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
338 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
339 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
340 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
341 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
342 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
343
f9f9eacb
AC
344 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
345
a4ffd1e7
AC
346 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
347
82e34d2f
AC
348 * config/mips/tm-mips.h: Delete file.
349 * remote-mips.c: Delete tm-mips.h from comment.
350 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
351 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
352 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
353 * config/mips/tm-linux.h: Don't include tm-mips.h.
354 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
355 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
356 * config/mips/tm-wince.h: Don't include.
357
75dec9cf
AC
358 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
359 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
360 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
361 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
362
bd9ca83f
AC
363 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
364 * mdebugread.c (ecoff_relocate_efi): Delete function.
365 * objfiles.c (objfile_relocate): Delete #ifdef
366 MDEBUG_EFI_SYMBOL_NAME code.
367
3352ef37
AC
3682004-10-31 Orjan Friberg <organ.friberg@axis.com>
369 Andrew Cagney <cagney@gnu.org>
370
371 * gdbarch.sh (single_step_through_delay): Add.
372 * gdbarch.h, gdbarch.c: Re-generate.
373 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
374 (mips_step_skips_delay): Delete.
375 * mips-tdep.c (mips_single_step_through_delay): Replace
376 mips_step_skips_delay.
377 (mips_gdbarch_init): Set single_step_through_delay.
378 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
379
2440b685
MK
3802004-10-31 Mark Kettenis <kettenis@gnu.org>
381
382 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
383 from TRAMP_FRAME frame type.
384
56a2fed5
AC
3852004-10-31 Andrew Cagney <cagney@gnu.org>
386
9b792b1d
AC
387 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
388
0a5e8d98
AC
389 * mips-tdep.c (mips_ignore_helper): Delete.
390 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
391 * infrun.c (handle_inferior_event): Delete #ifdef
392 DEPRECATED_IGNORE_HELPER_CALL code.
393
56a2fed5
AC
394 * config/mips/tm-mips.h (RA_REGNUM): Delete.
395
f69c55b2
MK
3962004-10-31 Mark Kettenis <kettenis@gnu.org>
397
398 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
399 (fill_fpregset): Do not compile for 64-bit systems.
400 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
401 * Makefile.in (i386-sol2-nat.o): Update dependencies.
402 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
403
d37cca3d
AC
4042004-10-30 Andrew Cagney <cagney@gnu.org>
405
36b8628e
AC
406 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
407 (struct mdebug_extra_func_info): Define.
408 * config/alpha/tm-alpha.h: Delete same.
409 * config/mips/tm-mips.h: Delete same.
410 * mdebugread.c: Delete same.
411 * Makefile.in: Update dependencies.
412 * mips-mdebug-tdep.c: Include "mdebugread.h".
413
5b123146
AC
414 * objfiles.c: Include "mdebugread.h".
415 * mdebugread.c: Include "mdebugread.h".
416 (ecoff_relocate_cfi): Delete.
417 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
418 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
419 * mdebugread.h (ecoff_relocate_efi): New file.
420 * Makefile.in: Update dependencies.
421
b9c3a7de
AC
422 * mips-tdep.c (struct frame_extra_info): Delete.
423 (temp_proc_desc): Delete.
424
f92761ec
AC
425 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
426 MIPS_EFI_SYMBOL_NAME.
427 (mips_extra_func_info_t, mips_extra_func_info): Delete.
428 (struct mdebug_extra_func_info): Replace struct
429 alpha_extra_func_info and alpha_extra_func_info_t.
430 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
431 MIPS_EFI_SYMBOL_NAME.
432 (struct mdebug_extra_func_info): Replace struct
433 alpha_extra_func_info and alpha_extra_func_info_t.
434 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
435 * mdebugread.c, alpha-mdebug-tdep.c:
436
0bb57b31
AC
437 Suggested by Mark Kettenis.
438 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
439 fields frame_adjust and high_addr.
440 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
441 (non_heuristic_proc_desc): Delete references.
442
a5c9623c
AC
443 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
444 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
445 * mips-tdep.c: Update.
446
607fc93c
AC
447 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
448 (MIPS_LAST_EMBED_REGNUM): Add.
449 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
450 (LAST_EMBED_REGNUM): Delete.
451 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
452
24e05951
AC
453 * config/mips/tm-mips.h (PS_REGNUM): Delete.
454 * mips-tdep.h (MIPS_PS_REGNUM): Add.
455 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
456 * mips-linux-nat.c: Update.
457
613e114f
AC
458 * mips-tdep.h: Add comments on registers.
459 (MIPS_UNUSED_REGNUM): Define.
460 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
461 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
462 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
463 * mips-linux-nat.c, remote-mips.c: Update.
464
d37cca3d
AC
465 * config/mips/tm-mips.h (t_insn): Delete.
466 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
467 Replace t_insn with ULONGEST.
468
ceb41096
MK
4692004-10-30 Mark Kettenis <kettenis@gnu.org>
470
d1180b0f
MK
471 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
472 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
473 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
474 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
475 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
476 (mipsnbsd_core_osabi_sniffer): New function.
477 (mipsnbsd_init_abi): Set regset_from_core_section.
478 (_initialize_mipsnbsd_tdep): Remove calls to
479 deprecated_add_core_fns.
480 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
481 (mipsnbsd_regset_from_core_section): New functions.
482 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
483 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
484
ceb41096
MK
485 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
486 Remove optimization for DEPRECATED_FP_REGNUM.
487
ec4045ea
AC
4882004-10-30 Andrew Cagney <cagney@gnu.org>
489
cd65c8f6
AC
490 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
491 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
492 (alpha_setup_arbitrary_frame): Delete.
493 * mips-tdep.c (setup_arbitrary_frame): Delete.
494 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
495 (setup_arbitrary_frame): Delete.
496 * stack.c (parse_frame_specification_1): When specified, call
497 create_new_frame with two parameters. Delete #ifdef
498 SETUP_ARBITRARY_FRAME.
499
95ac2dcf
AC
500 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
501 (MIPS_INSTLEN): Delete.
502 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
503 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
504 * remote-mips.c, mips-tdep.c: Update.
505
1a8da44d
AC
506 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
507 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
508 * mips-tdep.c (mips_mdebug_frame_cache)
509 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
510 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
511 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
512 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
513 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
514 (mips_gdbarch_init): Do not append mdebug sniffers.
515 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
516 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
517 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
518 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
519 * Makefile.in: Update dependencies.
520
e6bc2e8a
AC
521 * mips-tdep.h (mips_abi_regsize): Declare.
522 * mips-tdep.c (mips_abi_regsize): Make non-static.
523
ec4045ea
AC
524 * mips-tdep.c (gdb_print_insn_mips): Simplify.
525 (make_mips16_addr): Delete.
e6bc2e8a 526
6b16acab
MK
5272004-10-30 Mark Kettenis <kettenis@gnu.org>
528
529 * i386-sol2-nat.c: New file.
530 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
531 i386-sol2-tdep.c.
532 (i386-sol2-nat.o): Update dependencies.
533 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
534 i386-sol2-nat.o.
535
8b622e6a
AC
5362004-10-30 Andrew Cagney <cagney@gnu.org>
537
538 Total breakage identified by Joel Brobecker.
539 * mips-tdep.c (after_prologue): Delete.
540 (mips_skip_prologue): Use skip_prologue_using_sal.
541 (heuristic_proc_desc): Delete, unused.
542
772cf8be
MK
5432004-10-30 Mark Kettenis <kettenis@gnu.org>
544
545 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
546 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
547 Cleanup coding style.
548
9c8fdbfa
AC
5492004-10-30 Andrew Cagney <cagney@gnu.org>
550
0fe7e7c8
AC
551 * mips-tdep.h (mips_pc_is_mips16): Declare.
552 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
553 non-static. Update calls.
554
1b295c3d
AC
555 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
556 * command.h (add_setshow_enum_cmd): Declare.
557 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
558
6bcadd06
AC
559 * mips-tdep.c (_initialize_mips_tdep): Use
560 add_setshow_zinteger_cmd.
561
9c8fdbfa
AC
562 * mips-tdep.c (mips_eabi_extract_return_value)
563 (mips_o64_extract_return_value, mips_o64_store_return_value)
564 (return_value_location, mips_eabi_reg_struct_has_addr)
565 (mips_eabi_use_struct_convention)
566 (mips_eabi_store_return_value): Delete.
567 (mips_eabi_store_return_value): New function.
568 (mips_eabi_return_value): New function.
569 (mips_gdbarch_init): For O64 and EABI, delete
570 extract_return_value, store_return_value, use_struct_convention
571 and reg_struct_has_addr, add return_value.
572
1d93fe1a
AC
573 * mips-tdep.c (read_signed_register): Use
574 regcache_cooked_read_signed.
575
303d2914
MK
5762004-10-30 Mark Kettenis <kettenis@gnu.org>
577
578 * mipsread.c: Cleanup coding style.
579 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
580 (mipscoff_symfile_finish): Remove prototypes.
581
5822004-10-29 Mark Kettenis <kettenis@gnu.org>
583
584 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
585 (mips_mdebug_frame_cache, mips16_scan_prologue)
586 (mips32_scan_prologue, mips_stub_frame_cache)
587 (heuristic_proc_start, heuristic_proc_desc)
588 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
589 (mips_n32n64_return_value, mips_o32_push_dummy_call)
590 (mips_o32_return_value, mips_o64_push_dummy_call)
591 (mips_step_skips_delay, mips_skip_trampoline_code)
592 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
593 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
594 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
595 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
596 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
597 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
598 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
599 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
600 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
601 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
602 ZERO_REGNUM.
603 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
604 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
605 ZERO_REGNUM.
606 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
607 A0_REGNUM.
608 * mipsnbsd-nat.c: Include "mips-tdep.h".
609 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
610 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
611
1c8831c5
AC
6122004-10-29 Andrew Cagney <cagney@gnu.org>
613
614 * stack.c (parse_frame_specification_1): New function based on
615 parse_frame_specification. Add message and selected_frame_p
616 paramters. Truely always return non-NULL.
617 (parse_frame_specification): Call parse_frame_specification_1.
618 (frame_info): Update. Eliminate target_has_stack check.
619 (select_frame_command): Update.
620
b04f3ab4
AC
6212004-10-29 Andrew Cagney <cagney@gnu.org>
622
623 * frame.h (get_selected_frame): Add message parameter.
624 * frame.c (get_selected_frame): Add and use message parameter.
625 * stack.c (current_frame_command, return_command, locals_info)
626 (catch_info, args_info, up_silently_base, down_silently_base): Use
627 get_selected_frame with an explicit message.
628 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
629 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
630 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
631 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
632 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
633 * breakpoint.c: Update.
634
6352004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
636
637 * trad-frame.c (trad_frame_get_prev_register): Use
638 frame_unwind_register instead of frame_register_unwind, do not
639 recurse the register's location.
640 * xstormy16-tdep.c (xstormy16_frame_prev_register):
641 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
642 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
643 * sh-tdep.c (sh_frame_prev_register): Ditto.
644 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
645 * i386-tdep.c (i386_frame_prev_register): Ditto.
646 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
647 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
648
7a952542
MK
6492004-10-28 Mark Kettenis <kettenis@jive.nl>
650
c18c06be
MK
651 * proc-events.c: Fix several coding-style issues. Consistently
652 use #ifdef instead of #if defined().
653 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
654 ARRAY_SIZE.
655 (_initialize_proc_events): New prototype.
656
7a952542
MK
657 * proc-why.c: Fix several coding-style issues.
658 (proc_prettyfprint_why): Use ARRAY_SIZE.
659
fcad0fa4
JB
6602004-10-27 Jim Blandy <jimb@redhat.com>
661
662 * remote.c (fetch_register_using_p): Construct 'p' packet in a
663 manner independent of the host byte order.
664
c163184f
MK
6652004-10-27 Mark Kettenis <kettenis@gnu.org>
666
667 * mips-tdep.c (id_delayed): Remove prototype.
668
9c46b6f0
MK
6692004-10-26 Mark Kettenis <kettenis@gnu.org>
670
671 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
672 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
673 to enum with register numbers.
674 (enum mips_insn_size): New enum.
675
0d0266c6
AC
6762004-10-26 Andrew Cagney <cagney@gnu.org>
677
e7d6a6d2
AC
678 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
679 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
680 (mips_gdbarch_init): Update.
681 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
682
c5115f39
AC
683 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
684 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
685 IN_SOLIB_RETURN_TRAMPOLINE.
686 * mips-tdep.c (mips_dump_tdep): Do not print
687 IN_SOLIB_RETURN_TRAMPOLINE.
688 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
689 (mips_gdbarch_init): Update.
690
0d0266c6
AC
691 * mips-tdep.h (mips_software_single_step): Move to here ...
692 * config/mips/tm-mips.h: ... from here.
693 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
694 (SOFTWARE_SINGLE_STEP): Delete.
695 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
696
156a53ca
AC
6972004-10-25 Andrew Cagney <cagney@gnu.org>
698
699 * NEWS: Add Changes since GDB 6.3 section.
700
f27cf670
AS
7012004-10-23 Andreas Schwab <schwab@suse.de>
702
156a53ca
AC
703 * ada-lang.c (grow_vect): Return the new array instead of
704 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
705 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
706
121d8485
UW
7072004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
708
709 * s390-tdep.c (enum pv_boolean): Remove.
710 (pv_is_array_ref): Remove.
711 (s390_on_stack): Remove.
712 (S390_NUM_SPILL_SLOTS): Remove.
713 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
714 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
715 (s390_store): Track all stores of orginal incoming registers to the
716 stack constant offsets relative to the CFA, instead of only tracking
717 stores into specific spill slots.
718 (s390_load): Likewise.
719 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
720 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
721 defined as call-saved by the ABI.
722 (s390_push_dummy_call): Use bottom of dummy call argument save area
723 as return value, not the top. Do not store to the called function's
724 register save area.
725 (s390_unwind_dummy_id): Adapt accordingly.
726
0a6ddd08
AC
7272004-10-23 Andrew Cagney <cagney@gnu.org>
728
729 * objfiles.h (struct objfile): Rename obj_private to
730 deprecated_obj_private, sym_private to deprecated_sym_private, and
731 sym_stab_info to deprecated_sym_stab_info.
732 * gdb-stabs.h: Update.
733 * elfread.c: Update.
734 * dbxread.c: Update.
735 * coffread.c: Update.
736 * xcoffread.c: Update.
737 * symfile.c: Update.
738 * somread.c: Update.
739 * nlmread.c: Update.
740 * mdebugread.c: Update.
741 * hpread.c: Update.
742 * coffread.c: Update.
743
abc08782
MK
7442004-10-23 Mark Kettenis <kettenis@gnu.org>
745
746 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
747 * configure.host: Add mips64*-*-openbsd*.
748 * configure.tgt: Add mips64*-*-openbsd*.
749 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
750 mips64obsd-tdep.c.
751 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
752 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
753
fc062ac6
JB
7542004-10-21 Joel Brobecker <brobecker@gnat.com>
755
756 * symtab.c (symbol_search_name): Minor reformatting.
757
5bccb4d1
JB
7582004-10-20 Joel Brobecker <brobecker@gnat.com>
759
760 * symtab.h: Fix typo in comment.
761
a738430d
MK
7622004-10-19 Mark Kettenis <kettenis@gnu.org>
763
764 * dwarf2read.c (struct comp_unit_head): Fix coding style.
765 (dwarf_decode_line_header): Likewise.
766
f2cb65ca
MC
7672004-10-19 Michael Chastain <mec.gnu@mindspring.com>
768
769 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
770
09e55376
AC
7712004-10-19 Andrew Cagney <cagney@gnu.org>
772
773 GDB 6.3 branch created.
774 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
775
bc5f45f8
JB
7762004-10-15 Joel Brobecker <brobecker@gnat.com>
777
778 * dwarf2read.c (set_cu_language): Set language to Ada for
779 DW_LANG_Ada83 and DW_LANG_Ada95.
780
2941da8c
MC
7812004-10-15 Michael Chastain <mec.gnu@mindspring.com>
782
783 From Andreas Schwab <schwab@suse.de>:
784 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
785 for xmalloc and xrealloc.
786
34a17005
AC
7872004-10-15 Andrew Cagney <cagney@gnu.org>
788
789 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
790 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
791 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
792 Update dependencies.
793
714e53ab
PH
7942004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
795
796 * ada-lang.c (ada_lookup_symbol): Correct comment.
797 (ada_evaluate_subexp): Change error message for
798 OP_FUNCALL case so as not to indicate an internal error.
799
8002004-10-15 Joel Brobecker <brobecker@gnat.com>
801
802 Committed by Paul Hilfinger.
803 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
804 type sizes in XVE/XVU types, and emit a warning when that happens,
805 instead of rounding up the size of the resulting type.
806 Some minor reformatting.
807 (ada_is_aligner_type): Do not consider a type as an aligner type
808 if there is a corresponding XVS type as well.
809 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
810 have several levels of pointer indirection to the array.
811
8122004-10-15 Jerome Guitton <guitton@gnat.com>
813
814 Committed by Paul Hilfinger.
815 * ada-lang.c (check_size): New function.
816 (coerce_unspec_val_to_type): call check_size to make sure
817 that the object size is reasonable.
818 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
819 Implements the case when we get a reference when we evaluate
820 the expression of one of the bounds of the slice.
821 (ada_value_struct_elt): when a packed array field is
822 a reference, use ada_coerce_ref to dereference it; use
823 ada_value_ind only if it is a pointer.
824
29639122
JB
8252004-10-15 Joel Brobecker <brobecker@gnat.com>
826
827 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
828 a bit to avoid the necessity of an advance declaration. Remove
829 declaration.
830 (set_reg_offset): Move implemenation up.
831 (mips16_get_imm): Likewise.
832 (mips16_scan_prologue): Likewise.
833 (reset_saved_regs): Likewise.
834 (mips32_scan_prologue): Likewise.
835
a65bbe44
JB
8362004-10-14 Joel Brobecker <brobecker@gnat.com>
837
838 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
839 Remove sp as a parameter, compute it internally instead. Move
840 prologue scanning limit from heuristic_proc_desc to here.
841 (mips16_scan_prologue): Likewise.
842 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
843 by call to mips16_scan_prologue.
844 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
845 by call to mips32_scan_prologue.
846 (heuristic_proc_desc): Remove code that's no longer necessary.
847 Update calls to mips16_scan_prologue and mips32_scan_prologue.
848 (mips_skip_prologue): Update calls to mips16_scan_prologue
849 and mips32_scan_prologue.
850
1c645fec
JB
8512004-10-14 Joel Brobecker <brobecker@gnat.com>
852
853 * mips-tdep.c (mips16_scan_prologue): Merge code from
854 mips16_skip_prologue. Now return the address of the first
855 instruction past the function prologue.
856 (mips16_skip_prologue): Remove, no longer necessary.
857 (mips_skip_prologue): Replace call to mips16_skip_prologue
858 by call to mips16_scan_prologue.
859
98b4dd94
JB
8602004-10-14 Joel Brobecker <brobecker@gnat.com>
861
862 * mips-tdep.c (mips32_scan_prologue): Merge code from
863 mips32_skip_prologue. Now return the address of the first
864 instruction past the function prologue.
865 (mips32_skip_prologue): Remove. No longer necessary.
866 (mips16_skip_prologue): Add parameter end_pc instead of
867 computing it.
868 (mips_skip_prologue): Compute the upper limit for the
869 prologue scanning. Update call to mips16_skip_prologue.
870 Replace call to mips32_skip_prologue by call to
871 mips32_scan_prologue.
872
ad4c72d2
MK
8732004-10-14 Mark Kettenis <kettenis@gnu.org>
874
dfaf8edb
MK
875 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
876 NetBSD system call stubs that store %rp in the ERP slot of the
877 stack frame.
878
3e3a28f1
MK
879 * source.c: Always define O_BINARY to 0 if not defined already.
880 (openp): Unconditionally use O_BINARY.
881
ad4c72d2
MK
882 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
883 * event-top.c (gdb_readline2): Likewise.
884
52bd1401
OF
8852004-10-14 Orjan Friberg <orjanf@axis.com>
886
887 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
888 deprecated_add_core_fns which was removed by mistake.
889
e0e25c6c
KB
8902004-10-13 Kevin Buettner <kevinb@redhat.com>
891
892 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
893 references to deprecated_registers[] with equivalent code.
894
9f335945
KB
8952004-10-13 Kevin Buettner <kevinb@redhat.com>
896
897 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
898 ``deprecated_registers'' with equivalent code. Use gdb_assert()
899 instead of explicit test and print statement.
900
06c2338d
MK
9012004-10-12 Mark Kettenis <kettenis@gnu.org>
902
1b9445c2
MK
903 * sparc-nat.c: Include "inf-ptrace.h".
904 (sparc_target): New function.
905 * sparc-nat.h: Update copyright year.
906 (sparc_target): New prototype.
907 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
908 (_initialize_sparcnbsd_nat): Construct and add target vector.
909 * sparc64nbsd-nat.c: Include "target.h".
910 (_initialize_sparc64nbsd_nat): Construct and add target vector.
911 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
912 Update dependencies.
913 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
914 inftarg.o, add inf-ptrace.o.
915 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
916 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
917 (NAT_FILE): Set to nm-bsd.h.
918 (LOADLIBES): New variable.
919 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
920 infarg.o, add inf-ptrace.o.
921 * config/sparc/nm-nbsdaout.h: Remove file.
922 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
923 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
924 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
925
06c2338d
MK
926 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
927 "fopen-same.h". Update comment.
928
3303a276
MK
9292004-10-11 Mark Kettenis <kettenis@gnu.org>
930
931 * i386gnu-nat.c: Include "gdb_string.h".
932 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
933 registers when the floating-point state isn't initialized.
934 * Makefile.in (i386gnu-nat.o): Update dependencies.
935
04c663e3
DA
9362004-10-11 David Anderson <davea@sgi.com>
937
938 * regcache.c (regcache_raw_read): Comment was missing "to".
939 Extraneous ' removed.
940 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
941 comment now describes use.
942
a5f6c8f5
OF
9432004-10-11 Orjan Friberg <orjanf@axis.com>
944
945 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
946 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
947 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
948 (cris_sigtramp_frame_sniffer): New functions.
949 (cris_gdbarch_init): Hook in signal trampoline unwinder.
950 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
951 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
952 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
953 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
954 command.
955 (cris_version_update): Remove, replace with ...
956 (set_cris_version): New function.
957 (struct gdbarch_tdep, cris_mode, cris_mode_update)
958 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
959 (_initialize_cris_tdep): Remove CRIS mode command.
960 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
961 cris-fpless-backtrace command.
962 (cris_scan_prologue): Fix prologue scanning limit.
963 (cris_register_type): Update to reflect actual registers.
964 (cris_register_bytes_ok) Remove.
965 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
966 Remove set_gdbarch_deprecated_register_size,
967 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
968
77109804
AC
9692004-10-10 Andrew Cagney <cagney@gnu.org>
970
971 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
972 comment.
973
25652d4f
JB
9742004-10-10 Joel Brobecker <brobecker@gnat.com>
975
976 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
977
1e05a7bf
JB
9782004-10-10 Joel Brobecker <brobecker@gnat.com>
979
980 * mips-tdep.c (mips16_scan_prologue): Renames
981 mips16_heuristic_proc_desc. Update comment.
982 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
983 (heuristic_proc_desc): Update calls to the 2 functions above.
984
c68a4142
JB
9852004-10-10 Joel Brobecker <brobecker@gnat.com>
986
987 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
988 Update comments. Also immediately return empty cache when the start
989 address of our function could not be found.
990 (mips_insn32_frame_cache): Likewise.
991
0fce0821
JB
9922004-10-10 Joel Brobecker <brobecker@gnat.com>
993
994 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
995 (mips_insn16_frame_cache): Pass frame cache in call to
996 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
997 Remove code that became redundant as a consequence.
998 (mips32_heuristic_proc_desc): No longer compute a fake
999 procedure descriptor. Compute the full frame cache instead.
1000 Some minor comment reformatting.
1001
b672553e
JB
10022004-10-10 Jim Blandy <jimb@redhat.com>
1003
1004 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1005 reader, tracing bytecode stuff): Remove self.
1006
9cc52bde
MK
10072004-10-10 Mark Kettenis <kettenis@gnu.org>
1008
cc9784b6
MK
1009 * sparc64-linux-tdep.c: Update copyright year. Don't include
1010 "solib-svr4.h".
1011 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1012 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1013 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1014
ee8aef23
MK
1015 * sparc-linux-tdep.c: Update copyright year.
1016 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1017 to struct frame_info *. Use safe_frame_unwind_memory instead of
1018 deprecated_read_memory_nobpt.
1019 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1020 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1021 changed signature of sparc_linux_sigtramp_start.
1022 (sparc32_linux_pc_in_sigtramp): Remove function.
1023 (sparc32_linux_sigtramp_p): New function.
1024 (sparc32_linux_sigtramp_frame_sniffer): Use
1025 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1026
bc73f8cc
MK
1027 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1028 Remove function.
1029 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1030
a2249542
MK
1031 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1032 (decode_packed_array_type, value_subscript_packed)
1033 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1034 argument in call to lim_warning.
1035
9cc52bde
MK
1036 * configure.in: Really disable the TUI if an enhanced curses
1037 library isn't found.
1038 * configure: Regenerate.
1039
151fc45b
MK
10402004-10-09 Mark Kettenis <kettenis@gnu.org>
1041
1042 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1043 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1044 * config/i386/nm-nbsdaout.h: Remove file.
1045 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1046 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1047 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1048 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1049 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1050 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1051 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1052 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1053 (ldd, ld_un, ld_2): Remove defines.
1054 * config/i386/nm-obsd.h: Likewise.
1055
375c0479
PH
10562004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1057
1058 * ada-lex.l: Remove useless rule whose right-context clause
1059 causes unreferenced static function warning for yyrealloc.
1060 (ada_flex_use): Remove the artificial reference to yyrealloc.
1061
c8e73a31
AC
10622004-10-08 Andrew Cagney <cagney@gnu.org>
1063
1064 * target.h (struct target_ops): Rename to_xfer_memory to
1065 deprecated_xfer_memory.
1066 * target.c: Update.
1067 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1068 * wince.c: Update.
1069 * win32-nat.c: Update.
1070 * v850ice.c: Update.
1071 * uw-thread.c: Update.
1072 * thread-db.c: Update.
1073 * sol-thread.c: Update.
1074 * remote.c: Update.
1075 * remote-vx.c: Update.
1076 * remote-st.c: Update.
1077 * remote-sim.c: Update.
1078 * remote-sds.c: Update.
1079 * remote-rdp.c: Update.
1080 * remote-rdi.c: Update.
1081 * remote-mips.c: Update.
1082 * remote-m32r-sdi.c: Update.
1083 * remote-e7000.c: Update.
1084 * procfs.c: Update.
1085 * ppc-bdm.c: Update.
1086 * nto-procfs.c: Update.
1087 * monitor.c: Update.
1088 * linux-nat.c: Update.
1089 * inftarg.c: Update.
1090 * hpux-thread.c: Update.
1091 * go32-nat.c: Update.
1092 * gnu-nat.c: Update.
1093 * exec.c: Update.
1094 * corelow.c: Update.
1095 * bsd-kvm.c: Update.
1096 * aix-thread.c: Update.
1097
aa869812
AC
10982004-10-08 Andrew Cagney <cagney@gnu.org>
1099
1100 * target.c (debug_target): Move to near start of file.
1101 (target_stopped_data_address_p): Re-org logic, add casts.
1102
8dcef9cf
MK
11032004-10-02 Mark Kettenis <kettenis@gnu.org>
1104
1105 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1106 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1107 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1108 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1109 New defines.
1110
4aa7a7f5
JJ
11112004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1112
1113 * target.h (to_stopped_data_address): Change prototype to
1114 take a CORE_ADDR pointer and return an int.
1115 * target.c (update_current_target): Change to_stopped_data_address
1116 to match new prototype.
1117 (debug_to_stopped_data_address): Change appropriately.
1118 * breakpoint.c (bpstat_stop_status): Change call to
1119 target_stopped_data_address to use new prototype.
1120 * frv-tdep.c (frv_have_stopped_data_address): New function.
1121 (frv_stopped_data_address): Change to new prototype and
1122 functionality.
1123 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1124 prototype and functionality.
1125 (ia64_stopped_by_watchpoint): New function.
1126 * i386-nat.c (i386_stopped_data_address): Change to new
1127 prototype and functionality.
1128 (i386_stopped_by_watchpoint): New function.
1129 * remote.c (remote_stopped_data_address): Change to new prototype
1130 and functionality.
1131 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1132 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1133 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1134 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1135 new i386_stopped_by_watchpoint function.
1136 (i386_stopped_by_watchpoint): New prototype.
1137 (i386_stoppped_data_address): Change to new prototype.
1138 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1139 new ia64_stopped_by_watchpoint function.
1140 (ia64_stopped_by_watchpoint): New prototype.
1141 (ia64_stopped_data_address): Ditto.
1142
61ee279c
PH
11432004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1144
1145 * ada-typeprint.c (ada_print_type): Use int_string for printing
1146 modulus of modular type.
1147 * ada-lang.h (ada_modulus): Change return type to unsigned.
1148 * ada-lang.c (ada_language_arch_info): Correct type of
1149 string_char_type.
1150 (ada_modulus): Return unsigned result.
1151 (ada_lookup_symbol): Remove user disambiguation and modify comment
1152 accordingly.
1153
11542004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1155
1156 Committed by Paul Hilfinger.
1157 * ada-lang.c (decode_packed_array): On big-endian targets,
1158 left-justify the value if it comes with a modular type.
1159
11602004-10-08 Joel Brobecker <brobecker@gnat.com>
1161
1162 Committed by Paul Hilfinger.
1163 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1164 (is_name_suffix): Add support for "___JM" suffixes.
1165 (ada_check_typedef): Renames ada_completed_type.
1166 Update all users of CHECK_TYPEDEF, check_typedef, and
1167 ada_complete_type to call ada_check_typedef.
1168 * ada-typeprint.c: Likewise.
1169 * ada-valprint.c: Likewise.
1170
b6c25a56
CV
11712004-10-08 Corinna Vinschen <vinschen@redhat.com>
1172
1173 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1174
83ca6a46
NR
11752004-10-08 Nick Roberts <nickrob@snap.net.nz>
1176
1177 * MAINTAINERS: Update e-mail address.
1178
1fd8cd20
DJ
11792004-10-07 Daniel Jacobowitz <dan@debian.org>
1180
1181 From Maciej W. Rozycki <macro@mips.com>:
1182 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1183 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1184
cea15572
KI
11852004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1186
1187 * m32r-tdep.c (decode_prologue): Support functions written
1188 in assembler language. Recognize trap instructions as the
1189 end of prologue.
1190 (m32r_frame_unwind_cache): Ditto.
1191 (m32r_skip_prologue): Extend search limit. Quit analyzing
1192 prologue if pc's location is not readable.
1193
23485554
PH
11942004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1195
1196 * Makefile.in (.l.c): Do conversions of names of alloc and free
1197 functions that are done for .y.c files, plus special one
1198 for yy_flex_realloc. Also, correct missing-file tests here.
1199 * ada-lex.l (malloc, free): Remove macros.
1200 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1201 xrealloc.
1202 (ada_flex_use): Dummy definition to remove warnings about unused
1203 functions.
1204 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1205 to suppress warning.
1206
c0409442
CV
12072004-10-06 Corinna Vinschen <vinschen@redhat.com>
1208
1209 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1210 RETURN_VALUE.
1211 (sh_return_value_fpu): Ditto for CPUs with FPU.
1212 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1213 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1214 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1215 RETURN_VALUE functions.
1216
9bed62d7
CV
12172004-10-06 Corinna Vinschen <vinschen@redhat.com>
1218
1219 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1220 (sh_pseudo_register_write): Ditto.
1221
03131d99
CV
12222004-10-06 Corinna Vinschen <vinschen@redhat.com>
1223
1224 * sh-tdep.c (IS_MACL_STS): New define.
1225 (IS_MOVI20): Ditto.
1226 (IS_MACL_LDS): Ditto.
1227 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1228 instructions in prologue.
1229 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1230 instructions in epilogue.
1231
da962468
CV
12322004-10-06 Corinna Vinschen <vinschen@redhat.com>
1233
1234 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1235 (sh_sh_register_name): Add eight empty register names.
1236 (sh_sh3_register_name): Ditto.
1237 (sh_sh3e_register_name): Ditto.
1238 (sh_sh2e_register_name): Ditto.
1239 (sh_sh2a_register_name): New function, defining SH2A register set.
1240 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1241 in nofpu case.
1242 (sh_sh_dsp_register_name): Add eight empty register names.
1243 (sh_sh3_dsp_register_name): Ditto.
1244 (sh_sh4_register_name): Ditto.
1245 (sh_sh4_nofpu_register_name): Ditto.
1246 (sh_sh4al_dsp_register_name): Ditto.
1247 (sh2a_show_regs): New function.
1248 (sh2a_nofpu_show_regs): New function.
1249 (sh_sh2a_register_type): New function.
1250 (do_bank_register_info): New function.
1251 (sh_print_pseudo_register): Call do_bank_register_info.
1252 Call sh_print_pseudo_register for valid "bank" register.
1253 (sh_sh2a_register_sim_regno): New function.
1254 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1255 Increment pseudo register count by one for all sh variants with
1256 pseudo registers to accomodate pseudo bank register.
1257 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1258 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1259 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1260 Increment pseudo register numbers.
1261
1326e61b
CV
12622004-10-06 Corinna Vinschen <vinschen@redhat.com>
1263
1264 * dwarf2read.c (read_subroutine_type): Call make_function_type
1265 instead of lookup_function_type.
1266
146c42e3
JB
12672004-10-05 Jim Blandy <jimb@redhat.com>
1268
1269 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1270 (Previous change missed some uses.)
1271
1df84f13
AC
12722004-10-05 Andrew Cagney <cagney@gnu.org>
1273
1274 * target.h (deprecated_child_ops): Rename child_ops.
1275 * wince.c: Update copyright. Rename child_ops.
1276 * win32-nat.c: Rename child_ops.
1277 * target.c: Rename child_ops.
1278 * rs6000-nat.c: Rename child_ops.
1279 * linux-nat.c: Rename child_ops.
1280 * infttrace.c: Rename child_ops.
1281 * inftarg.c: Rename child_ops.
1282 * infptrace.c: Rename child_ops.
1283 * hppah-nat.c: Update copyright. Rename child_ops.
1284 * hpux-thread.c: Update copyright. Rename child_ops.
1285
21e3b9b9
DJ
12862004-10-05 Daniel Jacobowitz <dan@debian.org>
1287
1288 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1289
de83afe7
AC
12902004-10-05 Andrew Cagney <cagney@gnu.org>
1291
1292 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1293
10b3939b
DJ
12942004-10-05 Daniel Jacobowitz <dan@debian.org>
1295
1296 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1297 (die_ref_table): Remove.
1298 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1299 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1300 the usage of this type.
1301 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1302 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1303 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1304 (dwarf2_create_include_psymtab): Update comment.
1305 (find_partial_die): Remove third argument. Remove unreachable call
1306 to error ().
1307 (dwarf2_find_containing_comp_unit): Update comments. Change one
1308 assertion to an error. Remove an unreachable error.
1309 (dwarf2_find_comp_unit): Update comments.
1310 (type_at_offset): Remove dead code.
1311 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1312 (store_in_ref_table): Add CU argument.
1313 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1314 inter-compilation-unit references.
1315 (load_full_comp_unit, process_full_comp_unit): New functions, based
1316 on psymtab_to_symtab_1.
1317 (psymtab_to_symtab_1): Use them.
1318 (dwarf2_add_dependence): New function.
1319 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1320 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1321 (partial_die_parent_scope, guess_structure_name): Update for changes
1322 to find_partial_die.
1323 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1324 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1325 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1326 (read_die_and_children): Update call to store_in_ref_table.
1327 (do_free_die_list_cleanup): Remove.
1328 (fixup_partial_die): Update for changes to find_partial_die.
1329 (read_full_die): Handle queueing absolute references.
1330 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1331 (dwarf2_attr, die_specification, die_type)
1332 (die_containing_type, dwarf2_extension): Update calls to
1333 follow_die_ref.
1334 (dump_die): Update DW_FORM_ref* handling.
1335 (dwarf2_get_ref_die_offset): Likewise.
1336 (free_one_comp_unit): Release the dies list.
1337 (dwarf2_mark_helper): New function.
1338 (dwarf2_mark): Use it.
1339
998bdd68
MK
13402004-10-05 Mark Kettenis <kettenis@jive.nl>
1341
1342 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1343 when writing to memory.
1344
14588880
KI
13452004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1346
1347 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1348 (m32r_extract_struct_value_address): Delete function.
1349 (m32r_return_value): New function.
1350 (m32r_gdbarch_init): Instead of store_return_value,
1351 extract_return_value, deprecated_extract_struct_value_address
1352 and deprecated_use_struct_convention, set return_value.
1353
dd5e6932
DJ
13542004-10-03 Daniel Jacobowitz <dan@debian.org>
1355
1356 * dwarf2read.c (read_subrange_type): Add comment for variable
1357 sized arrays.
1358
7dc1ef8d
PH
13592004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1360
1361 * Makefile.in (.l.c): Modify rule for compatibility with recent
1362 versions of flex, and remove most command-line options.
1363 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1364 options.
1365
1f8173e6
PH
13662004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1367
1368 Turn on initial Ada support (mainly expression evaluation).
1369
1370 * Makefile.in (SFILES): Remove ada-tasks.c.
1371 (HFILES_NO_SRCDIR): Add ada-lang.h.
1372 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1373 (YYOBJ): Add ada-exp.o.
1374 (rule .l.c): Generalize to not mention ada.
1375 * symtab.c: Include ada-lang.h.
1376 (symbol_natural_name, symbol_demangled_name)
1377 (symbol_search_name): Add Ada case.
1378
cb85a953
AC
13792004-10-01 Andrew Cagney <cagney@gnu.org>
1380
3f3db248
AC
1381 * Makefile.in (COMMON_OBS): Add inf-child.o.
1382 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1383 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1384 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1385 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1386 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1387 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1388 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1389 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1390 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1391 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1392 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1393 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1394 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1395
cb85a953
AC
1396 * target.c (xfer_using_stratum): Change return type to LONGEST.
1397 On each iteration offset, readbuf and writebuf.
1398 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1399 partial_length, and read/modify/write predicate, update comments.
1400 Pass buffer.word to ptrace write.
1401
963a6417
PH
14022004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1403
1404 * symfile.c (init_filename_language_table): Add extensions for
1405 Ada.
1406 * defs.h (enum language): Add language_ada.
1407 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1408 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1409 (add_symbols_from_enclosing_procs): Make a no-op for now.
1410 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1411 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1412 (find_line_in_linetable, find_next_line_in_linetable)
1413 (read_all_symtabs, is_plausible_func_for_line)
1414 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1415 (is_runtime_sym_defined, check_size): Remove declaration.
1416 (function_name_from_pc, ada_translate_error_message)
1417 (ada_lookup_minimal_symbol): Remove definition.
1418 (ada_add_block_symbols): Remove useless label.
1419 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1420 useless declaration.
1421 (ada_is_exception_sym): Likewise.
1422
9b32d526
KI
14232004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1424
1425 Add m32r-linux support.
1426 * configure.tgt: Add m32r*-*-linux*.
1427 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1428 and m32r-linux-tdep.c.
1429 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1430 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1431 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1432 m32r-linux-tdep.c.
1433 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1434 config/m32r/linux.mh, config/m32r/linux.mt,
1435 config/m32r/nm-linux.h: New files.
1436
2de118d3
JB
14372004-09-30 Joel Brobecker <brobecker@gnat.com>
1438
1439 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1440 (mips32_fetch_instruction): Remove, unused.
1441
a9fe69d1
JB
14422004-09-30 Joel Brobecker <brobecker@gnat.com>
1443
1444 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1445 conditions that will always be true.
1446
bc8ffc12
MK
14472004-09-30 Mark Kettenis <kettenis@gnu.org>
1448
ba0cd111
MK
1449 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1450 (vaxbsd_fetch_inferior_registers): Rename from
1451 fetch_inferior_registers. Make static.
1452 (vaxbsd_store_inferior_registers): Rename from
1453 store_inferior_registers. Make static.
1454 (_initialize_vaxbsd_nat): Construct and add target vector.
1455 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1456 inftarg.o. Add inf-child.o and inf-ptrace.o.
1457 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1458 inftarg.o. Add inf-child.o and inf-ptrace.o.
1459 (NAT_FILE): Remove.
1460 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1461 inftarg.o. Add inf-child.o and inf-ptrace.o.
1462 (NAT_FILE): Remove.
1463 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1464
bc8ffc12
MK
1465 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1466 (m88kbsd_fetch_inferior_registers): Rename from
1467 fetch_inferior_registers. Make static.
1468 (m88kbsd_store_inferior_registers): Rename from
1469 store_inferior_registers. Make static.
1470 (_initialize_m88kbsd_nat): New prototype and function.
1471 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1472 inftarg.o. Add inf-child.o and inf-ptrace.o.
1473 (NAT_FILE): Remove.
1474 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1475
27394598
AC
14762004-09-30 Andrew Cagney <cagney@gnu.org>
1477
1478 * target.c (target_xfer_partial): New function.
1479 (target_read_memory_partial, target_write_memory_partial)
1480 (default_xfer_partial, target_read_partial, target_write_partial)
1481 (xfer_using_stratum): Use.
1482 (debug_to_xfer_partial): Delete function.
1483 (setup_target_debug): Do not override to_xfer_partial.
1484
74a4fe32
MK
14852004-09-30 Mark Kettenis <kettenis@chello.nl>
1486
1487 * fork-child.c: Update copyright year. Fix coding style.
1488
982526a1
MK
14892004-09-29 Mark Kettenis <kettenis@gnu.org>
1490
1491 * defs.h (msavestring, mstrsave): Remove prototypes.
1492 * utils.c (msavestring, mstrsave): Remove functions.
1493 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1494 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1495 of mstrsave.
1496 * source.c (find_and_open_source): Use xstrdup instead of
1497 mstrsave.
1498
b8eb5af0
AC
14992004-09-30 Andrew Cagney <cagney@gnu.org>
1500
0779438d
AC
1501 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1502 (inf_ptrace_xfer_memory): Delete.
1503 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1504 (target_read_memory, target_write_memory): Use xfer_using_stratum
1505 when target_xfer_partial_p.
1506 (debug_target): Move to start of file.
1507 (target_read_memory_partial, target_write_memory_partial): Use
1508 to_xfer_partial when target_xfer_partial_p.
1509
f929a579
AC
1510 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1511 inf_ptrace_xfer_memory with equivalent code.
1512 * inftarg.c (child_xfer_partial): When performing a write, pass
1513 writebuf to child_xfer_memory.
1514
b8eb5af0
AC
1515 * target.c (target_read_string): Use target_read_memory instead of
1516 target_xfer_memory.
1517
ee21b650
AC
15182004-09-29 Andrew Cagney <cagney@gnu.org>
1519
d3e05d0d
AC
1520 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1521 the address of status.
1522
ee21b650
AC
1523 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1524 (kill_inferior): Inline ptrace_wait call.
1525 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1526 * inftarg.c (child_wait): Inline ptrace_wait call.
1527
a182eed6
AC
1528 * target.h (struct target_ops): Delete field to_post_wait.
1529 (target_post_wait): Delete macro.
1530 (child_post_wait): Delete declaration.
1531 * target.c (update_current_target, update_current_target)
1532 (debug_to_post_wait, setup_target_debug): Delete functions and
1533 references.
1534 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1535 * inftarg.c (child_post_wait): Delete.
1536 (init_child_ops): Do not set to_post_wait.
1537 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1538 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1539 * inf-child.c (inf_child_post_wait): Delete.
1540 (inf_child_target): Do not set to_post_wait.
1541 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1542 (inf_ptrace_target): Do not set to_post_wait.
1543
ba0c540b
AC
1544 * wince.c (child_ops): Delete.
1545 * win32-nat.c (child_ops): Delete.
1546
81977402
AC
1547 * inftarg.c (inftarg_set_find_memory_regions)
1548 (inftarg_set_make_corefile_notes): Delete functions.
1549 (_initialize_linux_nat): Inline calls.
1550
5ac10fd1
AC
1551 * target.h (child_ops): Declare.
1552 * inftarg.c (child_ops): Move from here ...
1553 * target.c (child_ops): ... to here.
1554 * wince.c (child_ops): Delete extern declaration.
1555 * win32-nat.c (child_ops): Delete extern declaration.
1556 * linux-nat.c (child_ops): Delete extern declaration.
1557 * hpux-thread.c (child_ops): Delete extern declaration.
1558
663408c2 15592004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1560
1561 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1562
0dad8a66
MK
15632004-09-28 Mark Kettenis <kettenis@gnu.org>
1564
1565 * configure.in: Only set host_makefile_frag when building a native
1566 debugger.
1567 * configure: Regenerate.
e8d74ed3
MK
1568
1569 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1570 for OpenBSD ELF.
1571
dba24537
AC
15722004-09-28 Andrew Cagney <cagney@gnu.org>
1573
e979516b
AC
1574 Problem identified by Paul Hilfinger.
1575 * Makefile.in (ada_lex_c): Define.
1576 (ada-lex.o): Delete rule.
1577
dba24537
AC
1578 * linux-proc.c: Delete file.
1579 * Makefile.in: Update.
1580 * config/sparc/linux64.mh (NATDEPFILES):
1581 * config/sparc/linux.mh (NATDEPFILES): Update.
1582 * config/s390/s390.mh (NATDEPFILES): Update.
1583 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1584 * config/powerpc/linux.mh (NATDEPFILES): Update.
1585 * config/pa/linux.mh (NATDEPFILES): Update.
1586 * config/mips/linux.mh (NATDEPFILES): Update.
1587 * config/m68k/linux.mh (NATDEPFILES): Update.
1588 * config/ia64/linux.mh (NATDEPFILES): Update.
1589 * config/i386/linux64.mh (NATDEPFILES): Update.
1590 * config/i386/linux.mh (NATDEPFILES): Update.
1591 * config/arm/linux.mh (NATDEPFILES): Update.
1592 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1593 * linux-nat.c: Update copyright. Include <sys/param.h>,
1594 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1595 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1596 (O_LARGEFILE): Possibly define.
1597 (_initialize_linux_nat, linux_proc_pending_signals)
1598 (add_line_to_sigset, linux_proc_xfer_memory)
1599 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1600 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1601 (struct linux_corefile_thread_data)
1602 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1603 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1604
d6b0e80f
AC
16052004-09-16 Andrew Cagney <cagney@gnu.org>
1606
1607 * lin-lwp.c: Delete file.
1608 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1609 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1610 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1611 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1612 (linux_nat_attach, detach_callback, linux_nat_detach)
1613 (resume_callback, resume_clear_callback, linux_nat_resume)
1614 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1615 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1616 (status_callback, running_callback, count_events_callback)
1617 (select_singlestep_lwp_callback, select_event_lwp_callback)
1618 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1619 (child_wait, stop_and_resume_callback, linux_nat_wait)
1620 (kill_callback, kill_wait_callback, linux_nat_kill)
1621 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1622 (linux_nat_xfer_memory, linux_nat_thread_alive)
1623 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1624 (_initialize_linux_nat): New functions.
1625 * Makefile.in: Update all dependencies.
1626 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1627 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1628 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1629 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1630 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1631 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1632 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1633 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1634 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1635 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1636 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1637 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1638 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1639
5a174d79
MK
16402004-09-27 Mark Kettenis <kettenis@gnu.org>
1641
2f604c28
MK
1642 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1643 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1644
5a174d79
MK
1645 * configure.in: Don't comment out NATDEPFILES in the generated
1646 Makefile if NAT_FILE is unset.
1647 * configure: Regenerate.
1648
b2ed1746
AC
16492004-09-27 Andrew Cagney <cagney@gnu.org>
1650
44cbf7b5
AC
1651 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1652 (insert_step_resume_breakpoint): Delete.
1653 (insert_step_resume_breakpoint_at_frame): New function.
1654 (insert_step_resume_breakpoint_at_sal): New function.
1655 (handle_inferior_event, step_into_function)
1656 (insert_step_resume_breakpoint): Simplify by using same.
1657
b2ed1746
AC
1658 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1659
3691b3be
MK
16602004-09-26 Mark Kettenis <kettenis@gnu.org>
1661
36f391e8
MK
1662 * fbsd-proc.c: Remove file.
1663 * Makefile.in (fbsd-proc.o): Remove dependency.
1664
771e236c
MK
1665 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1666 code together.
1667
3691b3be
MK
1668 * config/i386/nm-fbsd64.h: Remove file.
1669 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1670
6a5c78a3
MK
16712004-09-26 Mark Kettenis <kettenis@gnu.org>
1672
1673 * amd64-nat.h: Update copyright year.
1674 (amd64bsd_target): New prototype.
1675 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1676 (amd64bsd_target): New function.
1677 (amd64bsd_fetch_inferior_registers): Rename from
1678 fetch_inferior_registers. Make static.
1679 (amd64bsd_store_inferior_registers): Rename from
1680 store_inferior_registers. Make static.
1681 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1682 (_initialize_amd64fbsd_nat): Construct and add target vector.
1683 * amd64nbsd-nat.o: Include "target.h".
1684 (_initialize_amd64nbsd_nat): Construct and add target vector.
1685 * amd64obsd-nat.c: Include "target.h".
1686 (_initialize_amd64obsd_nat): Construct and add target vector.
1687 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1688 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1689 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1690 fbsd-nat.o.
1691 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1692 Remove infptrace.o and inftarg.o. Add inf-child.o and
1693 inf-ptrace.o.
1694 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1695 (amd64obsd-nat.o): Update dependencies.
1696
27acbe61
MK
16972004-09-25 Mark Kettenis <kettenis@gnu.org>
1698
509a5e7d
MK
1699 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1700 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1701 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1702 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1703 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1704
6e1e94ea
MK
1705 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1706 Inline attach call.
1707 (inf_ptrace_detach): Inline detach call.
1708
8b9cf735
MK
1709 * configure.in: Check for waddstr instead of mvwaddstr when
1710 searching for curses library. Check for wborder.
1711 * configure, config.in: Regenerate.
1712 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1713 available.
1714
27acbe61
MK
1715 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1716
b96ec7ac
AC
17172004-09-24 Robert Picco <Robert.Picco@hp.com>
1718
1719 Committed by Andrew Cagney.
1720 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1721 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1722 configuration.
1723 (fetch_register_using_p): Implement 'p' packet. Based on code by
1724 Fernando Nasser.
1725 (remote_fetch_registers): Call fetch_register_using_p.
1726 (init_all_packet_configs, show_remote_cmd)
1727 (_initialize_remote): Add p-packet.
1728
62ece330
MK
17292004-09-24 Mark Kettenis <kettenis@gnu.org>
1730
1731 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1732 instead of call_ptrace. Call wait directly instead of
1733 ptrace_wait.
1734 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1735 (inf_ptrace_wait): Inline ptrace_wait call.
1736
00937274
PH
17372004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1738
1739 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1740 rolled back instead.
1741
3f2c7a45
PH
17422004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1743
1744 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1745 the new argument order.
1746
b6fcb393
CV
17472004-09-23 Corinna Vinschen <vinschen@redhat.com>
1748
1749 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1750 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1751 (struct gdbarch_tdep): Remove.
1752 (struct xstormy16_frame_cache): New frame cache structure.
1753 (xstormy16_register_byte, xstormy16_register_raw_size)
1754 (xstormy16_reg_virtual_type, xstormy16_register_type)
1755 (xstormy16_push_arguments, xstormy16_push_return_address)
1756 (xstormy16_pop_frame, xstormy16_store_struct_return)
1757 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1758 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1759 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1760 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1761 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1762 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1763 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1764 (xstormy16_extract_return_value, xstormy16_store_return_value):
1765 Regcachify. Drop useless struct convention handling.
1766 (xstormy16_register_type, xstormy16_return_value)
1767 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1768 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1769 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1770 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1771 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1772 (xstormy16_unwind_dummy_id) : New functions.
1773 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1774 of xstormy16_scan_prologue.
1775 (xstormy16_frame_unwind): New frame_unwind structure.
1776 (xstormy16_frame_base): New frame_base structure.
1777 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1778 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1779
1285b746
MK
17802004-09-22 Mark Kettenis <kettenis@gnu.org>
1781
1782 * language.c (language_gdbarch_post_init): Fix off-by one error.
1783
1c379e20
DJ
17842004-09-21 Daniel Jacobowitz <dan@debian.org>
1785
1786 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1787 (struct dwarf2_offset_and_type): New.
1788 (set_die_type, reset_die_and_siblings_types, get_die_type)
1789 (offset_and_type_hash, offset_and_type_eq): New functions.
1790 (read_structure_type, read_enumeration_type, read_array_type)
1791 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1792 (read_tag_reference_type, read_tag_const_type)
1793 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1794 (read_typedef, read_base_type, read_subrange_type): Use
1795 set_die_type.
1796
ae038cb0
DJ
17972004-09-20 Daniel Jacobowitz <dan@debian.org>
1798
1799 * Makefile.in (dwarf2read.o): Update dependencies.
1800 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1801 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1802 and read_in_chain.
1803 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1804 mark, and has_form_ref_addr.
1805 (struct dwarf2_per_cu_data): New.
1806 (dwarf2_max_cache_age): New.
1807 (dwarf2_build_psymtabs_hard): Free cached compilation units
1808 after loading. Create and manage the list of compilation units.
1809 Remove unnecessary NULL initialization. Fix indentation.
1810 (psymtab_to_symtab_1): Initialize all of CU.
1811 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1812 (find_partial_die): Use dwarf2_find_containing_comp_unit
1813 and load_comp_unit.
1814 (free_stack_comp_unit): Update comments. Clear the per-cu
1815 pointer. Handle aging.
1816 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1817 (age_cached_comp_units, free_one_cached_comp_unit)
1818 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1819 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1820 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1821 (show_dwarf2_cmd): New.
1822 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1823 and "maint show dwarf2 max-cache-age".
1824 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1825 externs.
1826 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1827 global.
1828
987504bb
JJ
18292004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1830
1831 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1832 and dwarf2_cu struct pointer as arguments. Change function to use
1833 obstack if provided and use dwarf2_cu to determine language-specific
1834 separator.
1835 (partial_die_parent_scope): Change comment to include java. Use
1836 new version of typename_concat instead of obconcat.
1837 (partial_die_full_name): Use typename_concat.
1838 (read_namespace): Ditto.
1839 (read_enumeration_type): Use typename_concat instead of obconcat.
1840 (new_symbol): Ditto.
1841 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1842 (guess_structure_name): Ditto.
1843 (read_subroutine_type): Ditto.
1844 (read_structure_type): Ditto.
1845 (is_vtable_name): Add Java support.
1846 (determine_class_name): Switch to new typename_concat call.
1847 (determine_prefix): Switch to new typename_concat call.
1848 * jv-exp.y (FuncStart): New pattern.
1849 (MethodInvocation): Add support for simple function calls. Change
1850 warning message for other forms of inferior call currently not
1851 supported.
1852 * valarith.c (value_subscript): Treat an array with upper-bound
1853 of -1 as unknown size.
1854
d9c8471e
DJ
18552004-09-20 Daniel Jacobowitz <dan@debian.org>
1856
1857 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1858 (lookup_partial_symtab): Use symtab_to_fullname.
1859
d73f140a
JB
18602004-09-19 Jim Blandy <jimb@redhat.com>
1861
1862 * minsyms.c (lookup_minimal_symbol): Doc fix.
1863
adbef1f0
AC
18642004-09-20 Andrew Cagney <cagney@gnu.org>
1865
1866 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1867 CHILD_RESUME.
1868 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1869 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1870 KILL_INFERIOR.
1871 * infptrace.c: Update.
1872
d092d1a2
DJ
18732004-09-19 Daniel Jacobowitz <dan@debian.org>
1874
1875 * symtab.c (output_source_filename): Mark first argument as const.
1876 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1877 for "info sources" output.
1878
86d9e1d7
MK
18792004-09-20 Mark Kettenis <kettenis@gnu.org>
1880
1881 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1882 <machine/vmparam.h>.
1883 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1884 (register_u_addr): Remove prototype.
1885
9a6c8ef4
MK
18862004-09-19 Mark Kettenis <kettenis@gnu.org>
1887
9692934b
MK
1888 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1889 (i386bsd_fetch_inferior_registers): Rename from
1890 fetch_inferior_registers. Make static.
1891 (i386bsd_store_inferior_registers): Rename from
1892 store_inferior_registers. Make static.
1893 (i386bsd_target): New function.
1894 * i386bsd-nat.h: New file.
1895 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1896 "i386bsd-nat.h".
1897 (i386fbsd_resume): Rename from child_resume. Make static.
1898 (_initialize_i386fbsd_nat): Construct and add target vector.
1899 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1900 (_initialize_i386nbsd_nat): Construct and add target vector.
1901 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1902 Remove defines.
1903 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1904 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1905 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1906 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1907 (LOADLIBES): New variable.
1908 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1909 inf-ptrace.o. Remove inftarg.o.
1910 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1911 inf-ptrace.o. Remove inftarg.o.
1912 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1913 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1914 (LOADLIBES): New variable.
1915 * Makefile.in (i386bsd_nat_h): New variable.
1916 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1917 dependencies.
1918
3510d1f2
MK
1919 * sparc64nbsd-tdep.c: Include "objfiles.h".
1920 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1921 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1922 svr4_lp64_fetch_link_map_offsets.
1923 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1924 "nbsd-tdep.h".
1925 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1926 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1927 svr4_lp64_fetch_link_map_offsets.
1928 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1929 dependencies.
1930
578c1c03
MK
1931 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1932 * fbsd-nat.h: New file.
1933 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1934 (fbsd_nat_h): New variable.
1935 (fbsd-nat.o): New dependency.
1936
7a7b73b7
MK
1937 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1938 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1939
9a6c8ef4
MK
1940 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1941 comment.
1942
72d5681a
PH
19432004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1944
1945 * ada-exp.y (type_int): New function to add layer of abstraction
1946 around references to expression types.
1947 (type_long): Ditto.
1948 (type_long_long): Ditto.
1949 (type_float): Ditto.
1950 (type_double): Ditto.
1951 (type_long_double): Ditto.
1952 (type_char): Ditto.
1953 (type_system_address): Ditto.
1954 (simple_exp): Use type_* functions in place of builtin_*
1955 variables.
1956 (exp): Ditto.
1957 (write_var_from_name): Ditto.
1958 (write_object_renaming): Ditto.
1959 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1960 declaration.
1961 (build_ada_types): Remove, replacing with...
1962 (ada_language_arch_info): New function to initialize primitive
1963 type vector in language_arch_info.
1964 (ada_array_length): Remove use of builtin_type_ada_int.
1965 (value_pos_atr): Ditto.
1966 (ada_evaluate_subexp): Ditto.
1967 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1968 builtin_type_ada_long_long, builtin_type_ada_char,
1969 builtin_type_ada_float, builtin_type_ada_double,
1970 builtin_type_ada_long_double, builtin_type_ada_natural,
1971 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1972 (ada_builtin_types): Remove.
1973 (ada_language_defn): Remove entries for la_builtin_type_vector and
1974 string_char_type and use ada_language_arch_info.
1975 (_initialize_ada_language): Do type-vector initialization along
1976 the lines of c-lang.c.
1977 (ada_create_fundamental_type): Break up line.
1978 (ada_dump_symtab): Remove unused function.
1979 (enum ada_primitive_types): Define.
1980 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1981 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1982 builtin_type_ada_float, builtin_type_ada_double,
1983 builtin_type_ada_long_double, builtin_type_ada_natural,
1984 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1985 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1986 (processInt): Ditto.
1987 (processReal): Ditto.
1988 (name_lookup): Ditto.
1989 * ada-typeprint.c (print_range): Use builtin_type_int, not
1990 builtin_type_ada_int.
1991
4f0be353
MK
19922004-09-18 Mark Kettenis <kettenis@gnu.org>
1993
30b0e2d8
MK
1994 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1995
4f0be353
MK
1996 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1997 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1998 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1999 * configure.in: Improve checks for curses library by checking for
2000 mvwaddstr instead of initscr. Drop HP curses in favour of
2001 standard curses on HP-UX.
2002 * configure: Regenerated.
2003
72d5681a 20042004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2005
2006 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2007 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2008 Minor formatting changes.
2009 (empty_array): Slight rewrite for formatting.
2010 (emit_char,parse,ada_language_defn,build_ada_types,
2011 ada_is_exception_sym, _initialize_ada_language): Move
2012 definitions around.
2013 (ada_dump_symtab): Remove unused definition.
2014 (ada_maybe_exception_partial_symbol): Remove unused definition.
2015
1c8c7407
AC
20162004-09-16 Andrew Cagney <cagney@gnu.org>
2017
7681f339
AC
2018 * inf-child.c: Include "gdb_string.h".
2019 (inf_child_core_file_to_sym_file): Delete.
2020 (inf_child_target): Set to_fetch_registers and to_store_registers.
2021 * inf-ptrace.c: Include "gdb_string.h".
2022 * Makefile.in: Update all dependencies.
2023
1c8c7407
AC
2024 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2025 problem.
2026
65596487
JB
20272004-09-14 Joel Brobecker <brobecker@gnat.com>
2028
2029 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2030 call to heuristic_proc_desc. Remove code that became redundant
2031 as a consequence.
2032 (read_next_frame_reg): Remove special case for SP_REGNUM.
2033 (set_reg_offset): Fix small typo.
2034 (reset_saved_regs): New procedure.
2035 (mips32_heuristic_proc_desc): No longer compute a fake
2036 procedure descriptor. Compute the full frame cache instead.
2037 Some minor comment reformatting.
2038
95575b2e
AC
20392004-09-14 Andrew Cagney <cagney@gnu.org>
2040
f200c492
AC
2041 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2042 maintainer.
2043
95575b2e
AC
2044 * thread-db.c (thread_db_new_objfile): Assume that there is a
2045 child process.
2046
69657671
JB
20472004-09-13 Jim Blandy <jimb@redhat.com>
2048
2049 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2050 so that its storage isn't referenced after its lifetime ends.
2051
6c4182dd
JB
2052 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2053 and never assigned to. Delete it, and the 'if (use_buffer)'
2054 clauses. Delete 'raw_buffer', since it is now unused.
2055
ee31a58d
AC
20562004-09-13 Andrew Cagney <cagney@gnu.org>
2057
2c0fc042
AC
2058 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2059 * configure: Re-generate.
2060 * nlm/Makefile.in (TAGS): Update.
2061 * Makefile.in (TAGS): Update.
2062 * config/vax/nbsd.mt (TM_FILE): Update.
2063 * config/sparc/vxworks.mt (TM_FILE): Update.
2064 * config/sparc/sol2.mt (TM_FILE): Update.
2065 * config/sparc/sol2-64.mt (TM_FILE): Update.
2066 * config/sparc/obsd64.mt (TM_FILE): Update.
2067 * config/sparc/obsd.mt (TM_FILE): Update.
2068 * config/sparc/nbsd64.mt (TM_FILE): Update.
2069 * config/sparc/nbsd.mt (TM_FILE): Update.
2070 * config/sparc/linux64.mt (TM_FILE): Update.
2071 * config/sparc/linux.mt (TM_FILE): Update.
2072 * config/sparc/fbsd.mt (TM_FILE): Update.
2073 * config/sh/wince.mt (TM_FILE): Update.
2074 * config/sh/nbsd.mt (TM_FILE): Update.
2075 * config/sh/linux.mt (TM_FILE): Update.
2076 * config/sh/embed.mt (TM_FILE): Update.
2077 * config/s390/s390.mt (TM_FILE): Update.
2078 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2079 * config/rs6000/rs6000.mt (TM_FILE): Update.
2080 * config/rs6000/aix4.mt (TM_FILE): Update.
2081 * config/powerpc/vxworks.mt (TM_FILE): Update.
2082 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2083 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2084 * config/powerpc/obsd.mt (TM_FILE): Update.
2085 * config/powerpc/nbsd.mt (TM_FILE): Update.
2086 * config/powerpc/linux.mt (TM_FILE): Update.
2087 * config/powerpc/aix.mt (TM_FILE): Update.
2088 * config/pa/obsd.mt (TM_FILE): Update.
2089 * config/pa/linux.mt (TM_FILE): Update.
2090 * config/pa/hppahpux.mt (TM_FILE): Update.
2091 * config/pa/hppa64.mt (TM_FILE): Update.
2092 * config/pa/hppa.mt (TM_FILE): Update.
2093 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2094 * config/mips/wince.mt (TM_FILE): Update.
2095 * config/mips/vxmips.mt (TM_FILE): Update.
2096 * config/mips/nbsd.mt (TM_FILE): Update.
2097 * config/mips/linux.mt (TM_FILE): Update.
2098 * config/mips/irix6.mt (TM_FILE): Update.
2099 * config/mips/irix5.mt (TM_FILE): Update.
2100 * config/mips/embed.mt (TM_FILE): Update.
2101 * config/m68k/vxworks68.mt (TM_FILE): Update.
2102 * config/m68k/st2000.mt (TM_FILE): Update.
2103 * config/m68k/os68k.mt (TM_FILE): Update.
2104 * config/m68k/obsd.mt (TM_FILE): Update.
2105 * config/m68k/nbsd.mt (TM_FILE): Update.
2106 * config/m68k/monitor.mt (TM_FILE): Update.
2107 * config/m68k/linux.mt (TM_FILE): Update.
2108 * config/m68k/cisco.mt (TM_FILE): Update.
2109 * config/ia64/linux.mt (TM_FILE): Update.
2110 * config/ia64/aix.mt (TM_FILE): Update.
2111 * config/ia64/ia64.mt (TM_FILE): Update.
2112 * config/i386/vxworks.mt (TM_FILE): Update.
2113 * config/i386/obsd64.mt (TM_FILE): Update.
2114 * config/i386/obsd.mt (TM_FILE): Update.
2115 * config/i386/nto.mt (TM_FILE): Update.
2116 * config/i386/nbsd64.mt (TM_FILE): Update.
2117 * config/i386/nbsd.mt (TM_FILE): Update.
2118 * config/i386/linux64.mt (TM_FILE): Update.
2119 * config/i386/linux.mt (TM_FILE): Update.
2120 * config/i386/i386sol2.mt (TM_FILE): Update.
2121 * config/i386/i386lynx.mt (TM_FILE): Update.
2122 * config/i386/fbsd64.mt (TM_FILE): Update.
2123 * config/i386/fbsd.mt (TM_FILE): Update.
2124 * config/i386/cygwin.mt (TM_FILE): Update.
2125 * config/h8300/h8300.mt (TM_FILE): Update.
2126 * config/frv/frv.mt (TM_FILE): Update.
2127 * config/cris/cris.mt (TM_FILE): Update.
2128 * config/arm/wince.mt (TM_FILE): Update.
2129 * config/arm/nbsd.mt (TM_FILE): Update.
2130 * config/arm/linux.mt (TM_FILE): Update.
2131 * config/arm/embed.mt (TM_FILE): Update.
2132 * config/alpha/nbsd.mt (TM_FILE): Update.
2133 * config/alpha/fbsd.mt (TM_FILE): Update.
2134 * config/alpha/alpha.mt (TM_FILE): Update.
2135 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2136 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2137
362646f5
AC
2138 Eliminate event_loop_p, always has the value 1.
2139 * defs.h (event_loop_p): Delete macro.
2140 * breakpoint.c (until_break_command): Simplify.
2141 * utils.c (prompt_for_continue): Simplify.
2142 * tracepoint.c (read_actions): Simplify.
2143 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2144 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2145 (set_prompt, init_main): Simplify.
2146 (init_signals, disconnect): Delete, unused.
2147 * remote.c (remote_async_resume)
2148 (extended_remote_async_create_inferior): Simplify.
2149 * mi/mi-interp.c (mi_input): Delete, unused.
2150 (mi_interpreter_resume, mi_command_loop): Simplify.
2151 * interps.c (current_interp_command_loop): Simplify.
2152 * infrun.c (proceed): Simplify.
2153 * infcmd.c (run_command, continue_command, step_1, jump_command)
2154 (until_command, advance_command, finish_command)
2155 (interrupt_target_command): Simplify.
2156 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2157
ee31a58d
AC
2158 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2159 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2160 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2161 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2162 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2163 * mips-tdep.c (mips_dump_tdep): Do not print same.
2164
b7ffc4a8
AC
21652004-09-12 Andrew Cagney <cagney@gnu.org>
2166
2bfb72ee
AC
2167 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2168 const.
2169 * Makefile.in (valprint.o): Delete explict rule.
2170
4f17c3c1
AC
2171 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2172 reported by Dave Anderson.
2173
f810308b
AC
2174 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2175
b7ffc4a8
AC
2176 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2177
28b41c52
AC
21782004-09-12 Salvador E. Tropea <set@users.sf.net>
2179 Andrew Cagney <cagney@gnu.org>
2180
2181 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2182 (mi_cmd_data_list_register_values)
2183 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2184 the register number computation.
2185
5bf970f9
AC
21862004-09-12 Andrew Cagney <cagney@gnu.org>
2187
2188 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2189 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2190 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2191 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2192 target.
2193 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2194 inf-ptrace.o and inf-child.o.
2195 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2196 * Makefile.in: Update dependencies.
2197
0759e0bf
AC
21982004-09-11 Andrew Cagney <cagney@gnu.org>
2199
2200 * language.c (hex_string, hex_string_custom): Move from here ...
2201 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2202 (CELLSIZE): Increase to 50.
2203 * language.h (hex_string, hex_string_custom): Move from here ...
2204 * defs.h: ... to here.
2205 * Makefile.in: Update all dependencies.
2206
bb599908
PH
22072004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2208
2209 * language.c (local_hex_format_custom): Remove.
2210 (local_hex_string): Rename to hex_string, use C format, and move to
2211 utils.c
2212 (local_hex_string_custom): Rename to hex_string_custom and change
2213 interface. Now uses C format. Move to utils.c
2214 (local_octal_format_custom): Remove.
2215 (local_decimal_format_custom): Remove.
2216 (unknown_language_defn): Remove language-specific number
2217 formatting entries.
2218 (auto_language_defn): Ditto.
2219 (local_language_defn): Ditto.
2220 * language.h (struct language_format_info): Delete declaration.
2221 (struct language_defn): Remove language_format_info fields
2222 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2223 (local_binary_format): Remove macro.
2224 (local_binary_format_prefix): Remove macro.
2225 (local_binary_format_specifier): Remove macro.
2226 (local_binary_format_suffix): Remove macro.
2227 (local_octal_format): Remove macro.
2228 (local_octal_format_prefix): Remove macro.
2229 (local_octal_format_specifier): Remove macro.
2230 (local_octal_format_suffix): Remove macro.
2231 (local_decimal_format): Remove macro.
2232 (local_decimal_format_prefix): Remove macro.
2233 (local_decimal_format_specifier): Remove macro.
2234 (local_decimal_format_suffix): Remove macro.
2235 (local_hex_format): Remove macro.
2236 (local_hex_format_prefix): Remove macro.
2237 (local_hex_format_specifier): Remove macro.
2238 (local_hex_format_suffix): Remove macro.
2239 (local_decimal_format_custom): Remove.
2240 (local_octal_format_custom): Remove.
2241 (local_hex_format_custom): Remove.
2242 (local_hex_string): Rename to hex_string and move to defs.h.
2243 (local_hex_string_custom): Rename to hex_string_custom, change
2244 interface, and move to defs.h.
2245 * utils.c: (int_string): New function.
2246 (hex_string): New function (from language.c).
2247 (hex_string_custom): New function (from language.c).
2248 (octal2str): New function.
2249 (decimal2str): Add width parameter.
2250 (paddr_u): Use new decimal2str interface.
2251 (paddr_d): Ditto.
2252 * defs.h (hex_string): Declare.
2253 (hex_string_custom): Declare.
2254 (int_string): Declare.
2255 * printcmd.c (print_scalar_formatted): Remove localized binary
2256 formatting.
2257 * valprint.c (print_longest): Use int_string.
2258 (print_floating): Use C hex format.
2259 (print_hex_chars): Ditto.
2260 (print_binary_chars): Remove language-specific formatting.
2261 (print_octal_chars): Use C octal format.
2262 (print_decimal_chars): Delocalize format.
2263 (print_decimal): Remove.
2264 * ada-lang.c (ada_language_defn): Remove language-specific number
2265 formatting entries.
2266 * p-lang.c (pascal_language_defn): Ditto.
2267 * c-lang.c (c_language_defn): Ditto.
2268 (cplus_language_defn): Ditto.
2269 (asm_language_defn): Ditto.
2270 (minimal_language_defn): Ditto.
2271 * f-lang.c (f_language_defn): Ditto.
2272 * jv-lang.c (java_language_defn): Ditto.
2273 * m2-lang.c (m2_language_defn): Ditto.
2274 * scm-lang.c (scm_language_defn): Ditto.
2275 * objc-lang.c (objc_language_defn): Ditto.
2276 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2277 new interface.
2278 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2279 * ui-out.c (ui_out_field_core_addr): Ditto.
2280 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2281 * exec.c (print_section_info): Ditto.
2282 * i387-tdep.c (print_i387_status_word): Ditto.
2283 (print_i387_control_word): Ditto.
2284 (i387_print_float_info): Ditto.
2285 * maint.c (maint_print_section_info): Ditto.
2286 * solib.c (info_sharedlibrary_command): Ditto.
2287 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2288 * symtab.c (print_msymbol_info): Ditto.
2289 * tracepoint.c (tracepoints_info): Ditto.
2290 * solib-frv.c (lm_base): Ditto.
2291 (frv_current_sos): Ditto.
2292 (enable_break2): Ditto.
2293 (enable_break): Ditto.
2294 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2295 (process_one_symbol): Ditto.
2296 * infcmd.c (program_info): Ditto.
2297 * mdebugread.c (parse_partial_symbols): Ditto.
2298 * symfile.c (add_symbol_file_command): Ditto.
2299 * cli/cli-cmds.c (edit_command): Ditto.
2300 (list_command): Ditto.
2301 * infcall.c (call_function_by_hand): Ditto.
2302 * remote-vx.c (vx_run_files_info): Ditto.
2303 (vx_wait): Ditto.
2304 (vx_attach): Ditto.
2305 (vx_detach): Ditto.
2306 (vx_kill): Ditto.
2307 * aix-thread.c (pdc_symbol_addrs): Ditto.
2308 (pdc_read_regs): Ditto.
2309 (pdc_write_regs): Ditto.
2310 (pdc_read_data): Ditto.
2311 (pdc_write_data): Ditto.
2312 * d10v-tdep.c (display_trace): Ditto.
2313 * rs6000-nat.c (find_toc_address): Ditto.
2314 * aix-thread.c: Don't include language.h.
2315 * buildsym.c: Ditto.
2316 * dbxread.c: Ditto.
2317 * mdebugread.c: Ditto.
2318 * rs6000-nat.c: Ditto.
2319 * buildsym.c (make_blockvector): Use renamed hex_string.
2320
33f2d567
JM
23212004-09-10 Jason Molenda (jmolenda@apple.com)
2322
2323 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2324 chars after 'if' or 'while' commands in user-defined commands.
2325
7b90c3f9
JB
23262004-09-08 Jim Blandy <jimb@redhat.com>
2327
2328 Fix bug reported and analyzed by Olivier Crete:
2329 * symfile.c (copy_section_addr_info): New function.
2330 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2331 original set of address arguments, instead of handwritten code
2332 that uses one length to allocate and a different length to
2333 initialize. Use make_cleanup_free_section_addr_info.
2334 * symfile.h (copy_section_addr_info): New declaration.
2335 * utils.c: #include "symfile.h".
2336 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2337 New functions.
2338 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2339 * Makefile.in (utils.o): Update dependencies.
2340
b26a6851
AC
23412004-09-08 Andrew Cagney <cagney@gnu.org>
2342
2343 * thread-db.c (keep_thread_db): Delete.
2344 (thread_db_new_objfile, thread_db_create_inferior)
2345 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2346
be24b061
MK
23472004-09-08 Mark Kettenis <kettenis@gnu.org>
2348
f6792ef4
MK
2349 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2350 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2351 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2352 (i386_frameless_signal_p): Remove prototype.
2353 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2354 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2355 I386_SSE_NUM_REGS.
2356 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2357 instead of FP0_REGNUM.
2358 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2359 of FP0_REGNUM and FPC_REGNUM.
2360
eeefdaa7
MK
2361 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2362 (sunos_solib_create_inferior_hook): Don't call
2363 sunos_relocate_main_executable.
2364
be24b061
MK
2365 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2366 solib_svr4_fetch_link_map_offsets to
2367 svr4_ilp32_fetch_link_map_offsets.
2368 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2369 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2370 svr4_ilp32_fetch_link_map_offsets.
2371 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2372
7c679d16
JB
23732004-09-07 Jim Blandy <jimb@redhat.com>
2374
2375 * frame.h (frame_register): Doc fix.
2376
1f04aa62
AC
23772004-09-07 Andrew Cagney <cagney@gnu.org>
2378
2379 * vx-share/wait.h: Delete #ifdef USG.
2380 * utils.c (request_quit): Ditto.
2381 * tui/tui.c (tui_reset): Ditto.
2382 * remote.c: Ditto.
2383 * remote-sds.c: Ditto.
2384 * remote-rdi.c: Ditto.
2385 * mdebugread.c: Ditto.
2386 * m68klinux-nat.c: Ditto.
2387 * infttrace.c: Ditto.
2388 * infptrace.c: Ditto.
2389 * i386v-nat.c: Ditto.
2390 * exec.c: Ditto.
2391 * dbxread.c: Ditto.
2392 * core-aout.c: Ditto.
2393
90edbfbc
JB
23942004-09-05 Joel Brobecker <brobecker@gnat.com>
2395
2396 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2397 heuristic_proc_desc.
2398 (mips_insn32_frame_cache): Likewise.
2399
01f4bf2b
JB
24002004-09-04 Joel Brobecker <brobecker@gnat.com>
2401
2402 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2403 left behind by error.
2404
8511a048
JB
24052004-09-04 Joel Brobecker <brobecker@gnat.com>
2406
2407 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2408 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2409
649dfe9f
JB
24102004-09-04 Joel Brobecker <brobecker@gnat.com>
2411
2412 * config/rs6000/xm-aix4.h: Remove this file.
2413 * config/rs6000/aix4.mh (XM_FILE): Delete.
2414
6e50f889
JB
24152004-09-04 Joel Brobecker <brobecker@gnat.com>
2416
2417 * config/rs6000/xm-rs6000.h: Remove this file.
2418 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2419
b8c4aece
AC
24202004-09-03 Andrew Cagney <cagney@gnu.org>
2421
fb603883
AC
2422 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2423 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2424 only use.
2425
c9343fd1
AC
2426 * mips-tdep.c (temp_saved_regs): Delete.
2427 (set_reg_offset): Replace saved_regs parameter with this_cache.
2428 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2429 (mips32_heuristic_proc_desc): Add this_cache parameter.
2430 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2431 (after_prologue): Pass a NULL this_cache.
2432
9733cfe1
AC
2433 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2434 non-kernel trap prologues.
2435
0d5febcc
AC
2436 * mips-tdep.c (find_proc_desc): Delete function.
2437 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2438 simplify.
2439 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2440 mips_insn32_frame_cache.
2441
9733cfe1 2442 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2443 Simplify as NEXT_FRAME is NULL.
2444 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2445
177f84a3
AC
2446 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2447 local variable.
2448 (mips_skip_prologue): Update.
2449
465f7520
AC
2450 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2451 "cur_frame" parameter.
177f84a3
AC
2452 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2453 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2454
e38b8658
AC
2455 * config/vax/nm-obsd.h: Delete file.
2456 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2457 * config/vax/nm-nbsd.h: Delete file.
2458 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2459 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2460 * config/sh/nm-nbsd.h: Delete file.
2461 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2462 * config/rs6000/nm-rs6000ly.h: Delete file.
2463 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2464 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2465 * config/powerpc/nm-obsd.h: Delete file.
2466 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2467 * config/powerpc/nm-nbsd.h: Delete file.
2468 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2469 * config/pa/nm-obsd.h: Delete file.
2470 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2471 * config/mips/nm-nbsd.h: Delete file.
2472 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2473 * config/m88k/nm-obsd.h: Delete file.
2474 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2475 * config/m68k/nm-nbsd.h: Delete file.
2476 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2477 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2478 * config/i386/nm-nbsd.h: Delete file.
2479 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2480 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2481 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2482 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2483 * config/i386/nm-i386lynx.h: Delete file.
2484 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2485 * config/arm/nm-nbsd.h: Delete file.
2486 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2487 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2488
be1ed680
AC
2489 * config/i386/tm-fbsd.h: Delete file.
2490 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2491 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2492
4b392b26
AC
2493 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2494 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2495 * config/rs6000/aix4.mt (TM_FILE): Set to
2496 config/rs6000/tm-rs6000.h.
2497 * config/powerpc/tm-ppc-aix.h: Delete file.
2498 * config/powerpc/aix.mt (TM_FILE): Set to
2499 config/rs6000/tm-rs6000.h.
2500 * config/m68k/tm-linux.h: Delete file.
2501 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2502 * config/i386/tm-linux64.h: Delete file.
2503 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2504 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2505
f3219c75
AC
2506 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2507 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2508 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2509 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2510 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2511 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2512 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2513 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2514 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2515
b8c4aece
AC
2516 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2517 gdb_host_cpu.
2518
8ac2e020
JB
25192004-09-02 Joel Brobecker <brobecker@gnat.com>
2520
2521 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2522 Minor reformatting. Some code factoring.
2523
c185a355
AC
25242004-09-02 Andrew Cagney <cagney@gnu.org>
2525
63f22f0d
AC
2526 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2527 * config/vax/tm-nbsd.h: Delete file.
2528 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2529 * config/sparc/tm-vxworks.h: Delete file.
2530 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2531 * config/sparc/tm-nbsd.h: Delete file.
2532 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2533 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2534 * config/sparc/tm-linux.h: Delete file.
2535 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2536 * config/s390/tm-linux.h: Delete file.
2537 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2538 * config/pa/tm-bsd.h: Delete file.
2539 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2540 * config/m68k/tm-obsd.h: Delete file.
2541 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2542 * config/m68k/tm-nbsd.h: Delete file.
2543 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2544 * config/i386/tm-vxworks.h: Delete file.
2545 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2546 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2547 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2548 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2549 * config/i386/tm-nbsd.h: Delete file.
2550 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2551 * config/i386/tm-i386lynx.h: Delete file.
2552 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2553 * config/cris/tm-cris.h: Delete file.
2554
0f475e27
AC
2555 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2556 * configure: Re-generate.
2557 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2558 * config/arm/tm-nbsd.h: Delete file.
2559
458ed000
AC
2560 * config/powerpc/tm-ppcle-sim.h: Delete.
2561 * config/powerpc/tm-ppcle-eabi.h: Delete.
2562 * config/powerpc/tm-nbsd.h: Delete.
2563 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2564 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2565 tm-ppcle-eabi.h.
2566
f14375f3
AC
2567 * config/i386/nto.mh (NAT_FILE): Delete.
2568 * config/i386/nm-nto.h: Delete.
2569
c34d127c
AC
2570 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2571 * config/m68k/tm-os68k.h: Ditto.
2572 * config/m68k/tm-monitor.h: Ditto.
2573 * config/m68k/tm-cisco.h: Ditto.
2574 * config/m68k/st2000.mt (TM_FILE): Delete.
2575 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2576 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2577 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2578 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2579
f7f0fe03
AC
2580 * config/m68k/tm-st2000.h: Delete.
2581 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2582 * config/sparc/fbsd.mt (TM_FILE): Delete.
2583 * config/sparc/tm-fbsd.h: Delete.
2584
a2558533
AC
2585 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2586 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2587 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2588
b78960be
AC
2589 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2590 GDB_TM_FILE and GDB_XM_FILE.
2591 * gdbarch.c: Re-generate.
2592 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2593 quotes in macro definition.
2594 * configure.in: Re-generate.
2595
4d60522e
AC
2596 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2597 validating architecture methods.
2598 * gdbarch.c: Re-generate.
2599
5010d38b
AC
2600 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2601 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2602 GDB_MULTI_ARCH_PARTIAL.
2603 * gdbarch.h: Re-generate.
2604
c185a355
AC
2605 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2606 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2607 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2608 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2609 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2610 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2611 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2612 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2613 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2614 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2615 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2616 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2617
14aaa6ab
AC
26182004-09-01 Andrew Cagney <cagney@gnu.org>
2619
2620 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2621 and main_func_highpc.
2622 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2623 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2624 * nlmread.c (nlm_symfile_read): Update.
2625
a343eb3c
JB
26262004-09-01 Joel Brobecker <brobecker@gnat.com>
2627
2628 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2629 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2630 (find_proc_desc): Remove dead code.
2631
4fbbbd07
JB
26322004-09-01 Joel Brobecker <brobecker@gnat.com>
2633
2634 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2635
84acb35a
JJ
26362004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2637
2638 * observer.sh: Add struct so_list declaration.
2639 * Makefile.in: Add dependencies on observer.h for solib.c and
2640 breakpoint.c.
2641 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2642 function.
2643 (_initialize_breakpoint): Register
2644 disable_breakpoints_in_unloaded_shlib as an observer of the
2645 "solib unloaded" observation event.
2646 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2647 call decode_line_1 so unfound breakpoint errors are silent.
2648 * solib.c (update_solib_list): When a solib is discovered to have
2649 been unloaded by the program, notify all observers of the
2650 "solib unloaded" observation event.
2651
c8cd9f6c
AC
26522004-09-01 Andrew Cagney <cagney@gnu.org>
2653
2654 * frame.c: Include "objfiles.h".
2655 (inside_main_func): New function.
2656 (get_prev_frame): Use new inside_main_func.
2657 * Makefile.in (frame.o): Update dependencies.
2658 * defs.h (inside_main_func): Delete declaration.
2659 * blockframe.c (inside_main_func): Delete function.
2660
1168df01
JB
26612004-08-31 Jim Blandy <jimb@redhat.com>
2662
2663 * dwarf2read.c (is_vtable_name): New function, based on logic from
2664 read_structure_type, but passing the correct length to strncmp,
2665 and using 'sizeof' instead of 'strlen'.
2666 (read_structure_type): Call it.
2667
f14f9744
JB
26682004-08-31 Joel Brobecker <brobecker@gnat.com>
2669
2670 * config/powerpc/aix.mh: Add comment.
2671
386d4518
PG
26722004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2673
2674 * MAINTAINERS: Add self to Write-After-Approval.
2675
7d97d5e2
MI
26762004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2677
2678 * MAINTAINERS: Add self to Write-After-Approval.
2679
68f53502
AC
26802004-08-30 Andrew Cagney <cagney@gnu.org>
2681
2682 Fix PR breakpoints/1757.
2683 * infrun.c (struct execution_control_state): Replace
2684 remove_breakpoints_on_following_step with
2685 step_after_step_resume_breakpoint.
2686 (init_execution_control_state): Update.
2687 (handle_inferior_event): For signals, when stepping off a
2688 breakpoint, set step_after_step_resume_breakpoint. When
2689 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2690 (keep_going): Delete code handling
2691 remove_breakpoints_on_following_step.
2692
7ca2d3a3
DL
26932004-08-29 David Lecomber <david@streamline-computing.com>
2694
2695 Fix PR gdb/648
2696 * language.h (enum array_ordering): New enum.
2697 * language.h (struct language_defn): New la_array_ordering
2698 attribute.
2699 * language.c (unknown_language_defn, auto_language_defn)
2700 (local_language_defn): Ditto.
2701 * ada-lang.c (ada_language_defn): Ditto.
2702 * c-lang.c (c_language_defn, cplus_language_defn)
2703 (asm_language_defn, minimal_language_defn): Ditto.
2704 * f-lang.c (f_language_defn): Ditto.
2705 * jv-lang.c (java_language_defn): Ditto.
2706 * m2-lang.c (f_language_defn): Ditto.
2707 * objc-lang.c (objc_language_defn): Ditto.
2708 * p-lang.c (pascal_language_defn): Ditto.
2709 * scm-lang.c (scm_language_defn): Ditto.
2710 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2711 oriented large to small in type structure.
2712 * dwarf2read.c (read_array_order): New function.
2713 (read_array_type): Use read_array_order to check row/column
2714 major ordering.
2715
e354df01
NW
27162004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2717
2718 * target.c (target_resize_to_sections): Check
2719 current_target.to_sections for an old value when updating.
2720
9185ddce
JB
27212004-08-27 Joel Brobecker <brobecker@gnat.com>
2722
2723 * procfs.c (dbx_link_bpt_addr): New static global variable.
2724 (dbx_link_shadow_contents): New static global variable.
2725 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2726 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2727 if we just hit it.
2728 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2729 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2730 from run to run.
2731 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2732 after the inferior has been forked.
2733 (remove_dbx_link_breakpoint): New function.
2734 (dbx_link_addr): New function.
2735 (insert_dbx_link_bpt_in_file): New function.
2736 (insert_dbx_link_bpt_in_region): New function.
2737 (insert_dbx_link_breakpoint): New function.
2738 (proc_trace_syscalls_1): New function, extracted from
2739 proc_trace_syscalls.
2740 (proc_trace_syscalls): Replace extract code by call to
2741 proc_trace_syscalls_1.
2742 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2743 is no longer valid.
2744
e6742ace
JB
27452004-08-25 Jim Blandy <jimb@redhat.com>
2746
2747 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2748
8fb3e588
AC
27492004-08-25 Andrew Cagney <cagney@gnu.org>
2750
629a41ee
AC
2751 * infrun.c (struct execution_control_state): Delete field
2752 "stepping_through_sigtramp".
2753 (init_execution_control_state): Do not set same.
2754 (context_switch): Do not pass same to save_infrun_state and
2755 load_infrun_state.
2756 * gdbthread.h (struct thread_info): Delete field
2757 stepping_through_sigtramp.
2758 (save_infrun_state, load_infrun_state): Delete parameter
2759 stepping_through_sigtramp.
2760 * thread.c (load_infrun_state, save_infrun_state): Update.
2761
8fb3e588
AC
2762 * infrun.c: Re-indent. Move expression operators to the beginning
2763 of the line. Remove long disabled #if 0 code.
2764
49c54768
AC
27652004-08-24 Andrew Cagney <cagney@gnu.org>
2766
2767 * doublest.h (floatformat_ieee_quad): Rename
2768 floatformat_ia64_quad.
2769 * doublest.c (floatformat_ieee_quad): Rename
2770 floatformat_ia64_quad.
2771 (_initialize_doublest): Update.
2772
5ca2e327
JB
27732004-08-24 Jim Blandy <jimb@redhat.com>
2774
87808bd6
JB
2775 * dwarf2expr.h (struct dwarf_expr_context): New members
2776 'num_pieces' and 'pieces', for returning the result of an
2777 expression that uses DW_OP_piece.
2778 (struct dwarf_expr_piece): New struct type.
2779 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2780 pieces.
2781 (free_dwarf_expr_context): Free pieces, if any.
2782 (add_piece): New function.
2783 (execute_stack_op): Implement DW_OP_piece.
2784 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2785 expression is a list of pieces, print an error message.
2786 (dwarf2_loc_desc_needs_frame): If the expression yields
2787 pieces, and any piece is in a register, then we need a frame.
2788
5ca2e327
JB
2789 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2790 the stack until we've decided what sort of result the evaluation
2791 has produced. Use separate variables, with more specific names.
2792
2afeb6b8
RE
27932004-08-23 Richard Earnshaw <rearnsha@arm.com>
2794
2795 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2796 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2797 (arm_netbsd_init_abi_common): Register them.
2798
5885ab49
MK
27992004-08-22 Mark Kettenis <kettenis@gnu.org>
2800
fda820a6
MK
2801 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2802
1c5bf419
MK
2803 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2804 safe_frame_unwind_memory instead of target_read_memory.
2805
8cbba7c8
MK
2806 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2807 Reorder includes.
2808 (fetch_register, store_register): Remove prototypes.
2809 (child_resume): Reorganize code and comments such that it is
2810 grouped a bit more logically.
2811 (attach): Explicitly compare errno against 0.
2812 (detach): Likewise. Use perror_with_name instead of
2813 print_sys_errmsg.
2814 * Makefile.in (infptrace.o): Update dependencies.
2815
c5fa4245
MK
2816 * ia64-linux-nat.c: Update copyright year.
2817 (fetch_debug_register, store_debug_register)
2818 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2819 PTRACE_TYPE_ARG3.
2820 * config/ia64/nm-linux.h: Update copyright year.
2821 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2822
387c058c
MK
2823 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2824 from CORE_ADDR to struct frame_info *. Use
2825 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2826 (amd64_linux_sigtramp_p): Adjust for changed signature of
2827 and64_linux_sigtramp_start
2828
277215a6
MK
2829 * gdb_ptrace.h: GNU/Linux.
2830
25f6178e
MK
2831 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2832 Remove defines.
2833
652fc137
MK
2834 * infptrace.c: Include "gdb_assert.h".
2835 (PTRACE_XFER_TYPE): Remove define.
2836 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2837 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2838 Tweak comment.
2839 (fetch_inferior_registers, store_inferior_registers): Remove
2840 redundant culry braces. Tweak comment. s/regno/regnum.
2841 * Makefile.in (infptrace.o): Update dependencies.
2842
5885ab49
MK
2843 * configure.in: Change test for return type of ptrace to default
2844 to `long' instead of `int'.
2845 * configure: Regenerate.
2846
11003ae3
MK
28472004-08-21 Mark Kettenis <kettenis@gnu.org>
2848
6b95110c
MK
2849 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2850
bcb3dc3d
MK
2851 * configure.in: Check for ttrace function.
2852 * configure, config.in: Regenerate.
2853
11003ae3
MK
2854 * gdb_ptrace.h: New file.
2855 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2856 <sys/ptrace.h>.
2857 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2858 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2859 (attach): Don't define PT_ATTACH.
2860 (detach): Don't define PT_DETACH.
2861 * Makefile.in (gdb_ptrace_h): New variable.
2862 (infptrace.o): Update dependencies.
2863
f8707cac
MK
28642004-08-16 Mark Kettenis <kettenis@gnu.org>
2865
2866 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2867 instead of `int' if not already defined.
2868 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2869 PTRACE_TYPE_ARG3.
2870 * infptrace.c (call_ptrace): Revert change that replaced
2871 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2872
655c5466
MK
28732004-08-15 Mark Kettenis <kettenis@gnu.org>
2874
156e5ba7
MK
2875 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2876 Remove defines.
2877
de9a9e51
MK
2878 * linux-nat.c (kill_inferior): Add missing third and fourth
2879 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2880
88800403
MK
2881 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2882 PTRACE_TYPE_RET.
2883
849a1d7c
MK
2884 * proc-why.c (proc_prettyfprint_why): Fix format string.
2885
61ad16d1
MK
2886 * solib-osf.c (osf_current_sos): Remove unsused label.
2887
a6ed5501
MK
2888 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2889 curses headers.
2890 * configure, config.in: Regenerate.
2891 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2892 <ncurses/ncurses.h>.
2893
016ddeca
MK
2894 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2895 * config/nm-nbsd.h: Update copyright year.
2896 (PTRACE_ARG3_TYPE): Remove define.
2897
49ec097f
MK
2898 * sparc-nat.c (fetch_inferior_registers)
2899 (store_inferior_registers, sparc_xfer_wcookie):
2900 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2901
9f8e0089
MK
2902 * alphabsd-nat.c (fetch_inferior_registers):
2903 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2904 PTRACE_TYPE_ARG3.
2905 * amd64bsd-nat.c (fetch_inferior_registers)
2906 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2907 PTRACE_TYPE_ARG3.
2908 * armnbsd-nat.c: Update copyright year.
2909 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2910 (store_register, store_regs, store_fp_register, store_fp_regs):
2911 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2912 * hppabsd-nat.c (fetch_inferior_registers)
2913 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2914 PTRACE_TYPE_ARG3.
2915 * i386bsd-nat.c (fetch_inferior_registers)
2916 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2917 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2918 * m68kbsd-nat.c (fetch_inferior_registers)
2919 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2920 PTRACE_TYPE_ARG3.
2921 * m88kbsd-nat.c (fetch_inferior_registers)
2922 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2923 PTRACE_TYPE_ARG3.
2924 * mipsnbsd-nat.c: Update copyright year.
2925 (fetch_inferior_registers, store_inferior_registers):
2926 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2927 * ns32knbsd-nat.c: Update copyright year.
2928 (fetch_inferior_registers, store_inferior_registers):
2929 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2930 * ppcnbsd-nat.c (fetch_inferior_registers):
2931 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2932 PTRACE_TYPE_ARG3.
2933 * ppcobsd-nat.c (fetch_inferior_registers):
2934 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2935 PTRACE_TYPE_ARG3.
2936 * shnbsd-nat.c: Update copyright year.
2937 (fetch_inferior_registers, store_inferior_registers):
2938 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2939 * vaxbsd-nat.c (fetch_inferior_registers)
2940 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2941 PTRACE_TYPE_ARG3.
2942
655c5466
MK
2943 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2944 PTRACE_TYPE_ARG3.
2945 * infptrace.c (call_ptrace, child_resume, attach, detach)
2946 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2947 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2948 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2949 PTRACE_TYPE_ARG3.
2950
c40d0d10
MK
29512004-08-14 Mark Kettenis <kettenis@gnu.org>
2952
5cb0ff31
MK
2953 * defs.h: Remove out-of-date comment.
2954 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2955 [!GETENV_PROVIDED] (getenv): Remove prototype.
2956
5f0f34cb
MK
2957 * standalone.c: Remove file.
2958 * Makefile.in (standalone.o): Remove dependency.
2959
7532965f
MK
2960 * i386-linux-nat.c (dummy_sse_values): Remove function and
2961 prototype.
2962 (i386_linux_dr_get): Fix typo in comment.
2963 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2964
1bdc6c53
MK
2965 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2966
c40d0d10
MK
2967 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2968 from declaration.
2969 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2970 from definition.
2971
64218d3e
MK
29722004-08-13 Mark Kettenis <kettenis@gnu.org>
2973
2974 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2975 parenthesis in definition.
2976 * configure: Regenerated.
2977
926c94e7
MC
29782004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2979
2980 * PROBLEMS: Mention build/1411.
2981
69489883
NN
29822004-08-09 Robert Millan <robertmh@gnu.org>
2983
2984 Committed by Nathanael Nerode.
2985 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2986 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2987
ebb7c577
AC
29882004-08-12 Andrew Cagney <cagney@gnu.org>
2989
2990 * NEWS: Mention fixes in GDB 6.2.1.
2991 * PROBLEMS: Remove mention of mips-irix.
2992
232d697c
JB
29932004-08-11 Joel Brobecker <brobecker@gnat.com>
2994
2995 * config/powerpc/xm-aix.h: Delete.
2996 * config/powerpc/aix.mh (MH_FILE): Remove.
2997 * config/powerpc/aix432.mh (MH_FILE): Remove.
2998
72f4e82b
JB
29992004-08-11 Joel Brobecker <brobecker@gnat.com>
3000
3001 * config/powerpc/aix.mh: Remove obsolete comment.
3002 * config/powerpc/aix432.mh: Likewise.
3003
0687ccb2
JB
30042004-08-11 Joel Brobecker <brobecker@gnat.com>
3005
3006 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3007
dbf3ada7
JB
30082004-08-11 Joel Brobecker <brobecker@gnat.com>
3009
e08e1886
JB
3010 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3011 this file is now empty.
3012 * config/xm-aix4.h: Remove, this file is no longer included
3013 anywhere.
3014
30152004-08-11 Joel Brobecker <brobecker@gnat.com>
3016
3017 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3018 that file is now empty.
dbf3ada7
JB
3019 (termdef): Remove prototype, function no longer used.
3020
4c525ef6
JB
30212004-08-11 Joel Brobecker <brobecker@gnat.com>
3022
3023 * doc/gdbint.texinfo (Host Definition): Remove documentation
3024 for USE_O_NOCTTY, no longer used.
3025 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3026 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3027
82e0b968
JB
30282004-08-11 Joel Brobecker <brobecker@gnat.com>
3029
3030 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3031 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3032 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3033
f2acbe1c
MK
30342004-08-11 Mark Kettenis <kettenis@gnu.org>
3035
daa98270
MK
3036 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3037 instead of FIVE_ARG_PTRACE.
3038
f2acbe1c
MK
3039 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3040 (new_tty): Use O_NOCTTY unconditionally.
3041
cc377e6b
MK
30422004-08-10 Mark Kettenis <kettenis@gnu.org>
3043
3044 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3045 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3046 fflush on stdout.
3047
3bcc18fa
JB
30482004-08-10 Joel Brobecker <brobecker@gnat.com>
3049
3050 * xcoff_symfile_finish: Replace last call to xmfree by call
3051 to xfree.
3052
7936743b
AC
30532004-08-10 Andrew Cagney <cagney@gnu.org>
3054
cc503c8a
AC
3055 * main.c (captured_main): Delete call to init_malloc.
3056 * defs.h (init_malloc): Delete declaration.
3057 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3058 (init_malloc): Delete functions.
3059
2dc74dc1
AC
3060 * defs.h (xmfree): Delete.
3061 * utils.c (xmfree): Delete function.
3062 (xfree): Inline calls to xmfree and mfree.
3063 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3064 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3065 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3066 * somread.c (som_symfile_finish): Ditto.
3067 * objfiles.c (allocate_objfile, free_objfile):
3068 * nlmread.c (nlm_symfile_finish): Ditto.
3069 * hpread.c (hpread_symfile_finish): Ditto.
3070 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3071 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3072 * coffread.c (coff_symfile_finish): Ditto.
3073
aa2ee5f6
AC
3074 * defs.h (xmcalloc): Delete declaration.
3075 * utils.c (xmcalloc): Delete.
3076 (xcalloc): Inline calls to xmcalloc and mcalloc.
3077 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3078 xcalloc and xfree.
3079 * symtab.c (create_demangled_names_hash): Ditto.
3080
0efffb96
AC
3081 * defs.h (xmrealloc): Delete.
3082 * utils.c (xmrealloc): Delete.
3083 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3084 * symmisc.c (extend_psymbol_list): Use xrealloc.
3085 * source.c (find_source_lines): Ditto.
3086 * hpread.c (hpread_lookup_type): Ditto.
3087 * dbxread.c (add_bincl_to_list): Ditto.
3088
7936743b
AC
3089 * utils.c (xmmalloc): Delete.
3090 (xmalloc): Inline xmmalloc and mmalloc calls.
3091 (msavestring): Use xmalloc.
3092 * defs.h (xmmalloc): Delete declaration.
3093 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3094 xmmalloc.
3095 * symmisc.c (extend_psymbol_list): Ditto.
3096 * symfile.c (init_psymbol_list): Ditto.
3097 * source.c (find_source_lines): Ditto.
3098 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3099 * elfread.c (elf_symtab_read): Ditto.
3100 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3101 * coffread.c (coff_symfile_init): Ditto.
3102
252ab814
DC
31032004-08-10 David Carlton <carlton@bactrian.org>
3104
3105 * MAINTAINERS: Remove David Carlton from c++ testsuite
3106 maintainers.
3107
8f5ba92b
JG
31082004-08-10 Jerome Guitton <guitton@gnat.com>
3109
3110 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3111 print a line feed before the prompt.
3112
21749010
MK
31132004-08-10 Mark Kettenis <kettenis@gnu.org>
3114
3115 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3116
1f011ce2
JB
31172004-08-09 Joel Brobecker <brobecker@gnat.com>
3118
3119 General cleanup of the AIX xm include file:
3120 * config/xm-aix4.h (fd_set): Remove undefine.
3121 Remove include of <sys/select.h>.
3122 (HAVE_TERMIO): Remove define.
3123 (USG): Likewise.
3124 (NULL): Remove redefine.
3125 (alloca): Remove #pragma.
3126 (vfork): Remove define.
3127 (termdef): Remove.
3128 (SIGWINCH_HANDLER): Remove.
3129 (SIGWINCH_HANDLER_BODY): Remove.
3130
cf4e7692
MK
31312004-08-09 Mark Kettenis <kettenis@gnu.org>
3132
3133 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3134 GDB_OSABI_OPENBSD_ELF.
3135
ac5754fa
MK
31362004-08-07 Robert Millan <robertmh@gnu.org>
3137
3138 * bsd-kvm.c: Check for nlist.h before including it.
3139
086ec9eb
MK
31402004-08-09 Mark Kettenis <kettenis@gnu.org>
3141
bbe06c74
MK
3142 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3143 sigcontext' offset consistency checks for ancient BSD.
3144
3aa7b3b3
MK
3145 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3146
086ec9eb
MK
3147 * configure.in: Check for <sys/types.h>. Check return and
3148 argument types of ptrace.
3149 * configure, config.in: Regenerate.
3150
09991fa0
JB
31512004-08-09 Jim Blandy <jimb@redhat.com>
3152
3153 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3154 rs6000_register_sim_regno): Doc fixes.
3155
fed7ba43
JB
31562004-08-08 Joel Brobecker <brobecker@gnat.com>
3157
3158 * mips-tdep.c: Include "floatformat.h".
3159 (n32n64_floatformat_always_valid): New function.
3160 (floatformat_n32n64_long_double_big): New constant.
3161 (mips_gdbarch_init): Set size and format of long double
3162 for N32 and N64 ABIs.
3163 * Makefile.in (mips-tdep.o): Update dependencies.
3164
456fcf94
AC
31652004-08-08 Andrew Cagney <cagney@gnu.org>
3166
2f9b146e
AC
3167 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3168 print. Improve script's error messages.
3169 * gdbarch.h: Re-generate.
3170
456fcf94
AC
3171 * gdbarch.sh (pformat): New function.
3172 (float_format, double_format, long_double_format): List with bit
3173 members. Use pformat when printing.
3174 * gdbarch.c, gdbarch.h: Re-generate.
3175
69e9e646
NW
31762004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3177
3178 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3179 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3180 (ppcnbsd_supply_pcb): New function.
3181 (_initialize_ppcnbsd_nat): New prototype and function.
3182 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3183 (LOADLIBES): New variable.
3184 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3185
5ef2d0aa
AC
31862004-08-08 Andrew Cagney <cagney@gnu.org>
3187
3188 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3189 (builtin_type_ieee_double, builtin_type_ia64_quad)
3190 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3191 BE/LE floating-point types.
3192 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3193 (builtin_type_ieee_double, builtin_type_ia64_quad)
3194 (builtin_type_ia64_spill): Declare.
3195 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3196 (floatformat_ieee_double, floatformat_arm_ext)
3197 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3198 of LE/BE floatformats.
3199 * doublest.h: (struct floatformat, floatformat_ieee_single)
3200 (floatformat_ieee_double, floatformat_arm_ext)
3201 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3202
5c7f2947
MK
32032004-08-08 Mark Kettenis <kettenis@gnu.org>
3204
ecac404d
MK
3205 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3206
9b8607ce
MK
3207 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3208 instead of regcache_raw_supply when storing the registers.
3209
f6052080
MK
3210 * i386gnu-nat.c: Update copyright year.
3211 (gnu_store_registers): Don't use deprecated_registers and
3212 deprecated_registers_valid. Use regcache_valid_p and
3213 regcache_raw_supply instead.
3214
17777823
MK
3215 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3216 frame_pc_unwind.
3217
5240ceac
MK
3218 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3219 variables. Incapitalized "process".
3220
5c7f2947
MK
3221 * configure.in: Add cursesX to the list of possible curses libs.
3222 Add cursesX.h to the list of possible curses headers.
3223 * configure, config.in: Regenerate.
3224
da7d81e3
NW
32252004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3226
3227 * configure.in: Test for struct lwp in <sys/lwp.h>.
3228 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3229 the offset of l_addr in struct lwp.
3230
7f245d65
NW
32312004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3232
3233 * bsd-kvm.c: Include "gdbcore.h"
3234 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3235
47b3f456
AC
32362004-08-07 Andrew Cagney <cagney@gnu.org>
3237
70bd8e24
AC
3238 * gdbtypes.c (build_flt, build_complex): New functions.
3239 (gdbtypes_post_init): Use.
3240
9b0dea39
AC
3241 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3242
5cf7abac
AC
3243 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3244 through to builtin_type_uint128.
3245
64d2b26d
AC
3246 * c-exp.y: Use builtin_type function to obtain builtin types.
3247
7ad6570d
AC
3248 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3249 builtin_uint128.
3250 * gdbtypes.c (gdbtypes_post_init): Update.
3251 (build_gdbtypes): Move initialization of builtin_type_int0
3252 through to builtin_type_uint128 from here ...
3253 (_initialize_gdbtypes): ... to here.
3254 * d10v-tdep.c (d10v_register_type): Update.
3255
47b3f456
AC
3256 * doublest.c: Update copyright.
3257 (floatformat_from_length): Call error when floatformat is NULL.
3258 (extract_floating_by_length): Remove NULL fmt check.
3259 (store_floating_by_length): Ditto.
3260
0a8146bf
AC
32612004-08-07 Andrew Cagney <cagney@gnu.org>
3262
3263 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3264 that the register is valid.
3265
c0ccb908
MK
32662004-08-05 Mark Kettenis <kettenis@chello.nl>
3267
8e6bed05
MK
3268 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3269 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3270 struct frame_info *. Use safe_frame_unwind_memory instead of
3271 deprecated_read_memory_nobpt.
3272 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3273 changed signature of i386_linux_sigtramp_start and
3274 i386_linux_rt_sigtramp_start.
3275
24f9f5e3
MK
3276 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3277 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3278 instead of deprecated_read_memory_nobpt.
3279 (i386nbsd_sigtramp_p): Adjust for changed signature of
3280 i386nbsd_sigtramp_offset.
3281
c822af0c
MK
3282 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3283 safe_frame_unwind_memory instead of target_read_memory.
3284
c0ccb908
MK
3285 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3286 !NO_SYS_FILE.
3287 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3288 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3289 (_initialize_kernel_u_addr): Remove prototype and function.
3290 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3291 !NO_SYS_FILE.
3292 * xcoffread.c: Likewise.
3293
b9e1c0d6
MK
32942004-08-06 Mark Kettenis <kettenis@gnu.org>
3295
3296 * vax-nat.c: New file.
3297 * vaxbsd-nat.c: Tweak comment.
3298 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3299 vaxnbsd-tdep.c.
3300 (vax-nat.o): New dependency.
3301 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3302 (vax-*-ultrix2*): Remove.
3303 * config/vax/vax.mh: New file.
3304 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3305 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3306 (vax_register_u_addr): New prototype.
3307 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3308 * config/vax/vaxult2.mh: Remove file.
3309 * config/vax/vaxult.mh: Remove file.
3310 * config/vax/vaxbsd.mh: Remove file.
3311 * config/vax/vax.mt (TM_FILE): Remove.
3312 * config/vax/tm-vaxbsd.h: Remove file.
3313
9ad7bec7
JB
33142004-08-06 Joel Brobecker <brobecker@gnat.com>
3315
3316 * aix-thread.c (get_signaled_thread): New function.
3317 (iter_trap): Delete, no longer used.
3318 (iter_tid): New function.
3319 (pd_update): Find the thread that received the SIGTRAP signal
3320 by first locating the kernel thread, and then finding its
3321 associated thread.
3322
bf0d233d
UW
33232004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3324
3325 * lin-lwp.c (child_wait): Continue inferior after processing
3326 PTRACE_EVENT_CLONE event.
3327
d0f853e1
NN
33282004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3329
3330 * MAINTAINERS: Add self to Write-After-Approval.
3331
ab14aeb0
JJ
33322004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3333
3334 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3335 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3336
9c8dbfa9
AC
33372004-08-05 Andrew Cagney <cagney@gnu.org>
3338
c8f3ca46
AC
3339 * config/xm-sysv4.h: Delete file.
3340 * config/mips/xm-irix5.h: Delete file.
3341 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3342 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3343 * config/ia64/xm-aix.h: Delete file.
3344 * config/ia64/aix.mh (XM_FILE): Delete.
3345 * config/pa/xm-hppah.h: Delete file.
3346 * config/pa/hpux11w.mh (XM_FILE): Delete.
3347 * config/pa/hpux11.mh (XM_FILE): Delete.
3348 * config/pa/hpux1020.mh (XM_FILE): Delete.
3349 * config/pa/hppahpux.mh (XM_FILE): Delete.
3350
5f7daaff
AC
3351 * config/alpha/xm-alphalinux.h: Delete file.
3352 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3353 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3354 * config/alpha/xm-alphaosf.h: Delete file.
3355 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3356 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3357 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3358 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3359
69babf95
AC
3360 * config/i386/xm-i386v.h: Delete file.
3361 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3362 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3363 * config/i386/xm-i386sco.h: Delete file.
3364 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3365 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3366 * config/i386/xm-i386v4.h: Delete file.
3367 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3368 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3369 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3370 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3371
6f009c8a
AC
3372 * config/vax/xm-vax.h: Delete file.
3373 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3374 * config/vax/xm-vaxult2.h: Delete file.
3375 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3376 * config/vax/vaxult2.mh (XM_FILE): Delete.
3377 * config/vax/xm-vaxult.h: Delete file.
3378 * config/vax/vaxult.mh (XM_FILE): Delete.
3379 * config/vax/xm-vaxbsd.h: Delete file.
3380 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3381
9c8dbfa9
AC
3382 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3383 * gdbarch.h, gdbarch.c: Re-generate.
3384 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3385 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3386 * frame.h: Delete deprecated_read_fp from comments.
3387 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3388 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3389
84367a3e
MK
33902004-08-04 Mark Kettenis <kettenis@gnu.org>
3391
9c8e3411
MK
3392 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3393 trampoline in OpenBSD 3.5-current.
3394
b87bc0d8
MK
3395 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3396 SSE registers.
3397
84367a3e
MK
3398 * Makefile.in: Remove embedded page breaks.
3399
a44bddec
JB
34002004-08-04 Jim Blandy <jimb@redhat.com>
3401
7ab3286f
JB
3402 * regcache.c (regcache_raw_read): Assert that, after calling
3403 target_fetch_registers, the register we're reading is cached.
3404
a44bddec
JB
3405 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3406 a call to 'internal_error', with a more helpful error message.
3407 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3408 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3409
35124113
AC
34102004-08-04 Andrew Cagney <cagney@gnu.org>
3411
3412 * Makefile.in: Update dependencies.
3413
9f643768
JB
34142004-08-04 Jim Blandy <jimb@redhat.com>
3415
6ced10dd
JB
3416 Change the layout of the PowerPC E500 raw register cache to allow
3417 the lower 32-bit halves of the GPRS to be their own raw registers,
3418 not pseudoregisters.
3419 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3420 add ppc_ev0_upper_regnum flag.
3421 * rs6000-tdep.c: #include "reggroups.h".
3422 (spe_register_p): Recognize the ev upper half registers as SPE
3423 registers.
3424 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3425 registers.
3426 (e500_move_ev_register): New function.
3427 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3428 vector registers are the pseudo-registers now, formed by splicing
3429 together the gprs and the upper-half registers.
3430 (e500_register_reggroup_p): New function.
3431 (P): Macro deleted.
3432 (P8, A4): New macro.
3433 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3434 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3435 macros.
3436 (registers_e500): Rearrange register set so that the raw register
3437 set contains 32-bit GPRs and upper-half registers, and the SPE
3438 vector registers become pseudo-registers.
3439 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3440 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3441 register numbers are now the same for the E500 as they are for
3442 other PowerPC variants. Register e500_register_reggroup_p as the
3443 register group function for the E500.
3444 * Makefile.in (rs6000-tdep.o): Update dependencies.
3445
3446 Adapt PPC E500 native support to the new raw regcache layout.
3447 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3448 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3449 (fetch_spe_register, store_spe_register): Handle fetching/storing
3450 all the SPE registers at once, if regno == -1. These now take
3451 over the job of fetch_spe_registers and store_spe_registers.
3452 (fetch_spe_registers, store_spe_registers): Deleted.
3453 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3454 unconditionally; they're always raw. Fetch/store SPE upper half
3455 registers, if present, instead of ev registers.
3456 (fetch_register, store_register): Remove sanity checks: gprs are
3457 never pseudo-registers now, so we never need to even mention any
3458 registers that are ever pseudoregisters.
3459
9f643768
JB
3460 Use a fixed register numbering when communicating with the PowerPC
3461 simulator.
3462 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3463 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3464 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3465 New functions.
3466 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3467 init_sim_regno_table.
3468 * Makefile.in (gdb_sim_ppc_h): New variable.
3469 (rs6000-tdep.o): Update dependencies.
3470
1e2279c8
AC
34712004-08-02 Andrew Cagney <cagney@gnu.org>
3472
1d94326f
AC
3473 * cris-tdep.c (cris_register_size): Restore function, still used
3474 locally.
3475
331ae7ed
AC
3476 * gdbarch.sh (deprecated_target_read_fp)
3477 (deprecated_frame_locals_address, deprecated_frame_args_address)
3478 (deprecated_frame_chain_valid, deprecated_frame_chain)
3479 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3480 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3481 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3482 * gdbarch.h, gdbarch.c: Re-generate.
3483 * regcache.c (deprecated_read_fp): Do not call
3484 DEPRECATED_TARGET_READ_FP_P.
3485 * infcmd.c (default_print_registers_info): Do not call
3486 DEPRECATED_DO_REGISTERS_INFO.
3487 * frame-base.c (default_frame_locals_address): Do not call
3488 DEPRECATED_FRAME_LOCALS_ADDRESS.
3489 (default_frame_args_address): Do not call
3490 DEPRECATED_FRAME_ARGS_ADDRESS.
3491
1e2279c8
AC
3492 * gdbarch.sh (deprecated_register_raw_size)
3493 (deprecated_register_virtual_size:int): Delete.
3494 * gdbarch.h, gdbarch.c: Re-generate.
3495 * cris-tdep.c (cris_register_size): Delete.
3496 (cris_gdbarch_init): Update.
3497 * alpha-tdep.c (alpha_register_raw_size)
3498 (alpha_register_virtual_size): Delete.
3499 (alpha_gdbarch_init): Update.
3500
a90c06b4
AC
3501 * gdbarch.sh (deprecated_register_virtual_type)
3502 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3503 (deprecated_dummy_write_sp): Delete.
3504 * gdbarch.h, gdbarch.c: Re-generate.
3505
f42accbe
AC
3506 * gdbarch.sh (deprecated_register_bytes): Delete.
3507 * gdbarch.h, gdbarch.c: Re-generate.
3508 * regcache.c (deprecated_register_bytes): New function.
3509 * regcache.h (deprecated_register_bytes): Declare.
3510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3511 * v850-tdep.c (v850_gdbarch_init): Update.
3512 * sh64-tdep.c (sh64_gdbarch_init): Update.
3513 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3514 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3515 * mcore-tdep.c (mcore_gdbarch_init): Update.
3516 * cris-tdep.c (cris_gdbarch_init): Update.
3517 * arm-tdep.c (arm_gdbarch_init): Update.
3518 * remote.c (init_remote_state): Update.
3519 * remote-vx.c (vx_prepare_to_store): Update.
3520 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3521 * irix5-nat.c (fetch_core_registers): Update.
3522 * cris-tdep.c (cris_register_bytes_ok): Update.
3523 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3524
45c9dd44
AC
3525 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3526 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3527 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3528 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3529 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3530 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3531 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3532 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3533 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3534 with mips_insn16 and mips_insn32.
3535
3acba339
AC
3536 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3537 * rs6000-tdep.c (rs6000_push_dummy_call)
3538 (rs6000_extract_return_value): Use register_size.
3539 * xstormy16-tdep.c (xstormy16_get_saved_register)
3540 (xstormy16_extract_return_value): Ditto.
3541 * valops.c (value_assign): Ditto.
3542 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3543 * v850-tdep.c (v850_extract_return_value): Ditto.
3544 * tracepoint.c (collect_symbol): Ditto.
3545 * target.c (debug_print_register): Ditto.
3546 * stack.c (frame_info): Ditto.
3547 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3548 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3549 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3550 (store_register_using_P): Ditto.
3551 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3552 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3553 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3554 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3555 * regcache.c (deprecated_read_register_bytes)
3556 (deprecated_write_register_bytes, read_register)
3557 (write_register): Ditto.
3558 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3559 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3560 * monitor.c (monitor_supply_register, monitor_fetch_register)
3561 (monitor_store_register): Ditto.
3562 * mn10300-tdep.c (mn10300_pop_frame_regular)
3563 (mn10300_print_register): Ditto.
3564 * mipsv4-nat.c (fill_fpregset): Ditto.
3565 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3566 (mips64_fill_fpregset): Ditto.
3567 * mi/mi-main.c (register_changed_p, get_register)
3568 (mi_cmd_data_write_register_values): Ditto.
3569 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3570 * irix5-nat.c (fill_gregset, fetch_core_registers):
3571 * infrun.c (write_inferior_status_register): Ditto.
3572 * infptrace.c (fetch_register, store_register): Ditto.
3573 * infcmd.c (default_print_registers_info): Ditto.
3574 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3575 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3576 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3577 * hpux-thread.c (hpux_thread_fetch_registers)
3578 (hpux_thread_store_registers): Ditto.
3579 * hppah-nat.c (store_inferior_registers, fetch_register):
3580 * findvar.c (value_from_register): Ditto.
3581 * dve3900-rom.c (fetch_bitmapped_register):
3582 * cris-tdep.c (cris_gdbarch_init): Ditto.
3583 * alpha-tdep.h: Ditto.
3584 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3585
01e1877c
AC
3586 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3587 DEPRECATED_REGISTER_RAW_SIZE from comments.
3588 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3589 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3590 DEPRECATED_REGISTER_RAW_SIZE.
3591 * findvar.c (value_of_register): Simplify by assuming that the
3592 registers raw and virtual sizes are identical.
3593 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3594 comment.
3595 * arch-utils.c (generic_register_size): Simplify by assuming
3596 register_type.
3597
73f458fb
AC
3598 * regcache.c (legacy_read_register_gen, real_register)
3599 (legacy_write_register_gen): Delete, not used.
3600
336a3131
AC
3601 * regcache.c (struct regcache_descr): Delete legacy_p.
3602 (init_legacy_regcache_descr): Delete function.
3603 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3604 Do not use deprecated register functions.
3605 (regcache_raw_read, deprecated_write_register_gen):
3606 (deprecated_read_register_gen, regcache_raw_write): Delete code
3607 predicated on legacy_p.
3608 (register_size): Delete check against register raw size.
3609
c1d546cd
AC
3610 * cris-tdep.c (cris_register_type): Replace
3611 cris_register_virtual_type.
3612 (cris_gdbarch_init): Update, set register_type.
3613
48c2c0a6
AC
3614 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3615 * gdbarch.h, gdbarch.c: Re-generate.
3616 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3617 (arm_gdbarch_init) Do not set frameless function invocation.
3618 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3619 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3620 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3621 (frv_gdbarch_init): Do not set frameless function invocation.
3622 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3623 * sh-tdep.c (sh_gdbarch_init): Ditto.
3624 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3625 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3626 * avr-tdep.c (avr_gdbarch_init): Ditto.
3627
474093a6
AC
3628 * blockframe.c (legacy_frame_chain_valid): Delete function.
3629
3c109c8b
AC
3630 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3631 and pc. Update comments.
3632 (pc_in_dummy_frame): Delete function.
3633 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3634 use the "id".
3635 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3636 call_hi, top and pc, use the id.
3637 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3638
96860204
AC
3639 * dummy-frame.c: Include "gdb_string.h".
3640 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3641 (generic_save_dummy_frame_tos): Delete.
3642 (dummy_frame_push): New function, replaces above.
3643 * dummy-frame.h: Update copyright.
3644 (dummy_frame_push): Declare.
3645 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3646 (generic_save_call_dummy_addr): Delete declarations.
3647 * infcall.c: Include "dummy-frame.h".
3648 (call_function_by_hand): Add locals caller_regcache,
3649 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3650 with call to frame_save_as_regcache plus cleanup. Delete calls to
3651 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3652 Move clear_proceed_status to just before the resume, add call to
3653 dummy_frame_push (discard cleanup).
3654 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3655 (dummy-frame.o): Add $(gdb_string_h).
3656
d67ec5db
AC
36572004-08-01 Andrew Cagney <cagney@gnu.org>
3658
3659 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3660 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3661 * dummy-frame.c (find_dummy_frame): Delete.
3662 (struct dummy_frame_cache, dummy_frame_sniffer)
3663 (dummy_frame_prev_register, dummy_frame_this_id)
3664 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3665 frame unwinder using a dummy_frame_cache.
3666
a81dcb05
AC
36672004-08-01 Andrew Cagney <cagney@gnu.org>
3668
3669 * frame.h (frame_save_as_regcache): Declare.
3670 * frame.c (frame_save_as_regcache): New function.
3671 (do_frame_read_register): Replace do_frame_unwind_register.
3672 (frame_pop): Use frame_save_as_regcache.
3673 * dummy-frame.c (generic_push_dummy_frame): Use
3674 frame_save_as_regcache.
3675
aa495d11
JB
36762004-08-01 Joel Brobecker <brobecker@gnat.com>
3677
3678 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3679 file as included until we record the first line in the linetable.
3680
ff65ac78
AC
36812004-08-01 Andrew Cagney <cagney@gnu.org>
3682
3683 * frame.h (deprecated_pop_dummy_frame)
3684 (deprecated_read_register_dummy)
3685 (deprecated_generic_find_dummy_frame): Delete.
3686 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3687 (deprecated_read_register_dummy)
3688 (deprecated_find_dummy_frame_regcache)
3689 (discard_innermost_dummy)
3690 (deprecated_pop_dummy_frame): Delete.
3691 (dummy_frame_this_id): Simplify.
3692 (struct dummy_frame): Delete "fp" and "sp".
3693 (find_dummy_frame): Simplify.
3694 (generic_push_dummy_frame): Do not set "fp" or "sp".
3695 (fprint_dummy_frames): Do not print "fp" and "sp"
3696
37bdc87e
MK
36972004-08-01 Mark Kettenis <kettenis@gnu.org>
3698
3699 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3700 (struct i386_insn): New structure.
3701 (i386_match_insn): New function.
3702 (i386_frame_setup_skip_insns): New variable.
3703 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3704 array i386_frame_setup_insns of instructions that should be
3705 skipped inside the frame setup sequence.
3706
8241eaa6
AC
37072004-08-01 Andrew Cagney <cagney@gnu.org>
3708
5bc602c7
AC
3709 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3710 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3711 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3712 * stack.c (frame_info): Delete references to
3713 DEPRECATED_FRAME_INIT_SAVED_REGS and
3714 deprecated_get_frame_saved_regs.
3715 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3716 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3717 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3718 (frame_unwind_register_signed)
3719 (frame_unwind_register_unsigned)
3720 (frame_unwind_unsigned_register): Use register_size.
3721 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3722 (deprecated_frame_xmalloc_with_cleanup)
3723 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3724 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3725
03d363a1
AC
3726 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3727 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3728 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3729 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3730
8241eaa6
AC
3731 * infcall.c (call_function_by_hand): Do not use
3732 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3733 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3734 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3735 DEPRECATED_STACK_ALIGN.
3736
f00df8b7
AC
37372004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3738
3739 Committed by Andrew Cagney.
3740 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3741
eec63939
AC
37422004-08-01 Andrew Cagney <cagney@gnu.org>
3743
3744 * mips-tdep.c (mips16_frame_cache)
3745 (mips16_frame_this_id, mips16_frame_prev_register)
3746 (mips16_frame_unwind, mips16_frame_sniffer)
3747 (mips16_frame_base_address, mips16_frame_base)
3748 (mips16_frame_base_sniffer, mips32_frame_cache)
3749 (mips32_frame_this_id, mips32_frame_prev_register)
3750 (mips32_frame_unwind, mips32_frame_sniffer)
3751 (mips32_frame_base_address, mips32_frame_base)
3752 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3753 separate heuristic mips16 and mips32 unwinders.
3754 (mips_stub_frame_cache, mips_stub_frame_this_id)
3755 (mips_stub_frame_prev_register)
3756 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3757 (mips_stub_frame_base_address, mips_stub_frame_base)
3758 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3759 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3760 match true mdebug frames.
3761 (non_heuristic_proc_desc): Add forward declaration.
3762
e66299b3
AC
37632004-08-01 Andrew Cagney <cagney@gnu.org>
3764
83cbbf3e
AC
3765 * config/mips/tm-irix6.h: Delete file.
3766 * config/mips/tm-irix5.h: Delete file.
3767 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3768 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3769
22d41b37
AC
3770 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3771 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3772 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3773 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3774 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3775 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3776 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3777 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3778 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3779 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3780 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3781 (TARGET_SIGNAL_RAW_VALUES): Delete.
3782 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3783 Delete.
3784 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3785 (TARGET_HW_WATCH_LIMIT): Delete.
3786 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3787 * minimon.h: Delete file.
3788
e66299b3
AC
3789 * trad-frame.c (trad_frame_get_this_base)
3790 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3791 functions.
3792 * trad-frame.h (trad_frame_set_this_base)
3793 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3794
1f67027d
AC
37952004-07-31 Andrew Cagney <cagney@gnu.org>
3796
3797 * trad-frame.c (trad_frame_get_prev_register): Rename
3798 trad_frame_get_prev_register.
3799 * vax-tdep.c (vax_frame_prev_register): Update.
3800 * trad-frame.h: Update.
3801 * trad-frame.c (trad_frame_get_register): Update.
3802 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3803 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3804 Update.
3805 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3806 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3807 Update.
3808 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3809 Update.
3810 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3811 Update.
3812 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3813 Update.
3814 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3815 Update.
3816 * s390-tdep.c (s390_frame_prev_register)
3817 (s390_stub_frame_prev_register)
3818 (s390_sigtramp_frame_prev_register): Update.
3819 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3820 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3821 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3822 * m88k-tdep.c (m88k_frame_prev_register)
3823 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3824 * m32r-tdep.c (m32r_frame_prev_register): Update.
3825 * hppa-tdep.c (hppa_frame_prev_register_helper)
3826 * frv-tdep.c (frv_frame_prev_register): Update.
3827 * d10v-tdep.c (d10v_frame_prev_register): Update.
3828 * cris-tdep.c (cris_frame_prev_register): Update.
3829 * avr-tdep.c (avr_frame_prev_register): Update.
3830 * arm-tdep.c (arm_prologue_prev_register)
3831 (arm_sigtramp_prev_register): Update.
3832
c1bf6f65
AC
38332004-07-31 Andrew Cagney <cagney@gnu.org>
3834
3835 * frame.h (legacy_saved_regs_unwind)
3836 (legacy_frame_chain_valid, legacy_frame_p)
3837 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3838 * dummy-frame.c (dummy_frame_this_id): Simplify.
3839 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3840 * frame.c (struct frame_info): Delete the field "type".
3841 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3842 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3843 (legacy_saved_regs_unwind, legacy_frame_p)
3844 (frame_type_from_pc): Delete.
3845 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3846 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3847
dc856692
MK
38482004-07-31 Mark Kettenis <kettenis@gnu.org>
3849
5a5effe1
MK
3850 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3851 indentation.
3852
d4fd50a6
MK
3853 * mips-nat.c: Remove file.
3854 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3855 (mips-nat.o): Remove dependency.
3856
2689df5a
MK
3857 * infptrace.c: Update copyright year.
3858 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3859 explicitly setting the buffer to all zeroes.
3860
dc856692
MK
3861 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3862 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3863
763910e0
AC
38642004-07-30 Andrew Cagney <cagney@gnu.org>
3865
3866 * GDB 6.2 released from gdb_6_2-branch.
3867
0b66e38c
EZ
38682004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3869
3870 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3871
3872 * exec.c (exec_file_attach):
3873 * nto-tdep.c (nto_find_and_open_solib):
3874 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3875 * solib.c (solib_open):
3876 * somsolib.c (som_solib_sizeof_symbol_table):
3877 * source.c (is_regular_file, openp, open_source_file):
3878 * symfile.c (symfile_bfd_open):
3879 * wince.c (upload_to_device): Differentiate between the search for
3880 binary and source files.
3881
be7d7357
AC
38822004-07-30 Andrew Cagney <cagney@gnu.org>
3883
3884 * complaints.c (_initialize_complaints): Pass NULL to
3885 add_setshow_zinteger_cmd for help_doc.
3886 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3887
ddc9cd0f
AC
38882004-07-30 Andrew Cagney <cagney@gnu.org>
3889
3890 Fix PR i18n/761.
3891 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3892 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3893 $(PACKAGE).pot and update-po.
3894 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3895 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3896 (update-po): New rules.
3897 (localedir): Define using autoconf.
3898 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3899 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3900 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3901 * configure.in: Generate CATALOGS and LINGUAS from contents of
3902 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3903 * configure: Re-generate.
3904 * po/gdbtext: New file
3905
e92f3704
JG
39062004-07-30 Jerome Guitton <guitton@gnat.com>
3907
3908 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3909 order.
3910
b0f35d58
DL
39112004-07-30 David Lecomber <dsl@sources.redhat.com>
3912
3913 * dwarf2read.c (read_file_scope): Set producer if attribute
3914 present.
3915 (struct dwarf2_cu): Added new member producer.
3916
ce7d4522
JG
39172004-07-30 Jerome Guitton <guitton@gnat.com>
3918
3919 * inflow.c (kill_command): release file handles in BFD.
3920 * exec.c (exec_file_attach): Ditto.
3921 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3922
05ee07c7
AC
39232004-07-29 Andrew Cagney <cagney@gnu.org>
3924
3925 * PROBLEMS (mips-irix): Note that it is broken.
3926
62eceb47
AC
39272004-07-29 Andrew Cagney <cagney@gnu.org>
3928
e57b8d41
AC
3929 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3930 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3931
d334389b
AC
3932 * config/xm-nbsd.h: Delete file.
3933 * config/arm/xm-nbsd.h: Delete file.
3934 * config/i386/xm-nbsd.h: Delete file.
3935 * config/ns32k/xm-nbsd.h: Delete file.
3936 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3937 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3938 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3939 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3940 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3941
e910f676
AC
3942 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3943 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3944 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3945 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3946 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3947 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3948
6fa856b9
AC
3949 * config/powerpc/xm-linux.h: Delete empty file.
3950 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3951 * config/powerpc/linux.mh (XM_FILE): Delete.
3952 * config/m68k/xm-linux.h: Delete empty file.
3953 * config/m68k/linux.mh (XM_FILE): Delete.
3954 * config/ia64/xm-linux.h: Delete empty file.
3955 * config/ia64/linux.mh (XM_FILE): Delete.
3956 * config/arm/xm-linux.h: Delete empty file.
3957 * config/arm/linux.mh (XM_FILE): Delete.
3958
471ae5ae
AC
3959 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3960 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3961 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3962 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3963 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3964 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3965 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3966 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3967
62eceb47
AC
3968 * config/m68k/xm-m68k.h: Delete file.
3969 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3970 copyright.
3971 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3972 * config/pa/xm-linux.h: Delete empty file.
3973 * config/pa/linux.mh (XM_FILE): Delete.
3974 * config/i386/xm-i386.h: Delete empty file.
3975 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3976 "i386/xm-i386.h".
3977 * config/i386/obsdaout.mh (XM_FILE): Delete.
3978 * config/i386/obsd64.mh (XM_FILE): Delete.
3979 * config/i386/fbsd64.mh (XM_FILE): Delete.
3980 * config/i386/nto.mh (XM_FILE): Delete.
3981 * config/i386/obsd.mh (XM_FILE): Delete.
3982 * config/i386/linux64.mh (XM_FILE): Delete.
3983 * config/i386/linux.mh (XM_FILE): Delete.
3984 * config/i386/i386sol2.mh (XM_FILE): Delete.
3985 * config/i386/i386gnu.mh (XM_FILE): Delete.
3986 * config/i386/fbsd.mh (XM_FILE): Delete.
3987 * config/i386/nbsd64.mh (XM_FILE): Delete.
3988
c35f4ffc
AC
39892004-07-29 Andrew Cagney <cagney@gnu.org>
3990
3991 * config/pa/xm-linux.h: Do not include "floatformat.h".
3992 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3993 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3994 * config/i386/xm-i386.h: Do not include "floatformat.h".
3995 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3996 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3997 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3998 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3999 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4000 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4001 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4002 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4003 * configure, config.in: Regenerate.
4004 * configure.host (gdb_host_float_format, gdb_host_double_format)
4005 (gdb_host_long_double_format): Set according to the host.
4006
624a44a3
AC
40072004-07-29 Andrew Cagney <cagney@gnu.org>
4008
4009 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4010
0dea2468
AC
40112004-07-28 Andrew Cagney <cagney@gnu.org>
4012
4013 * PROBLEMS: Mention threads/1650.
4014 * NEWS: Mention the NPTL fix.
4015
b3f42336
AC
40162004-07-28 Andrew Cagney <cagney@gnu.org>
4017
4018 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4019 (add_setshow_cmd_full): Make static.
4020 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4021 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4022 * cli/cli-decode.c (add_setshow_filename_cmd)
4023 (add_setshow_string_cmd): New functions.
4024 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4025 * mips-tdep.c (_initialize_mips_tdep): Update.
4026 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4027 * cli/cli-logging.c (_initialize_cli_logging): Update.
4028 * complaints.c (_initialize_complaints): Update.
4029 * remote.c (_initialize_remote): Update.
4030
3b64bf98
AC
40312004-07-28 Andrew Cagney <cagney@gnu.org>
4032
4033 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4034 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4035 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4036 print parameters. Make string parameters constant.
4037 * command.h: Update. Update copyright.
4038 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4039 * observer.c (_initialize_observer): Ditto.
4040 * frame.c (_initialize_frame): Ditto.
4041 * complaints.c (_initialize_complaints): Ditto.
4042 * maint.c (_initialize_maint_cmds): Ditto.
4043 * target.c (initialize_targets): Ditto.
4044 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4045 * infcall.c (_initialize_infcall): Ditto.
4046 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4047 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4048 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4049 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4050 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4051
e9667a65
AC
40522004-07-28 Andrew Cagney <cagney@gnu.org>
4053
54a5b07d
AC
4054 * gdbtypes.c (lookup_primitive_typename): Delete function.
4055 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4056 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4057 * gdbtypes.c (lookup_typename): Ditto.
4058 * f-exp.y (yylex): Ditto.
4059 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4060
e9667a65
AC
4061 * scm-lang.c (c_builtin_types): Delete extern declaration.
4062 (scm_language_defn): Replace
4063 string_char_type and primitive_type_vector with
4064 la_language_arch_info.
4065 * jv-lang.c (java_language_defn): Replace
4066 string_char_type and primitive_type_vector with
4067 la_language_arch_info.
4068 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4069 c_builtin_types in comment.
4070 * c-lang.h (struct language_arch_info): Declare opaque.
4071 (c_language_arch_info): Declare.
4072 (c_builtin_types): Delete declaration.
4073 * c-lang.c (c_language_arch_info): Set string_char_type to
4074 builtin_char, not builtin_true_char. Make global.
4075 (c_builtin_types): Delete array.
4076 (asm_language_defn, minimal_language_defn): Replace
4077 string_char_type and primitive_type_vector with
4078 la_language_arch_info.
4079
685419e2
AC
40802004-07-28 Andrew Cagney <cagney@gnu.org>
4081
4082 * gdbtypes.h (struct builtin_type): Rename true_char to
4083 builtin_true_char.
4084 * gdbtypes.c (gdbtypes_post_init): Update.
4085 * c-lang.c (arch_info): New function.
4086 (enum c_primitive_types): New enum.
4087 (c_language_defn): Instead of string_char_type and
4088 primitive_type_vector set la_language_arch_info.
4089
5a44ea29
AC
40902004-07-28 Andrew Cagney <cagney@gnu.org>
4091
4092 * language.h (struct language_arch_info): Fix typo
4093 s/primative/primitive/.
4094 * gdbtypes.c (lookup_primitive_typename): Ditto.
4095 * language.c (language_lookup_primitive_type_by_name)
4096 (unknown_language_arch_info): Ditto.
4097
f290d38e
AC
40982004-07-27 Andrew Cagney <cagney@gnu.org>
4099
4100 * defs.h (enum language): Add nr_languages.
4101 * language.h (struct language_arch_info): Define.
4102 (struct language_defn): Add la_language_arch_info.
4103 (language_lookup_primative_type_by_name): Declare.
4104 (language_string_char_type): Declare.
4105 * language.c (_initialize_language, language_gdbarch_post_init)
4106 (struct language_gdbarch, language_gdbarch_data): Implement
4107 per-architecture language information.
4108 (unknown_language_arch_info, language_string_char_type)
4109 (language_lookup_primative_type_by_name): New functions.
4110 (unknown_language_defn, auto_language_defn)
4111 (local_language_defn): Set la_language_arch_info to
4112 unknown_language_arch_info.
4113 (unknown_builtin_types): Delete.
4114 * gdbtypes.c (lookup_primitive_typename): Use
4115 language_lookup_primative_type_by_name.
4116 (create_string_type): Use language_string_char_type.
4117 * values.c (value_from_string): Use language_string_char_type.
4118 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4119 * p-lang.c (pascal_language_defn): Ditto.
4120 * m2-lang.c (m2_language_defn): Ditto.
4121 * jv-lang.c (java_language_defn): Ditto.
4122 * objc-lang.c (objc_language_defn): Ditto.
4123 * f-lang.c (f_language_defn): Ditto.
4124 * c-lang.c (c_language_defn, cplus_language_defn)
4125 (asm_language_defn, minimal_language_defn): Ditto.
4126
000177f0
AC
41272004-07-27 Andrew Cagney <cagney@gnu.org>
4128
4129 * gdbtypes.h (struct builtin_type): Declare.
4130 (builtin_type): Declare.
4131 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4132 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4133 (gdbtypes_post_init): New function.
4134 (builtin_type): New function.
4135
e22f895c
KI
41362004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4137
4138 * remote-m32r-sdi.c: Fix breakpoint bug.
4139 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4140 recv_char_data, recv_long_data): New functions to replace communication
4141 sequences.
4142
536517dd
MC
41432004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4144
4145 Document PR threads/1650.
4146 * PROBLEMS (Threads): Document problem with many threads
4147
a0a44d18
AC
41482004-07-26 Andrew Cagney <cagney@gnu.org>
4149
4150 * gdb-mi.el: Move from here ...
4151 * mi/gdb-mi.el: ... to here.
4152
7ac4ac06
AC
41532004-07-26 Andrew Cagney <cagney@gnu.org>
4154
4155 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4156 * main.c (captured_main): When in batch mode always detach.
4157
a1b461bf
AC
41582004-07-26 Andrew Cagney <cagney@gnu.org>
4159
4160 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4161 and h8300 as broken.
4162 * NEWS: END-OF-LIFE frame compatibility module.
4163 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4164 specific comments.
4165
cb1a6d5f
AC
41662004-07-26 Andrew Cagney <cagney@gnu.org>
4167
4168 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4169 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4170 * wince.c (_initialize_wince): Update.
4171 * win32-nat.c (_initialize_win32_nat): Update.
4172 * varobj.c (_initialize_varobj): Update.
4173 * valops.c (_initialize_valops): Update.
4174 * utils.c (initialize_utils, initialize_utils): Update.
4175 * tui/tui-win.c (_initialize_tui_win): Update.
4176 * top.c (init_main): Update.
4177 * symfile.c (_initialize_symfile): Update.
4178 * source.c (_initialize_source): Update.
4179 * somsolib.c (_initialize_som_solib): Update.
4180 * solib.c (_initialize_solib): Update.
4181 * solib-frv.c (_initialize_frv_solib): Update.
4182 * serial.c (_initialize_serial): Update.
4183 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4184 * remote.c (_initialize_remote, _initialize_remote): Update.
4185 * remote-vx.c (_initialize_vx): Update.
4186 * remote-utils.c (_initialize_sr_support): Update.
4187 * remote-sds.c (_initialize_remote_sds): Update.
4188 * remote-mips.c (_initialize_remote_mips): Update.
4189 * remote-e7000.c (_initialize_remote_e7000): Update.
4190 * proc-api.c (_initialize_proc_api): Update.
4191 * printcmd.c: Update.
4192 * parse.c (_initialize_parse): Update.
4193 * pa64solib.c (_initialize_pa64_solib): Update.
4194 * p-valprint.c (_initialize_pascal_valprint): Update.
4195 * monitor.c (_initialize_remote_monitors): Update.
4196 * mips-tdep.c (_initialize_mips_tdep): Update.
4197 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4198 * maint.c (_initialize_maint_cmds): Update.
4199 * lin-lwp.c (_initialize_lin_lwp): Update.
4200 * language.c (_initialize_language): Update.
4201 * kod.c (_initialize_kod): Update.
4202 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4203 * i386-tdep.c (_initialize_i386_tdep): Update.
4204 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4205 * gdbarch.sh: Update.
4206 * gdbarch.c: Re-generate.
4207 * gdb-events.sh: Update.
4208 * gdb-events.c: Re-generate.
4209 * frame.c (_initialize_frame): Update.
4210 * exec.c: Update.
4211 * demangle.c (_initialize_demangler): Update.
4212 * dcache.c (_initialize_dcache): Update.
4213 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4214 * cp-valprint.c (_initialize_cp_valprint): Update.
4215 * corefile.c (_initialize_core): Update.
4216 * command.h: Update.
4217 * cli/cli-decode.h: Update.
4218 * cli/cli-cmds.c (init_cli_cmds): Update.
4219 * charset.c (_initialize_charset): Update.
4220 * breakpoint.c (_initialize_breakpoint): Update.
4221 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4222 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4223 * aix-thread.c (_initialize_aix_thread): Update.
4224
b4632131
MK
42252004-07-24 Mark Kettenis <kettenis@gnu.org>
4226
4227 Partial fix for PR backtrace/1718.
4228 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4229 that GCC migrates into the prolugue. Don't handle any
4230 instructions that clobber %ebx.
4231
822c9732
AC
42322004-07-23 Andrew Cagney <cagney@gnu.org>
4233
4234 Use regcache_raw_collect instead of regcache_collect.
4235 * regcache.h (regcache_collect): Delete declaration.
4236 * regcache.c (regcache_colect): Delete function.
4237 * win32-nat.c (do_child_store_inferior_registers): Update.
4238 * sol-thread.c (sol_thread_store_registers): Update.
4239 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4240 * rs6000-nat.c (store_register): Update.
4241 * remote.c (store_register_using_P, remote_store_registers): Update.
4242 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4243 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4244 (fill_vrregset, store_spe_registers, fill_gregset)
4245 (fill_gregset): Update.
4246 * nto-procfs.c (procfs_store_registers): Update.
4247 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4248 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4249 * m68klinux-nat.c (store_register, fill_gregset): Update.
4250 * m68k-tdep.c (fill_gregset): Update.
4251 * infptrace.c (store_register): Update.
4252 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4253 * i386-linux-nat.c (store_register, fill_gregset): Update.
4254 * hppa-linux-nat.c (fill_gregset): Update.
4255 * go32-nat.c (store_register): Update.
4256 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4257 (store_fp_regs): Update.
4258 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4259 (store_nwfpe_extended, store_fpregister, store_fpregs)
4260 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4261 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4262 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4263 (store_regs_user_thread, store_regs_kernel_thread): Update.
4264
32b05c07
MK
42652004-07-24 Mark Kettenis <kettenis@gnu.org>
4266
4267 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4268 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4269 encoding.
4270 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4271 member of `struct comp_unit'.
4272
8567c30f
AC
42732004-07-23 Andrew Cagney <cagney@gnu.org>
4274
4275 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4276 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4277
f6da8dd8
MH
42782004-07-23 Martin Hunt <hunt@redhat.com>
4279 Kevin Buettner <kevinb@redhat.com>
4280
4281 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4282 alignment was being added to the offset instead of multiplied.
4283
bd921882
MK
42842004-07-23 Mark Kettenis <kettenis@gnu.org>
4285
24f033e8
MK
4286 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4287 changed signal trampoline in OpenBSD 3.5-current.
4288
90f3cecd
MK
4289 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4290 <machine/pcb.h> and "bsd-kvm.h".
4291 (sparc64nbsd_supply_pcb): New function.
4292 (_initialize_sparc64nbsd_nat): Renamed from
4293 _initialize_sparcnbsd_nat. Enable libkvm interface.
4294 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4295 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4296 (LOADLIBES): New variable.
4297
a4954a62
MK
4298 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4299
bd921882
MK
4300 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4301
23a6d369
AC
43022004-07-21 Andrew Cagney <cagney@gnu.org>
4303
4304 Use regcache_raw_supply instead of supply_register.
4305 * regcache.h (supply_register): Delete declaration.
4306 * regcache.c (supply_register): Delete function.
4307 * wince.c (do_child_fetch_inferior_registers): Update.
4308 * win32-nat.c (do_child_fetch_inferior_registers)
4309 (fetch_elf_core_registers): Update.
4310 * v850ice.c (v850ice_fetch_registers): Update.
4311 * thread-db.c (thread_db_store_registers): Update.
4312 * sol-thread.c (sol_thread_store_registers): Update.
4313 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4314 * rs6000-nat.c (fetch_register): Update.
4315 * rom68k-rom.c (rom68k_supply_one_register): Update.
4316 * remote.c (remote_wait, remote_async_wait): Update.
4317 * remote-st.c (get_hex_regs): Update.
4318 * remote-sim.c (gdbsim_fetch_register): Update.
4319 * remote-sds.c (sds_fetch_registers): Update.
4320 * remote-rdp.c (remote_rdp_fetch_register): Update.
4321 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4322 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4323 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4324 * remote-hms.c (init_hms_cmds): Update.
4325 * remote-est.c (init_est_cmds): Update.
4326 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4327 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4328 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4329 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4330 (fetch_register, supply_vrregset, supply_vrregset)
4331 (fetch_spe_registers): Update.
4332 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4333 * monitor.c (monitor_supply_register): Update.
4334 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4335 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4336 (mipsnbsd_supply_fpreg): Update.
4337 * mips-nat.c (fetch_inferior_registers)
4338 (fetch_core_registers): Update.
4339 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4340 (supply_fpregset, mips64_supply_gregset)
4341 (mips64_supply_fpregset): Update.
4342 * m68klinux-nat.c (fetch_register, supply_gregset)
4343 (supply_fpregset): Update.
4344 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4345 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4346 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4347 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4348 * infptrace.c (fetch_register): Update.
4349 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4350 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4351 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4352 (gnu_fetch_registers, gnu_store_registers): Update.
4353 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4354 * i386-linux-nat.c (fetch_register, supply_gregset)
4355 (dummy_sse_values): Update.
4356 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4357 * hppah-nat.c (fetch_register): Update.
4358 * hppa-linux-nat.c (fetch_register, supply_gregset)
4359 (supply_fpregset): Update.
4360 * go32-nat.c (fetch_register): Update.
4361 * dve3900-rom.c (fetch_bitmapped_register)
4362 (_initialize_r3900_rom): Update.
4363 * cris-tdep.c (supply_gregset): Update.
4364 * abug-rom.c (init_abug_cmds): Update.
4365 * core-aout.c (fetch_core_registers): Update.
4366 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4367 (fetch_register, fetch_fp_register): Update.
4368 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4369 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4370 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4371 * alphanbsd-tdep.c (fetch_core_registers): Update.
4372 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4373 * alpha-nat.c (fetch_osf_core_registers)
4374 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4375 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4376 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4377
73cc75f3
AC
43782004-07-21 Andrew Cagney <cagney@gnu.org>
4379
4380 * PROBLEMS: Mention breakpoints/1702.
4381 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4382 that is known to work.
4383
a53c66de
AC
43842004-07-21 Andrew Cagney <cagney@gnu.org>
4385
4386 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4387 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4388 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4389 (handle_inferior_event): Wrap call to deprecated
4390 IGNORE_HELPER_CALL in #ifdef.
4391 * config/mips/tm-nbsd.h: Update.
4392
708ff411
JB
43932004-07-20 Jim Blandy <jimb@redhat.com>
4394
412b3060
JB
4395 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4396 bfd_mach_ppc has no segment registers.
4397
13ac140c
JB
4398 Include PowerPC SPR numbers for special-purpose registers.
4399 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4400 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4401 new member in initializer.
4402 (S, S4, SN4, S64): New macros for defining special-purpose
4403 registers.
4404 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4405 registers_403, registers_403GC, registers_505, registers_860,
4406 registers_601, registers_602, registers_603, registers_604,
4407 registers_750, registers_e500): Use them.
4408
708ff411
JB
4409 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4410 replace references with expression used to initialize variable.
4411
1f602b35
AC
44122004-07-20 Andrew Cagney <cagney@gnu.org>
4413
4414 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4415 read_memory_nobpt.
4416 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4417 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4418 (s390_sigtramp_frame_sniffer): Update.
4419 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4420 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4421 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4422 (mips32_fetch_instruction): Update.
4423 * mcore-tdep.c (get_insn): Update.
4424 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4425 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4426 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4427 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4428 (i386_linux_rt_sigtramp_start): Update.
4429 * i386-linux-nat.c (child_resume): Update.
4430 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4431 * hppa-linux-tdep.c (insns_match_pattern): Update.
4432 * gdbcore.h: Update.
4433 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4434 * frame.c (safe_frame_unwind_memory): Update.
4435 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4436 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4437 * alpha-tdep.c (alpha_read_insn): Update.
4438
2cd8546d
AC
44392004-07-20 Andrew Cagney <cagney@gnu.org>
4440
4441 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4442 containing both bytes and mask. Add "frame_type".
4443 * tramp-frame.c (tramp_frame_start): Update.
4444 (tramp_frame_prepend_unwinder): Update.
4445 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4446 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4447 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4448 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4449
f928dd62
EZ
44502004-07-19 Eli Zaretskii <eliz@gnu.org>
4451
4452 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4453 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4454 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4455 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4456
d5c560f7
AC
44572004-07-17 Andrew Cagney <cagney@gnu.org>
4458
860660cb
AC
4459 * NEWS, PROBLEMS: Update for 6.2.
4460
8c266f54
AC
4461 * README: Update to 6.2.
4462
a552edd9
AC
4463 * utils.c (xvasprintf): Call xstrvprintf.
4464
c4a172b5
AC
4465 * parse.c: Update copyright.
4466 (null_post_parser): Eliminate ARGSUSED.
4467
da745b36
AC
4468 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4469 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4470 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4471
9cbc6ef0
AC
4472 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4473 * ppc-linux-nat.c: Use "Linux kernel".
4474 * hppa-linux-tdep.c: Use GNU/Linux.
4475 * hppa-linux-nat.c: Use GNU/Linux.
4476 * dwarfread.c: Add [sic] to use of Linux.
4477
1b89295f
AC
4478 * hppa-linux-nat.c: Do not include <string.h>.
4479 (supply_fpregset): Remove "register" attribute.
4480
d5c560f7
AC
4481 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4482
7ddd7709
MK
44832004-07-17 Mark Kettenis <kettenis@gnu.org>
4484
b1d19a62
MK
4485 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4486 * configure, config.in: Regenerated.
4487
7ddd7709
MK
4488 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4489 "bsd-kvm.h".
4490 (vaxbsd_supply_pcb): New function.
4491 (_initialize_vaxbsd_nat): New prototype and function.
4492 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4493 solib-sunos.o.
4494 (LOADLIBES): New variable.
4495 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4496 (LOADLIBES): New variable.
4497 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4498 (LOADLIBES): New variable.
4499 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4500
2c07db7a
AC
45012004-07-16 Andrew Cagney <cagney@gnu.org>
4502
4503 * defs.h (event_loop_p): Replace variable declaration with macro,
4504 always 1.
4505 * main.c (captured_main): Delete options "-async" and "-noasync".
4506 (event_loop_p): Delete variable.
4507 * NEWS: Mention that "-async" and "-noasync" were removed.
4508
717eb1cf
AC
45092004-07-16 Andrew Cagney <cagney@gnu.org>
4510
4511 * remote-m32r-sdi.c: Re-indent.
4512
c101bc14
JB
45132004-07-16 Jim Blandy <jimb@redhat.com>
4514
5109a438
JB
4515 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4516 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4517 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4518 missing MPC823 SPRs.
4519 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4520 incorrect. (This was corrected in GDB's register name tables on
4521 2004-07-14.)
4522
c101bc14
JB
4523 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4524 should be "esasrr" ("ESA Save and Restore Register").
4525
7ce450bd
AC
45262004-07-16 Andrew Cagney <cagney@gnu.org>
4527
4528 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4529 calls, no longer applicable. Update comments and rename parameter
4530 "step_frame" to "return_frame".
4531
ca73dd9d
AC
45322004-07-16 Andrew Cagney <cagney@gnu.org>
4533
4534 * frame.c (fprint_field): New function.
4535 (fprint_frame_id): Use fprint_field.
4536
31941f6d
JB
45372004-07-15 Joel Brobecker <brobecker@gnat.com>
4538
4539 * ada-lang.c (ada_language_defn): Remove commented out code.
4540
f86a7158
JB
45412004-07-15 Jim Blandy <jimb@redhat.com>
4542
4543 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4544 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4545
c24791ec
JB
45462004-07-14 Jim Blandy <jimb@redhat.com>
4547
29bb1356
JB
4548 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4549
cc98b5cc
JB
4550 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4551
8f088af7
JB
4552 * ppc-tdep.h (ppc_num_srs): New enum constant.
4553
0ea0ec5f
JB
4554 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4555 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4556 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4557 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4558 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4559 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4560 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4561 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4562 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4563 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4564 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4565 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4566 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4567 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4568 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4569 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4570 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4571 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4572 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4573 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4574 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4575 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4576 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4577 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4578 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4579 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4580 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4581 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4582 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4583 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4584 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4585 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4586 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4587 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4588 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4589 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4590 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4591 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4592 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4593 special-purpose register numbers.
4594
c24791ec
JB
4595 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4596 manual mentions 'md_twb', but many mention 'm_twb', and at that
4597 point in the register list.)
4598
d833db3b
AC
45992004-07-14 Andrew Cagney <cagney@gnu.org>
4600
4601 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4602 instead of "internal-error".
4603
080228b2
JB
46042004-07-10 Joel Brobecker <brobecker@gnat.com>
4605
4606 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4607 that was inserted inside a comment.
4608
c268433a
RC
46092004-07-10 Randolph Chung <tausq@debian.org>
4610
4611 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4612 function.
4613 (hppa_hpux_push_dummy_code): New function.
4614 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4615 Set find_global_pointer method.
4616
71009278
MK
46172004-07-10 Mark Kettenis <kettenis@gnu.org>
4618
4619 * NEWS: Mention BSD libkvm interface.
4620
b2fa5097
MS
46212004-07-10 Michael Snyder <msnyder@redhat.com>
4622
4623 * symfile.c (generic_load): Comment typo.
4624 * stack.c (get_selected_block): Ditto.
4625 * regcache.c (regcache_cooked_read): Ditto.
4626 * monitor.c (monitor_debug): Ditto.
4627 * mips-tdep.c (mips_read_pc): Ditto.
4628 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4629 * gdb_mbuild.sh: Ditto.
4630 * gdbarch.sh: Ditto.
4631 * gdbarch.h: Ditto.
4632
c3e5cd34
PH
46332004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4634
8a2225b2
PH
4635 * ada-tasks.c: Remove file.
4636
c3e5cd34
PH
4637 Remove ARI problems:
4638
4639 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4640 beginning of line.
4641
4642 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4643 Add comment.
4644 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4645 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4646 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4647 (UMIN_OF_SIZE): Remove.
4648 (max_of_type): New function to replace orphan macro in gdbtypes.h
4649 (min_of_type): Ditto.
4650 (discrete_type_high_bound): Use max_of_type.
4651 (discrete_type_low_bound): Use min_of_type.
4652 (possible_user_operator_p): Move operator to beginning of line.
4653 (ada_is_variant_part): Ditto.
4654 (ensure_lval): Rewrite to avoid deprecated operations.
4655 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4656 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4657 (ada_enum_name): Remove assignments in 'if' statements.
4658 (build_ada_types): Add gdbarch parameter.
4659 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4660 with gdbarch_data_register_post_init.
4661 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4662 add_show_from_set.
4663
4664 * ada-valprint.c (inspect_it): Remove declaration.
4665 (repeat_count_threshold): Remove declaration.
4666 (ada_print_floating): Remove assignments in 'if' statements.
4667 (print_str): Move operator to beginning of line.
4668
61ce229a
JB
46692004-07-08 Jim Blandy <jimb@redhat.com>
4670
4671 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4672
09bcec80
BR
46732004-07-08 Bob Rossi <bob@brasko.net>
4674
4675 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4676
31c27f77
JJ
46772004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4678
4679 * language.h (struct_language_defn): Add new function pointer:
4680 la_class_name_from_physname. Also add new prototype for
4681 language_class_name_from_physname.
4682 * language.c (language_class_name_from_physname): New function.
4683 (unk_lang_class_name): Ditto.
4684 (unknown_language_defn, auto_language_defn): Change
4685 to add unk_lang_class_name function pointer for
4686 la_class_name_from_physname.
4687 (local_language_defn): Ditto.
4688 * dwarf2read.c (guess_structure_name): Change to call
4689 language_class_name_from_physname.
4690 (determine_class_name): Ditto.
4691 * cp-support.c (class_name_from_physname): Renamed.
4692 (cp_class_name_from_physname): New name of function.
4693 * cp-support.h: Ditto.
4694 * c-lang.c (c_language_defn): Change to add NULL
4695 for class_name_from_physname function pointer.
4696 (cplus_language_defn): Change to add cp_class_name_from_physname.
4697 * jv-lang.c (java_class_name_physname): New function.
4698 (java_find_last_component): New static routine.
4699 (java_language_defn): Add java_class_name_from_physname pointer.
4700 * ada-lang.c (ada_language_defn): Change to add NULL
4701 for class_name_from_physname function pointer.
4702 * f-lang.c (f_language_defn): Ditto.
4703 * m2-lang.c (m2_language_defn): Ditto.
4704 * objc-lang.c (objc_language_defn): Ditto.
4705 * p-lang.c (pascal_language_defn): Ditto.
4706 * scm-lang.c (scm_language_defn): Ditto.
4707
ee28ca0f
AC
47082004-07-06 Andrew Cagney <cagney@gnu.org>
4709
4710 Patch from Bart Robinson.
4711 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4712 (O_LARGEFILE): Define to 0, if not defined.
4713
fdb1bf9d
MK
47142004-07-03 Mark Kettenis <kettenis@gnu.org>
4715
cb162ff6
MK
4716 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4717 <machine/pcb.h> and "bsd-kvm.h".
4718 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4719 (m68kbsd_supply_pcb): New function.
4720 (_initialize_m68kbsd_nat): New prototype and function.
4721 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4722 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4723 (LOADLIBES): New variable.
4724 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4725 (LOADLIBES): New variable.
4726
fdb1bf9d
MK
4727 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4728
963c4174
MK
47292004-07-03 Mark Kettenis <kettenis@gnu.org>
4730
4731 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4732 <sys/proc.h>.
4733 (bsd_kvm_cmdlist): New variable.
4734 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4735 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4736 command and "kvm proc" command.
4737 * Makefile.in (bsd-kvm.o): Update dependencies.
4738
533f1d8f
MK
47392004-07-02 Mark Kettenis <kettenis@gnu.org>
4740
4741 * osabi.c: Update copyright year.
4742 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4743 notes if EI_OSABI is set to ELFOSABI_HPUX.
4744
6780dcde
MS
47452004-07-01 Michael Snyder <msnyder@redhat.com>
4746
4747 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4748 that seems to have gotten whacked out of line.
4749
67bebe79
MK
47502004-07-01 Mark Kettenis <kettenis@gnu.org>
4751
4752 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4753 code.
4754
0b5d8877
PH
47552004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4756
4757 * ada-lang.c (decode_packed_array): Minor change to comment.
4758 (ada_value_slice_ptr): New function.
4759 (ada_value_slice): New function.
4760 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4761 test. Don't know why it is there.
4762 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4763 to avoid dereferencing huge arrays from which one is slicing.
4764 (empty_array): Correct to return an array rather than
4765 a subrange value.
4766 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4767 on empty arrays (let'em use 'FIRST instead).
4768
19c1ef65
PH
47692004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4770
4771 Address complaints from gdb_ari.sh:
4772
4773 * ada-exp.y: Include gdb_string.h rather than string.h.
4774 (convert_char_literal): Reformat declaration.
4775 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4776 * ada-lex.l: Change use of free to xfree (the macro would do so
4777 anyway, but this is harmless).
4778 Include gdb_string.h rather than string.h.
4779 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4780
4781 * ada-lang.c (parse): Remove K&Rism in parameter list.
4782 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4783
d81cbc94
MK
47842004-06-30 Mark Kettenis <kettenis@gnu.org>
4785
4786 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4787 dead code.
4788
07681759
MK
47892004-06-30 Mark Kettenis <kettenis@gnu.org>
4790
4791 * alphabsd-nat.c: Update copyright year.
4792 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4793
f7948b5f
JB
47942004-06-29 Joel Brobecker <brobecker@gnat.com>
4795
6e0cdd28 4796 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4797 (i386_cygwin_in_solib_call_trampoline): New function.
4798 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4799 and skip_trampoline_code gdbarch methods.
4800
8f113c9a
JB
48012004-06-29 Jim Blandy <jimb@redhat.com>
4802
4803 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4804 name actually used in the dependency lists.
4805
97dc871c
RC
48062004-06-29 Randolph Chung <tausq@debian.org>
4807
4808 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4809
47216e51
CV
48102004-06-29 Corinna Vinschen <vinschen@redhat.com>
4811
4812 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4813 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4814 functionality.
4815
e623b504
AC
48162004-06-28 Andrew Cagney <cagney@gnu.org>
4817
4818 * defs.h (xstrvprintf): Declare.
4819 * utils.c (xstrvprintf): New function.
4820 (internal_vproblem, xstrprintf, xasprintf)
4821 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4822 * serial.c (serial_printf): Ditto.
4823 * complaints.c (vcomplaint): Ditto.
4824
79acc9b3
CV
48252004-06-29 Corinna Vinschen <vinschen@redhat.com>
4826
4827 * infcmd.c (attach_command): Move call to target_terminal_inferior
4828 behind loading symbol table.
4829
1daf35d9
AC
48302004-06-28 Andrew Cagney <cagney@gnu.org>
4831
4832 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4833 change - add back extern deprecated_ui_loop_hook declaration.
4834
b435e160
AC
48352004-06-28 Andrew Cagney <cagney@gnu.org>
4836
4837 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4838 xstrprintf.
4839 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4840 (c_value_of_variable): Ditto.
4841 * utils.c (internal_vproblem): Ditto.
4842 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4843 * remote.c (add_packet_config_cmd): Ditto.
4844 * remote-rdp.c (rdp_set_command_line): Ditto.
4845 * regcache.c (regcache_dump): Ditto.
4846 * frv-tdep.c (new_variant, new_variant): Ditto.
4847 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4848 (fbsd_find_memory_regions): Ditto.
4849 * breakpoint.c (create_thread_event_breakpoint)
4850 (create_breakpoints): Ditto.
4851 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4852 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4853
06d5cf63
JB
48542004-06-28 Joel Brobecker <brobecker@gnat.com>
4855
4856 * ada-lang.c: Re-indent file, with some massaging to help indent
4857 a bit when the result is otherwise really too ugly.
4858
35809fad
UW
48592004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4860
4861 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4862 code_addr_p and special_addr_p to 'unsigned int'.
4863
40e20472
MK
48642004-06-27 Mark Kettenis <kettenis@gnu.org>
4865
4866 * i386v4-nat.c: Update copyright year and tweak comment.
4867 (regmap): Remove trailing comma.
4868 (supply_gregset): Rename local variable i to regnum. Call
4869 regcache_raw_supply instead of supply_register.
4870 (fill_gregset): Rename argument regno to regnum. Call
4871 regcache_raw_collect instead of regcache_collect.
4872
12b0b6de
UW
48732004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4874
4875 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4876 and special_addr_p.
4877 (frame_id_build, frame_id_build_special): Update comments.
4878 (frame_id_build_wild): New prototype.
4879 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4880 struct frame_id fields.
4881 (frame_id_build_wild): New function.
4882 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4883
47b42a3e
MK
48842004-06-27 Mark Kettenis <kettenis@gnu.org>
4885
4886 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4887 hppabsd-tdep.c.
4888
1265e4aa
JB
48892004-06-27 Joel Brobecker <brobecker@gnat.com>
4890
4891 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4892
76a01679
JB
48932004-06-27 Joel Brobecker <brobecker@gnat.com>
4894
4895 * ada-lang.c: Re-indent file.
4896
7aca490a
JB
48972004-06-27 Joel Brobecker <brobecker@gnat.com>
4898
4899 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4900 (no_symtab_msg): Likewise.
4901
5e987968
AS
49022004-06-27 Andreas Schwab <schwab@suse.de>
4903
4904 * source.c: Fix whitespace.
4905
315c4276
MK
49062004-06-27 Mark Kettenis <kettenis@gnu.org>
4907
d15be926
MK
4908 * configure.in: Include <sys/param.h> for td_pcb test.
4909 * configure: Regenerated.
4910
9062529b
MK
4911 * i386nbsd-nat.c: New file.
4912 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4913 i386obsd-nat.c and i386obsd-tdep.c.
4914 (i386nbsd-nat.o): New dependency.
4915 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4916 bsd-kvm.o.
4917 (LOADLIBES): New variable.
4918 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4919 bsd-kvm.o.
4920 (LOADLIBES): New variable.
4921
8010310e
MK
4922 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4923 (LOADLIBES): New variable.
4924
efe1d7b9
MK
4925 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4926 fetching from BSD_KVM_PADDR. Correctly lookup address for
4927 "_thread0".
4928
315c4276
MK
4929 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4930 "bsd-kvm.h".
4931 (amd64fbsd_supply_pcb): New funcion.
4932 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4933
399cfac6
DL
49342004-06-27 <david@streamline-computing.com>
4935
4936 Partial fix for PR cli/1056.
4937 * valarith.c: Check for zero in division and remainder
4938 evaluation.
4939
6235f9c8
MK
49402004-06-27 Mark Kettenis <kettenis@gnu.org>
4941
4942 * i387-tdep.c: Remove excessive whitespace.
4943
2726dafc
AC
49442004-06-26 Andrew Cagney <cagney@gnu.org>
4945
4946 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4947 * gdb-events.h, gdb-events.c: Re-generate.
4948 * tui/tui-hooks.c (tui_install_hooks): Update.
4949 (tui_remove_hooks): Update.
4950 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4951
0e56aeaf
MK
49522004-06-26 Mark Kettenis <kettenis@gnu.org>
4953
cb461069
MK
4954 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4955 (gregset_t, fpregset_t): Remove typedefs.
4956 (REG_OFFSET): Rename argument.
4957 (amd64bsd_r_reg_offset): Rename from reg_offset.
4958 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4959 Remove functions.
4960 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4961 of reg_offset.
4962 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4963
ecba89de
MK
4964 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4965
4cd80476
MK
4966 * vax-tdep.c: Tweak comment.
4967
0e56aeaf
MK
4968 Add OpenBSD/hppa support.
4969 * NEWS (New native configurations): Mention OpenBSD/hppa.
4970 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4971 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4972 files.
4973 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4974 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4975 * configure.host: Add hppa*-*-openbsd*.
4976 * configure.tgt: Add hppa*-*-openbsd*.
4977
98bbd631
AC
49782004-06-25 Andrew Cagney <cagney@gnu.org>
4979
4980 * defs.h (deprecated_ui_loop_hook): Deprecated.
4981 * wince.c (child_wait): Update.
4982 * win32-nat.c (child_wait): Update.
4983 * v850ice.c (v850ice_wait): Update.
4984 * top.c (deprecated_ui_loop_hook): Update.
4985 * serial.h: Update.
4986 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4987 (do_unix_readchar): Update.
4988 * ser-tcp.c (net_open): Update.
4989 * remote-sim.c (gdb_os_poll_quit): Update.
4990 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4991
769d7dc4
AC
49922004-06-24 Andrew Cagney <cagney@gnu.org>
4993
4994 * defs.h (deprecated_pre_add_symbol_hook)
4995 (deprecated_post_add_symbol_hook): Deprecated.
4996 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4997 (symbol_file_add_with_addrs_or_offsets): Update references.
4998
11c949aa
AC
49992004-06-24 Andrew Cagney <cagney@gnu.org>
5000
5001 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5002 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5003 * wince.c (ui_loop_hook): Delete extern declaration.
5004 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5005 * v850ice.c (ui_loop_hook): Delete extern declaration..
5006 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5007 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5008 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5009 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5010 ui_loop_hook declaration.
5011
eedc19af
AC
50122004-06-24 Andrew Cagney <cagney@gnu.org>
5013
5014 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5015 entry_func_highpc fields.
5016 * objfiles.c (init_entry_point_info): Do not clear
5017 entry_func_lowpc and entry_func_highpc.
5018 (objfile_relocate): Do not relocate entry_func_lowpc and
5019 entry_func_highpc.
5020 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5021 entry_func_highpc.
5022 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5023 entry_func_highpc.
5024 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5025 entry_func_lowpc and entry_func_highpc with call to
5026 inside_entry_func.
5027
d47079be
MK
50282004-06-24 Mark Kettenis <kettenis@gnu.org>
5029
5030 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5031 quad-precision floating point arguments in registers.
5032
2107e348
MK
50332004-06-24 Mark Kettenis <kettenis@gnu.org>
5034
5035 From Michael Mueller <m.mueller99@kay-mueller.de>:
5036 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5037 account.
5038
46587c42
JJ
50392004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5040
5041 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5042 to -1.
5043 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5044 untriggered watchpoints to a separate if clause. Update function
5045 comment regarding STOPPED_BY_WATCHPOINT argument.
5046
226f5cf4
JB
50472004-06-22 Jim Blandy <jimb@redhat.com>
5048
5049 * gdbarch.sh: Doc fix.
5050
f10683bb
MH
50512004-06-21 Martin Hunt <hunt@redhat.com>
5052 Kevin Buettner <kevinb@redhat.com>
5053
5054 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5055 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5056 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5057 to set_gdbarch_sp_regnum(). Use cooked register number.
5058 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5059
412d5987
AC
50602004-06-21 Andrew Cagney <cagney@gnu.org>
5061
5062 * gdbarch.sh: When the macro field is empty, do not generate a
5063 macro definition. When the macro field is "=", generate the macro
5064 name from the upper-case function name.
5065 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5066 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5067 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5068 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5069 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5070 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5071 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5072 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5073 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5074 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5075 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5076 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5077 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5078 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5079 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5080 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5081 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5082 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5083 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5084 (DEPRECATED_USE_STRUCT_CONVENTION)
5085 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5086 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5087 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5088 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5089 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5090 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5091 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5092 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5093 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5094 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5095 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5096 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5097 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5098 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5099 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5100 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5101 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5102 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5103
68908a3e
AC
51042004-06-21 Andrew Cagney <cagney@gnu.org>
5105
48f7351b
AC
5106 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5107 macro name, and the function rather than macro value. Only wrap
5108 macro print statements in #ifdef. Move format logic to where it
5109 is needed.
5110 * gdbarch.c: Re-generate.
5111
283354d8
AC
5112 * gdbarch.sh (read): Delete "print_p" and "description", add
5113 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5114 Delete references to print_p.
5115 (TARGET_ARCHITECTURE): Delete print predicate.
5116 * gdbarch.c: Re-generate.
5117
68908a3e
AC
5118 * gdbarch.sh: Check that multi-arch methods do not provide a
5119 macro.
5120 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5121 (print_registers_info, print_float_info, print_vector_info)
5122 (adjust_breakpoint_address, remote_translate_xfer_address)
5123 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5124 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5125 name from the multi-arch definition.
5126
a2428dbe
AC
51272004-06-20 Andrew Cagney <cagney@gnu.org>
5128
5129 * gdbarch.sh: Sort by the function, instead of macro name.
5130 * gdbarch.c: Re-generate.
5131
750eb019
AC
51322004-06-20 Andrew Cagney <cagney@gnu.org>
5133
66d659b1
AC
5134 * gdbarch.sh: Use the function, instead of macro name in
5135 errors and the log file.
5136 (return_value): Remove stray ":" in spec.
5137
750eb019
AC
5138 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5139 * gdbarch.h, gdbarch.c: Re-generate.
5140 * Makefile.in (arch-utils.o): Update dependencies.
5141 * values.c (using_struct_return): Move code calling
5142 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5143 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5144 to legacy_return_value, simplify.
5145 * infcmd.c (print_return_value): Move code calling
5146 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5147 to legacy_return_value, simplify.
5148 * infcall.c (call_function_by_hand): Move code calling
5149 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5150 * arch-utils.c: Update copyright. Include "gdbcore.h".
5151 (legacy_return_value): New function.
5152 * arch-utils.h: Update copyright.
5153 (legacy_return_value): Declare.
5154
b5622e8d
AC
51552004-06-20 Andrew Cagney <cagney@gnu.org>
5156
5157 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5158 * gdbarch.h, gdbarch.c: Re-generate.
5159 * values.c (using_struct_return): Update call.
5160 * mcore-tdep.c: Update comment.
5161 * infcall.c (call_function_by_hand): Update comment.
5162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5163 * arch-utils.h (always_use_struct_convention): Update.
5164 * v850-tdep.c (v850_gdbarch_init): Update.
5165 * sh64-tdep.c (sh64_gdbarch_init): Update.
5166 * sh-tdep.c (sh_gdbarch_init): Update.
5167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5168 * mips-tdep.c (mips_gdbarch_init): Update.
5169 * mcore-tdep.c (mcore_gdbarch_init): Update.
5170 * m32r-tdep.c (m32r_gdbarch_init): Update.
5171 * ia64-tdep.c (ia64_gdbarch_init): Update.
5172 * h8300-tdep.c (h8300_gdbarch_init): Update.
5173 * frv-tdep.c (frv_gdbarch_init): Update.
5174 * cris-tdep.c (cris_gdbarch_init): Update.
5175 * arm-tdep.c (arm_gdbarch_init): Update.
5176 * alpha-tdep.c (alpha_gdbarch_init): Update.
5177
5191de37
MC
51782004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5179
5180 * PROBLEMS: Add more specific information, and a work-around,
5181 for PR gdb/1458.
5182
782263ab
AC
51832004-06-18 Andrew Cagney <cagney@gnu.org>
5184
5185 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5186 * gdbarch.h, gdbarch.c: Re-generate.
5187 * ada-lang.c (ada_finish_decode_line_1): Update.
5188 * infrun.c (handle_inferior_event): Update.
5189 * infcall.c (find_function_addr): Update.
5190 * linespec.c (minsym_found): Update.
5191 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5192 Update.
5193 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5194 * cli/cli-cmds.c (disassemble_command): Update.
5195 * vax-tdep.c (vax_gdbarch_init): Update.
5196
2f305df1
MK
51972004-06-18 Mark Kettenis <kettenis@gnu.org>
5198
5199 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5200
e5fe55f7
AC
52012004-06-17 Andrew Cagney <cagney@gnu.org>
5202
5203 GDB 6.1.1 released from the GDB 6.1 branch.
5204 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5205 * PROBLEMS: Ditto.
5206
473b7be6
DJ
52072004-06-16 Daniel Jacobowitz <dan@debian.org>
5208
5209 PR gdb/1658
5210 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5211 operation as a uleb128. Found by Michael Coulter.
5212
96d887e8
PH
52132004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5214
5215 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5216 make it non-static.
5217 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5218 to ada-lang.h; this is needed to be able to implement the kill command
5219 in multi-task mode.
5220 (task_ptid): Ditto.
5221 (task_entry): Ditto.
5222 (task_list): Ditto.
5223 (ada_build_task_list): Ditto.
5224
5225 * ada-lang.c: Conditionalize routines and data structures related
5226 to breakpoints, exceptions, completion, and symbol caching on
5227 GNAT_GDB, since these are not yet used in the submitted public sources.
5228 (ada_main_name): Editorial: Move definition out of exception-related
5229 code.
5230
31eef181
AC
52312004-06-15 Andrew Cagney <cagney@gnu.org>
5232
5233 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5234 deprecated_pc_in_call_dummy.
5235
2c500098
AM
52362004-06-15 Alan Modra <amodra@bigpond.net.au>
5237
5238 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5239 bfd_get_section_size_before_reloc or _raw_size.
5240 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5241 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5242 (dwarf2_read_section): Likewise.
5243 * elfread.c (elf_locate_sections): Likewise.
5244 * gcore.c (derive_heap_segment): Likewise.
5245 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5246 * remote-e7000.c (e7000_load): Likewise.
5247 * remote-m32r-sdi.c (m32r_load): Likewise.
5248 * remote-mips.c (mips_load_srec): Likewise.
5249 (pmon_load_fast): Likewise.
5250 * remote.c (compare_sections_command): Likewise.
5251 * symfile.c (add_section_size_callback): Likewise.
5252 (load_section_callback): Likewise.
5253 (pc_in_unmapped_range): Likewise.
5254 (pc_in_mapped_range): Likewise.
5255 (sections_overlap): Likewise.
5256 (list_overlays_command): Likewise.
5257 (simple_overlay_update_1): Likewise.
5258 (simple_overlay_update): Likewise.
5259 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5260 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5261
90f943f1
RC
52622004-06-14 Randolph Chung <tausq@debian.org>
5263
5264 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5265 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5266 static.
5267 (hppa_hpux_inferior_created): New function.
5268 (hppa_hpux_init_abi): Register observer.
5269 * symfile.c (hp_cxx_exception_support_initialized)
5270 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5271 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5272
700c15aa
RC
52732004-06-14 Randolph Chung <tausq@debian.org>
5274
3973a7d3
AC
5275 * MAINTAINERS (Write After Approval): Alphabetize my entry
5276 correctly.
700c15aa 5277
cea4838c
AC
52782004-06-14 Andrew Cagney <cagney@gnu.org>
5279
5280 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5281 testsuite maintainer.
5282
97092415
AC
52832004-06-13 Andrew Cagney <cagney@gnu.org>
5284
e8c3165b
AC
5285 * infcmd.c (print_return_value): Fix logic, allow
5286 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5287
bceabdd8
AC
5288 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5289 defining any macros.
5290 * gdbarch.h: Re-generate.
5291
57010b1c
AC
5292 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5293 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5294 * gdbarch.h: Re-generate.
5295
bc87dfa0
AC
5296 * values.c (generic_use_struct_convention): Don't check gcc_p.
5297
15ac804d
AC
5298 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5299 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5300 * gdbarch.h, gdbarch.c: Regenerate.
5301 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5302 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5304 deprecated_max_register_raw_size and
5305 deprecated_max_register_virtual_size.
5306 * v850-tdep.c (v850_gdbarch_init): Ditto.
5307 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5308 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5309 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5310 * cris-tdep.c (cris_gdbarch_init): Ditto.
5311
97092415
AC
5312 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5313 * gdbarch.h, gdbarch.c: Re-generate.
5314 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5315 (m68hc11_use_struct_convention): Delete function.
5316 (m68hc11_extract_struct_value_address): Delete function.
5317 (m68hc11_return_value): New function.
5318 (m68hc11_gdbarch_init): Instead of store_return_value,
5319 extract_return_value, return_value_on_stack,
5320 deprecated_extract_struct_value_address and use_struct_convention,
5321 set return_value.
5322 * values.c (using_struct_return): Do not call
5323 RETURN_VALUE_ON_STACK.
5324 * arch-utils.h (generic_return_value_on_stack_not): Delete
5325 declaration.
5326 * arch-utils.c (generic_return_value_on_stack_not): Delete
5327 function.
5328
44e5158b
AC
53292004-06-12 Andrew Cagney <cagney@gnu.org>
5330
5331 * values.c (register_value_being_returned): Delete function.
5332 * infcmd.c (legacy_return_value): Delete function.
5333 * infcall.c (call_function_by_hand): Inline
5334 "register_value_being_returned", simplify.
5335 * values.c (using_struct_return): Update comment, refer to
5336 print_return_value instead of register_value_being_returned.
5337 * infcmd.c (print_return_value): Inline calls to
5338 register_value_being_returned and legacy_return_value. Simplify.
5339
b887c273
RC
53402004-06-11 Randolph Chung <tausq@debian.org>
5341
5342 * somread.c (som_symtab_read): Exclude gcc local symbols.
5343
1b2bfbb9
RC
53442004-06-11 Randolph Chung <tausq@debian.org>
5345
3973a7d3
AC
5346 * infrun.c (handle_inferior_event): Handle the case when a
5347 trampoline ends up in the runtime resolver, and if the trampoline
5348 has no name. Rearrange the code so that all the trampoline
5349 processing happens before other step-out-of-range handling.
1b2bfbb9 5350
a9d61c86
MH
53512004-06-11 Martin Hunt <hunt@redhat.com>
5352
5353 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5354 has no fpu.
5355
2c87cf5a
AC
53562004-06-10 Andrew Cagney <cagney@gnu.org>
5357
5358 * blockframe.c (legacy_inside_entry_func): Delete.
5359 (legacy_frame_chain_valid): Inline call to
5360 legacy_inside_entry_func, simplify.
5361
0b67b468 53622004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5363
5364 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5365 * dwarf2read.c (partial_die_info): Add dirname field.
5366 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5367 (read_partial_die): Save away DW_AT_comp_dir.
5368 * defs.h (symtab_to_filename): Removed.
5369 * source.c (find_and_open_source): Added.
57c22c6c 5370 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5371 (symtab_to_filename): Removed.
5372 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5373 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5374 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5375 symtab_to_filename.
5376 * symtab.h (partial_symtab): Add dirname field.
5377 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5378 (mi_cmd_file_list_exec_source_file): Call new function
5379 symtab_to_fullname to find fullname.
57c22c6c 5380 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5381 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5382 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5383
9a1dd1ad
AC
53842004-06-10 Andrew Cagney <cagney@gnu.org>
5385
239ae8c7
AC
5386 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5387 to generic_use_struct_convention, the default value.
5388
fc720350
AC
5389 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5390 of abort.
5391
9a1dd1ad
AC
5392 * ns32k-tdep.c (ns32k_push_arguments): New function.
5393 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5394 * infcall.c (call_function_by_hand): Call error instead of
5395 legacy_push_arguments.
5396 * value.h (legacy_push_arguments): Delete declaration.
5397 * valops.c (legacy_push_arguments): Delete function.
5398 (value_push): Delete function.
5399
fea25152
BF
54002004-06-10 Brian Ford <ford@vss.fsi.com>
5401
5402 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5403 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5404 info.
5405 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5406
30a4a8e0
AC
54072004-06-10 Andrew Cagney <cagney@gnu.org>
5408
5409 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5410 * gdbarch.h, gdbarch.c: Re-generate.
5411 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5412 parameters.
5413 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5414 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5415 deprecated_pc_in_call_dummy instead of
5416 DEPRECATED_PC_IN_CALL_DUMMY.
5417 (arm_skip_prologue): Ditto.
5418 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5419 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5420 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5421 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5422 Ditto.
5423 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5424 (sh64_init_extra_frame_info, sh64_get_saved_register)
5425 (sh64_pop_frame): Ditto.
5426 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5427 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5428 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5429 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5430 (h8300_pop_frame): Ditto.
5431 * blockframe.c (legacy_inside_entry_func)
5432 (legacy_frame_chain_valid): Ditto.
5433 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5434 to deprecated_pc_in_call_dummy.
5435
81cfbe54
AC
54362004-06-09 Andrew Cagney <cagney@gnu.org>
5437
a1f4a1b6
AC
5438 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5439 provide a default value.
5440 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5441 * gdbarch.h, gdbarch.c: Re-generate.
5442 * arch-utils.c (generic_convert_register_p): Rename
5443 legacy_convert_register_p
5444 (legacy_register_to_value, legacy_value_to_register): Delete
5445 functions.
5446 * arch-utils.h (generic_convert_register_p): Rename
5447 legacy_convert_register_p.
5448 (legacy_register_to_value, legacy_value_to_register): Delete
5449 declarations.
5450
9730f241
AC
5451 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5452 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5453 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5454 * gdbarch.h, gdbarch.c: Re-generate.
5455 * infcmd.c (default_print_registers_info): Simplify.
5456 * findvar.c (value_of_register): Simplify.
5457 * mi/mi-main.c (get_register): Simplify.
5458 * arch-utils.c (legacy_convert_register_p): Always return 0.
5459 (legacy_register_to_value, legacy_value_to_register): Always call
5460 internal_error.
5461
8a1bf479
AC
5462 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5463 #ifdef CLEAR_INSN_CACHE code.
5464 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5465 Delete #ifdef CLEAR_DEFERRED_STORES code.
5466
4b38d6f1
AC
5467 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5468
2d62ecc7
AC
5469 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5470 copyright.
5471 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5472
be4f7469
AC
5473 * config/mips/mipsv4.mh: Delete file.
5474
81cfbe54
AC
5475 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5476 unreferenced macro.
5477 (hpread_adjust_stack_address): Delete declaration.
5478
d966f0cb
AC
54792004-06-08 Andrew Cagney <cagney@gnu.org>
5480
5481 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5482 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5483 PTRACE_ATTACH / PTRACE_DETACH available call error.
5484 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5485 * infttrace.c (update_thread_state_after_attach, attach, detach):
5486 Remove #ifdef wrappers.
5487 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5488 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5489 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5490 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5491 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5492 * config/nm-linux.h (ATTACH_DETACH): Delete.
5493 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5494 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5495 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5496 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5497 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5498
d91670b9
CV
54992004-06-08 Corinna Vinschen <vinschen@redhat.com>
5500
5501 * configure.in: Set $configdir to the right OS specific value.
5502 Use value when setting $tcldir and $tkdir.
5503 * configure: Regenerate.
5504
28ba0b33
PB
55052004-06-06 Paul Brook <paul@codesourcery.com>
5506
5507 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5508 records.
5509
f26caa11
PH
55102004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5511
5512 * ada-lang.c (lookup_symbol_in_language): New function to allow
5513 re-use of another language's symbol lookup code. (Placed here
5514 temporarily while Ada support is being integrated into the public
5515 tree).
5516 (restore_language): New auxiliary function for
5517 lookup_symbol_in_language.
5518 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5519 temporarily while Ada support is being integrated into the public
5520 tree).
5521
d560a54b
AO
55222004-06-08 Alexandre Oliva <aoliva@redhat.com>
5523
e75d110c
AO
5524 * Makefile.in (check//%): New.
5525
d560a54b
AO
5526 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5527 (mn10300_store_return_value): Rewrite.
5528 (mn10300_type_align): New.
5529 (mn10300_use_struct_convention): Rewrite.
5530 (mn10300_return_value): New, using all of the above.
5531 (mn10300_pop_frame_regular): Add saved_regs_size.
5532 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5533
a72fbdb7
AO
5534 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5535 regs if PC is on movm.
5536
01904826
JB
55372004-06-07 Jim Blandy <jimb@redhat.com>
5538
5539 Add native Linux support for the PowerPC E500.
5540 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5541 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5542 all architectures except the E500.
5543 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5544 #definitions.
5545 (struct gdb_evrregset_t): New type.
5546 (have_ptrace_getsetevrregs): New variable.
5547 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5548 fetch_spe_registers): New functions.
5549 (fetch_register): Call fetch_spe_register as appropriate.
5550 Assert that we're only passed raw register numbers.
5551 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5552 Don't fetch gprs if they're pseudoregisters.
5553 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5554 store_spe_registers): New functions.
5555 (store_register): Call store_spe_register as appropriate.
5556 Assert that we're only passed raw register numbers.
5557 (store_ppc_registers): Call store_spe_registers as appropriate.
5558 Don't store gprs if they're pseudoregisters.
5559
f90ef764
JJ
55602004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5561
5562 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5563 struct if one exists, even if we are dealing with a zombie thread.
5564
45b75230
AC
55652004-06-07 Andrew Cagney <cagney@gnu.org>
5566
5567 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5568 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5569 Rename PC_REQUIRES_RUN_BEFORE_USE.
5570 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5571 #ifdef.
5572
1658da49
RC
55732004-06-07 Randolph Chung <tausq@debian.org>
5574
5575 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5576 unwinding after sp has been saved to the stack but before the end
5577 of the prologue, and after the fp has been modified but before it has
5578 been saved to the stack.
5579 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5580 Remove superfluous definitions.
5581 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5582
9a727a3c
RC
55832004-06-07 Guy Martin <gmsoft@gentoo.org>
5584
5585 Committed by Randolph Chung.
5586 * hppa-linux-nat.c: Include the correct version of the header file
5587 depending on the kernel version.
5588
9e500012
RC
55892004-06-06 Randolph Chung <tausq@debian.org>
5590
5591 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5592 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5593
3388d7ff
RC
55942004-06-06 Randolph Chung <tausq@debian.org>
5595
5596 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5597 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5598 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5599 * hppa-tdep.c (hppa_symbol_address): New function definition.
5600 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5601
d49771ef
RC
56022004-06-06 Randolph Chung <tausq@debian.org>
5603
5604 * hppa-tdep.h (struct value): Forward declaration.
5605 (gdbarch_tdep): Define tdep find_global_pointer method.
5606 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5607 associated with the function we are trying to call, and write it
5608 to the gp register.
5609 (hppa32_convert_from_funct_ptr_addr): New function.
5610 (hppa_find_global_pointer): New function.
5611 (hppa_gdbarch_init): Set default find_global_pointer method; set
5612 convert_from_func_ptr_addr method.
5613 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5614 (hppa_linux_init_abi): Set find_global_pointer method.
5615 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5616
7d9b040b
RC
56172004-06-06 Randolph Chung <tausq@debian.org>
5618
5619 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5620 to struct value *function.
5621 * gdbarch.c: Regenerate.
5622 * gdbarch.h: Likewise.
5623 * infcall.c (call_function_by_hand): Pass entire function value
5624 to push_dummy_call.
5625
5626 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5627 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5628 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5629 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5630 * arm-tdep.c (arm_push_dummy_call): Likewise.
5631 * avr-tdep.c (avr_push_dummy_call): Likewise.
5632 * cris-tdep.c (cris_push_dummy_call): Likewise.
5633 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5634 * frv-tdep.c (frv_push_dummy_call): Likewise.
5635 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5636 * hppa-tdep.c (hppa32_push_dummy_call)
5637 (hppa64_push_dummy_call): Likewise.
5638 * i386-tdep.c (i386_push_dummy_call): Likewise.
5639 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5640 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5641 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5642 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5643 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5644 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5645 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5646 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5647 (ppc64_sysv_abi_push_dummy_call): Likewise.
5648 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5649 (ppc64_sysv_abi_push_dummy_call): Likewise.
5650 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5651 * s390-tdep.c (s390_push_dummy_call): Likewise.
5652 * sh-tdep.c (sh_push_dummy_call_fpu)
5653 (sh_push_dummy_call_nofpu): Likewise.
5654 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5655 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5656 * vax-tdep.c (vax_push_dummy_call): Likewise.
5657
4a19ea35
JB
56582004-06-04 Jim Blandy <jimb@redhat.com>
5659
8327ccee
JB
5660 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5661 gdbarch argument to register_size.
5662
a3c001ce
JB
5663 * rs6000-tdep.c (rs6000_store_return_value): Use
5664 regcache_cooked_write_part instead of
5665 deprecated_write_register_bytes.
5666 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5667 not gdbarch_deprecated_store_return_value.
5668
4a19ea35
JB
5669 * ppc-linux-nat.c (store_register, fetch_register): Remove
5670 incorrect assertions. Simplify and generalize handling of
5671 transfers whose sizes are not multiples of, or less than, sizeof
5672 (PTRACE_XFER_TYPE).
5673
b9b5d7ea
JJ
56742004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5675
5676 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5677 as a new thread event.
720c7d64 5678 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5679 zombie, return TD_THR_ZOMBIE.
720c7d64 5680 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5681 TD_THR_ZOMBIE, check if the thread is still on the thread list
5682 and return a -1 ptid if not found.
5683 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5684 change the status to TARGET_WAITKIND_SPURIOUS.
5685
c8a3b559
CV
56862004-06-03 Corinna Vinschen <vinschen@redhat.com>
5687
5688 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5689 double values in little endian mode.
5690
20605361
AC
56912004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5692
5693 Committed by Andrew Cagney.
5694 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5695 after last enum constant to avoid error from IBM C
5696 compiler.
5697
bc97b3ba
JB
56982004-06-02 Jim Blandy <jimb@redhat.com>
5699
5700 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5701 to 'message', and make it local to the lone block that uses it.
5702
1da28ab0
JB
5703 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5704
4c4b4cd2
PH
57052004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5706
8a2225b2
PH
5707 * ada-exp.y: Update copyright notice.
5708 Include block.h.
5709
5710 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5711 SPECIAL_VARIABLE and unify the treatment of these cases.
5712
5713 (write_attribute_call0): Remove.
5714 (write_attribute_call1): Remove.
5715 (write_attribute_calln): Remove.
5716 (save_qualifier): Add missing semicolon.
5717
5718 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5719 temporarily disabled to allow compilation with FSF head version.
5720
5721 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5722 use individual operators (OP_*) for all attributes.
5723 (exp syntax): Use write_int.
5724 Handle STRING literals with OP_STRING.
5725 (variable syntax): Add limit parameter to calls to
5726 write_object_renaming.
5727
5728 (temp_parse_space): New definition to hold entities that need
5729 only live until the next call to ada_parse.
5730 (string_to_operator): Rename fields of ada_opname_table entries.
5731
5732 (write_var_from_sym): Record block.
5733 (write_var_from_name): Minor reformatting.
5734 Make sure saved name is properly encoded in the case of multiple
5735 matches, and set its language to Ada.
5736 Update comment.
5737 Modify to indicate unresolved name as symbol in the UNRESOLVED
5738 namespace, allocated in temp_parse_space.
5739 (write_int): New function.
5740
5741 (write_object_renaming): Add max_depth parameter to limit
5742 chains of object renamings.
5743 Handle case where root of renaming expression is itself a renaming.
5744 Use temp_parse_space for temporary name buffer.
5745 Handle renamings to dereferenced pointers (___XEXA suffices).
5746
5747 (ada_parse, yyerror, string_to_operator,
5748 write_var_from_sym, write_var_from_name, write_attribute_call0,
5749 write_attribute_call1, write_attribute_calln,
5750 write_object_renaming): Protoize.
5751
5752 (_initialize_ada_exp): New function.
5753
5754 * ada-lang.c: Update copyright notice.
5755 General terminology change to conform to GNAT compiler usage:
5756 mangle => encode, demangle => decode
5757 Include gdb_obstack.h.
5758 Include gdb_regex.h
5759 Include frame.h
5760 Include hashtab.h
5761 Include completer.h
5762 Include gdb_stat.h
5763 Include block.h
5764 Include infcall.h
5765
5766 (ADA_RETAIN_DOTS): Make sure this is defined.
5767 (TRUNCATION_TOWARDS_ZERO): Define.
5768 (struct string_vector): Define.
5769 (unresolved_names): Remove definition.
5770 (xnew_string_vector): New function.
5771 (string_vector_append): New function.
5772 (extract_string): Make static.
5773 (ada_unqualified_name): New function.
5774 (add_angle_brackets): New function.
5775 (function_name_from_pc): New function.
5776 (place_on_stack): Rename to ensure_lval.
5777
5778 (ensure_lval): Renamed from place_on_stack.
5779 Make identity on lvals.
5780 Update comment.
5781 (is_nonfunction): New interface.
5782 Only symbols in LOC_CONST class can be enumerals.
5783 (fill_in_ada_prototype): Remove; now independent of language.
5784 (add_defn_to_vec): Add obstack and symtab arguments.
5785 Use obstack to hold collected definitions.
5786 (num_defns_collected): New function.
5787 (defns_collected): New function.
5788 (ada_resolve_subexp): Rename to resolve_subexp.
5789 (resolve_subexp): Renamed from ada_resolve_subexp.
5790 (ada_op_name): Return non-const result.
5791 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5792 other purposes.
5793
5794 (to_fixed_array_type): Add declaration.
5795 (coerce_unspec_val_to_type): Remove offset parameter.
5796 (find_sal_from_funcs_and_line): New interface.
5797 (find_line_in_linetable): Ditto.
5798
5799 (all_sals_for_line): Rename to ada_sals_for_line and make
5800 global.
5801 Add new parameter. When set, do not ask the user to choose the
5802 instance, but use the first one found instead.
5803 Use given line number in returned sals.
5804 Fix comment.
5805 Skip the prologue if funfirstline is set.
5806 Correct for memory leak when 0 lines found.
5807
5808 (value_pos_atr): Use pos_atr.
5809 (pos_atr): New function.
5810 (standard_lookup): Add block parameter.
5811
5812 (makeTimeStart): Remove declaration and uses.
5813 (makeTimeStop): Remove declaration and uses.
5814
5815 (ada_completer_word_break_characters): Allow for VMS.
5816 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5817 (raise_sym_name): New constant.
5818 (raise_unhandled_sym_name): New constant.
5819 (raise_assert_sym_name): New constant.
5820 (process_raise_exception_name): New constant.
5821 (longest_exception_template): New constant.
5822 (warning_limit): New variable to limit warnings during expression
5823 evaluation.
5824 (warnings_issued): New variable to keep track of warnings issued.
5825 (known_runtime_file_name_patterns): New constant.
5826 (known_auxiliary_function_name_patterns): New constant.
5827 (symbol_list_obstack): New variable.
5828
5829 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5830 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5831 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5832 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5833 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5834 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5835 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5836 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5837 and strcmp.
5838
5839 (ada_get_field_index): New function.
5840 (lim_warning): New function.
5841 (ada_translate_error_message): New function.
5842 (MAX_OF_SIZE): New function.
5843 (MIN_OF_SIZE): New function.
5844 (UMAX_OF_SIZE): New function.
5845 (UMIN_OF_SIZE): New function.
5846 (discrete_type_high_bound): New function.
5847 (discrete_type_low_bound): New function.
5848 (base_type): New function.
5849 (do_command): Remove.
5850
5851 (ada_update_initial_language): Use language_ada, not language_unknown.
5852 (ada_encode): Renamed from ada_mangle.
5853 Obey ADA_RETAIN_DOTS.
5854 (ada_decode): Renamed from ada_demangle.
5855 Update coding conventions.
5856 (decoded_names_store): New hash table.
5857 (ada_decode_symbol): New function.
5858 (ada_la_decode): New function.
5859
5860 (modify_general_field): Correct computations of offset and bit
5861 position.
5862 (desc_base_type): Handle ref types, too.
5863 (ada_is_direct_array_type): New function.
5864
5865 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5866 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5867 (ada_is_bogus_array_descriptor,ada_type_of_array,
5868 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5869 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5870 ada_is_array_descriptor_type.
5871
5872 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5873 (ada_is_packed_array_type): Handle pointers or
5874 references to packed arrays as well.
5875 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5876 (decode_packed_array_type): Search for the packed array type
5877 symbol in the currently selected block and associated
5878 superblocks too.
5879 Use lookup_symbol again.
5880
5881 (decode_packed_array): Handle pointers and references.
5882 Update call to coerce_unspec_val_to_type.
5883 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5884 (ada_value_primitive_packed_val): Improve comment.
5885
5886 (ada_index_type): Substitute int type for "undefined".
5887 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5888 ada_array_langth, ada_is_string_type): Use renamed
5889 ada_is_simple_array_type.
5890 (empty_array): New function.
5891
5892 (ada_resolve): Rename to resolve.
5893 (resolve): Make static.
5894 Call renamed resolve_subexp.
5895 Update comment.
5896 (ada_resolve_subexp): Rename to resolve_subexp.
5897 (resolve_subexp): Update comment.
5898 Decomment disabled code.
5899 Add LOC_COMPUTED* cases.
5900 Modify to use temporary struct symbols (marked as being in
5901 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5902 OP_UNRESOLVED_VALUE.
5903 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5904 Add OP_STRING case.
5905 Remove OP_ARRAY.
5906 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5907 Use new ada_lookup_symbol_list interface.
5908 Use new ada_resolve_function interface.
5909 Remove OP_TYPE case.
5910
5911 (ada_args_match): Idiot proof against null actuals.
5912 Use intermediate variables to clarify.
5913 (ada_resolve_function): Update comment and interface.
5914 (mangled_ordered_before): Rename to encoded_ordered_before and
5915 update comment.
5916 (sort_choices): Update comment and interface.
5917 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5918 (user_select_syms): New interface.
5919 Use new sort_choices interface.
5920 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5921 (possible_user_operator_p): Idiot-proof against null values.
5922 (ada_simple_renamed_entity): Don't make cleanup; rely on
5923 caller to free result string.
5924 Remove const from return type.
5925 (make_array_descriptor): Rename uses of place_on_stack to
5926 ensure_lval.
5927 Make sure that arrays are on stack.
5928
5929 (HASH_SIZE): Define.
5930 (struct cache_entry): Define.
5931 (cache_space): Define.
5932 (cache): Define.
5933 (clear_ada_sym_cache): New function.
5934 (find_entry): New function.
5935 (lookup_cached_symbol): New function.
5936 (defn_vector_size): Define.
5937 (cache_symbol): New function.
5938 (defn_symbols): Remove.
5939
5940 (standard_lookup): Use lookup_symbol_in_language to get effect of
5941 C lookup.
5942 Cache results.
5943
5944 (symbol_completion_match): New function.
5945 (symbol_completion_add): New function.
5946 (ada_make_symbol_completion_list): New function.
5947
5948 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5949 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5950 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5951 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5952
5953 (ada_lookup_simple_minsym): New function.
5954 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5955
5956 (add_symbols_from_enclosing_procs): New interface.
5957 Conditionalize more helpfully.
5958 Don't bother if program isn't running.
5959 Use new interface to get_frame_block.
5960 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5961
5962 (remove_extra_symbols): New interface.
5963 (xget_renaming_scope): New function.
5964 (is_package_name): New function.
5965 (renaming_is_visible): New function.
5966 (remove_out_of_scope_renamings): New function.
5967
5968 (ada_lookup_symbol_list): New interface.
5969 Properly reinitialize the symbol list obstack.
5970 Don't call add_symbols_from_enclosing_procs if we start from a
5971 static or global block.
5972 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5973 add_symbols_from_enclosing_procs.
5974 Add symtab data to cached entries.
5975 Handle symbols prefixed with
5976 "standard__" specially; strip prefix and don't look in local symbols.
5977 Do not include out of scope renaming symbols in list of
5978 symbols returned.
5979 Add const to block parameter.
5980 Move check for non-local, non-global symbols earlier.
5981 Remove timing stuff.
5982 (ada_lookup_symbol): New interface.
5983 Find symtab as well.
5984 (ada_lookup_symbol_nonlocal): New function.
5985
5986 (is_name_suffix): Enhance suffix detection to recognize
5987 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5988 (is_dot_digits_suffix): New function.
5989 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5990
5991 (ada_add_block_symbols): New interface. Use obstack to return results
5992 in a vector of struct ada_symbol_infos. Add symtab argument.
5993 Use new interface to add_defn_to_vec.
5994 Remove calls to fill_in_ada_prototype.
5995 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5996
5997 (ada_finish_decode_line_1): Add const qualification to local to fix
5998 warning.
5999 Start looking in static block for functions to avoid attempts
6000 to search frame chain for up-level variables.
6001 Adapt to new ada_sals_for_line interface.
6002 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6003 Handle quoting of the function name inside the spec string.
6004 Skip prologue when funfirstline is set and update the
6005 function documentation to that effect.
6006
6007 (debug_print_lines, debug_print_block, debug_print_blocks,
6008 debug_print_symtab): Remove.
6009
6010 (ada_main_name): New function.
6011 (ada_exception_breakpoint_type): New function.
6012 (is_known_support_routine): New function.
6013 (ada_find_printable_frame): Renamed from find_printable_frame and made
6014 global.
6015 Remove level parameter.
6016 Use new interface to select_frame.
6017
6018 (begin_command): Remove.
6019 (ada_adjust_exception_stop): New function.
6020 (ada_print_exception_stop): New function.
6021 (exception_name_from_cond): New function.
6022 (ada_report_exception_break): Replace disabled code with
6023 conditionalization on GNAT_GDB.
6024 Get the exception name from the condition string.
6025 Remove and move functionality into new functions
6026 ada_print_exception_breakpoint_task and
6027 ada_print_exception_breakpoint_nontask.
6028 (error_breakpoint_runtime_sym_not_found): New function.
6029 (is_runtime_sym_defined): New function.
6030 (ada_breakpoint_rewrite): Uncomment suppressed code.
6031 Use symbolic error-message and runtime-symbol names.
6032 Surround runtime symbol names in quotes.
6033 Allow non-specific breakpoints on exceptions and assertions before
6034 program starts.
6035
6036 (ada_is_tagged_type): Add parameter.
6037 (ada_is_tag_type): New function.
6038 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6039 (ada_variant_discrim_type): Ditto.
6040 (value_tag_from_contents_and_address): New function.
6041 (type_from_tag): New function.
6042 (struct tag_args): New structure used to communicate with
6043 ada_tag_name_1.
6044 (ada_tag_name_1): New function.
6045 (ada_tag_name): New function.
6046
6047 (ada_scan_number): Update comment.
6048 (find_struct_field): New function.
6049 (ada_search_struct_field): Make static.
6050 (ada_value_struct_elt): New version that returns references when
6051 given pointers or references to structs.
6052 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6053 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6054 interface.
6055 (ada_value_ind): Use new ada_to_fixed_value interface.
6056 (ada_coerce_ref): Ditto.
6057 (field_offset): Remove.
6058
6059 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6060 (ada_find_renaming_symbol): New function.
6061 (ada_prefer_type): Prefer named types over unnamed ones.
6062 (variant_field_index): New function.
6063 (contains_variant_part): Removed: subsumed by variant_field_index.
6064 (ada_template_to_fixed_record_type): New function, mostly from
6065 template_to_fixed_record_type.
6066 (template_to_fixed_record_type):
6067 Do not scan the type fields beyond the last one; prevents a
6068 potential SEGV.
6069 Handle case where variant field is listed BEFORE discriminant it
6070 depends on.
6071 Fix calculation of record length when bit length is
6072 not evenly divisible by char length.
6073 Move code to ada_template_to_fixed_record_type and call it.
6074
6075 (template_to_static_fixed_type): Revise comment.
6076 Modify to work on ordinary record types as well as templates,
6077 so as to handle fields that use ___XVE or ___XVU encodings.
6078 (to_record_with_fixed_variant_part): Fill out comment.
6079 Initialize C++ stuff in right type.
6080 Allow case where DVAL is null.
6081 Handle case where variant field is not last.
6082 Fix typo concerning record length.
6083 (to_fixed_record_type): Decomment disabled code.
6084 (to_fixed_record_type): Use variant_field_index instead of
6085 contains_variant_part.
6086 (to_fixed_variant_branch_type): Ditto.
6087 (to_fixed_array_type): Decomment disabled code.
6088 (ada_to_fixed_type): Convert tagged types to the specific type.
6089 Deactivate the size-check for array types in order to avoid
6090 some false size alarms.
6091 (to_static_fixed_type): Decomment disabled code.
6092 Modify to call template_to_static_fixed_type
6093 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6094 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6095 Remove valaddr argument, as it is never really used.
6096 (ada_to_fixed_value): Change interface to act on single struct value*
6097 operand.
6098 (adjust_pc_past_prologue): New function.
6099 (ada_attribute_name): Modify to take enum exp_opcode argument.
6100
6101 (ada_enum_name): Recognize new homonym-distinguishing convention.
6102 Adjust local variable's type to remove compiler warning.
6103 Fix a small problem in the part that unqualifies the enumeration name.
6104 (ada_value_binop): New function.
6105 (ada_value_equal): New function.
6106
6107 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6108 Don't give error message when not doing normal evaluation
6109 and a tagged type doesn't seem to contain a structure member.
6110 Give error message for packed arrays.
6111 For indexing arrays, handle pointers to packed arrays correctly.
6112 Handle case of 'first and 'last attributes of bare integral type
6113 without encoded subtype info.
6114 Remove some unnecessary casts.
6115 Fix uninitialized value of type in computing 'first, 'last, or 'length
6116 of array object.
6117 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6118 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6119 calls.
6120 Attributes are now exp_opcode values.
6121 Correct treatment of 'modulus.
6122 Better error message for taking 'length of wrong kind of type;
6123 improve comment.
6124 Change EVAL_NORMAL to noside for consistency.
6125 Use ada_value_binop for DIV, MOD, REM.
6126 Make special case out of array of length 0, since an argument
6127 of 0 upsets some platforms' malloc.
6128 Use OP_STRING instead of OP_ARRAY.
6129 For slice, add check that we have an array type before extracting
6130 a slice out of it. Avoids a SEGV.
6131 When evaluating an array slice, if the array type is a reference to
6132 an aligner type, then replace the aligner type by the actual type.
6133 Decomment disabled code.
6134 Remove some dead code.
6135 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6136 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6137 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6138 and UNOP_MBR to UNOP_IN_RANGE.
6139 If an array type has a parallel ___XVE type, then use it.
6140 Turn arrays into pointers for lvalue arrays.
6141 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6142 bounds error and handle 0-length slices.
6143 Use lim_warning.
6144 When selecting fields, apply ada_to_fixed_value (because the fields
6145 might have ___XVU or ___XVE encodings even if not dynamic.)
6146 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6147 (ada_is_system_address_type): New function.
6148
6149 (get_var_value): Use new interface to ada_lookup_symbol_list.
6150 (get_int_var_value): New interface.
6151 (to_fixed_range_type): Allow unknown bound, with warning.
6152 (ada_is_modular_type): Decomment disabled code.
6153 (ADA_OPERATORS): New definition.
6154 (ada_operator_length): New function.
6155 (ada_expr_op_name): New function.
6156 (ada_forward_operator_length): New function.
6157 (ada_dump_subexp_body): New function.
6158 (ada_print_subexp): New function.
6159 (ada_exp_descriptor): New constant.
6160 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6161 (ada_language_defn): Add ada_exp_descriptor entry.
6162 Change ada_parse => parse.
6163 Add post-parser entry.
6164 Use ada-specific non-local symbol lookup.
6165 Don't use C-style arrays.
6166 String lower-bound is 1.
6167 Decomment disabled code.
6168 (parse): New function.
6169 New fields ada_translate_error_message, ada_lookup_symbol,
6170 ada_lookup_minimal_symbol.
6171
6172 * ada-lang.h: Update copyright dates.
6173 Replace the mangle/demangle terminology throughout by the
6174 more appropriate encode/decode one.
6175 Include breakpoint.h.
6176 Forward declare struct partial_symbol, struct block.
6177 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6178 (EXTRACT_ADDRESS): Remove.
6179 (EXTRACT_INT): Remove.
6180 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6181 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6182 (MAX_RENAMING_CHAIN_LENGTH): Define.
6183 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6184
6185 (enum task_states): Remove.
6186 ada_task_states: Remove.
6187 (fat_string): Remove.
6188 (struct entry_call): Remove.
6189 (struct task_fields): Remove.
6190 (struct task_entry): Remove.
6191
6192 (struct ada_symbol_info): Define.
6193 (enum ada_attribute): Remove.
6194 (enum ada_operator): Define.
6195
6196 (ada_get_field_index): Declare.
6197 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6198 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6199 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6200 (ada_lookup_symbol_list): New interface.
6201 (ada_decode_symbol): Declare.
6202 (ada_decode): Declare.
6203 (ada_lookup_symbol): New interface.
6204 (ada_update_initial_language): Declare.
6205 (ada_lookup_simple_minsym): Declare.
6206 (user_select_syms): New interface.
6207 (ada_sals_for_line): Declare.
6208 (ada_is_tagged_type): New interface.
6209 (ada_tag_name): Declare.
6210 (ada_lookup_struct_elt_type): Remove declaration.
6211 (ada_search_struct_field): Remove declaration.
6212 (ada_attribute_name): New interface.
6213 (ada_is_system_address_type): Declare.
6214 (ada_to_fixed_value): Remove declaration.
6215 (ada_template_to_fixed_record_type_1): Declare.
6216 (get_int_var_value): New interface.
6217 (ada_find_any_symbol): Declare.
6218 (ada_find_renaming_symbol): Declare.
6219 (ada_mangle): Rename to ada_encode.
6220 (ada_simple_renamed_entity): Remove const.
6221 (ada_main_name): Declare.
6222 (get_current_task): Rename to ada_get_current_task.
6223 (get_entry_number): Remove declaration.
6224 (ada_report_exception_break): Remove declaration.
6225 (ada_print_exception_breakpoint_nontask): Declare.
6226 (ada_print_exception_breakpoint_task): Declare.
6227 (ada_find_printable_frame): Declare.
6228
6229 * ada-lex.l: Update copyright notices.
6230 Use xmalloc and xfree instead of malloc and free.
6231 Use new interface to name_lookup.
6232 Use new interface to
6233 ada_mangle=>ada_encode.
6234 Redo handling of '$...' variable to parallel current treatment
6235 in c-exp.y.
6236 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6237 digit_to_int, strtoulst, processInt, processReal, processId,
6238 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6239 yywrap): Protoize.
6240
6241 (processInt): Use cast to remove harmless warning.
6242 (processReal): Modify to get rid of compiler warning on scan formats.
6243
6244 (processId): Replace xmalloc with obstack_alloc for name and remove
6245 call to ada_name_string_cleanup.
6246 Remove obsolete disabled code.
6247 (name_lookup): Ditto.
6248 New interface.
6249 Use obsavestring on temp_parse_space instead of savestring
6250 on name, and remove call to ada_name_string_cleanup.
6251 Free string returned from ada_simple_renamed_entity.
6252 Use new interface to ada_lookup_symbol_list.
6253 Decomment disabled code.
6254 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6255 not types.
6256 When a type name lookup succeeds as a result of
6257 lookup_primitive_typename, check for regular type entry that has not
6258 yet been read in.
6259 Limit length of chain of renamed symbols we are willing to follow.
6260 Do not break names beginning with "standard__" into segments.
6261 (block_lookup): Use new interface to ada_lookup_symbol_list.
6262
6263 * ada-typeprint.c: Update copyright notice.
6264 (demangled_type_name): Rename to decoded_type_name.
6265 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6266 (print_range_bound): Correct handling of negative
6267 bounds that make the index type looked unsigned under STABS.
6268 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6269 (print_range_type_named): Use the builtin int type if no type
6270 corresponding to the given type name could be found.
6271 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6272 Add some bullet-proofing.
6273 (print_variant_clauses): Allow for variant branches with ___XVU
6274 encodings that are not dynamic fields.
6275 Use new interface to ada_is_tagged_type.
6276 (print_record_type): Allow for fields with ___XVE encodings that
6277 are not dynamic fields.
6278 Use new interface to ada_is_tagged_type.
6279 (ada_print_type): ada_is_array_descriptor =>
6280 ada_is_array_descriptor_type.
6281
6282 * ada-valprint.c: Update copyright notice.
6283 Include gdb_string.h
6284 Include infcall.h
6285 (ui_memcpy): New function.
6286 (ada_print_floating): New function.
6287 (ada_print_str): Order arguments correctly.
6288 Correct handling of empty arrays and arrays of 0-length items.
6289 ada_is_array_descriptor => ada_is_array_descriptor_type
6290 Print values of type System.Address in hexadecimal format.
6291 Use ada_print_floating to print floating-point numbers in Ada format.
6292 Print class tag values with type names.
6293 No longer print the address of reference values. Avoids
6294 a potential confusion.
6295 (ada_value_print): Stop printing the object type for reference
6296 values, but preserve that behavior for access types. Avoids
6297 a potential confusion.
6298 Simplify one conditional expression, as the first part is now
6299 necessarily true.
6300 ada_is_array_descriptor => ada_is_array_descriptor_type
6301 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6302
f65f91b5
JB
63032004-06-01 Jim Blandy <jimb@redhat.com>
6304
6305 * ppc-tdep.h: Delete unused 'regoff' member.
6306 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6307
d4687fa0
MC
63082004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6309
6310 Fix PR symtab/1661.
6311 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6312 (hpread_read_struct_type): Likewise.
6313
de169ec9
AC
63142004-06-01 Andrew Cagney <cagney@gnu.org>
6315
c6902d46
AC
6316 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6317 instead of xasprintf.
6318 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6319 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6320 (mi_cmd_data_list_register_names)
6321 (mi_cmd_data_list_changed_registers)
6322 (mi_cmd_data_list_register_values)
6323 (get_register, mi_cmd_data_write_register_values)
6324 (mi_cmd_data_write_register_values)
6325 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6326 (mi_cmd_target_download, mi_cmd_target_select)
6327 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6328 (mi_execute_cli_command, mi_execute_async_cli_command)
6329 (mi_execute_async_cli_command): Ditto.
6330 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6331 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6332
6085fc2d
AC
6333 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6334 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6335 error_last_message instead of mi_error_last_message.
6336 * mi/mi-main.c (mi_error_last_message): Delete function.
6337
de169ec9
AC
6338 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6339 "invalid number of columns" error. Delete redundant "out of
6340 memory" check.
6341
1fc7d519
MK
63422004-05-31 Mark Kettenis <kettenis@gnu.org>
6343
6cfb2041
MK
6344 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6345 (gregset_t, fpregset_t): Remove typedefs.
6346 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6347 (REG_OFFSET): Rename argument.
6348 (i386bsd_r_reg_offset): Rename from reg_offset.
6349 (REG_ADDR): Remove macro.
6350 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6351 functions.
6352 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6353 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6354 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6355 instead of supply_gregset.
6356 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6357 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6358 instead of fill_gregset.
6359 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6360
1fc7d519
MK
6361 * i386bsd-nat.c: Don't include "gregset.h".
6362 (supply_gregset, fill_gregset): Make static.
6363 (supply_fpregset, fill_fpregset): Remove.
6364 * Makefile.in (i386bsd-nat.o): Update dependencies.
6365
2c34abbe
MK
63662004-05-30 Mark Kettenis <kettenis@gnu.org>
6367
448724fb
MK
6368 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6369 "gdb_assert.h". Con't include "gregset.h".
6370 (fbsd_make_corefile_notes): Use regset-based core file support
6371 instead off fill_gregset and fill_fpregset.
6372 * Makefile.in (fbsd-proc.o): Update dependencies.
6373
5ca8ca7c
MK
6374 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6375 instructions.
6376 (m88k_frame_prev_register): Simplify code a bit.
6377
593adc23
MK
6378 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6379 (amd64_collect_fpregset): New function.
6380 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6381
8d1b517b
MK
6382 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6383
7fdafb5a
MK
6384 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6385 (i386_collect_gregset): New function.
6386 (i386_supply_fpregset): Adjust comment.
6387 (i386_collect_fpregset): New function.
6388 (i386_regset_from_core_section): Use i386_collect_gregset and
6389 i386_collect_fpregset.
6390
8693c419
MK
6391 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6392 handle VALUEP being null.
6393
2c34abbe
MK
6394 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6395
45d134d8
MK
63962004-05-29 Mark Kettenis <kettenis@gnu.org>
6397
1698f4e7
MK
6398 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6399
45d134d8
MK
6400 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6401 assembler in OpenBSD 3.5-current.
6402 (amd64obsd_sigcontext_addr): Likewise.
6403
691d145a
JB
64042004-05-28 Jim Blandy <jimb@redhat.com>
6405
6406 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6407 register set, so our regcache isn't declared "legacy" and our E500
6408 pseudoregister read and write functions aren't ignored.
6409 (rs6000_register_byte, rs6000_register_raw_size,
6410 rs6000_register_virtual_type, rs6000_register_convertible,
6411 rs6000_register_convert_to_virtual,
6412 rs6000_register_convert_to_raw): Deleted.
6413 (rs6000_register_type, rs6000_convert_register_p,
6414 rs6000_register_to_value, rs6000_value_to_register): New
6415 functions.
6416 (rs6000_gdbarch_init): Don't register
6417 gdbarch_deprecated_register_size,
6418 gdbarch_deprecated_register_bytes,
6419 gdbarch_deprecated_register_byte,
6420 gdbarch_deprecated_register_raw_size,
6421 gdbarch_deprecated_register_virtual_type,
6422 gdbarch_deprecated_register_convertible,
6423 gdbarch_deprecated_register_convert_to_virtual, or
6424 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6425 register gdbarch_register_type, gdbarch_convert_register_p,
6426 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6427
18ed0c4e
JB
64282004-05-26 Jim Blandy <jimb@redhat.com>
6429
6430 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6431 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6432 functions, updated to match the register numberings used in GCC.
6433 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6434 rs6000_dwarf2_reg_to_regnum as register number conversions
6435 functions for STABS and Dwarf2.
6436
779af9e3
RC
64372004-05-26 Randolph Chung <tausq@debian.org>
6438
6439 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6440 in header file.
6441
c23968a2
JB
64422004-05-25 Joel Brobecker <brobecker@gnat.com>
6443
6444 * NEWS: Document new "start" command.
6445
3a7d1c27
RC
64462004-05-25 Randolph Chung <tausq@debian.org>
6447
6448 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6449 hppa-linux.
6450
43613416
RC
64512004-05-25 Randolph Chung <tausq@debian.org>
6452
6453 * hppa-hpux-tdep.c (offsetof): Define.
6454 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6455 (hppa32_hpux_frame_base_before_sigtramp)
6456 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6457 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6458 (hppa64_hpux_frame_base_before_sigtramp)
6459 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6460 functions.
6461 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6462 (hppa_hpux_sigtramp_frame_unwind_cache)
6463 (hppa_hpux_sigtramp_frame_this_id)
6464 (hppa_hpux_sigtramp_frame_prev_register)
6465 (hppa_hpux_sigtramp_frame_unwind)
6466 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6467 (hppa_hpux_init_abi): Register sigtramp unwinder.
6468 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6469
6d1be3f1
RC
64702004-05-25 Randolph Chung <tausq@debian.org>
6471
6472 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6473 and multiple stack unwinds.
6474 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6475
97c34f65
AC
64762004-05-25 Andrew Cagney <cagney@gnu.org>
6477
6478 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6479 * symfile-mem.h: Delete file.
6480 * symfile-mem.c: Do not include "symfile-mem.h".
6481 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6482 "struct bfd_section". When an error do not bother returning NULL.
6483 (add_symbol_file_from_memory_command): Use "struct bfd" and
6484 "struct bfd_section".
6485 * Makefile.in (symfile_mem_h): Delete.
6486 (symfile-mem.o): Update dependencies.
6487
e23cbd82
NR
64882004-05-25 Nick Roberts <nickrob@gnu.org>
6489
6490 * gdb-mi.el: New file.
6491
20d2ca3e
AC
64922004-05-25 Andrew Cagney <cagney@gnu.org>
6493
6494 * inftarg.c: Include "observer.h".
6495 (child_attach, child_create_inferior): Notify inferior_created.
6496 * corelow.c: Include "observer.h".
6497 (core_open): Notify inferior_created.
6498 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6499
c27cda74
AC
65002004-05-25 Andrew Cagney <cagney@gnu.org>
6501
6502 * target.h (struct target_ops): Add from_tty to
6503 to_create_inferior.
6504 (target_create_inferior, find_default_create_inferior): Update.
6505 * infcmd.c (run_command): Update.
6506 * wince.c (child_create_inferior): Update.
6507 * win32-nat.c (child_create_inferior): Update.
6508 * uw-thread.c (uw_thread_create_inferior): Update.
6509 * thread-db.c (thread_db_create_inferior): Update.
6510 * target.c (debug_to_create_inferior)
6511 (find_default_create_inferior): Update.
6512 (maybe_kill_then_create_inferior): Update.
6513 * sol-thread.c (sol_thread_create_inferior): Update.
6514 * remote.c (extended_remote_async_create_inferior)
6515 (extended_remote_create_inferior): Update.
6516 * remote-vx.c (vx_create_inferior): Update.
6517 * remote-st.c (st2000_create_inferior): Update.
6518 * remote-sim.c (gdbsim_create_inferior): Update.
6519 * remote-sds.c (sds_create_inferior): Update.
6520 * remote-rdp.c (remote_rdp_create_inferior): Update.
6521 * remote-rdi.c (arm_rdi_create_inferior): Update.
6522 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6523 * remote-e7000.c (e7000_create_inferior): Update.
6524 * procfs.c (procfs_create_inferior): Update.
6525 * ocd.c (ocd_create_inferior): Update.
6526 * ocd.h (ocd_create_inferior): Update.
6527 * nto-procfs.c (procfs_create_inferior): Update.
6528 * monitor.c (monitor_create_inferior): Update.
6529 * lin-lwp.c (lin_lwp_create_inferior): Update.
6530 * inftarg.c (child_create_inferior): Update.
6531 * hpux-thread.c (hpux_thread_create_inferior): Update.
6532 * gnu-nat.c (gnu_create_inferior): Update.
6533
1db2a798
AC
65342004-05-25 Andrew Cagney <cagney@gnu.com>
6535
6536 * MAINTAINERS: Update e-mail address.
6537
007d08bb
RC
65382004-05-24 Randolph Chung <tausq@debian.org>
6539
6540 * thread.c (info_threads_command, thread_apply_all_command)
6541 (thread_apply_command, thread_command, do_captured_thread_select):
6542 Remove HPUXHPPA-specific code.
6543
69e7b95e
RC
65442004-05-24 Randolph Chung <tausq@debian.org>
6545
6546 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6547 unused symbols.
6548 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6549 references.
6550
a4d5f2e0
JB
65512004-05-24 Joel Brobecker <brobecker@gnat.com>
6552
6553 * infcmd.c (kill_if_already_running): New function, extracted
6554 from run_command().
6555 (run_command): Replace extracted code by call to
6556 kill_if_already_running().
6557 (start_command): New function.
6558 (_initialize_infcmd): Add "start" command.
6559
bf2ca189
MK
65602004-05-24 Mark Kettenis <kettenis@gnu.org>
6561
6562 Add OpenBSD/m88k support.
6563 * NEWS (New native configurations): Mention OpenBSD/m88k.
6564 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6565 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6566 * Makefile.in (m88k_tdep_h): New variable.
6567 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6568 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6569 * configure.host: Add m88*-*-openbsd*.
6570 * configure.tgt: Add m88*-*-openbsd*.
6571
80fadb11
JB
65722004-05-24 Jim Blandy <jimb@redhat.com>
6573
6574 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6575 to approve changes.
6576
19e2d14b
KB
65772004-05-24 Kevin Buettner <kevinb@redhat.com>
6578
6579 * symtab.c (fixup_section): Search section table when lookup by
6580 name fails.
6581
1b07b470
RC
65822004-05-24 Randolph Chung <tausq@debian.org>
6583
6584 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6585 be "small_struct".
6586
368702b1
MK
65872004-05-24 Mark Kettenis <kettenis@gnu.org>
6588
5df97fde
MK
6589 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6590 register number in regcache_raw_collect call.
6591 (m68kbsd_collect_fpregset): Likewise.
6592 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6593
368702b1
MK
6594 * regset.h (struct regset): Add back `regset' member.
6595
a770d4ec
MK
65962004-05-23 Mark Kettenis <kettenis@gnu.org>
6597
70f9f479
MK
6598 * configure.in: Check for td_pcb in `struct thread'.
6599 * configure, config.in: Regenerated.
6600
2e16d79e
MK
6601 * dpx2-nat.c: Remove file.
6602 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6603 (dpx2-nat.o): Remove dependencies.
6604
492cf391
MK
6605 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6606 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6607 (amd64obsd_supply_pcb): New function.
6608 (_initialize_amd64obsd_nat): Enable libkvm interface.
6609 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6610 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6611 (LOADLIBES): New variable.
6612
a770d4ec
MK
6613 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6614 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6615 (sparc32nbsd_supply_pcb): New function.
6616 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6617 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6618 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6619 (LOADLIBES): New variable.
6620
9ea75c57
MK
66212004-05-22 Mark Kettenis <kettenis@gnu.org>
6622
2e0c3539
MK
6623 * bsd-kvm.c, bsd-kvm.h: New files.
6624 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6625 "bsd-kvm.h".
6626 (i386fbsd_supply_pcb): New function.
6627 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6628 (i386fbsd-nat.o): Update dependencies.
6629 (bsd_kvm_h): New variable.
6630 (bsd-kvm.o): New dependency.
6631 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6632 (LOADLIBES): New variable.
6633
9ea75c57
MK
6634 * regset.c: Tweak comment.
6635 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6636 macro.
6637 * regset.h: Update copyright year.
6638 (struct regset): Remove `descr' member, add `gdbarch' member.
6639 (regset_alloc): Adjust prototype and comment.
6640 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6641 (i386_supply_fpregset): Likewise.
6642 (i386_regset_from_core_section): Update call to regset_alloc.
6643 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6644 REGSET->arch.
6645 (i386obsd_aout_regset_from_core_section): Update call to
6646 regset_alloc.
6647 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6648 REGSET->arch.
6649 (i386nbsd_aout_regset_from_core_section): Update call to
6650 regset_alloc.
6651 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6652 REGSET->arch.
6653 (amd64_regset_from_core_section): Update call to regset_alloc.
6654 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6655 REGSET->arch.
6656 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6657 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6658 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6659 (sparc32nbsd_init_abi): Update call to regset_alloc.
6660 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6661 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6662 (sparc64obsd_init_abi): Update call to regset_alloc.
6663 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6664 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6665 (sparc64nbsd_init_abi): Update call to regset_alloc.
6666 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6667 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6668 (sparc64fbsd_init_abi): Update call to regset_alloc.
6669
867e2dc5
JB
66702004-05-22 Jim Blandy <jimb@redhat.com>
6671
6672 * ppc-tdep.h (spe_register_p): New declaration.
6673 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6674 ppc_spefscr_regnum.
6675 * rs6000-tdep.c (spe_register_p): New function.
6676 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6677 spefscr.
6678 (rs6000_gdbarch_init): Initialize the new members of the tdep
6679 structure.
6680
617a4cba
JB
66812004-05-21 Jim Blandy <jimb@redhat.com>
6682
0397dee1
JB
6683 * ppc-linux-nat.c (fetch_register): Move code back to be next
6684 to the comment that describes it. (Moved code, instead of
6685 comment, for symmetry with store_register.)
6686
617a4cba
JB
6687 Allocate regset structures in the gdbarch's obstack, not using
6688 xmalloc.
6689 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6690 Add 'arch' argument. Allocate the regset on arch's obstack, not
6691 using xmalloc.
6692 * regset.h (regset_alloc): Update declaration.
6693 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6694 gdbarch argument.
6695 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6696 * i386-tdep.c (i386_regset_from_core_section): Same.
6697 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6698 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6699 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6700 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6701 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6702 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6703
9aa3914d
JB
67042004-05-21 Joel Brobecker <brobecker@gnat.com>
6705
6706 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6707
99c87dab
JB
67082004-05-21 Jim Blandy <jimb@redhat.com>
6709
6710 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6711 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6712
c2b6b4aa
JB
67132004-05-20 Jim Blandy <jimb@redhat.com>
6714
6715 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6716
144529d0
MK
67172004-05-20 Mark Kettenis <kettenis@gnu.org>
6718
6719 * regset.h: Make prototype const-correct.
6720 * regset.c (regset_xmalloc): Make const-correct.
6721
4725b721
PH
67222004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6723
6724 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6725 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6726 (symbol_search_name): Declare.
6727
6728 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6729 (iter_name_next_hashed): Ditto.
6730 (iter_name_next_linear): Ditto.
6731 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6732
6733 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6734 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6735 (symbol_search_name): New function.
6736
6737 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6738
6739 * minsyms.c (build_minimal_symbol_hash_tables): Change
6740 test for adding to demangled hash table to check for difference
6741 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6742
be07a590
JB
67432004-05-19 Jim Blandy <jimb@redhat.com>
6744
6745 Use a constructor function to create regset structures.
6746 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6747 (struct regset): Use supply_regset_ftype. Add new
6748 'collect_regset' member.
6749 (regset_xmalloc): New declaration.
6750 * regset.c: New file.
6751 * am64-tdep.c (amd64_regset_from_core_section): Use
6752 regset_xmalloc to construct regset structures.
6753 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6754 * i386-tdep.c (i386_regset_from_core_section): Same.
6755 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6756 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6757 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6758 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6759 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6760 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6761 * Makefile.in (COMMON_OBS): Add regset.o.
6762 (regset.o): New rule.
6763
604368f5
JB
67642004-05-19 Joel Brobecker <brobecker@gnat.com>
6765
6766 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6767 and pthread_cond_wait.c.
6768
82d69f8b
JB
67692004-05-18 Jim Blandy <jimb@redhat.com>
6770
6771 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6772 before the mach-specific switch, and then let the individual cases
6773 override the defaults, rather than leaving them uninitialized
6774 until the switch and then setting them in each case.
6775
5859efe5
RC
67762004-05-18 Randolph Chung <tausq@debian.org>
6777
6778 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6779 millicode functions.
6780
9ca80cf8
RC
67812004-05-18 Randolph Chung <tausq@debian.org>
6782
6783 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6784 references to dld_flags_buffer consistent.
6785
ed70ba00
RC
67862004-05-18 Randolph Chung <tausq@debian.org>
6787
6788 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6789 it for unwinding the stack.
6790
63100632
RC
67912004-05-18 Randolph Chung <tausq@debian.org>
6792
6793 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6794 Undefine these so we can overide them using gdbarch.
6795
090ccbb7
RC
67962004-05-18 Randolph Chung <tausq@debian.org>
6797
6798 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6799 handling for 64-bit HPUX (elf).
6800
594706e6
DJ
68012004-05-18 Daniel Jacobowitz <dan@debian.org>
6802
6803 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6804 constants.
6805 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6806 * ia64-tdep.c (examine_prologue): Likewise.
6807 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6808 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6809
e5483145
MK
68102004-05-18 Mark Kettenis <kettenis@gnu.org>
6811
6812 * vax-tdep.c (vax_return_value): Implement
6813 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6814
caed1a45
MK
68152004-05-17 Mark Kettenis <kettenis@gnu.org>
6816
6817 * vax-tdep.c (vax_return_value): Fix typo.
6818
3c0b7db2
AC
68192004-05-17 Andrew Cagney <cagney@redhat.com>
6820
5aae53e5
AC
6821 * MAINTAINERS: Mark Salter was also responsible for
6822 testsuite/config/
6823
3c0b7db2
AC
6824 * NEWS: Mention signal fixes.
6825
22b0923d
RC
68262004-05-17 Randolph Chung <tausq@debian.org>
6827
6828 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6829 check to see if we are unwinding an export stub. Export stubs clobber
6830 the %rp in the call path and stores the original rp in a stack slot.
6831
22f2b2f3
JB
68322004-05-17 Jim Blandy <jimb@redhat.com>
6833
6834 * MAINTAINERS: Update address for J.T. Conklin.
6835
cea96d64
RC
68362004-05-17 Randolph Chung <tausq@debian.org>
6837
6838 * hppa-tdep.c: Remove superfluous #include's.
6839 * Makefile.in (hppa-tdep.o): Update dependencies.
6840
f08f6a4a
RC
68412004-05-17 Randolph Chung <tausq@debian.org>
6842
6843 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6844 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6845 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6846 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6847 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6848 Remove static function declarations.
6849
51da707a
MK
68502004-05-17 Mark Kettenis <kettenis@gnu.org>
6851
caed1a45
MK
6852 * alphabsd-nat.c: Update copyright year.
6853 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6854
c0c2b0db
MK
6855 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6856 and M68K_A2_REGNUM.
6857
51da707a
MK
6858 * m68k-tdep.c (m68k_svr4_return_value): Implement
6859 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6860
8d027a04
MK
68612004-05-16 Mark Kettenis <kettenis@gnu.org>
6862
6863 * sol-thread.c Update copyright year. Fix various coding
6864 standards violations. Tweak a few comments.
6865 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6866 Delete prototypes.
6867
0d99fdb9
RC
68682004-05-15 Randolph Chung <tausq@debian.org>
6869
6870 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6871 as pointer instead of array reference since HPUX compiler does
6872 not accept unsized array arguments.
6873 * somsolib.c (dld_flags_buffer): Use constant array size.
6874
f7e3843a
MK
68752004-05-15 Mark Kettenis <kettenis@gnu.org>
6876
0fe85704
MK
6877 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6878 offset with decimal offset.
6879 (amd64obsd_sigcontext_addr): Return correct address for entire
6880 signal trampoline.
6881
a54f9a00
MK
6882 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6883 instead of get_frame_base.
6884
feae6502
MK
6885 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6886 (fill_gregset): Use regcache_raw_collect.
6887
0382d099
MK
6888 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6889 ppcobsd-tdep.c.
6890
f7e3843a
MK
6891 * config/sparc/tm-nbsd64.h: Remove file.
6892 * config/tm-sunos.h: Remove file.
6893
773df3e5
JB
68942004-05-15 Joel Brobecker <brobecker@gnat.com>
6895
6896 * rs6000-tdep.c (store_param_on_stack_p): New function,
6897 an improved version of some code extracted from skip_prologue().
6898 (skip_prologue): Use store_param_on_stack_p() to detect
6899 instructions saving a parameter on the stack. Detect when r0
6900 is used to save a parameter.
6901 Do not mark "li rx, SIMM" instructions as part of the prologue,
6902 unless the following instruction is also part of the prologue.
6903
95918acb
AC
69042004-05-14 Andrew Cagney <cagney@redhat.com>
6905
06f32659
AC
6906 * infrun.c (handle_inferior_event): Simplify
6907 STEP_OVER_UNDEBUGGABLE.
6908
95918acb
AC
6909 * infrun.c (handle_step_into_function): Delete function.
6910 (handle_inferior_event): Inline calls to
6911 handle_step_into_function.
6912
40711ff1 69132004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6914
6915 * rs6000-nat.c: Fix a comment.
6916
02f60eae
JB
69172004-05-12 David Anderson <davea@sgi.com>
6918
6919 Committed by Jim Blandy <jimb@redhat.com>:
6920 * regcache.c (struct regcache_descr): fix comment spelling.
6921
552e377b
JB
69222004-05-13 J. Brobecker <brobecker@gnat.com>
6923
6924 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6925 Fixes a link link failure.
6926
349766b2
JB
69272004-05-13 J. Brobecker <brobecker@gnat.com>
6928
6929 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6930 error that was causing the build to fail.
6931
0d4d5484
JB
69322004-05-13 J. Brobecker <brobecker@gnat.com>
6933
6934 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6935 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6936
0b30808c
AC
69372004-05-13 Andrew Cagney <cagney@redhat.com>
6938
6939 * infrun.c (handle_inferior_event): Check for
6940 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6941 calls. Update comments.
6942
cdf2c5f5
JB
69432004-05-13 Jim Blandy <jimb@redhat.com>
6944
063715bf
JB
6945 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6946 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6947 (store_regs_user_thread, store_regs_kernel_thread): Use
6948 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6949 * ppc-linux-nat.c (fill_gregset): Same.
6950 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6951 (ppc_linux_sigtramp_cache): Same.
6952 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6953 (ppcnbsd_sigtramp_cache_init): Same.
6954 * rs6000-nat.c (fetch_core_registers): Same.
6955 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6956 (rs6000_frame_cache): Same.
6957
cdf2c5f5
JB
6958 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6959 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6960 of assuming that the gprs are numbered starting with zero.
6961 * ppc-linux-nat.c (fill_gregset): Same.
6962 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6963 * ppcnbsd-nat.c (getregs_supplies): Same.
6964 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6965 * rs6000-nat.c (fetch_core_registers): Same.
6966 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6967
450bd37b
MS
69682004-05-07 Michael Snyder <msnyder@redhat.com>
6969
6970 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6971 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6972
4a72a2a6
AC
69732004-05-13 Andrew Cagney <cagney@redhat.com>
6974
6975 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6976
8edfa926
BM
69772004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6978
6979 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6980 base_address for shared libraries.
6981
723e0e3d
BM
69822004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6983
6984 * MAINTAINERS (write after approval): Add myself.
6985
00d4360e
UW
69862004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6987
6988 * breakpoint.c (bpstat_stop_status): Add new argument
6989 STOPPED_BY_WATCHPOINT. Use it instead of testing
6990 target_stopped_data_address agaist 0 to check whether
6991 or not we stopped due to a hardware watchpoint.
6992 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6993 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6994 with new argument.
6995
ec76baa5
JB
69962004-05-12 Jim Blandy <jimb@redhat.com>
6997
6998 * configure.in: When checking whether we should use the -bbigtoc
6999 option, don't forget to restore the original value of LDFLAGS.
7000 * configure: Regenerated.
7001
f2c9ca08
AC
70022004-05-12 Andrew Cagney <cagney@redhat.com>
7003
7004 * thread.c (load_infrun_state): Delete step_sp.
7005 * infrun.c (context_switch): Ditto.
7006 * inferior.h (step_sp): Ditto.
7007 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7008 * gdbthread.h (struct thread_info, save_infrun_state)
7009 (restore_infrun_state): Ditto.
7010
090ddb2a
UW
70112004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7012
7013 * MAINTAINERS (write after approval): Add myself.
7014
8aad930b
AC
70152004-05-12 Andrew Cagney <cagney@redhat.com>
7016
7017 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7018 eliminate reference to step_sp.
7019 (struct execution_control_state, init_execution_control_state)
7020 (handle_inferior_event, keep_going): Delete update_step_sp and
7021 step_sp.
7022 * infcmd.c (step_sp): Note that variable is unused.
7023
922d5ae0
AC
70242004-05-11 Andrew Cagney <cagney@redhat.com>
7025
7026 * infrun.c (step_over_function): Delete function.
7027 (handle_step_into_function): Use insert_step_resume_breakpoint.
7028 (insert_step_resume_breakpoint): Fix assertion.
7029
017c5ca5
NR
70302004-05-11 Nick Roberts <nickrob@gnu.org>
7031
7032 * utils.c (defaulted_query): Just use the normal query input type
7033 when printing the annotations.
7034
42edda50
AC
70352004-05-11 Andrew Cagney <cagney@redhat.com>
7036
7037 * infrun.c (handle_inferior_event): Simplify code handling
7038 step-into or return-from a signal trampoline.
7039
d28b44a7
AC
70402004-05-11 Andrew Cagney <cagney@redhat.com>
7041
7042 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7043 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7044
383f0f5b
JB
70452004-05-10 Jim Blandy <jimb@redhat.com>
7046
d0b57c3a
JB
7047 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7048 with a call to internal_error.
7049
383f0f5b
JB
7050 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7051 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7052 processor variant lacks those registers.
7053 (ppc_floating_point_unit_p): Change description to make it clear
7054 that this returns info about the ISA, not the ABI.
7055 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7056 return true or false by checking tdep->ppc_fp0_regnum and
7057 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7058 arch/mach switching done in rs6000_gdbarch_init; it's better to
7059 keep that logic there, and just check the results here.
7060 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7061 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7062 floating-point registers.
7063 (ppc_supply_fpregset, ppc_collect_fpregset)
7064 (rs6000_push_dummy_call, rs6000_extract_return_value)
7065 (rs6000_store_return_value): Assert that we have floating-point
7066 registers.
7067 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7068 (rs6000_frame_cache): Don't note the locations at which
7069 floating-point registers were saved if we have no fprs.
7070 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7071 registers.
7072 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7073 (store_regs_user_thread, store_regs_kernel_thread): Only call
7074 supply_fprs / fill_fprs if we actually have floating-point
7075 registers.
7076 (special_register_p): Check ppc_fpscr_regnum before matching
7077 against it.
7078 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7079 supply / collect fpscr if we don't have it.
7080 * ppc-bdm.c: #include "gdb_assert.h".
7081 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7082 have floating-point registers, since I can't test this code on
7083 FP-free systems to adapt it.
7084 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7085 fpscr and floating point register numbers if they don't exist.
7086 (fetch_register): Assert that we have floating-point registers
7087 before we reach the code that handles them.
7088 (store_register): Same. And use tdep instead of calling
7089 gdbarch_tdep again.
7090 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7091 don't have them.
7092 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7093 fprs and fpscr if we don't have them.
7094 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7095 don't have them.
7096 * ppcnbsd-nat.c: #include "gdb_assert.h".
7097 (getfpregs_supplies): Assert that we have floating-point registers.
7098 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7099 * ppcobsd-tdep.c: #include "gdb_assert.h".
7100 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7101 have floating-point registers.
7102 * rs6000-nat.c (regmap): Don't match against the fpscr and
7103 floating point register numbers if they don't exist.
7104 (fetch_inferior_registers, store_inferior_registers,
7105 fetch_core_registers): Only fetch / store / supply the
7106 floating-point registers and the fpscr if we have them.
7107 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7108 (ppcobsd-tdep.o): Update dependencies.
7109
15960608
AC
71102004-05-10 Andrew Cagney <cagney@redhat.com>
7111
7112 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7113 (context_switch): Do not switch through_sigtramp_breakpoint.
7114 * gdbthread.h (save_infrun_state, load_infrun_state)
7115 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7116 and structure member.
7117 * thread.c (load_infrun_state, save_infrun_state): Update.
7118
5ab5aa0f
MK
71192004-05-10 Mark Kettenis <kettenis@gnu.org>
7120
7121 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7122
da78b0e7
DJ
71232004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7124
7125 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7126 throughout.
7127 * aclocal.m4: Regenerate.
7128
cca0d3b0
NW
71292004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7130
7131 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7132
d303a6c7
AC
71332004-05-10 Andrew Cagney <cagney@redhat.com>
7134
7135 * infrun.c (check_sigtramp2): Delete function.
7136 (handle_inferior_event): When single stepping, and taking a
7137 signal, set a breakpoint at the signal return address. Delete
7138 redundant calls to check_sigtramp2.
7139 (insert_step_resume_breakpoint): New function.
7140 (through_sigtramp_breakpoint, handle_inferior_event)
7141 (follow_exec, wait_for_inferior, fetch_inferior_event)
7142 (currently_stepping, keep_going): Delete most uses of
7143 through_sigtramp_breakpoint, not that it should be deleted.
7144 (delete_breakpoint_current_contents): Delete function.
7145
03f4cc20
RC
71462004-05-10 Randolph Chung <tausq@debian.org>
7147
7148 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7149 target.
7150 * config/pa/tm-linux.h: New file.
7151
37fc812e
DJ
71522004-05-10 Daniel Jacobowitz <drow@mvista.com>
7153
7154 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7155 of prefixes. Don't print the prefix twice in the CLI.
7156
26c0b942
JB
71572004-05-10 Jim Blandy <jimb@redhat.com>
7158
2e56e9c1
JB
7159 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7160 collect all the gprs.
7161
26c0b942
JB
7162 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7163 loop collecting gprs.
7164
dc497459
AC
71652004-05-09 Andrew Cagney <cagney@redhat.com>
7166
7167 * remote-vx.c (net_step): Delete step-range code.
7168 * remote.c (remote_resume, init_all_packet_configs)
7169 (set_remote_protocol_E_packet_cmd)
7170 (show_remote_protocol_E_packet_cmd)
7171 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7172 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7173 (show_remote_protocol_e_packet_cmd): Ditto.
7174
0543f387
MK
71752004-05-09 Mark Kettenis <kettenis@gnu.org>
7176
c481d1ca
MK
7177 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7178
f626a069
MK
7179 * hppa-tdep.h: Update copyright year.
7180 (struct trad_frame_saved_reg): Add opaque declaration.
7181
6fa57a7d
MK
7182 * amd64-tdep.c (amd64_return_value): Implement
7183 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7184
e47577ab
MK
7185 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7186 (m68k_value_to_register): New functions.
7187 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7188 value_to_register.
7189
31db7b6c
MK
7190 * defs.h (enum return_value_convention): Add
7191 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7192 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7193 * infcmd.c (legacy_return_value): New function.
7194 (print_return_value): Rwerite to implement
7195 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7196 * values.c (using_struct_return): Check for inequality to
7197 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7198 RETURN_VALUE_STRUCT_CONVENTION.
7199 * i386-tdep.c (i386_return_value): Implement
7200 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7201
0543f387
MK
7202 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7203 include "symtab.h", "opcode/vax.h" and "inferior.h".
7204 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7205 to read_memory_unsigned_integer.
7206 (vax_gdbarch_init): Reorder.
7207 (_initialize_vax_tdep): Spell out prototype.
7208 * Makefile.in (vax-tdep.o): Update dependencies.
7209
0c93b7b6
AC
72102004-05-08 Andrew Cagney <cagney@redhat.com>
7211
e6b55ae2
AC
7212 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7213 * target.c (target_detach, target_disconnect): Ditto.
7214
1ac839b8
AC
7215 * infcall.c (call_function_by_hand): When no
7216 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7217 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7218 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7219 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7220 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7221
28954179
AC
7222 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7223 * gdbarch.h, gdbarch.c: Re-generate.
7224 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7225 deprecated_fix_call_dummy.
7226 * v850-tdep.c (v850_gdbarch_init): Ditto.
7227 * infcall.c (call_function_by_hand): Do not call
7228 DEPRECATED_FIX_CALL_DUMMY.
7229
434b87dd
AC
7230 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7231 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7232 * gdbarch.h, gdbarch.c: Re-generate.
7233 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7234 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7235 deprecated_sizeof_call_dummy_words.
7236 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7238 * v850-tdep.c (v850_gdbarch_init): Ditto.
7239 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7240 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7241 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7242 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7243 * arch-utils.h (legacy_call_dummy_words)
7244 (legacy_sizeof_call_dummy_words): Delete declarations.
7245 * arch-utils.c (legacy_call_dummy_words)
7246 (legacy_sizeof_call_dummy_words): Delete variables.
7247
58d28df8
AC
7248 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7249 * gdbarch.h, gdbarch.c: Re-generate.
7250 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7251 * infcall.c (call_function_by_hand): Eliminate call to
7252 DEPRECATED_PUSH_DUMMY_FRAME.
7253 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7254 push_dummy_frame.
7255 (ns32k_push_dummy_frame): Delete function.
7256
e4a2df64
AC
7257 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7258 deprecated_call_dummy_breakpoint_offset or
7259 deprecated_call_dummy_start_offset.
7260 * dummy-frame.c, arm-tdep.c: Update comments.
7261 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7262 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7263 * gdbarch.h, gdbarch.c: Re-generate.
7264
d3712828
AC
7265 * infcall.c (legacy_push_dummy_code): Delete function.
7266 (push_dummy_code): Delete call.
7267
7a882905
AC
7268 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7269 * gdbarch.h, gdbarch.c: Re-generate.
7270 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7271 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7272 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7273 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7274
0ec5872b
AC
7275 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7276 (struct frame_info): Delete opaque declaration.
7277 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7278 * frame.c (get_frame_type): Delete call.
7279
0c93b7b6
AC
7280 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7281 pc_in_call_dummy.
7282 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7283 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7284
75536971
MK
72852004-05-08 Mark Kettenis <kettenis@gnu.org>
7286
527ca6bb
MK
7287 * alphanbsd-tdep.c: Include "gdb_string.h".
7288 * armnbsd-tdep.c: Update copyright year.
7289 Include "gdb_string.h".
7290 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7291 dependencies.
7292
d39fdc61
MK
7293 * delta68-nat.c: Remove file.
7294 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7295 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7296 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7297 (delta68-nat.o): Remove dependency.
7298
75536971
MK
7299 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7300 function.
7301 (m68k_gdbarch_init): Don't set
7302 deprecated_frameless_function_invocation.
7303
f4ca1d1f
RC
73042004-05-07 Randolph Chung <tausq@debian.org>
7305
7306 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7307 read_memory_nobpt for code reading when doing frame unwinding.
7308 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7309
2f0e8c7a
RC
73102004-05-07 Randolph Chung <tausq@debian.org>
7311
7312 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7313 instead of sp, handle sigaltstack case.
7314 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7315 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7316 signal handler and not that of the caller.
7317 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7318 hppa_linux_sigtramp_find_sigcontext.
7319
959464ff
RC
73202004-05-07 Randolph Chung <tausq@debian.org>
7321
7322 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7323 hppa-linux-nat.c.
7324 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7325 * hppa-linux-nat.c (fetch_register, store_register): Define.
7326 (fetch_inferior_registers, store_inferior_registers): Define.
7327 (supply_gregset): Add comment and clean up some unneeded code.
7328 (fill_gregset): Add comment and fix so that it saves registers in
7329 the right place in the gregset.
7330 (fill_fpregset): Fix buffer overrun problem.
7331 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7332
0da28f8a
RC
73332004-05-07 Randolph Chung <tausq@debian.org>
7334
7335 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7336 do common handling of the pcoqt register.
7337 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7338 to use helper function.
7339 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7340 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7341 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7342 generic fallback unwinder when all else fails.
7343 (hppa_gdbarch_init): Add fallback sniffer.
7344 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7345 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7346 to use helper function.
7347
b9ec757a
JB
73482004-05-08 Joel Brobecker <brobecker@gnat.com>
7349
7350 * config/djgpp/fnchange.lst: Add translation rules for
7351 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7352
756e95f1
MK
73532004-05-08 Mark Kettenis <kettenis@gnu.org>
7354
7355 * frame.c (get_prev_frame_1): Work around GCC bug.
7356 * frame.h: Add comment about GCC bug.
7357
2b4855ab
AC
73582004-05-07 Andrew Cagney <cagney@redhat.com>
7359
7360 * observer.c: Include "commands.h" and "gdbcmd.h".
7361 (observer_debug, _initialize_observer): Add the
7362 command "set/show debug observer".
7363 * observer.sh: When observer debugging, log notify calls.
7364 * Makefile.in (observer.o): Update dependencies.
7365
ba3e8e46
JM
73662004-05-07 Jason Molenda (jmolenda@apple.com)
7367
7368 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7369
16796152
JB
73702004-05-07 Jim Blandy <jimb@redhat.com>
7371
daf6dc85
JB
7372 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7373 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7374 to recognize gpr regnums, instead of assuming that
7375 tdep->ppc_fp0_regnum marks the end of the general-purpose
7376 registers.
7377
16796152
JB
7378 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7379 the given architecture has floating-point registers.
7380
c69b8bfc
AC
73812004-05-07 Andrew Cagney <cagney@redhat.com>
7382
7383 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7384 macro defined to 1.
7385 * gdbarch.h, gdbarch.c: Re-generate.
7386 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7387 deprecated_use_generic_dummy_frames.
7388
7243600a
BF
73892004-05-07 Brian Ford <ford@vss.fsi.com>
7390
7391 * NEWS: Mention Cygwin DWARF 2 support.
7392
73c1e0a1
AC
73932004-05-07 Andrew Cagney <cagney@redhat.com>
7394
7395 * objfiles.h (struct entry_info): Delete unused fields
7396 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7397 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7398 * mipsread.c (mipscoff_symfile_read): Update.
7399 * mdebugread.c (parse_partial_symbols): Update.
7400 * dwarfread.c (read_file_scope): Update.
7401 * dwarf2read.c (read_file_scope): Update.
7402 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7403 * coffread.c (complete_symtab): Update.
7404
1d3056ac
MK
74052004-05-07 Mark Kettenis <kettenis@gnu.org>
7406
7407 * infcall.c (_initialize_infcall): Fix typo.
7408
15170568
AC
74092004-05-07 Andrew Cagney <cagney@redhat.com>
7410
7411 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7412 * command.h (add_setshow_zinteger_cmd): Declare.
7413
34f75cc1
RC
74142004-05-06 Randolph Chung <tausq@debian.org>
7415
7416 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7417 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7418 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7419 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7420 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7421 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7422 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7423 definitions ...
7424 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7425 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7426 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7427 (hppa64_hpux_frame_find_saved_regs_in_sig)
7428 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7429 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7430 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7431 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7432 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7433 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7434 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7435 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7436 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7437 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7438 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7439 (hppa32_register_type, hppa_cannot_store_register)
7440 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7441 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7442 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7443 * pa64solib.c (pa64_solib_have_load_event)
7444 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7445 (pa64_solib_unloaded_library_pathname): Likewise.
7446 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7447 (som_solib_library_pathname): Likewise.
7448
0a5e7efe
JI
74492004-05-05 Jim Ingham <jingham@apple.com>
7450
7451 * breakpoint.c (create_breakpoints): Copy the ignore count and
7452 thread id over from the pended breakpoint to the actual
7453 breakpoint.
7454
10a4b113
AC
74552004-05-05 Andrew Cagney <cagney@redhat.com>
7456
7457 * gdbarch.sh (PARM_BOUNDARY): Delete.
7458 gdbarch.h, gdbarch.c: Re-generate.
7459 * valops.c (PARM_BOUNDARY): Delete macro.
7460 (value_push): Delete PARM_BOUNDARY code.
7461 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7462
366f009f
JB
74632004-05-04 Jim Blandy <jimb@redhat.com>
7464
32b99774
JB
7465 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7466 Don't assume that the gprs, fprs, and UISA sprs are
7467 contiguous, start at register number zero, and end with fpscr.
7468 Instead, use the numbers from the tdep structure.
7469
366f009f
JB
7470 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7471 should no longer be used in code specific to the RS6000 and its
7472 derivatives.
7473 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7474 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7475 tdep->ppc_fp0_regnum.
7476 (ppc_supply_fpregset, ppc_collect_fpregset)
7477 (rs6000_push_dummy_call, rs6000_extract_return_value)
7478 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7479 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7480 FP0_REGNUM.
7481 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7482 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7483 Same.
7484 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7485 bdm_ppc_store_registers): Same.
7486 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7487 (store_register, fill_fpregset): Same.
7488 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7489 (ppc_linux_supply_fpregset): Same.
7490 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7491 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7492 Same.
7493 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7494 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7495 ppc64_sysv_abi_return_value): Same.
7496 * rs6000-nat.c (regmap, fetch_inferior_registers)
7497 (store_inferior_registers, fetch_core_registers): Same.
7498
827f338d
MK
74992004-05-01 Mark Kettenis <kettenis@gnu.org>
7500
7501 * m68knbsd-nat.c: Remove file.
7502 * m68knbsd-tdep.c: Remove file.
7503 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7504 dependencies.
7505 * configure.host: Add m68k-*-netbsdelf*.
7506 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7507 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7508 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7509 (XM_FILE): Remove.
7510 * config/m68k/nbsdelf.mh: New file.
7511 * config/m68k/nbsd.mt: New file.
7512 * config/m68k/nbsdaout.mt: Remove file.
7513 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7514 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7515 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7516 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7517 (use_struct_convention): Remove prototype.
7518 (USE_STRUCT_CONVENTION): Remove define.
7519 * config/m68k/xm-nbsd.h: Remove file.
7520
66894781
MS
75212004-05-04 Michael Snyder <msnyder@redhat.com>
7522
7523 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7524 reg_struct_return method (as gcc usually does for cross targets).
7525
f0f63663
AC
75262004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7527
7528 Committed by Andrew Cagney.
7529 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7530 alignment padding when accessing ucontext struct members.
7531
edf61169
JB
75322004-05-04 Jim Blandy <jimb@redhat.com>
7533
8bf659e8
JB
7534 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7535 'ppc_gplast_regnum' member.
7536 (ppc_num_gprs): New enum constant.
7537 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7538 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7539 * rs6000-nat.c (regmap, fetch_inferior_registers,
7540 store_inferior_registers): Same.
7541 * rs6000-tdep.c (e500_pseudo_register_read)
7542 (e500_pseudo_register_write): Same.
7543 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7544
b967e06f
JB
7545 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7546 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7547 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7548 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7549 FPLAST_REGNUM.
7550 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7551 Same.
7552 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7553 * rs6000-nat.c (regmap, fetch_inferior_registers)
7554 (store_inferior_registers): Same.
7555
edf61169
JB
7556 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7557 with FPLAST_REGNUM.
7558
58a9656e
JB
75592004-05-03 Joel Brobecker <brobecker@gnat.com>
7560
7561 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7562 failure detected by recent versions of GCC.
7563 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7564 to be consistent with the usage in dwarf2_create_include_psymtab.
7565
dc305454
MS
75662004-05-03 Michael Snyder <msnyder@redhat.com>
7567
7568 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7569 (heuristic_proc_start): Whitespace cleanup.
7570
29972665
MK
75712004-05-04 Mark Kettenis <kettenis@gnu.org>
7572
6b57680d
MK
7573 * sun3-nat.c: Remove file.
7574 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7575 dependencies.
7576 (ALLDEPFILES): Remove sun3-nat.c.
7577 (sun3-nat.o): Remove dependencies.
7578
29972665
MK
7579 * i386-interix-nat.c, i386-interix-tdep.c,
7580 config/i386/nm-interix.h, config/i386/interix.mh,
7581 config/i386/interix.mt: Remove files.
7582 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7583 dependencies.
7584
f595cb19
MK
75852004-05-03 Mark Kettenis <kettenis@gnu.org>
7586
7587 * m68k-tdep.h (struct gdbarch_tdep): Add member
7588 struct_value_regnum.
7589 (m68k_svr4_init_abi): New prototype.
7590 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7591 different calling conventions.
7592 (m68k_extract_return_value): Remove code dealing with single-field
7593 structs.
7594 (m68k_store_return_value): Remove code dealing with single-field
7595 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7596 (m68k_extract_struct_value_address): Remove function.
7597 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7598 (m68k_reg_struct_return_p, m68k_return_value)
7599 (m68k_svr4_return_value): New functions.
7600 (m68k_use_struct_convention): Remove function.
7601 (m68k_push_dummy_call): Use new struct_value_regnum member of
7602 `struct gdbarch_tdep' instead of hardcoded register number to
7603 store STRUCT_ADDR.
7604 (m68k_svr4_init_abi): New function.
7605 (m68k_gdbarch_init): Don't set extract_return_value,
7606 store_return_values, deprecated_extract_struct_value_address and
7607 use_struct_convention. Set return_value instead. Initialize new
7608 struct_value_regnum member of `struct gdbarch_tdep'.
7609 * m68klinux-tdep.c: Update copyright year.
7610 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7611 (m68k_linux_extract_struct_value_address): Remove function.
7612 (m68k_linux_init_abi): Don't set extract_return_value,
7613 store_return_values, deprecated_extract_struct_value_address and
7614 use_struct_convention. Call m68k_svr4_init_abi but override the
7615 new struct_value_regnum member of `struct gdbarch_tdep'.
7616 * Makefile.in (m68k-tdep.o): Update dependencies.
7617
aaa75496
JB
76182004-05-03 J. Brobecker <brobecker@gnat.com>
7619
7620 * dwarf2read.c (line_header): Add new included_p field in
7621 field file_names.
7622 (partial_die_info): New field has_stmt_list. New field line_offset.
7623 (dwarf2_create_include_psymtab): New function.
7624 (dwarf2_build_include_psymtabs): New function.
7625 (add_file_name): Add forward declaration. Initialize new field.
7626 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7627 to be able to determine the list of files included by the
7628 given unit, and build their associated psymtabs.
7629 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7630 files as well.
7631 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7632 (read_file_scope): Update call to dwarf_decode_lines.
7633 (read_partial_die): Handle DW_AT_stmt_list attributes.
7634
c848556f
MC
76352004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7636
7637 Unfix PR gdb/1626.
7638 * configure.in: Revert special case for osf5.*.
7639 * configure: Regenerate.
7640
eb4556d7
JB
76412004-05-02 Jim Blandy <jimb@redhat.com>
7642
7643 Move the symbol-file-from-memory functions into their own file.
7644 * symfile-mem.c, symfile-mem.h: New files.
7645 * symfile.c (symbol_file_add_from_bfd): New function.
7646 (symbol_file_add): Call symbol_file_add_from_bfd.
7647 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7648 Moved to symfile-mem.c.
7649 (_initialize_symfile): Move definition of
7650 add-symbol-file-from-memory command to symfile-mem.c.
7651 * symfile.h (symbol_file_add_from_bfd): New declaration.
7652 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7653 * config/powerpc/linux.mt (TDEPFILES): Same.
7654 * Makefile.in (SFILES): Add symfile-mem.c.
7655 (symfile_mem_h): New variable.
7656 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7657 (symfile-mem.o): New rule.
7658
80bb239e
AC
76592004-05-01 Andrew Cagney <cagney@redhat.com>
7660
7789d0fa
AC
7661 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7662 frame_find_by_id instead of frame_relative_level.
7663 (do_enable_breakpoint): Ditto.
7664 * thread.c: Update copyright.
7665 (info_threads_command): Ditto, simplify.
7666
80bb239e
AC
7667 * frame.c (deprecated_generic_get_saved_register): Delete
7668 function, moved to "xstormy16-tdep.c".
7669 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7670 deprecated_generic_get_saved_register from "frame.c".
7671 (xstormy16_frame_saved_register): Call
7672 xstormy16_get_saved_register.
7673 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7674 static.
7675 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7676 * frame.h (deprecated_generic_get_saved_register): Delete.
7677
b2a871dd
MC
76782004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7679
7680 * dwarfread.c: Update documentation on the state of dwarf-1.
7681
0e100dab
AC
76822004-05-01 Andrew Cagney <cagney@redhat.com>
7683
acd8056e
AC
7684 * stack.c (select_frame_command): Delete call to
7685 frame_relative_level.
7686 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7687 Delete #if0 code.
7688 (frame_info): Do not print FRAMELESS.
7689 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7690 (catch_info): Delete #if0 code.
7691
0e100dab
AC
7692 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7693 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7694 of frame_relative_level.
7695 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7696 to SENTINEL_FRAME.
7697 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7698 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7699 frame_relative_level.
7700
55699d59
AC
7701 * frame.h (deprecated_set_frame_type): Delete declaration.
7702 * frame.c (deprecated_set_frame_type): Delete function, update
7703 comments.
7704
fcf70625
AC
7705 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7706 * gdbarch.h, gdbarch.c: Re-generate.
7707 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7708 (shnbsd_pc_in_sigtramp): Delete.
7709 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7710 pc_in_sigtramp.
7711 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7712 pc_in_sigtramp.
7713 * frame.h: Update comments.
7714 * ppc-linux-tdep.c: Update comments.
7715 * breakpoint.c (bpstat_what): Update comments.
7716
ac5eccb7
AC
7717 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7718 m68klinux-tdep.o's dependencies, were previously added to
7719 m68klinux-nat.o.
7720
f2524b93
AC
7721 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7722 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7723 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7724 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7725 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7726
17e20bce
AC
7727 * Makefile.in (m68klinux-nat.o): Update dependencies.
7728 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7729 (m68k_linux_sigtramp_frame_cache)
7730 (m68k_linux_sigtramp_frame_this_id)
7731 (m68k_linux_sigtramp_frame_prev_register)
7732 (m68k_linux_sigtramp_frame_unwind)
7733 (m68k_linux_sigtramp_frame_sniffer)
7734 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7735 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7736 names, use trad-frame.h.
7737 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7738 (struct m68k_sigtramp_info): Delete.
7739 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7740 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7741 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7742 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7743 "m68klinux-tdep.c".
7744
c8864fa2
AC
7745 * infrun.c (check_sigtramp2): Delete check for
7746 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7747
511dd2cd
MK
77482004-05-01 Mark Kettenis <kettenis@gnu.org>
7749
7750 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7751
8c6b0e06
AC
77522004-05-01 Andrew Cagney <cagney@redhat.com>
7753
9df0bb3f
AC
7754 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7755 (frv_linux_sigtramp_frame_cache)
7756 (frv_linux_sigtramp_frame_this_id)
7757 (frv_linux_sigtramp_frame_prev_register)
7758 (frv_linux_sigtramp_frame_unwind)
7759 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7760 include "linux" in function and variable names, directly call
7761 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7762 the latest trad-frame code.
7763 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7764 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7765 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7766 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7767 * frv-tdep.c (frv_sigtramp_frame_cache)
7768 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7769 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7770 frv-linux-tdep.c.
7771 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7772 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7773 (frv_set_sigcontext_reg_addr): Delete function.
7774
8c6b0e06
AC
7775 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7776 (DEPRECATED_SIGTRAMP_END): Delete.
7777 * gdbarch.h, gdbarch.c: Re-generate.
7778 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7779 * config/vax/tm-vaxbsd.h: Update copyright.
7780 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7781 (DEPRECATED_IN_SIGTRAMP): Define.
7782 * config/m68k/tm-nbsd.h: Update copyright.
7783 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7784 (DEPRECATED_IN_SIGTRAMP): Define.
7785
50ea7769
MK
77862004-05-01 Mark Kettenis <kettenis@gnu.org>
7787
03ac2a74
MK
7788 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7789 encondings. Fixes PR gdb/1628.
7790
50ea7769
MK
7791 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7792 DW_CFA_restore state without a matching DW_CFA_remember_state
7793 instead of aborting. Fixes PR backtrace/1589.
7794
9a5d7be1
JB
77952004-04-30 Joel Brobecker <brobecker@gnat.com>
7796
7797 * MAINTAINERS: Add self as AIX maintainer.
7798 Update my e-mail address in write-after-approval section.
7799
2593d1cd
AC
78002004-04-30 Andrew Cagney <cagney@redhat.com>
7801
ce12bbf9
AC
7802 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7803 (legacy_get_prev_frame): Ditto.
7804
36710c63
AC
7805 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7806 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7807 * mipsread.c (sigtramp_address): Delete extern variable.
7808 (mipscoff_new_init): Delete reference.
7809 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7810 (fixup_sigtramp): Delete function.
7811 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7812 (fixup_sigtramp): Delete declarations.
7813
2593d1cd
AC
7814 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7815 deprecated_pc_in_sigtramp.
7816 (ppcnbsd_pc_in_sigtramp): Delete function.
7817
2a25f91c
MK
78182004-05-01 Mark Kettenis <kettenis@gnu.org>
7819
7820 * config/m68k/nm-nbsd.h: Tweak comments.
7821 * config/m68k/nm-nbsdaout.h: Likewise.
7822
0b281939
AC
78232004-04-30 Andrew Cagney <cagney@redhat.com>
7824
7825 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7826 legacy_pc_in_sigtramp.
7827 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7828
8f2d3ea0
MK
78292004-05-01 Mark Kettenis <kettenis@gnu.org>
7830
7831 Add OpenBSD/m68k support.
7832 * NEWS (New native configurations): Mention OpenBSD/m68k.
7833 * m68kbsd-tdep.c: New file.
7834 * m68kbsd-nat.c: New file.
7835 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7836 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7837 * configure.host: Add m68k-*-openbsd.
7838 * configure.tgt: Add m68k-*-openbsd.
7839 * config/m68k/tm-obsd.h: New file.
7840 * config/m68k/obsd.mt: New file.
7841 * config/m68k/obsd.mh: New file.
7842 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7843 m68kbsd-tdep.c.
7844
c40f49a4
AC
78452004-04-30 Andrew Cagney <cagney@redhat.com>
7846
7847 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7848 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7849
e81554cd
MK
78502004-04-30 Mark Kettenis <kettenis@gnu.org>
7851
7852 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7853 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7854
d4dc1a91
BF
78552004-04-30 Brian Ford <ford@vss.fsi.com>
7856
7857 Revert 2004-04-16 change.
7858 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7859 (i386_coff_init_abi): Remove.
7860 * i386-tdep.h (i386_coff_init_abi): Remove.
7861 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7862
2f72f850
AC
78632004-04-30 Andrew Cagney <cagney@redhat.com>
7864
e492f9d6
AC
7865 * blockframe.c (find_pc_partial_function): Delete use of
7866 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7867 DEPRECATED_SIGTRAMP_END.
7868
7b7adad0
AC
7869 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7870 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7871 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7872 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7873 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7874
2f72f850
AC
7875 * defs.h (deprecated_inside_entry_file): Delete declaration.
7876 * blockframe.c (deprecated_inside_entry_file): Delete function.
7877 (legacy_frame_chain_valid): Delete call.
7878 * sh64-tdep.c (sh64_frame_chain): Delete call.
7879 * objfiles.h: Update comments.
7880 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7881 call.
7882 * frame.c (get_prev_frame): Delete call, update comments.
7883
283f90a7
BF
78842004-04-30 Brian Ford <ford@vss.fsi.com>
7885
7886 * MAINTAINERS (Write After Approval): Add myself.
7887
8ee56bcf
AC
78882004-04-30 Andrew Cagney <cagney@redhat.com>
7889
7890 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7891 * gdbarch.h, gdbarch.c: Re-generate.
7892 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7893 code.
7894
ee27e1b6
AC
78952004-04-30 Andrew Cagney <cagney@redhat.com>
7896
7897 * gdb-events.sh (selected_thread_changed)
7898 (selected_frame_level_changed, target_changed): Delete.
7899 * gdb-events.h, gdb-events.c: Re-generate.
7900 * valops.c (value_assign): Update.
7901 * stack.c (select_frame_command, up_silently_base)
7902 (down_silently_base): Update.
7903
d5ac5a39
AC
79042004-04-29 Andrew Cagney <cagney@redhat.com>
7905
7906 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7907 registers correctly.
7908 (print_gp_register_row, mips32_heuristic_proc_desc)
7909 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7910 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7911 references to mips_isa_regsize.
7912
ceae6e75
AC
79132004-04-29 Andrew Cagney <cagney@redhat.com>
7914
7915 * mips-tdep.c (struct gdbarch_tdep): Delete
7916 mips_fp_register_double.
7917 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7918 mips_abi_regsize.
7919 (mips_gdbarch_init): Do not set mips_fp_register_double.
7920 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7921
a587af0b
AC
79222004-04-29 Joel Brobecker <brobecker@gnat.com>
7923
7924 Committed by Andrew Cagney.
7925 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7926 function calls.
7927
13326b4e
AC
79282004-04-29 Andrew Cagney <cagney@redhat.com>
7929
7930 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7931 gdbarch, use mips_abi, update callers.
7932 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7933 mips_abi_regsize, update callers.
7934 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7935 mips_default_abi_regsize.
7936 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7937 mips_default_abi_regsize.
7938
711cc5cd
AC
79392004-04-29 Andrew Cagney <cagney@redhat.com>
7940
1b13c4f6
AC
7941 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7942 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7943 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7944 mips_default_abi_regsize.
7945 (mips_isa_regsize): Rename mips_regisze.
7946 * mipsnbsd-tdep.c: Update.
7947 * mips-linux-tdep.c: Update.
7948 * irix5-nat.c: Update.
7949 * mips-tdep.h (mips_isa_regsize): Update.
7950
711cc5cd
AC
7951 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7952 Delete all disabled code.
7953 * gdb-events.h, gdb-events.c: Re-generate.
7954
e63bbc88
MK
79552004-04-19 Jerome Guitton <guitton@gnat.com>
7956 Mark Kettenis <kettenis@gnu.org>
7957
7958 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7959 the function begins with a branch instruction.
7960
fd35795f
MK
79612004-04-29 Mark Kettenis <kettenis@gnu.org>
7962
7963 * i386-tdep.c: Fix spelling mistakes.
7964
c960c18f
AC
79652004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7966 Andrew Cagney <cagney@redhat.com>
7967
7968 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7969 <sys/proc.h>.
7970 * acconfig.h: Provide default _KMEMUSER value.
7971 * config.in, configure: Re-generate.
7972 * NEWS: Mention fix.
7973
50306a9d
RC
79742004-04-24 Randolph Chung <tausq@debian.org>
7975
7976 * configure.host (hppa*-*-linux*): New target.
7977 * configure.tgt (hppa*-*-linux*): Likewise.
7978 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7979 gdbarch_init_osabi() call earlier so that osabi-specific frame
7980 unwinders can be registered first.
7981 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7982 hppa-linux-nat.c.
7983 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7984 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7985 * config/pa/linux.mh: New file.
7986 * config/pa/linux.mt: New file.
7987 * config/pa/nm-linux.h: New file.
7988 * config/pa/xm-linux.h: New file.
7989 * hppa-linux-nat.c: New file.
7990 * hppa-linux-tdep.c: New file.
7991
2a6228ef
RC
79922004-04-28 Randolph Chung <tausq@debian.org>
7993
7994 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7995 return values.
7996 (hppa32_push_dummy_call): Fix small struct and floating point argument
7997 passing, and make sure the stack frame is properly aligned.
7998
82c10df6
AC
79992004-04-28 Andrew Cagney <cagney@redhat.com>
8000
d762c46a
AC
8001 * stack.c (print_stack_frame): Fix description.
8002
82c10df6
AC
8003 * NEWS: Mention gdb/gdbserver/configure execute permission
8004 changed. PR server/519.
8005
0faf0076
AC
80062004-04-28 Andrew Cagney <cagney@redhat.com>
8007
8008 * stack.c (print_stack_frame_stub): Delete declaration.
8009 (struct print_stack_frame_args, print_stack_frame)
8010 (print_frame_info, print_frame): Replace "source" with print what.
8011 Replace "print" with "print_level". Replace "args" with
8012 "print_args".
8013 * frame.h (show_and_print_stack_frame, print_stack_frame)
8014 (print_frame_info): Update declarations.
8015 * stack.c (select_and_print_frame, frame_command)
8016 (current_frame_command, up_command, down_command): Update calls -
8017 use get_selected_frame, pass "enum print_what" for source, do not
8018 call frame_relative_level.
8019 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8020 * remote-rdp.c (remote_rdp_open): Ditto.
8021 * remote-mips.c (common_open): Ditto.
8022 * remote-e7000.c (e7000_start_remote): Ditto.
8023 * ocd.c (ocd_start_remote): Ditto.
8024 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8025 * infrun.c (normal_stop): Ditto.
8026 * inflow.c (kill_command): Ditto.
8027 * infcmd.c (finish_command): Ditto.
8028 * corelow.c (core_open): Ditto.
8029 * tracepoint.c (finish_tfind_command): Ditto.
8030 * thread.c (info_threads_command, info_threads_command)
8031 (restore_current_thread, do_captured_thread_select): Ditto.
8032 * ada-tasks.c (task_command): Ditto.
8033
f4c5303c
OF
80342004-04-26 Orjan Friberg <orjanf@axis.com>
8035
8036 * frame.c: Include "observer.h".
8037 (frame_observer_target_changed): New function.
8038 (_initialize_frame): Attach target_changed observer.
8039 * regcache.c: Include "observer.h".
8040 (regcache_observer_target_changed): New function.
8041 (_initialize_regcache): Attach target_changed observer.
8042 * valops.c: Include "observer.h".
8043 (value_assign): Notify target_changed event when modifying register.
8044 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8045
7270d8f2
OF
80462004-04-26 Orjan Friberg <orjanf@axis.com>
8047
8048 From Paul Koning <pkoning@equallogic.com>:
8049 * breakpoint.c (free_valchain): New function.
8050 (insert_bp_location, delete_breakpoint): Use free_valchain.
8051 (remove_breakpoint): Do not remove the valchain.
8052 (bpstat_stop_status): If not stopped by watchpoint, skip
8053 watchpoints when generating stop status list.
8054 * infrun.c (handle_inferior_event): Make
8055 stepped_after_stopped_by_watchpoint a global variable.
8056 * remote.c (remote_stopped_data_address): Return watch data
8057 address rather than zero if stepped_after_stopped_by_watchpoint is
8058 set.
8059
02d62932
MC
80602004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8061
8062 Fix PR gdb/1626.
8063 * configure.in: Check for curses after termcap.
8064 On osf5.*, do not check for ncurses.
8065 * configure: Regenerate.
8066
3e9a183c
MK
80672004-04-25 Mark Kettenis <kettenis@gnu.org>
8068
c79ac407
MK
8069 * ppcobsd-nat.c: Include "ppc-tdep.h".
8070 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8071
3e9a183c
MK
8072 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8073 Fixes PR tdep/1623 and PR tdep/1624.
8074
38cc9c28
MC
80752004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8076
8077 * xmodem.h, xmodem.c: Remove files.
8078 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8079
7f07c5b6
RC
80802004-04-23 Randolph Chung <tausq@debian.org>
8081
8082 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8083 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8084 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8085 for handling stackless frames.
8086 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8087
9f7194c3
RC
80882004-04-23 Randolph Chung <tausq@debian.org>
8089
8090 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8091 starts at a pc before the frame is created.
8092
dcff6009
JB
80932004-04-23 Joel Brobecker <brobecker@gnat.com>
8094
8095 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8096
40711ff1 80972004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8098
8099 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8100 use convert_typed_floating to get the appropriate format.
8101
abc485a1
RC
81022004-04-22 Randolph Chung <tausq@debian.org>
8103
8104 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8105 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8106 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8107 (hppa_sign_extend): Add prototype.
8108 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8109 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8110 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8111 hppa targets will also use these functions.
8112 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8113 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8114 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8115 (hppa_gdbarch_init): Remove gdbarch setting of
8116 skip_trampoline_code, in_solib_call_trampoline and
8117 in_solib_return_trampoline.
8118 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8119 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8120 hppa_in_solib_call_trampoline.
8121 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8122 Moved from hppa-tdep.c.
8123 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8124 in_solib_call_trampoline and in_solib_return_trampoline.
8125
369aa520
RC
81262004-04-22 Randolph Chung <tausq@debian.org>
8127
8128 * hppa-tdep.c (hppa_debug): New variable.
8129 (find_unwind_entry, hppa_frame_cache): Add debug output.
8130 (_initialize_hppa_tdep): Add command to set debug flag.
8131
476be15e
AC
81322004-04-22 Andrew Cagney <cagney@redhat.com>
8133
8134 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8135 "trad-frame.h".
8136 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8137 signal trampoline unwinder.
8138 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8139
d195bc9f
MK
81402004-04-22 Mark Kettenis <kettenis@gnu.org>
8141
8142 Add OpenBSD/powerpc support.
8143 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8144 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8145 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8146 (ppc_collect_fpregset): New prototypes.
8147 * ppcobsd-nat.c: New file.
8148 * ppcobsd-tdep.c: New file.
8149 * ppcobsd-tdep.h: New file.
8150 * rs6000-tdep.c: Include "regset.h".
8151 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8152 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8153 New functions.
8154 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8155 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8156 (rs6000-tdep.o): Update dependencies.
8157 * configure.host: Add powerpc-*-openbsd.
8158 * configure.tgt: Add powerpc-*-openbsd.
8159 * config/powerpc/obsd.mh: New file.
8160 * config/powerpc/nm-obsd.h: New file.
8161 * config/powerpc/obsd.mt: New file.
8162
6f14cc33
AC
81632004-04-22 Andrew Cagney <cagney@redhat.com>
8164
fcf29e5f
AC
8165 * frame.h (show_frame_info): Delete declaration.
8166
6f14cc33
AC
8167 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8168 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8169 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8170 * frv-tdep.c (frv_frame_this_id): Ditto.
8171 * avr-tdep.c (avr_frame_this_id): Ditto.
8172
e5786a5c
EZ
81732004-04-22 Elena Zannoni <ezannoni@redhat.com>
8174
8175 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8176
26e75e5c
JB
81772004-04-22 Jim Blandy <jimb@redhat.com>
8178
8179 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8180 register number zero.
8181
d8d65dd3
MS
81822004-04-21 Michael Snyder <msnyder@redhat.com>
8183
8184 * mips-tdep.c (heuristic_proc_start):
8185 Warning() already prefixes "Warning: ".
8186
9a4105ab
AC
81872004-04-21 Andrew Cagney <cagney@redhat.com>
8188
8189 * annotate.h (deprecated_annotate_starting_hook)
8190 (deprecated_annotate_stopped_hook)
8191 (deprecated_annotate_exited_hook)
8192 (deprecated_annotate_signal_hook)
8193 (deprecated_annotate_signalled_hook): Deprecate.
8194 * tracepoint.h (deprecated_create_tracepoint_hook)
8195 (deprecated_delete_tracepoint_hook)
8196 (deprecated_modify_tracepoint_hook)
8197 (deprecated_trace_find_hook)
8198 (deprecated_trace_start_stop_hook): Deprecate.
8199 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8200 * remote.h (deprecated_target_resume_hook)
8201 (deprecated_target_wait_loop_hook): Deprecate.
8202 * gdbcore.h (deprecated_exec_file_display_hook)
8203 (deprecated_file_changed_hook): Deprecate.
8204 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8205 * defs.h (deprecated_modify_breakpoint_hook)
8206 (deprecated_command_loop_hook, deprecated_show_load_progress)
8207 (deprecated_print_frame_info_listing_hook)
8208 (deprecated_query_hook, deprecated_warning_hook)
8209 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8210 (deprecated_delete_breakpoint_hook)
8211 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8212 (deprecated_readline_begin_hook, deprecated_readline_hook)
8213 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8214 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8215 (deprecated_context_hook, deprecated_target_wait_hook)
8216 (deprecated_attach_hook, deprecated_detach_hook)
8217 (deprecated_call_command_hook, deprecated_set_hook)
8218 (deprecated_error_hook, deprecated_error_begin_hook)
8219 (deprecated_ui_load_progress_hook): Deprecate.
8220 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8221 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8222 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8223 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8224 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8225 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8226 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8227 * annotate.c, aix-thread.c: Update.
8228
62cf13cc
AC
82292004-04-21 Andrew Cagney <cagney@redhat.com>
8230
b2e31a62
AC
8231 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8232 * vaxnbsd-tdep.c: Include "gdb_string.h".
8233
62cf13cc
AC
8234 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8235 (add_symbol_file_from_memory_command): #if 0 function body, call
8236 error instead.
8237
00e32a35
AC
82382004-04-21 Andrew Cagney <cagney@redhat.com>
8239
8240 * gdbcore.h: Update copyright.
8241 (deprecated_add_core_fns): Rename add_core_fns.
8242 * win32-nat.c (_initialize_core_win32): Update.
8243 * sun3-nat.c (_initialize_core_sun3): Update.
8244 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8245 * rs6000-nat.c (_initialize_core_rs6000): Update.
8246 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8247 * nto-tdep.c (_initialize_nto_tdep): Update.
8248 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8249 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8250 * mips-nat.c (_initialize_core_mips): Update.
8251 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8252 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8253 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8254 * lynx-nat.c (_initialize_core_lynx): Update.
8255 * irix5-nat.c (_initialize_core_irix5): Update.
8256 * i386-interix-nat.c (_initialize_core_interix): Update.
8257 * cris-tdep.c (_initialize_cris_tdep): Update.
8258 * corelow.c (deprecated_add_core_fns): Update.
8259 * core-regset.c (_initialize_core_regset): Update.
8260 * core-aout.c (_initialize_core_aout): Update.
8261 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8262 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8263 * alpha-nat.c (_initialize_core_alpha): Update.
8264
13c7b1ca
JB
82652004-04-21 Jim Blandy <jimb@redhat.com>
8266
8267 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8268
7b5a2f43
DJ
82692004-04-19 Daniel Jacobowitz <drow@mvista.com>
8270
8271 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8272 Delete.
8273 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8274 (read_attribute_value): Update calls to dwarf_alloc_block.
8275 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8276 dwarf2_tmp_obstack.
8277 (psymtab_to_symtab_1): Likewise. Clean up using
8278 free_stack_comp_unit.
8279 (add_to_cu_func_list): Use the comp_unit_obstack.
8280
05cf31d1
JB
82812004-04-19 Joel Brobecker <brobecker@gnat.com>
8282
8283 * dwarf2read.c (dwarf2_flag_true_p): New function.
8284 (die_is_declaration): Use the function above. Add some comments.
8285
adf93a2f
MK
82862004-04-19 Mark Kettenis <kettenis@gnu.org>
8287
8288 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8289 architecture when registering sparcnbsd_core_osabi_sniffer.
8290 Adjust comment.
8291
748894bf
MK
82922004-04-18 Mark Kettenis <kettenis@gnu.org>
8293
f622ad42
MK
8294 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8295 return value.
8296
c4fc7f1b
MK
8297 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8298 * i386-tdep.c: Correct register numbering scheme comments
8299 throughout.
8300 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8301 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8302 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8303 (i386_gdb_arch_init): Likewise.
8304
b4ead1bd
MK
8305 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8306 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8307 ppcnbsd-tdep.o.
8308
748894bf
MK
8309 * m68k-tdep.h: Tweak comments.
8310 * m68k-tdep.c: Tweak comment.
8311
fdd72f95
RC
83122004-04-17 Randolph Chung <tausq@debian.org>
8313
8314 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8315 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8316 (hppa_hpux_som_init_abi): Set is_elf to 0.
8317 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8318 * hppa-tdep.c (low_text_segment_address): Remove global.
8319 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8320 section offset to calculate segment address.
8321 (internalize_unwinds): Define low_text_segment_address as local and
8322 pass to record_text_segment_lowaddr for ELF targets.
8323 (hppa_gdbarch_init): Zero fill tdep structure.
8324 (hppa_dump_tdep): Print tdep structure.
8325 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8326
0f8d9d59
RC
83272004-04-17 Randolph Chung <tausq@debian.org>
8328
8329 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8330 (hppa_gdbarch_init): Set pseudo_register_read.
8331 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8332 * regcache.c (supply_register): Remove check for
8333 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8334
7c46b9fb
RC
83352004-04-17 Randolph Chung <tausq@debian.org>
8336
8337 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8338 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8339 (hpread_adjust_stack_address): Move to hpread.c.
8340 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8341 obj_private_struct): Move from tm-hppa.h.
8342 * hpread.c (hppa-tdep.h): Include.
8343 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8344 (hpread_read_function_type, hpread_read_doc_function_type)
8345 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8346 directly.
8347 * pa64solib.c (hppa-tdep.h): Include.
8348 * somsolib.c (hppa-tdep.h): Include.
8349 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8350 inferior_status): Remove unused forward declarations.
8351 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8352 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8353 obj_private_struct): Move to hppa-tdep.h.
8354 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8355
8d153463
RC
83562004-04-17 Randolph Chung <tausq@debian.org>
8357
8358 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8359 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8360 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8361 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8362 Remove forward declaration and make static.
8363 (hppa_reg_struct_has_addr): Remove.
8364
350c2e5b
JB
83652004-04-16 Joel Brobecker <brobecker@gnat.com>
8366
8367 * observer.sh: Move comments in sed command to first column.
8368
bbde78fa
JM
83692004-04-16 Jason Molenda (jmolenda@apple.com)
8370
8371 * frame.c: Minor typeo corrections in comments.
8372
e0270fd9
JB
83732004-04-16 Joel Brobecker <brobecker@gnat.com>
8374
8375 * observer.c (observer_test_first_notification_function): Update
8376 function profile.
8377 (observer_test_second_notification_function): Likewise.
8378 (observer_test_third_notification_function): Likewise.
8379
3d049254
MK
83802004-04-16 Mark Kettenis <kettenis@gnu.org>
8381
8382 From Brian Ford <ford@vss.fsi.com>:
8383 * i386-tdep.c (i386_coff_init_abi): New function.
8384 * i386-tdep.h (i386_coff_init_abi): New prototype.
8385 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8386 register number translation functions for DWARF and DWARF 2.
8387
7867684d
JB
83882004-04-16 Joel Brobecker <brobecker@gnat.com>
8389
8390 * dwarf2read.c: Back out my previous change, it was incorrect.
8391
72bf9492
DJ
83922004-04-16 Daniel Jacobowitz <drow@mvista.com>
8393
8394 * dwarf2read.c: Include "hashtab.h".
8395 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8396 has_namespace_info.
8397 (struct partial_die_info): Add comments. Use bitfields to reduce
8398 memory footprint. Add scope, scope_set, has_specification,
8399 spec_offset, die_parent, die_child, and die_sibling.
8400 (peek_die_abbrev): Add prototype.
8401 (partial_read_comp_unit_head): New function, broken out from
8402 dwarf2_build_psymtabs_hard.
8403 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8404 Use partial_read_comp_unit_head. Initialize the CU and
8405 comp_unit_obstack. Update calls to read_partial_die and
8406 scan_partial_symbols. Use free_stack_comp_unit and
8407 load_partial_dies.
8408 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8409 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8410 Update calls to helper functions. Remove NAMESPACE argument.
8411 Update comments.
8412 (partial_die_parent_scope, partial_die_full_name): New functions.
8413 (add_partial_symbol): Remove namespace argument. Update call to
8414 pdi_needs_namespace. Use partial_die_full_name. Handle
8415 DW_TAG_namespace. Check has_namespace_info flag.
8416 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8417 tag. Handle namespaces.
8418 (add_partial_namespace, add_partial_enumeration): Simplify.
8419 (guess_structure_name): New function, derived from
8420 add_partial_structure.
8421 (add_partial_structure): Remove.
8422 (determine_class_name): Update comment.
8423 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8424 (is_type_tag_for_partial, load_partial_dies): New functions.
8425 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8426 Record specifications instead of following them immediately.
8427 (find_partial_die_in_comp_unit, find_partial_die)
8428 (fixup_partial_die, free_stack_comp_unit)
8429 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8430 (partial_die_hash, partial_die_eq): New functions.
8431 * Makefile.in (hashtab_h): Define.
8432 (dwarf2read.o): Update dependencies.
8433 (observer_inc, observer_h): Move to the correct section.
8434
fdc860a3
JB
84352004-04-15 Joel Brobecker <brobecker@gnat.com>
8436
8437 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8438 (die_is_declaration): Use the function above. Add comment.
8439
dc718098
JB
84402004-04-15 Joel Brobecker <brobecker@gnat.com>
8441
8442 * dwarf2read.c (read_structure_scope): Identify stub types
8443 using die_is_declaration() only.
8444
8718a420
RM
84452004-04-15 Roland McGrath <roland@redhat.com>
8446
8447 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8448 argument instead of NAME.
8449 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8450 in call to symbol_file_add_with_addrs_or_offsets.
8451 (build_addr_info): New function, helper for ...
8452 (symbol_file_add_from_memory): New function.
8453 (add_symbol_file_from_memory_command): New function using that.
8454 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8455 (pre_add_symbol_hook): Add const to argument type.
8456 * symfile.h (symbol_file_add_from_memory): Declare it.
8457
8b910bab
MK
84582004-04-15 Mark Kettenis <kettenis@gnu.org>
8459
9f076e7a
MK
8460 * NEWS (New native configurations): Mention OpenBSD/vax.
8461 * configure.host: Add vax-*-openbsd*.
8462 * config/vax/obsd.mh: New file.
8463 * config/vax/nm-obsd.h: New file.
8464
8b910bab
MK
8465 * vax-tdep.c: Include "regset.h".
8466 (vax_supply_gregset): New function.
8467 (vax_gregset): New variable.
8468 (vax_regset_from_core_section): New function.
8469 (vax_gdbarch_init): Set regset_from_core_section.
8470 * Makefile.in (vax-tdep.o): Update dependencies.
8471
7a464420
AC
84722004-04-15 Andrew Cagney <cagney@redhat.com>
8473
8474 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8475 (observer_normal_stop_notification_stub)
8476 (observer_attach_normal_stop, observer_detach_normal_stop):
8477 Delete, replaced by #include "observer.inc".
8478 * infrun.c (normal_stop): Pass "stop_bpstat" to
8479 observer_notify_normal_stop.
8480 * Makefile.in (observer_inc): Define.
8481 (observer.o): Update dependencies.
8482 (observer.h, observer.inc): New rules.
8483 * observer.h: Delete file.
8484 * observer.sh: New file.
8485
e36ad527
MK
84862004-04-15 Mark Kettenis <kettenis@gnu.org>
8487
8488 * vax-tdep.c (vax_frame_cache): Fix typo.
8489
67b441e1
MK
84902004-04-14 Mark Kettenis <kettenis@gnu.org>
8491
6f606e1c
MK
8492 * NEWS (New native configurations): Mention NetBSD/vax.
8493 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8494 * config/vax/nbsdelf.mh: New file.
8495 * config/vax/nbsdaout.mh: New file.
8496 * config/vax/nm-nbsd.h: New file.
8497 * config/vax/nm-nbsdaout.h: New file.
8498
9c5519a5
MK
8499 * vaxnbsd-tdep.c: New file.
8500 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8501 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8502 * config/vax/nbsd.mt: New file.
8503 * config/vax/tm-nbsd.h: New file.
8504
4844a614
MK
8505 * Makefile.in (vaxbsd-nat.o): New dependency.
8506
67b441e1
MK
8507 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8508 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8509 struct_addr arguments. Don't push return value address.
8510 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8511 arguments to vax_store_arguments. Store return value address in
8512 R1.
8513 (vax_store_struct_return, vax_extract_return_value)
8514 (vax_store_return_value): Remove functions.
8515 (vax_return_value): New function.
8516 (vax_gdbarch_init): Set return value. Don't set
8517 deprecated_store_struct_return, deprecated_extract_struct_return
8518 and deprecated_store_return_value.
8519
6672f2ae
AS
85202004-04-14 Andreas Schwab <schwab@suse.de>
8521
8522 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8523 value buffer.
8524 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8525
7346c184
MK
85262004-04-14 Mark Kettenis <kettenis@gnu.org>
8527
8528 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8529 (vax_unwind_dummy_id): New functions.
8530 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8531 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8532 variables.
8533 (vax_fix_call_dummy): Remove function.
8534 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8535 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8536 call_dummy_location, deprecated_call_dummy_words,
8537 deprecated_sizeof_call_dummy_words,
8538 deprecated_call_dummy_breakpoint_offset,
8539 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8540 and deprecated_dummy_write_sp.
8541
58e23df4
DC
85422004-04-13 David Carlton <carlton@kealia.com>
8543
8544 * MAINTAINERS: Move myself to "paper trail" section.
8545
5e6b39ff
MK
85462004-04-12 Mark Kettenis <kettenis@gnu.org>
8547
7def7fef
MK
8548 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8549 "trad-frame.h".
8550 (vax_frame_init_saved_regs): Remove function.
8551 (vax_sigtramp_saved_pc): Remove function.
8552 (vax_frame_saved_pc): Remove function.
8553 (vax_frame_args_address): Remove function.
8554 (vax_frame_num_args): Rewrite.
8555 (vax_frame_chain): Remove function.
8556 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8557 VAX_FP_REGNUM.
8558 (vax_pop_frame): Likewise.
8559 (vax_saved_pc_after_call): Remove function.
8560 (struct vax_frame_cache): New structure.
8561 (vax_frame_cache): New function.
8562 (vax_frame_this_id): New function.
8563 (vax_frame_prev_register): New function.
8564 (vax_frame_unwind): New variable.
8565 (vax_frame_sniffer): New function.
8566 (vax_frame_base_address): New function.
8567 (vax_frame_args_address): New function.
8568 (vax_frame_base): New variable.
8569 (vax_unwind_pc): New function.
8570 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8571 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8572 deprecated_frame_chain, deprecated_frame_saved_pc,
8573 deprecated_frame_args_address and
8574 deprecated_frame_init_saved_regs.
8575 * Makefile.in (vax-tdep.o): Update dependencies.
8576
53284fc1
MK
8577 * vaxbsd-nat.c: New file.
8578
5e6b39ff
MK
8579 * vax-tdep.h: Update copyright year. Adjust comments.
8580 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8581 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8582 (vax_regnum): New enum. Replacing...
8583 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8584 (VAX_PS_REGNUM): ... these removed macros.
8585 * vax-tdep.c (vax_register_name): Remove prototype.
8586 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8587 (vax_register_byte, vax_register_raw_size,
8588 vax_register_virtual_size, vax_register_virtual_type): Remove
8589 functions.
8590 (vax_register_type): New function.
8591 (vax_breakpoint_from_pc): Reorganize.
8592 (vax_gdbarch_init): Set register_type. Don't set
8593 deprecated_register_size, deprecated_register_bytes,
8594 deprecated_register_byte, deprecated_register_raw_size,
8595 deprecated_max_register_raw_size,
8596 deprecated_register_virtual_size,
8597 deprecated_max_register_virtual_size and
8598 deprecated_register_virtual_type. Add comment on stack direction.
8599
e9c71e9f
MK
86002004-04-11 Mark Kettenis <kettenis@gnu.org>
8601
8602 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8603 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8604 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8605
d46f1176 86062004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8607
d46f1176
RC
8608 * MAINTAINERS (write after approval): Add myself.
8609
a2a84a72
RC
86102004-04-07 Randolph Chung <tausq@debian.org>
8611
8612 * hppa-tdep.c (hppa_inner_than): Remove.
8613 (is_pa_2): Remove unused static variable.
8718a420 8614 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8615
e85c3284
PH
86162004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8617
8618 * language.h (language_defn): Add new la_post_parser field.
8619 * parser-defs.h (null_post_parser): New declaration (default for
8620 la_post_parser).
8718a420 8621
e85c3284
PH
8622 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8623 insert call to that function.
8624 (parse_exp_in_context): New function, including code formerly in
8718a420 8625 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8626 prefixification.
8627 (parse_expression_in_context): New exported function.
8628 (null_post_parser): New definition.
8629 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8630
e85c3284
PH
8631 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8632 * c-lang.c (c_language_defn): Ditto.
8633 (cplus_language_defn): Ditto.
8634 (asm_language_defn): Ditto.
8635 (minimal_language_defn): Ditto.
8636 * f-lang.c (f_language_defn): Ditto.
8637 * jv-lang.c (java_language_defn): Ditto.
8638 * language.c (unknown_language_defn): Ditto.
8639 (auto_language_defn): Ditto.
8640 (local_language_defn): Ditto.
8641 * m2-lang.c (m2_language_defn): Ditto.
8642 * scm-lang.c (scm_language_defn): Ditto.
8643 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8644
d9f8c85b
MK
86452004-04-10 Mark Kettenis <kettenis@gnu.org>
8646
fa34704a
MK
8647 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8648 (amd64nbsd_mcontext_addr): New function.
8649 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8650 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8651 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8652
403e1656
MK
8653 * corelow.c (core_xfer_partial): Fix coding standards violation.
8654 Add support for TARGET_OBJECT_WCOOKIE.
8655
a57e5a95
MK
8656 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8657 deprecated_pc_in_sigtramp.
8658 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8659 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8660 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8661 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8662 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8663 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8664 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8665
377d9ebd
MK
8666 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8667 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8668 Fix typo.
8669
f0ef85a5
MK
8670 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8671 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8672 (amd64_collect_fxsave): Likewise.
8673
d9f8c85b
MK
8674 * i386-sol2-tdep.c: Include "gdb_string.h".
8675 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8676 name.
8677 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8678
75f501b5
MK
86792004-04-10 Mark Kettenis <kettenis@gnu.org>
8680
8681 * i386-sol2-tdep.c: Include "solib-svr4.h".
8682 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8683 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8684 * config/i386/tm-i386sol2.h: Include :solib.h".
8685 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8686 solib-svr4.o and solib-legacy.o.
8687 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8688 solib-svr4.o.
8689
b31bc724
MK
86902004-04-09 Mark Kettenis <kettenis@gnu.org>
8691
18bbbd9e
MK
8692 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8693 whether a register is supplied by PTRACE_GETFPREGS.
8694 (store_inferior_registers): Likewise.
8695 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8696 whether a register is supplied by PT_GETFPREGS.
8697 (store_inferior_registers): Likewise.
8698
3c30bf1b
MK
8699 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8700 * config/i386/linux64.mt (TDEPFILES): Likewise.
8701
a4194092
MK
8702 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8703
911bc6ee
MK
8704 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8705 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8706 the program counter is in the range specified by `struct
8707 gdbarch_tdep'.
8708 * amd64-linux-tdep.c: Include "symtab.h".
8709 (amd64_linux_pc_in_sigtramp): Remove function.
8710 (amd64_linux_sigtramp_p): New function.
8711 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8712 deprecated_pc_in_sigtramp.
8713 * amd64nbsd-tdep.c: Include "symtab.h".
8714 (amd64nbsd_sigtramp_p): New function.
8715 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8716 deprecated_pc_in_sigtramp.
8717 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8718 few comments.
8719 (amd64obsd_pc_in_sigtramp): Remove function.
8720 (amd64obsd_sigtramp_p): New function.
8721 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8722 deprecated_pc_in_sigtramp.
8723 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8724 (i386bsd_pc_ins_sigtramp): Remove prototype.
8725 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8726 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8727 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8728 the program counter is in the range specified by `struct
8729 gdbarch_tdep'.
8730 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8731 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8732 (i386_go32_pc_in_sigtramp): Remove function.
8733 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8734 Initialize TDEP->sigtramp_p.
8735 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8736 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8737 deprecated_pc_in_sigtramp.
8738 * i386-linux-tdep.c: Adjust comments.
8739 (i386_linux_pc_in_sigtramp): Remove function.
8740 (i386_linux_sigtramp_p): New function.
8741 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8742 deprecated_pc_in_sigtramp.
8743 * i386-nto-tdep.c: Update copyright year.
8744 (i386nto_pc_in_sigtramp): Remove function.
8745 (i386nto_sigtramp_p): New function.
8746 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8747 SP_REGNUM.
8748 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8749 deprecated_pc_in_sigtramp.
8750 * i386-sol2-tdep.c: Update copyright year.
8751 (i386_sol2_pc_in_sigtramp): Remove function.
8752 (i386_sol2_sigtramp_p): New function.
8753 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8754 deprecated_pc_in_sigtramp.
8755 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8756 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8757 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8758 deprecated_sigtramp_start and deprecated_sigtramp_end.
8759 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8760 (i386nbsd_pc_in_sigtramp): Remove function.
8761 (i386nbsd_sigtramp_p): New function.
8762 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8763 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8764 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8765 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8766 (i386obsd_pc_in_sigtramp): Remove function.
8767 (i386obsd_sigtramp_p): New function.
8768 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8769 functions.
8770 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8771 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8772 TDEP->sigtramp_p.
8773 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8774 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8775 dependencies.
8776
e083e6ec
MK
8777 * config/i386/i386aout.mt: Remove file.
8778
bd153b94
MK
8779 * configure.tgt: Remove i[34567]86-*-go32*,
8780 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8781 and i[34567]86-*-isc*. Set gdb_target to i386 for
8782 i[34567]86-*-netware* and i[34567]86-*-*.
8783 * config/i386/i386.mt: New file.
8784 * config/i386/embed.mt: Remove file.
8785 * config/i386/go32.mt: Remove file.
8786 * config/i386/i386nw.mt: Remove file.
8787 * config/i386/i386v.mt: Remove file.
8788 * config/i386/tm-go32.h: Remove file.
8789
4a1bcc8c
MK
8790 * tui/tui-hooks.c: Include "readline/readline.h" after
8791 "gdb_curses.h" instead of before.
8792 * tui/tui-io.c: Likewise.
8793
f9a79064
MK
8794 * tui/tui.c: Fix typo in comment.
8795
b31bc724
MK
8796 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8797
f83f82bc
AC
87982004-04-08 Andrew Cagney <cagney@redhat.com>
8799
8800 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8801 (deprecated_exception_support_initialized): Declare.
8718a420 8802 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8803 (initialize_hp_cxx_exception_support)
8804 (child_enable_exception_callback): Update.
8805 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8806 (deprecated_exception_support_initialized): Rename
8807 deprecated_exception_catchpoints_are_fragile and
8808 deprecated_exception_support_initialized.
8809 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8810
8811 * symtab.c (deprecated_hp_som_som_object_present): Rename
8812 hp_som_som_object_present.
8813 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8814 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8815 Update. Delete extern declaration.
8816 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8817 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8818 (parse_nested_classes_for_hpacc): Ditto.
8819 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8820 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8821 (initialize_hp_cxx_exception_support): Ditto.
8822 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8823 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8824 (cp_print_class_method): Ditto.
8718a420 8825 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8826 (c_type_print_base): Ditto.
8827 * c-exp.y (hp_som_som_object_present): Ditto.
8828
fb2be677
AC
88292004-04-08 Andrew Cagney <cagney@redhat.com>
8830
8831 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8832 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8833 (frame_unwind_find_by_frame): Re-implement the unwind code so
8834 that it can both prepend and append sniffers. Replace
8835 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8836 * tramp-frame.c (tramp_frame_append): Use
8837 frame_unwind_prepend_unwinder.
8838 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8839 frame_unwind_register_unwinder.
8840 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8841 tramp_frame_append.
8842 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8843 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8844 (mips_linux_init_abi): Update.
8845
67faf007
KB
88462004-04-08 Kevin Buettner <kevinb@redhat.com>
8847
8848 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8849 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8850 file support.
8851
8973ff21
KB
88522004-04-07 Kevin Buettner <kevinb@redhat.com>
8853
8854 * ia64-tdep.c (elf.h): Don't include.
8855 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8856
4a0e2f88
JM
88572004-04-07 Jason Molenda (jmolenda@apple.com)
8858
8859 * frame.h: Typeo corrections in comments.
8860
9872ad24
JB
88612004-04-07 Jim Blandy <jimb@redhat.com>
8862
8863 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8864 %esp and %ebp
8865
70b216c8
MK
88662004-04-07 Mark Kettenis <kettenis@gnu.org>
8867
11d5789c
MK
8868 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8869 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8870 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8871 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8872 and solib-legacy.o.
8873 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8874 solib-svr4.o.
8875 * config/sparc/tm-sol2.h: Update copyright year. Include
8876 "solib.h".
8877
70b216c8
MK
8878 * sparc-sol2-tdep.c: Update copyright year. Include
8879 "solib-svr4.h".
8880 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8881 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8882 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8883 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8884 dependencies.
8885
6339dc9e
AC
88862004-04-06 Andrew Cagney <cagney@redhat.com>
8887
8888 * infttrace.c: Include "infttrace.h".
8889 * infttrace.h: Include "target.h".
8890 * Makefile.in (infttrace_h): Update.
8891 (infttrace.o): Update.
8718a420 8892
93449403
AC
88932004-04-06 Andrew Cagney <cagney@redhat.com>
8894
6d518969
AC
8895 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8896 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8897 move extern declarations from here ...
8898 * infttrace.h: ... to here.
8899 * Makefile.in (hppah-nat.o): Update dependencies.
8900
85f4f2d8
AC
8901 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8902 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8903 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8904 (hppa_breakpoint_from_pc): Delete.
8905
93449403
AC
8906 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8907
71456ec6
AC
89082004-04-05 Andrew Cagney <cagney@redhat.com>
8909
8910 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8911 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8912 <sys/file.h>.
8718a420 8913
4c02c60c
AC
89142004-04-06 Randolph Chung <tausq@debian.org>
8915
8916 Committed by Andrew Cagney (mechanical change).
8917 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8918 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8919 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8920 child_enable_exception_callback, current_ex_event,
8921 null_symtab_and_line, child_get_current_exception_event,
8922 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8923 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8924 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8925 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8926 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8927 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8928 Move hpux-specific definitions ...
8929 * hppa-hpux-tdep.c: ... to here.
8930
3a515653
AC
89312004-04-05 Andrew Cagney <cagney@redhat.com>
8932
8933 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8934 skip_prologue_using_sal.
8935
c1730d02
AC
89362004-04-05 Andrew Cagney <cagney@redhat.com>
8937
8938 * config/i386/tm-i386.h: Delete file.
8939 * config/i386/tm-vxworks.h: Update copyright, do not include
8940 "tm-i386.h".
8941 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8942 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8943 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8944 * config/i386/ncr3000.mt (TM_FILE): Delete.
8945 * config/i386/interix.mt (TM_FILE): Delete.
8946 * config/i386/i386v.mt (TM_FILE): Delete.
8947 * config/i386/i386nw.mt (TM_FILE): Delete.
8948 * config/i386/i386gnu.mt (TM_FILE): Delete.
8949 * config/i386/i386aout.mt (TM_FILE): Delete.
8950 * config/i386/embed.mt (TM_FILE): Delete.
8951
8b67aa36
KB
89522004-04-05 Kevin Buettner <kevinb@redhat.com>
8953
8954 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8955 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8956 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8957 (accg7_regnum): New constants.
8958 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8959 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8960 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8961 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8962 for accg registers.
8963 (frv_register_sim_regno): Update spr_map[].
8964
3c7012f5
AC
89652004-04-04 Andrew Cagney <cagney@redhat.com>
8966
8967 * config/mips/xm-riscos.h: Delete.
8968 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8969 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8970 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8971 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8972 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8973 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8974 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8975 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8976 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8977 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8978 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8979 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8980 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8981 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8982 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8983 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8984 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8985 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8986 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8987 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8988 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8989 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8990 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8991 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8992 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8993 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8994
3c7012f5
AC
8995 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8996 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8997 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8998 * configure.host: Remove m680[01]0-sun-sunos3*,
8999 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9000 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9001 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9002 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9003 mips-*-riscos*.
9004 * NEWS: Mention removed systems.
9005
99d16a21
AC
90062004-04-04 Andrew Cagney <cagney@redhat.com>
9007
9008 GDB 6.1 release created from 6.1 branch.
9009
6cdf9d98
AC
90102004-04-04 Andrew Cagney <cagney@redhat.com>
9011
98d346c3
AC
9012 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9013 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9014 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9015
6cdf9d98
AC
9016 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9017 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9018 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9019
859a326d
JB
90202004-04-03 Jim Blandy <jimb@redhat.com>
9021
9022 * MAINTAINERS: Chris Faylor has changed employers; add him to
9023 "paper trail" section, and update his E-mail address.
9024
b87178c3
AC
90252004-04-03 Andrew Cagney <cagney@redhat.com>
9026
4ea2acf0
AC
9027 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9028 generic dummy frames.
9029 * dummy-frame.c: Update copyright.
9030 (dummy_frame_sniffer): Delete check for generic dummy frames.
9031
d0bd2d18 9032 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9033 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9034 (REG_PARM_STACK_SPACE): Delete.
9035 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9036 Inline reference to REG_PARM_STACK_SPACE.
9037
b87178c3
AC
9038 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9039 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9040 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9041 (FRAME_BASE_BEFORE_SIGTRAMP)
9042 (hppa32_hpux_frame_base_before_sigtramp)
9043 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9044 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9045 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9046 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9047 (FRAME_BASE_BEFORE_SIGTRAMP)
9048 (hppa64_hpux_frame_base_before_sigtramp)
9049 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9050
43e2e1a0
AC
90512004-04-03 Andrew Cagney <cagney@redhat.com>
9052
9053 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9054
ddc135a4
AC
90552004-04-02 Andrew Cagney <cagney@redhat.com>
9056
9057 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9058 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9059 * dummy-frame.h: Delete out-of-date comments.
9060 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9061 * gdbarch.h, gdbarch.c: Re-generate.
9062
d15bfd3a 90632004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9064
d15bfd3a
AC
9065 Committed by Andrew Cagney <cagney@redhat.com>.
9066 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9067 into account an instruction saving a register if we have already
9068 seen an earlier instruction saving that same register.
9069
f04ceafa
AC
90702004-04-02 Andrew Cagney <cagney@redhat.com>
9071
08be3abd
AC
9072 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9073 * gdbarch.h, gdbarch.c: Re-generate.
9074 * frame.c (legacy_get_prev_frame): Delete references to
9075 DEPRECATED_INIT_FRAME_PC_FIRST.
9076
f04ceafa
AC
9077 * infrun.c (pc_in_sigtramp): Delete function.
9078 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9079 get_frame_type.
9080
08e69816
AC
90812004-04-02 Andrew Cagney <cagney@redhat.com>
9082
9083 * infrun.c (handle_step_into_function): Delete code conditional on
9084 legacy_frame_p.
9085 (handle_inferior_event, step_over_function): Ditto.
9086
adb54772
AC
90872004-04-02 Andrew Cagney <cagney@redhat.com>
9088
9089 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9090 "previous frame inner to this frame" test.
9091
304396fb
AC
90922004-04-02 Andrew Cagney <cagney@redhat.com>
9093
9094 * frame.c (safe_frame_unwind_memory): New function.
9095 * frame.h (safe_frame_unwind_memory): Declare. Update description
9096 of /safe_/ methods.
9097 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9098 "next_frame". Use safe_frame_unwind_memory.
9099 (tramp_frame_sniffer): Update call to tramp_frame_start.
9100
6502dd73
DJ
91012004-04-01 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * dwarf2read.c (dwarf2_objfile_data_key): New.
9104 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9105 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9106 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9107 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9108 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9109 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9110 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9111 Remove variables.
9112 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9113 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9114 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9115 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9116 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9117 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9118 Remove macros.
9119 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9120 data.
9121 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9122 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9123 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9124 (read_partial_die, read_full_die, read_indirect_string)
9125 (dwarf_decode_line_header, dwarf_decode_macros)
9126 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9127 Update uses of removed variables.
9128 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9129 of removed macros.
9130 (_initialize_dwarf2_read): New function.
9131 * symfile.h (dwarf2_has_info): Update prototype.
9132 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9133 * elfread.c (elf_symfile_read): Likewise.
9134
408752b0
JB
91352004-04-01 Jim Blandy <jimb@redhat.com>
9136
9f744501
JB
9137 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9138 function for register numbers on all the rs6000-derived targets.
9139 (rs6000_gdbarch_init): Don't register a separate
9140 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9141 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9142 variants.
9143
408752b0
JB
9144 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9145 numbering.
9146
2de41bce
PH
91472004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9148
9149 * valarith.c: Update copyright notice.
9150 (value_add): Handle range types.
9151 (value_sub): Ditto.
9152 (value_equal): Ditto.
9153 (value_less): Ditto.
9154 (value_neg): Ditto.
9155 (value_complement): Ditto.
8718a420 9156 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9157 eliminiating unnecessary COERCE_ENUMs.
8718a420 9158
5613d8d3
AC
91592004-03-31 Andrew Cagney <cagney@redhat.com>
9160
9161 * frame.h (frame_unwind_id): Declare.
9162 * frame.c (frame_unwind_id): New function.
9163 (get_prev_frame_1): New function.
9164 (frame_debug_got_null_frame): New function.
9165 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9166 code proper to prev_frame, update description.
9167 * infrun.c (step_over_function): Use frame_unwind_id.
9168
c4557624
JB
91692004-04-31 J. Brobecker <brobecker@gnat.com>
9170
9171 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9172 (hppa64_push_dummy_call): Likewise.
9173
3e6bb910
JB
91742004-03-30 Jim Blandy <jimb@redhat.com>
9175
9176 From Ulrich Weigand:
9177 * utils.c (query): Do not use a va_list variable multiple times.
9178
a2f23071
DJ
91792004-03-29 Daniel Jacobowitz <drow@mvista.com>
9180
9181 * Makefile.in (linux_nat_h): Update dependencies.
9182 * configure.in: Check for <gnu/libc-version.h>.
9183 * configure: Regenerate.
9184 * config.in: Regenerate.
9185 * linux-nat.h: Include "target.h". Add waitstatus field to
9186 struct lwp_info.
9187 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9188 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9189 to.
9190 (lin_lwp_handle_extended): New function. Handle clone events.
9191 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9192 thread exit events.
9193 (child_wait): Handle clone events.
9194 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9195 * linux-nat.c (linux_enable_event_reporting): Turn on
9196 PTRACE_O_TRACECLONE.
9197 (linux_handle_extended_wait): Handle clone events.
9198 * thread-db.c: Include <gnu/libc-version.h>.
9199 (struct private_thread_info): Add dying flag.
9200 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9201 higher.
9202 (attach_thread): Update comments. Handle dying threads.
9203 (detach_thread): Set the dying flag.
9204 (check_event): Always call attach_thread.
9205
8d5f9dcb
DJ
92062004-03-29 Daniel Jacobowitz <drow@mvista.com>
9207
9208 * mips-tdep.c (mips_pdr_data): New.
9209 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9210 (_initialize_mips_tdep): Initialize mips_pdr_data.
9211
66337bb1
CV
92122004-03-29 Corinna Vinschen <vinschen@redhat.com>
9213
9214 * minsyms.c (install_minimal_symbols): Move dropping leading
9215 char from linkage name from here...
9216 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9217 test for "__gnu_compiled*" symbols.
9218
e802b915
JB
92192004-03-28 Jim Blandy <jimb@redhat.com>
9220
9221 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9222 registers to temp register r0 and byte stores as prologue
9223 instructions.
9224
72b56458
AC
92252004-03-28 Andrew Cagney <cagney@redhat.com>
9226
9227 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9228 arm*-*-*.
9229
0bfbda3b
SC
92302004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9231
9232 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9233 and switch the layout to force a display of register window.
9234
5a7225ed
JB
92352004-02-26 J. Brobecker <brobecker@gnat.com>
9236
9237 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9238 of the INTEGER class.
9239
81a07a45
JB
92402004-03-26 Jim Blandy <jimb@redhat.com>
9241
9242 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9243 bytes long on PPC GNU/Linux.
9244
8c691c7a
DC
92452004-03-26 David Carlton <carlton@kealia.com>
9246
9247 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9248
103a0089
AC
92492004-03-25 Andrew Cagney <cagney@redhat.com>
9250
9251 * PROBLEMS: Add general section titles, remove references to
9252 specific releases.
9253
7a5ea0d4
DJ
92542004-03-25 Daniel Jacobowitz <drow@mvista.com>
9255
9256 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9257 INT_REGISTER_SIZE.
9258 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9259 FP_REGISTER_VIRTUAL_SIZE.
9260 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9261 of DEPRECATED_REGISTER_RAW_SIZE.
9262 (arm_register_type): Add gdbarch argument.
9263 (arm_register_raw_size, arm_register_virtual_size): Delete.
9264 (arm_register_byte, arm_extract_return_value)
9265 (arm_store_return_value, arm_get_longjmp_target): Update references
9266 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9267 (arm_gdbarch_init): Likewise. Don't set
9268 deprecated_register_raw_size, deprecated_register_virtual_size,
9269 deprecated_max_register_raw_size,
9270 deprecated_max_register_virtual_size, or
9271 deprecated_max_register_virtual_type. Do set register_type.
9272 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9273 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9274 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9275 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9276 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9277 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9278 INT_REGISTER_SIZE.
9279 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9280 (remote_rdp_store_register): Likewise.
9281
5792a79b
DJ
92822004-03-24 Daniel Jacobowitz <drow@mvista.com>
9283
9284 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9285 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9286 to after osabi initialization.
9287 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9288 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9289 functions.
9290 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9291 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9292 variables.
9293 (mips_linux_init_abi): Append signal trampoline unwinders.
9294
1196bfda
AC
92952004-03-24 Andrew Cagney <cagney@redhat.com>
9296
9297 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9298 * tramp-frame.c: Include "gdb_assert.h".
9299 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9300 correct sizeof.
9301 (tramp_frame_append): Validate the tramp frame's instructions.
9302 * Makefile.in (tramp-frame.o): Update dependencies.
9303
4be282b4
AC
93042004-03-23 Andrew Cagney <cagney@redhat.com>
9305
9306 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9307
69aec09b
AC
93082004-03-23 Andrew Cagney <cagney@redhat.com>
9309
9310 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9311 Nasser as past testsuite/lib/ (and other) maintainers.
9312
63ed89b4
DJ
93132004-03-23 Daniel Jacobowitz <drow@mvista.com>
9314
9315 * infcmd.c (attach_command): Reread symbols if we already have
9316 an exec file.
9317
f3b36427
AC
93182004-03-23 Andrew Cagney <cagney@redhat.com>
9319
9320 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9321
aa2a3f87
AC
93222004-03-23 Andrew Cagney <cagney@redhat.com>
9323
9324 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9325 * gdbarch.h, gdbarch.c: Re-generate.
9326 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9327 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9328 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9329 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9330 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9331 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9332 (DEPRECATED_SIGTRAMP_START): Update.
9333 * blockframe.c (find_pc_sect_partial_function): Update.
9334 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9335
00cac895
DJ
93362004-03-23 Daniel Jacobowitz <drow@mvista.com>
9337
9338 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9339 if necessary.
9340
f561f026
AC
93412004-03-23 Andrew Cagney <cagney@redhat.com>
9342
9343 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9344 predicate, deprecate.
9345 * gdbarch.h, gdbarch.c: Re-generate.
9346 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9347 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9348 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9349 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9350 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9351 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9352 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9353 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9354 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9355 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9356 * blockframe.c (find_pc_partial_function): Update.
9357 * breakpoint.c (bpstat_what): Update.
9358 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9359 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9360 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9361 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9362 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9363 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9364 * i386-nto-tdep.c (i386nto_init_abi): Update.
9365 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9366 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9367 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9368 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9369 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9370 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9371 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9372 * infrun.c (pc_in_sigtramp): Update.
9373 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9374 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9375 * mips-tdep.c (mips_gdbarch_init): Update.
9376 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9377 * ppc-linux-tdep.c: Update comment.
9378 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9379 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9380 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9381 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9382 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9383 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9384 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9385 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9386 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9387 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9388
8050c72f
AC
93892004-03-23 Andrew Cagney <cagney@redhat.com>
9390
d2259dd3
AC
9391 * tramp-frame.h, tramp-frame.h: New files.
9392 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9393 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9394
8050c72f
AC
9395 * Makefile.in: Update all dependencies.
9396
0db9b4b7
AC
93972004-03-23 Andrew Cagney <cagney@redhat.com>
9398
9399 * Makefile.in (trad_frame_h): Add $(frame_h).
9400 * trad-frame.h: Update copyright. Include "frame.h".
9401 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9402 (trad_frame_set_id, trad_frame_get_id): Declare.
9403 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9404 * trad-frame.c: Update copyright.
9405 (struct trad_frame_cache): Define.
9406 (trad_frame_cache_zalloc): New function.
9407 (trad_frame_set_id, trad_frame_get_id): New functions.
9408 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9409
8e645ae7
AC
94102004-03-22 Andrew Cagney <cagney@redhat.com>
9411
9412 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9413 s390_pltstub_unwind_cache.
9414 (s390_stub_frame_unwind_cache): Rename
9415 s390_pltstub_frame_unwind_cache.
9416 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9417 (s390_stub_frame_prev_register): Rename
9418 s390_pltstub_frame_prev_register.
9419 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9420 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9421
9422 From Ulrich Weigand:
9423 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9424 pointer calls like PLT calls.
9425
34fcf120
DJ
94262004-03-22 Daniel Jacobowitz <drow@mvista.com>
9427
9428 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9429 PC rather than the partial function start address. Use the start
9430 address to sanity check the found PDR.
9431
5b917078
DJ
94322004-03-22 Daniel Jacobowitz <drow@mvista.com>
9433
9434 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9435 linux_handle_extended_wait.
9436
8adf9e78
AC
94372004-03-22 Andrew Cagney <cagney@redhat.com>
9438
c3122434
AC
9439 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9440 function.
9441
8adf9e78
AC
9442 * frame.h (generic_pop_current_frame): Delete declaration.
9443 (deprecate_pop_dummy_frame): Deprecate
9444 generic_pop_dummy_frame.
9445 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9446 (generic_pop_current_frame): Delete function.
9447 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9448 generic_pop_current_frame.
9449 * v850-tdep.c (v850_pop_frame): Update.
9450 * mcore-tdep.c (mcore_pop_frame): Update.
9451 * sh64-tdep.c (sh64_pop_frame): Update.
9452 * h8300-tdep.c (h8300_pop_frame): Update.
9453
90ba813f
AC
94542004-03-22 Andrew Cagney <cagney@redhat.com>
9455
9456 * frame.h (deprecated_pc_in_call_dummy): Rename
9457 generic_pc_in_call_dummy.
9458 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9459 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9460 generic_pc_in_call_dummy.
9461 (pc_in_dummy_frame): Make static.
9462 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9463 * gdbarch.h, gdbarch.c: Re-generate.
9464 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9465 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9466 (legacy_get_prev_frame): Ditto.
9467 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9468 comment.
8718a420 9469
ca4bb888
AC
94702004-03-21 Andrew Cagney <cagney@redhat.com>
9471
244675f9
AC
9472 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9473 declaration and out-of-date comment.
9474 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9475 Delete function.
9476 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9477 deprecated_pc_in_call_dummy.
9478
ca4bb888
AC
9479 * infrun.c (handle_inferior_event): For non legacy frames, use the
9480 frame ID and frame type to identify a signal trampoline. Update
9481 comments.
9482
1777c7b4
NW
94832004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9484
9485 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9486 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9487
82417da5
AC
94882004-03-21 Andrew Cagney <cagney@redhat.com>
9489
9490 * frame-unwind.h: Update copyright.
9491 (struct frame_data): Add opaque declaration.
9492 (frame_sniffer_ftype): Declare.
9493 (struct frame_unwind): Add "unwind_data" and "sniffer".
9494 (frame_unwind_register_unwinder): Declare.
9495 (frame_unwind_find_by_frame): Add parameter "this_cache".
9496 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9497 (legacy_get_prev_frame, legacy_get_prev_frame)
9498 (get_frame_type): Pass the prologue_cache to
9499 frame_unwind_find_by_frame.
9500 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9501 "unwinder".
9502 (frame_unwind_register_unwinder): New function.
9503 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9504
b2ba182e
PH
95052004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9506
9507 * bcache.c (print_percentage): Use floating point to avoid
9508 incorrect results when portion*100 overflows.
9509
81332287
KB
95102004-03-19 Kevin Buettner <kevinb@redhat.com>
9511
9512 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9513 (ppc_linux_init_extra_frame_info)
9514 (ppc_linux_frameless_function_invocation)
9515 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9516 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9517 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9518 (rs6000_frame_chain): Delete declarations.
9519 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9520 (ppc_linux_init_extra_frame_info)
9521 (ppc_linux_frameless_function_invocation)
9522 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9523 (ppc_linux_init_abi): Remove registration of above deleted functions.
9524 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9525 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9526 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9527 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9528 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9529 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9530 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9531 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9532 frame management for all OSABIs.
9533
61a65099
KB
95342004-03-19 Andrew Cagney <cagney@redhat.com>
9535
9536 Committed by Kevin Buettner <kevinb@redhat.com>.
9537
9538 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9539 Update copyright.
9540 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9541 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9542 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9543 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9544 unwinders. #ifdef legacy frame code.
9545 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9546 "frame-base.h".
9547 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9548 (struct rs6000_frame_cache, rs6000_frame_cache)
9549 (rs6000_frame_this_id, rs6000_frame_prev_register)
9550 (rs6000_frame_sniffer, rs6000_frame_unwind)
9551 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9552 (rs6000_frame_base): Implement a traditional frame unwinder.
9553 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9554 frame unwinder.
9555
88f7da05
KB
95562004-03-19 Kevin Buettner <kevinb@redhat.com>
9557
9558 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9559 breakpoint address for watchpoints or the catch eventpoints.
9560 Add new paramter ``bptype''. Adjust all callers.
9561
f826dce1
AC
95622004-03-19 Andrew Cagney <cagney@redhat.com>
9563
33cb8b0f
AC
9564 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9565
f826dce1
AC
9566 * PROBLEMS: Delete note that ARM does not use frame code, problem
9567 fixed.
9568
43b1ab88
AC
95692004-03-18 Andrew Cagney <cagney@redhat.com>
9570
292ab034
AC
9571 * stack.c (return_command): Delete code wrapped in #ifdef
9572 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9573
43b1ab88
AC
9574 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9575
dbfe4626
AC
95762004-03-18 Andrew Cagney <cagney@redhat.com>
9577
9578 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9579 DEPRECATED_IN_SIGTRAMP.
9580 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9581 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9582 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9583 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9584 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9585 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9586 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9587 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9588 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9589 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9590
0cad6aec
AC
95912004-03-18 Andrew Cagney <cagney@redhat.com>
9592
9593 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9594 (struct frame_base_table_entry): Define.
9595 (struct frame_base_table): Re-implement as a linked list.
9596 (frame_base_init): Re-implement.
9597 (frame_base_table): Delete function.
9598 (append_predicate): Delete function.
9599 (frame_base_append_sniffer): Update.
9600 (frame_base_set_default): Update.
9601 (frame_base_find_by_frame): Update.
9602 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9603 * Makefile.in (frame-base.o): Update dependencies.
9604
9982c2e7
AC
96052004-03-17 Andrew Cagney <cagney@redhat.com>
9606
9607 * frame.c (legacy_get_prev_frame): Pass correct frame to
9608 frame_unwind_find_by_frame.
9609
8dfe8985
DC
96102004-03-17 David Carlton <carlton@kealia.com>
9611
9612 * NEWS: Mention C++ nested types and namespaces
9613
ed47347a
MC
96142004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9615
9616 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9617 and "Regressions since gdb 5.3.". Add known regressions since
9618 gdb 6.0.
9619
90aeadfc
DC
96202004-03-16 David Carlton <carlton@kealia.com>
9621
9622 * dwarf2read.c (process_structure_scope): Process children even
9623 when we're a declaration.
9624
73912b9b
AC
96252004-03-16 Andrew Cagney <cagney@redhat.com>
9626
9627 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9628 * blockframe.c (find_pc_partial_function)
9629 (find_pc_sect_partial_function): Merge into a single
9630 find_pc_partial_function.
9631
283accbc
MK
96322004-03-16 Mark Kettenis <kettenis@gnu.org>
9633
9634 * i386bsd-nat.c: s/regno/regnum/g.
9635 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9636 FP0_REGNUM.
9637 (store_inferior_registers): Likewise.
9638
f5b1afdf
MK
96392004-03-16 Mark Kettenis <kettenis@gnu.org>
9640
9641 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9642 of i387_fill_fsave.
9643 (store_inferior_registers): Call i387_collect_fsave and
9644 i387_collect_fxsave instead of i387_fill_fsave and
9645 i387_fill_fxsave.
9646
41fe5eb3
AC
96472004-03-15 Andrew Cagney <cagney@redhat.com>
9648
9649 * Makefile.in (frame-unwind.o): Update dependencies.
9650 * frame-unwind.c: Include "gdb_obstack.h".
9651 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9652 parameter.
9653 (append_predicate): Delete function.
9654 (struct frame_unwind_table_entry): New structure.
9655 (struct frame_unwind_table): Replace "sniffer" with "head" and
9656 "tail".
9657 (frame_unwind_append_sniffer): Update.
9658 (frame_unwind_find_by_frame): Update.
9659 (_initialize_frame_unwind): Registe frame_unwind_init using
9660 gdbarch_data_register_pre_init.
9661
3f63813d
MK
96622004-03-15 Mark Kettenis <kettenis@gnu.org>
9663
9664 * i386bsd-nat.c: Update copyright year.
9665 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9666 define unconditionally.
9667
3248c325 96682004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9669
9670 * i387-tdep.h (i387_collect_fsave): New prototype.
9671 * i387-tdep.c (i387_collect_fsave): New function containing most
9672 of the code from i387_fill_fsave.
3248c325 9673 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9674
871fbe6a
MK
96752004-03-15 Mark Kettenis <kettenis@gnu.org>
9676
9677 * i386-linux-tdep.c: Update copyright year.
9678 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9679 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9680 svr4_ilp32_link_map_offsets instead of
9681 i386_linux_svr4_fetch_link_map_offsets.
9682
8176b9b8
DC
96832004-03-15 David Carlton <carlton@kealia.com>
9684
9685 Fix for PR c++/1553:
9686 * dwarf2read.c (read_structure_type): Determine type name by
9687 calling determine_class_name.
9688 (determine_class_name): New.
9689 (determine_prefix): Look at TYPE_TAG_NAME and call
9690 determine_class_name when appropriate.
9691 (determine_prefix_aux, class_name): Delete.
9d58e29d 9692 (read_namespace): Set die->type.
8176b9b8 9693
fe8bf7d7
KB
96942004-03-15 Kevin Buettner <kevinb@redhat.com>
9695
9696 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9697 unused macro definition. The definition in target.h (or perhaps
9698 elsewhere) takes precedence.
9699
ed6edd9b
AC
97002004-03-15 Andrew Cagney <cagney@redhat.com>
9701
f9be684a
AC
9702 * ppc-tdep.h: Update copyright.
9703 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9704 function signatures to match "regsets.h".
9705 * ppc-linux-tdep.c: Include "regset.h".
9706 (ELF_GREGSET_SIZE): Delete.
9707 (right_supply_register): New function.
9708 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9709 using right_supply_register.
9710 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9711 functions.
9712 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9713 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9714 (_initialize_ppc_linux_tdep): Do not register
9715 ppc_linux_regset_core_fns.
9716 (ppc_linux_regset_from_core_section): Replace
9717 fetch_core_registers.
9718 (ppc_linux_regset_core_fns): Delete.
9719 * ppc-linux-nat.c: (right_fill_reg): New function.
9720 (supply_gregset): Update call to ppc_linux_supply_gregset.
9721 (fill_gregset): Clear the register set, use right_fill_reg.
9722 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9723 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9724
ed6edd9b
AC
9725 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9726 unsigned.
9727
030f20e1
AC
97282004-03-15 Andrew Cagney <cagney@redhat.com>
9729
9730 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9731 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9732 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9733 and register_gdbarch_data.
9734 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9735 (struct gdbarch_data): Replace "init" by "pre_init" and
9736 "post_init".
9737 * gdbarch.h, gdbarch.c: Re-generate.
9738 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9739 with"obstack", use OBSTACK_ZALLOC.
9740 (dwarf2_frame_ops): Delete.
9741 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9742 (dwarf2_frame_init_reg): Use gdbarch_data.
9743 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9744 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9745 (_initialize_svr4_solib): Update.
9746 * user-regs.c (_initialize_user_regs): Update.
9747 * reggroups.c (_initialize_reggroup): Update.
9748 * regcache.c (_initialize_regcache): Update.
9749 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9750 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9751 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9752 * frame-unwind.c (_initialize_frame_unwind): Update.
9753 * frame-base.c (_initialize_frame_base): Update.
9754 * user-regs.c (user_reg_add): Update.
9755 * reggroups.c (reggroup_add): Update.
9756 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9757 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9758 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9759 * frame-base.c (frame_base_table): Update.
9760 * remote.c (_initialize_remote): Update.
9761 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9762
3111a3fc
AC
97632004-03-15 Andrew Cagney <cagney@redhat.com>
9764
9765 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9766
5ecb7103
KB
97672004-03-15 Kevin Buettner <kevinb@redhat.com>
9768
9769 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9770 * frv-linux-tdep.c: New file.
9771 * frv-tdep.c (struct gdbarch_tdep): Add new field
9772 ``sigcontext_reg_addr''.
9773 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9774 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9775 (frv_sigramp_frame_sniffer): New functions.
9776 (frv_sigtramp_frame_unwind): New static global.
9777 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9778 sniffers.
9779 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9780 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9781
1ccda5e9
KB
97822004-03-15 Kevin Buettner <kevinb@redhat.com>
9783
9784 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9785 but not via a call to error(), when unable to read memory.
9786
b375a0a5
KB
97872004-03-15 Kevin Buettner <kevinb@redhat.com>
9788
9789 * frv-tdep.c (frv_call_dummy_words): Delete.
9790 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9791
4fdf6121
AC
97922004-03-15 Andrew Cagney <cagney@redhat.com>
9793
9794 * infrun.c (handle_step_into_function, step_over_function): Only
9795 update and use STEP_FRAME_ID when the system is using legacy
9796 frames. Update comments.
9797
34021503
MK
97982004-03-14 Mark Kettenis <kettenis@gnu.org>
9799
187e21d1
MK
9800 * amd64-linux-tdep.h: Remove file.
9801 * amd64-linux-tdep.c: Don't include "inferior.h" and
9802 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9803 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9804 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9805 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9806 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9807 macros.
9808 (user_to_gdb_regmap): Remove variable.
9809 (amd64_linux_gregset_reg_offset): New variable.
9810 (amd64_core_fns): Remove variable.
9811 (fetch_core_registers): Remove function.
9812 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9813 functions.
9814 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9815 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9816 * Makefile.in (amd64_linux_tdep_h): Remove.
9817 (amd64-linux-nat.o): Update dependencies.
9818 (amd64-linux-tdep.o): Update dependencies.
9819
99679982
MK
9820 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9821 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9822 functions.
9823 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9824
34021503
MK
9825 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9826 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9827
134d01f1
DJ
98282004-03-14 Daniel Jacobowitz <drow@mvista.com>
9829
9830 * dwarf2read.c (read_structure_type): Rename from
8718a420 9831 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9832 Return immediately if die->type is set. Call read_type_die before
9833 dwarf2_add_member_fn.
9834 (process_structure_scope): New function.
9835 (read_enumeration_type, process_enumeration_scope): New functions,
9836 broken out from read_enumeration. Don't create the enumeration
9837 type if it has already been created.
9838 (read_enumeration): Removed.
9839 (process_die): Call read_structure_type, process_structure_scope,
9840 read_enumeration_type, and process_enumeration_scope. Just call
9841 new_symbol for base and subrange types. Add a comment about other
9842 type dies.
9843 (read_type_die): Call read_enumeration_type.
9844 (add_partial_structure, new_symbol): Update comments.
9845
65760afb
SC
98462004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9847
9848 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9849
10f59415
SC
98502004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9851
9852 * tui/tui-win.h (tui_get_cmd_list): Declare.
9853 * tui/tui-win.c (tui_command): New function.
9854 (tui_get_cmd_list): New function.
9855 (_initialize_tui_win): Moved initialization of tui command in
9856 tui_get_cmd_list.
9857
9858 * tui/tui-data.c (init_content_element): Setup new data members.
9859 (init_win_info): Likewise.
9860 (free_content_elements): Free it.
9861 * tui/tui-data.h (struct tui_data_element): Store the register
9862 content to print.
9863 (struct tui_data_info): Keep the current register group.
9864
9865 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9866
9867 * tui/tui-regs.h (tui_show_registers): Update prototype.
9868 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9869 (tui_resize_all): No need to calculate anything for register window.
9870 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9871 (tui_set_register_element, tui_set_general_regs_content): Remove.
9872 (tui_set_special_regs_content): Remove.
9873 (tui_set_general_and_special_regs_content): Remove.
9874 (tui_set_float_regs_content): Remove.
9875 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9876 (tui_set_regs_content): Remove.
9877 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9878 (tui_v_show_registers_command_support): Remove.
9879 (tui_show_registers): Use a reggroup to specify the registers to show.
9880 (tui_show_register_group): New function.
9881 (tui_display_registers_from): Compute the layout of register window
9882 and refresh with new API; be sure to delete old register windows.
9883 (tui_check_register_values): Update to use tui_get_register and
9884 tui_display_data.
9885 (tui_display_register): Just refresh the register window part.
9886 (tui_register_format): Format registers and save in tui_data_element.
9887 (tui_get_register): New to combine tui_reg_value_has_changed and
9888 tui_get_register_raw_value; fix to use the new gdb API.
9889 (tui_show_float_command): Renamed tui_reg_float_command.
9890 (tui_show_general_command): Renamed tui_reg_general_command.
9891 (tui_show_special_command): Renamed tui_reg_system_command.
9892 (_initialize_tui_regs): Remove unused commands.
9893
c3364ea4
MK
98942004-03-13 Mark Kettenis <kettenis@gnu.org>
9895
27d1e716
MK
9896 * NEWS (New native configurations): Mention OpenBSD/amd64.
9897
c3364ea4
MK
9898 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9899 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9900 Remove defines.
9901 * config/i386/nm-fbsd64.h: Likewise.
9902 * config/i386/nm-obsd.h: Likewise.
9903 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9904 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9905
b2d6d697
KB
99062004-03-12 Kevin Buettner <kevinb@redhat.com>
9907
9908 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9909 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9910 New constants.
9911
76e43199
KB
9912 From Richard Sandiford <rsandifo@redhat.com>:
9913 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9914
34ce532e
KB
99152004-03-12 Kevin Buettner <kevinb@redhat.com>
9916
9917 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9918 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9919 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9920 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9921 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9922 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9923 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9924 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9925 definitions from frv-tdep.c to frv-tdep.h.
9926
c4d10515
KB
99272004-03-12 Kevin Buettner <kevinb@redhat.com>
9928
9929 Add shared library support for FR-V FDPIC ABI:
9930 * Makefile.in (solib-frv.o): Add dependencies.
9931 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9932 New functions.
9933 (frv_push_dummy_call): Add support for FDPIC ABI.
9934 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9935 for FDPIC ABI.
9936 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9937 (frv_fdpic_find_canonical_descriptor): Declare.
9938 * solib-frv.c: New file.
9939 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9940 * config/frv/tm-frv.h (solib.h): Include.
9941
ed1bd989
KB
99422004-03-12 Kevin Buettner <kevinb@redhat.com>
9943
9944 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9945 (frv-tdep.o): Update dependencies.
9946 * frv-tdep.h: New file.
9947 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9948 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9949 constants.
9950 (struct gdbarch_tdep): Add new member ``frv_abi''.
9951 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9952 functions.
9953 (new_variant): Set ``frv_abi'' field.
9954 (gdb_arch_init): Detect FDPIC executables.
9955
82b38f72
MK
99562004-03-12 Mark Kettenis <kettenis@gnu.org>
9957
9958 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9959 wrapper.
9960
db1ea9ba
AC
99612004-03-11 Andrew Cagney <cagney@redhat.com>
9962
9963 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9964
f8766ec1
KB
99652004-03-11 Kevin Buettner <kevinb@redhat.com>
9966
9967 * solist.h (master_so_list): New function.
9968 * solib.c (master_so_list): Likewise.
9969 * solib-svr4.c (enable_break): Iterate over so_list entries
9970 obtained from master list instead of entries obtained directly
9971 via svr4_current_sos().
9972
523f6a27
BE
99732004-03-10 Ben Elliston <bje@gnu.org>
9974
9975 * MAINTAINERS: Update my mail address.
9976
37814c18
KI
99772004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9978
9979 * remote-m32r-sdi.c: Support hardware watchpoint.
9980
8b9740d8
DJ
99812004-03-09 Daniel Jacobowitz <drow@mvista.com>
9982
9983 * user-regs.c: Update copyright years.
9984 (struct user_regs): Rename to gdb_user_regs.
9985 (append_user_reg, builtin_user_regs, user_regs_init)
9986 (user_reg_add, user_reg_map_name_to_regnum)
9987 (usernum_to_user_reg): Update.
9988
4bb7a0a7
DJ
99892004-03-09 Daniel Jacobowitz <drow@mvista.com>
9990
9991 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9992 (skip_children): New functions.
9993 (locate_pdi_sibling): Call skip_children.
9994
44e1a9eb
DJ
99952004-03-09 Daniel Jacobowitz <drow@mvista.com>
9996
9997 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9998 * gdbtypes.c (check_typedef): Update comments.
9999
f3dd6933
DJ
100002004-03-09 Daniel Jacobowitz <drow@mvista.com>
10001
10002 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10003 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10004 pointer. Update comment about comp_unit_head.
10005 (struct abbrev_info): Shorten two int flags.
10006 (dwarf_alloc_abbrev): Take a CU argument.
10007 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10008 each time through the loop. Update cleanup argument.
10009 (psymtab_to_symtab_1): Update cleanup call.
10010 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10011 abbrev_obstack.
10012 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10013 Just call obstack_free and clear the pointer.
10014
b40c7d58
DJ
100152004-03-09 Daniel Jacobowitz <drow@mvista.com>
10016
10017 * infrun.c (handle_inferior_event): Remove short-circuit code for
10018 events in a different thread.
10019
333dabeb
DJ
100202004-03-09 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10023 print the whole transfer.
10024 (initialize_targets): Update description of "set debug target".
10025
aa17d93e
DJ
100262004-03-09 Daniel Jacobowitz <drow@mvista.com>
10027
10028 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10029
0b71f08f
NW
100302004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10031
10032 * MAINTAINERS (write after approval): Add myself.
10033
3930f270
CV
100342004-03-08 Corinna Vinschen <vinschen@redhat.com>
10035
10036 * sh-tdep.c (sh_print_registers_info): Use for loop.
10037 Don't skip multiple registers when a float register is encountered.
10038
a2b4a96c
CV
100392004-03-08 Corinna Vinschen <vinschen@redhat.com>
10040
10041 Fix PR tdep/1291.
10042 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10043 to official SH documentation.
10044
f15a4bc0
AC
100452004-03-07 Andrew Cagney <cagney@redhat.com>
10046
10047 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10048 unused function.
10049
9498281f
DJ
100502004-03-07 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10053 (arm_get_next_pc): Handle BX and BLX.
10054
449e1137
AC
100552004-03-07 Andrew Cagney <cagney@redhat.com>
10056
eded0a31
AC
10057 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10058 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10059 HPPA_SP_REGNUM.
10060 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10061 (hppa_target_read_fp): Delete.
10062 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10063 register_virtual_size, max_register_raw_size,
10064 max_register_virtual_size, register_byte, register_size,
10065 target_read_fp, fp_regnum, and register_bytes. Set register_type
10066 instead of register_virtual_type.
10067 (hppa32_register_type, hppa64_register_type): Replace
10068 hppa32_register_virtual_type and hppa64_register_virtual_type.
10069 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10070 (HPPA_FP_REGNUM): Define.
10071
f5f907e2
AC
10072 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10073
69b4bbe4
AC
10074 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10075 (pa_do_registers_info): Delete.
10076 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10077 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10078 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10079
78161e48
AC
10080 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10081 GDB_TARGET_IS_HPPA code.
10082 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10083 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10084 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10085 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10086 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10087 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10088 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10089 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10090 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10091 (hppa_frameless_function_invocation, hppa64_store_return_value)
10092 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10093 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10094 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10095 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10096 (find_proc_framesize, deposit_21, restore_pc_queue)
10097 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10098 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10099
782eae8b
AC
10100 Unconditionally enable 64-bit frame and ABI code.
10101 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10102 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10103 push_dummy_frame, fix_call_dummy, push_arguments,
10104 call_dummy_location, extract_return_value, use_struct_convention,
10105 store_return_value, store_struct_return, saved_pc_after_call,
10106 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10107 frame_chain, frame_chain_valid, frameless_function_invocation,
10108 frame_saved_pc, and pop_frame.
78161e48 10109
449e1137
AC
10110 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10111 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10112 (hppa_gdbarch_init): Do not set PC_REGNUM.
10113
12507572
MK
101142004-03-06 Mark Kettenis <kettenis@gnu.org>
10115
10116 * config/alpha/tm-fbsd.h: Remove file.
10117 * config/alpha/fbsd.mt: Tweak comment.
10118 (TM_FILE): Set to tm-alpha.h.
10119
c107cc1b
AC
101202004-03-05 Andrew Cagney <cagney@redhat.com>
10121
10122 * infrun.c (step_over_function): When non-legacy code, and no
10123 step_frame_id, use the unwinder to get the caller's frame ID.
10124
f2e7c15d
MK
101252004-03-05 Mark Kettenis <kettenis@gnu.org>
10126
8b0c3633
MK
10127 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10128 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10129 bfd_arch_unknown. Adjust comment.
10130
f2e7c15d
MK
10131 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10132 * i386obsd-tdep.c: Correct spelling in comment.
10133 * i386nbsd-tdep.c: Correct spelling in comment.
10134 * sparc-tdep.c: Correct spelling in comments.
10135
1198ecbe
DC
101362004-03-05 David Carlton <carlton@kealia.com>
10137
10138 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10139 bug.
10140
9eb42ed1
MK
101412004-03-05 Mark Kettenis <kettenis@gnu.org>
10142
10143 * sparc-tdep.c: Fix typo in comment.
10144
52b5e991
JB
101452004-03-04 J. Brobecker <brobecker@gnat.com>
10146
10147 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10148
d8151005
DJ
101492004-03-04 Daniel Jacobowitz <drow@mvista.com>
10150
10151 * dwarf2read.c: Add comment describing memory lifetimes.
10152 (struct dwarf2_pinfo): Update comment.
10153 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10154 (read_enumeration, new_symbol): Don't use obsavestring.
10155
cbeae229
MK
101562004-03-04 Mark Kettenis <kettenis@gnu.org>
10157
722d18c2
MK
10158 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10159 instead of amd64_fill_fxsave.
10160 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10161 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10162
cbeae229
MK
10163 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10164 Reorganize code a bit.
10165
b4206d25
OF
101662004-03-04 Orjan Friberg <orjanf@axis.com>
10167
10168 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10169 when the frame pointer is pushed. Don't set the frame pointer's
10170 address on the stack unless it's actually located there.
b4206d25
OF
10171 Set the SRP's address on the stack correctly when the PC is still in
10172 the prologue.
10173 (cris_return_value): New function.
10174 (cris_gdbarch_init): Clear deprecated store_return_value,
10175 extract_return_value.
10176
49b0b195
JB
101772004-03-02 Jim Blandy <jimb@redhat.com>
10178
10179 * stabsread.c (reg_value_complaint): The maximum register number
10180 is one less than the number of registers.
10181
e9ff708b
AC
101822004-03-02 Andrew Cagney <cagney@redhat.com>
10183
10184 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10185 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10186 trailing comma and redundant assignment of I386_ST0_REGNUM.
10187 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10188 32-bit segment registers.
10189
d4715e41
AC
101902004-03-01 Andrew Cagney <cagney@redhat.com>
10191
10192 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10193 use frame_relative_level and get_next_frame.
10194
3ce2bf18
AC
101952004-02-29 Andrew Cagney <cagney@redhat.com>
10196
10197 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10198 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10199 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10200 Delete macro.
10201
2da6aac3
DJ
102022004-02-29 Daniel Jacobowitz <drow@mvista.com>
10203
10204 * inflow.c (terminal_inferior): Don't give up the terminal if we
10205 previously couldn't get the inferior's terminal state.
10206
6ba34a8d
DJ
102072004-02-29 Daniel Jacobowitz <drow@mvista.com>
10208
10209 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10210 PC_REGNUM.
10211
faae5abe
AC
102122004-02-28 Andrew Cagney <cagney@redhat.com>
10213
10214 * NEWS: Refer to GDB 6.1.
10215 * README: Refer to GDB 6.1.
10216 * PROBLEMS: Refer to GDB 6.1.
10217
2227a3c5
DJ
102182004-02-28 Daniel Jacobowitz <drow@mvista.com>
10219
10220 * thread-db.c (disable_thread_signals): Remove unused function.
10221
80571bff
MK
102222004-02-28 Mark Kettenis <kettenis@gnu.org>
10223
041bd74b
MK
10224 * amd64-nat.c: Include "gdb_string.h".
10225 (amd64_collect_native_gregset): Zero-extend the 32-bit
10226 general-purpose registers and %eip.
10227
3c017e40
MK
10228 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10229 * amd64-tdep.c (amd64_collect_fxsave): New function.
10230 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10231
80571bff
MK
10232 * i387-tdep.h: Update copyright year.
10233 (i387_collect_fxsave): New prototype.
10234 * i387-tdep.c: Update copyright year.
10235 (i387_collect_fxsave): New function containing most of the code
10236 from i387_fill_fxsave.
10237 (i387_fill_fxsave): Call i387_collect_fxsave.
10238
50d71875
AC
102392004-02-28 Andrew Cagney <cagney@redhat.com>
10240
10241 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10242 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10243
4a28816e
MK
102442004-02-28 Mark Kettenis <kettenis@gnu.org>
10245
10246 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10247
dbda9972
AC
102482004-02-28 Andrew Cagney <cagney@redhat.com>
10249
10250 * utils.c: Use "", instead of <>, to include readline.
10251 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10252 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10253 * source.c, solib.c, exec.c, event-top.c: Ditto.
10254 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10255 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10256 * Makefile.in: Update all dependencies.
10257 (readline_tilde_h, readline_history_h): Define.
10258 (readline_headers): Delete.
10259
83277a99
MK
102602004-02-28 Mark Kettenis <kettenis@gnu.org>
10261
91ae4303
MK
10262 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10263 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10264 "config/i386/tm-lx64.h".
10265
83277a99
MK
10266 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10267 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10268 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10269
6e1d7d6c
AC
102702004-02-28 Andrew Cagney <cagney@redhat.com>
10271
ecc9ac84
AC
10272 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10273
6e1d7d6c
AC
10274 * breakpoint.c (_initialize_breakpoint): Use
10275 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10276 Add help to show command.
10277
9671aeef
MK
102782004-02-28 Mark Kettenis <kettenis@gnu.org>
10279
7fa2737c
MK
10280 * i386-nat.c: Reformat to be closer to coding standards.
10281 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10282 `retval'. Make variables `align' and `size' local to while-loop.
10283 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10284 (_initialize_i386_nat): New prototype.
10285
9671aeef
MK
10286 * tui/tui.c: Include <readline/readline.h> instead of
10287 "readline/readline.h". Include it after <term.h> and
10288 "gdb_curses.h".
10289
fca7aa43
AC
102902004-02-27 Andrew Cagney <cagney@redhat.com>
10291
412275d5
AC
10292 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10293 the new frame unwind code.
10294 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10295 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10296 PCOQ_HEAD_REGNUM.
10297
fca7aa43
AC
10298 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10299 "return_value" and "push_dummy_call".
10300 (hppa32_use_struct_convention): Delete unused function.
10301 (hppa32_store_return_value): Delete unused function.
10302 (hppa32_extract_return_value): Delete unused function.
10303 (hppa32_stack_align): Delete function.
10304
e6a8a7d2
EZ
103052004-02-27 Eli Zaretskii <eliz@elta.co.il>
10306
10307 * coffread.c (enter_linenos): Don't let rawptr reference memory
10308 outside linetab[]'s limits.
10309
1797a8f6
AC
103102004-02-27 Andrew Cagney <cagney@redhat.com>
10311
10312 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10313 inferior stack space - the stack needs to grow upwards.
10314 (hppa32_frame_align): New function.
10315 (hppa64_frame_align): Replace hppa_frame_align.
10316 (hppa_gdbarch_init): Update.
10317
2e4b5889
OF
103182004-02-26 Orjan Friberg <orjanf@axis.com>
10319
10320 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10321 (dwarf2-frame.h): Include.
10322 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10323 Remove static variables related to ABI setting.
10324 (struct gdbarch_tdep): Remove cris_abi member.
10325 (struct frame_extra_info): Remove.
10326 (cris_unwind_cache, stack_item): New structs.
10327 (cris_frame_unwind, cris_frame_base): New variables.
10328 (push_stack_item, pop_stack_item)
10329 (cris_frame_unwind_cache, cris_frame_this_id)
10330 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10331 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10332 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10333 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10334 (cris_reg_struct_has_addr): New functions.
10335 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10336 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10337 (cris_store_struct_return, cris_frameless_function_invocation)
10338 (cris_pop_frame, cris_skip_prologue_main)
10339 (cris_abi_original_store_return_value)
10340 (cris_abi_v2_store_return_value)
10341 (cris_abi_original_extract_return_value)
10342 (cris_abi_v2_extract_return_value)
10343 (cris_abi_original_reg_struct_has_addr)
10344 (cris_abi_v2_reg_struct_has_addr)
10345 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10346 (cris_push_return_address, cris_abi_update): Remove.
10347 (_initialize_cris_tdep): Remove ABI command.
10348 (cris_dump_tdep): Ditto.
8718a420 10349 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10350 Set store_return_value, extract_return_value, push_dummy_code,
10351 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10352 frame_unwind_append_sniffer, frame_base_set_default.
10353 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10354 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10355 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10356 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10357 init_extra_frame_info, frameless_function_invocation, frame_chain,
10358 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10359 dummy_write_sp.
8718a420 10360
6b9acc27
JJ
103612004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10362
10363 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10364 * valprint.c (print_hex_chars): Change from static to external.
10365 (print_char_chars): New function.
10366 * printcmd.c (print_scalar_formatted): For integer and enum types
10367 that are longer than LONGEST, perform processing via appropriate
10368 print_*_chars routines.
10369
a431654a
AC
103702004-02-26 Andrew Cagney <cagney@redhat.com>
10371
10372 * Makefile.in: Update dependencies.
10373 Changes from Ulrich Weigand,
10374 * s390-tdep.c: Include "dwarf2-frame.h".
10375 (s390_dwarf2_frame_init_reg): New function.
10376 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10377 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10378
fa8d40ab
JJ
103792004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10380
10381 * breakpoint.c (pending_break_support): New setting variable.
10382 (break_command_1): Account for pending_break_support setting
10383 when creating pending breakpoints.
10384 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10385 (_initialize_breakpoint): Add "set breakpoint pending" and
10386 "show breakpoint pending" commands.
10387
0dcd613f
AC
103882004-02-26 Andrew Cagney <cagney@redhat.com>
10389
10390 Fix PR i18n/1570.
10391 * charset.c (backslashable, backslashed, represented): Remove 'e'
10392 from list of escaped characters, not part of ISO-C.
10393
479272a3
JB
103942004-02-25 J. Brobecker <brobecker@gnat.com>
10395
10396 From Peter Schauer <schauer@pdf.de>:
10397 * tui/tui.c: Move system header includes after local includes.
10398 Fixes a build failure on solaris systems.
10399
7613d933
JB
104002004-02-25 J. Brobecker <brobecker@gnat.com>
10401
10402 * configure.in: Refine the previous change.
10403 * configure: Regenerate.
10404
9c1488cb
MK
104052004-02-25 Mark Kettenis <kettenis@gnu.org>
10406
10407 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10408 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10409 "amd64-tdep.h" instead of "x86-64-tdep.h".
10410 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10411 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10412 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10413 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10414 and "x86-64-tdep.c".
10415 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10416 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10417 and "x86-64-tdep.c".
10418 * amd64bsd-nat.c: Update copyright year.
10419 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10420 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10421 "x86-64-tdep.h".
10422 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10423 "x86-64-tdep.h".
10424 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10425 "x86-64-tdep.h".
10426 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10427 "x86-64-tdep.h".
10428 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10429 "x86-64-tdep.h".
10430 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10431 "x86-64-tdep.h".
8718a420 10432 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10433 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10434 * Makefile.in (amd64_linux_tdep_h): Renamed from
10435 x86_64_linux_tdep_h.
10436 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10437 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10438 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10439 (amd64obsd-tdep.o): Update dependencies.
10440 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10441 dependencies.
10442 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10443 dependencies.
10444 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10445 amd64-linux-nat.c amd64-linux-tdep.c.
10446 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10447 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10448 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10449 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10450 amd64-tdep.o and amd64-linux-tdep.o.
10451 (TM_FILE): Set to tm-linux64.h.
10452 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10453 (NAT_FILE): Set to nm-linux64.h.
10454 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10455 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10456 amd64-tdep.o.
10457 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10458 amd64-tdep.o.
10459 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10460 amd64-tdep.o.
10461
4b8dad4a
RM
104622004-02-25 Roland McGrath <roland@redhat.com>
10463
10464 * remote.c (remote_protocol_qPart_auxv): New variable.
10465 (init_all_packet_configs): Initialize it.
10466 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10467 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10468 (show_remote_cmd): Call it.
10469 (_initialize_remote): Initialize commands.
10470 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10471 service TARGET_OBJECT_AUXV requests.
10472
66745969
JB
104732004-02-25 J. Brobecker <brobecker@gnat.com>
10474
10475 * configure.in: Make sure that the wborder function is available.
10476 Otherwise, search for it in the cur_colr library.
10477 * configure: Regenerate.
10478
79508e1e
AC
104792004-02-25 Andrew Cagney <cagney@redhat.com>
10480
10481 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10482
571ee600
MK
104832004-02-25 Mark Kettenis <kettenis@gnu.org>
10484
10485 * config/i386/tm-x86-64linux.h: Tweak comments.
10486
2b1b322f 104872004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10488
10489 * MAINTAINERS: Add self to write-after-approval list.
10490
4d2acc65
AC
104912004-02-25 Andrew Cagney <cagney@redhat.com>
10492
4b8dad4a 10493 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10494 * cli/cli-script.c (execute_control_command): Unconditionally
10495 install a cleanup. Default "ret" to "invalid_control". Use
10496 "break" instead of "return" to escape from the switch.
10497
4cfcaf21
JB
104982004-02-24 J. Brobecker <brobecker@gnat.com>
10499
10500 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10501 with the lines macro defined in term.h on AiX.
10502 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10503 a collision with the label_width macro defined in term.h on AiX.
10504
54a5c8d8
KB
105052004-02-23 David Mosberger <davidm@hpl.hp.com>
10506
10507 Committed by Kevin Buettner <kevinb@redhat.com>.
10508
10509 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10510 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10511 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10512 instead of ia64_write_pc().
10513 * ia64-linux-tdep.c (regcache.h): Include.
10514 (ia64_linux_write_pc): New function.
4b8dad4a 10515
8a1dac83
RM
105162004-02-23 Roland McGrath <roland@redhat.com>
10517
10518 * auxv.c (info_auxv_command): Fix typos in error messages.
10519
90f90721
MK
105202004-02-23 Mark Kettenis <kettenis@gnu.org>
10521
8a1dac83 10522 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10523 (enum amd64_regnum): New.
10524 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10525 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10526 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10527 (X86_64_XMM1_REGNUM): Removed.
10528 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10529 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10530 prototypes for renamed functions.
10531 * x86-64-tdep.c: Fix typo.
10532 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10533 register numbers.
10534 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10535 Use constants from `enum amd64_regnum' for register numbers.
10536 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10537 (amd64_analyze_prologue, amd64_frame_cache,
10538 amd64_sigtramp_frame_cache): Use constants from `enum
10539 amd64_regnum' for register numbers.
10540 (amd64_supply_fpregset): Adjust for renamed functions.
10541 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10542 `enum amd64_regnum' for register numbers.
10543 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10544 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10545 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10546 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10547 (amd64_linux_fill_gregset): Adjust for renamed macros.
10548 (fetch_core_registers): Adjust for renamed functions.
10549 (amd64_linux_init_abi): Adjust for renamed functions.
10550 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10551 renamed functions.
10552 * amd64-nat.c: Adjust for renamed macros.
10553 * amd64bsd-nat.c (fetch_inferior_registers)
10554 (store_inferior_registers): Use constants from `enum amd64_regnum'
10555 for register numbers. Adjust for renamed variables.
10556 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10557 renamed variables.
10558 (_initialize_amd64fbsd_nat): Use constants from `enum
10559 amd64_regnum' for register numbers.
10560 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10561 `enum amd64_regnum' for register numbers.
10562 (amd64fbsd_init_abi): Adjust for renamed functions.
10563 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10564 `enum amd64_regnum' for register numbers.
10565 (amd64nbsd_init_abi): Adjust for renamed functions.
10566 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10567 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10568 `enum amd64_regnum' for register numbers.
10569 (amd64obsd_init_abi): Adjust for renamed functions.
10570 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10571
d5479188
JJ
105722004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10573
10574 * breakpoint.c (print_one_breakpoint): Do not output spaces
10575 after printing <PENDING> for a pending breakpoint.
10576
81cb7cc9
JJ
105772004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10578
10579 * printcmd.c (print_scalar_formatted): Initialize val_long
10580 to remove compiler warning message.
10581
cbdeadca
JJ
105822004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10583
10584 * defs.h (nquery, yquery): New prototypes.
10585 * breakpoint.c (break_command_1): Use new nquery interface.
10586 * utils.c (defaulted_query, nquery, yquery): New functions.
10587
da6bab63
AC
105882004-02-23 Andrew Cagney <cagney@redhat.com>
10589
2f690297
AC
10590 * hppa-tdep.c (hppa_frame_align): New function.
10591 (hppa32_push_dummy_call): New function.
10592 (hppa64_push_dummy_call): New function.
10593 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10594 disabled.
8a1dac83 10595
da6bab63
AC
10596 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10597 FIX_CALL_DUMMY when push_dummy_call is available.
10598 (call_function_by_hand, push_dummy_code): Ditto.
10599
abf9b42d
AC
106002004-02-22 Andrew Cagney <cagney@redhat.com>
10601
10602 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10603 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10604 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10605 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10606 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10607 call_dummy_location to ON_STACK.
10608
10fc94a4
MK
106092004-02-22 Mark Kettenis <kettenis@gnu.org>
10610
51433e4b
MK
10611 * x86-64-linux-tdep.c: Tweak comment.
10612 (amd64_linux_supply_gregset): Renamed from
10613 x86_64_linux_supply_gresget.
10614 (amd64_linux_fill_gregset): Renamed from
10615 x86_64_linux_fill_gregset.
10616 (fetch_core_registers): Adjust for renamed functions.
10617 (amd64_core_fns): Renamed from x86_64_core_fns.
10618 (amd64_linux_sigtramp_start): Renamed from
10619 x86_64_linux_sigtramp_start.
10620 (amd64_linux_pc_in_sigtramp): Renamed from
10621 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10622 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10623 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10624 (amd64_linux_sigcontext_addr): Renamed from
10625 x86_64_linux_sigcontext_addr.
10626 (amd64_linux_sc_reg_offset): Renamed from
10627 x86_64_linux_sc_reg_offset.
10628 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10629 Adjust for renamed functions and variables.
10630 (_initialize_amd64_linux_tdep): Renamed from
10631 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10632 variables.
10633 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10634 Adjust for renamed functions.
10635
430eaf2e
MK
10636 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10637 from x86_64_linux_gregset64_reg_offset.
10638 (amd64_linux_gregset32_reg_offset): Rename from
10639 x86_64_linux_gregset64_reg_offset.
10640 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10641 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10642 (amd64_linux_dr_set_control): Renamed from
10643 x86_64_linux_dr_set_control. Adjust for renamed functions.
10644 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10645 Adjust for renamed functions.
10646 (amd64_linux_dr_reset_addr): Renamed from
10647 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10648 (amd64_linux_dr_get_status): Renamed from
10649 x86_64_linux_dr_get_status. Adjust for renamed functions.
10650 (_initialize_amd64_linux_nat): Renamed from
10651 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10652 functions.
10653 * config/i386/nm-x86-64linux.h: Update copyright year.
10654 Adjust for renamed functions.
10655
10fc94a4
MK
10656 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10657 amd64fbsd_sigtramp_start.
10658 (amd64fbsd_sigtramp_end_addr): Renamed from
10659 amd64fbsd_sigtramp_end.
10660 (amd64fbsd_init_abi): Adjust for renamed variables.
10661 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10662 variables.
10663 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10664 amd64fbsd_sigtramp_start.
10665 (amd64fbsd_sigtramp_end_addr): Renamed from
10666 amd64fbsd_sigtramp_end.
10667
343af405
AC
106682004-02-22 Andrew Cagney <cagney@redhat.com>
10669
537987fc
AC
10670 * hppa-tdep.c (hppa32_return_value): New function.
10671 (hppa64_return_value): New function.
10672 (hppa_gdbarch_init): Set return_value; keep disabled.
10673
fad850b2
AC
10674 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10675 struct-return and inferior function call methods.
10676
26d08f08
AC
10677 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10678 "frame-base.h".
10679 (struct hppa_frame_cache): Define.
10680 (hppa_frame_cache, hppa_frame_this_id): New functions.
10681 (hppa_frame_prev_register): New function.
10682 (hppa_frame_unwind, hppa_frame_base): New variables.
10683 (hppa_frame_unwind_sniffer): New function.
10684 (hppa_frame_base_address, hppa_unwind_pc): New function.
10685 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10686 sniffer, and frame base sniffer; keep disabled.
10687 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10688 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10689
e7d7bd65
AC
10690 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10691 to predicates for "seriously old code".
10692
e963316f
AC
10693 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10694 runtime if(0).
10695
56132691
AC
10696 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10697 unsigned.
10698 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10699
343af405
AC
10700 * config/pa/tm-hppa.h: Update copyright.
10701 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10702 (deprecated_init_frame_pc_default): Delete declaration.
10703 (hppa_frame_init_saved_regs): Delete declaration.
10704 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10705 * hppa-tdep.c: Include "arch-utils.h".
10706 (hppa_gdbarch_init): Set deprecated init_frame_pc
10707 and deprecated frame_init_saved_regs.
10708 (hppa_frame_init_saved_regs): Make static.
10709
f5859b4d
MK
107102004-02-22 Mark Kettenis <kettenis@gnu.org>
10711
86f6f8e7 10712 Remove old 386BSD support.
cf7c5c23 10713 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10714 * configure.host: Remove i[34567]86-*-bsd*.
10715 * configure.tgt: Remove i[34567]86-*-bsd*.
10716 * i386b-nat.c: Removed.
10717 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10718 (i386b-nat.o): Remove dependencies.
10719
86f6f8e7
MK
10720 * config/i386/i386bsd.mh: Removed.
10721 * config/i386/i386bsd.mt: Removed.
10722 * config/i386/nm-i386bsd.h: Removed.
10723 * config/i386/tm-i386bsd.h: Removed.
10724 * config/i386/xm-i386bsd.h: Removed.
10725
971218cd
MK
10726 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10727
7e654c37
MK
10728 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10729 (amd64fbsd_init_abi): Set link map offsets.
10730 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10731 (amd64nbsd_init_abi): Set link map offsets.
10732 * amd64obsd-tdep.c: Include "solib-svr4.h".
10733 (amd64obsd_init_abi): Set link map offsets.
10734 * i386fbsd-tdep.c: Include "solib-svr4.h".
10735 (i386fbsd_init_abi): Set link map offsets.
10736 * i386nbsd-tdep.c: Include "solib-svr4.h".
10737 (i386nbsdelf_init_abi): Set link map offsets.
10738 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10739 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10740 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10741 solib-legacy.o and core-aout.o. Reformat.
10742 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10743 solib-svr4.o, solib-legacy.o. Reformat.
10744 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10745 * config/i386/nbsdelf.mh: Reformat.
10746 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10747 solib-svr4.o, solib-legacy.o and corelow.o.
10748 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10749 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10750 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10751 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10752 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10753 (TM_FILE): Set to tm-fbsd.h.
10754 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10755 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10756 solib-svr4.o.
10757 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10758 solib-svr4.o.
10759 (TM_FILE): Set to nm-nbsd.h.
10760 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10761 Simplify shared library support. Don't include "elf/common.h".
10762 (SVR4_SHARED_LIBS): Don't define.
10763 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10764 "solib.h".
10765 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10766 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10767 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10768 Don't include "i386/tm-i386.h". Include "solib.h".
10769 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10770 Don't include "i386/tm-i386.h".
10771 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10772 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10773 Include "i386/xm-i386.h".
10774 (HOST_LONG_DOUBLE_FORMAT): Remove.
10775
5d93ae8c
MK
10776 Fix OpenBSD/i386 sigtramp recognition.
10777 * i386-tdep.h: Update copyright year.
10778 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10779 (i386bsd_sigtramp_end): New prototypes.
10780 (i386fbsd_sigtramp_start_addr): Renamed from
10781 i386fbsd_sigtramp_start.
10782 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10783 (i386obsd_sigtramp_start_addr): Renamed from
10784 i386obsd_sigtramp_start.
10785 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10786 * i386bsd-tdep.c: Update copyright year.
10787 (i386bsd_pc_in_sigtramp): Make public.
10788 * i386fbsd-nat.c: Update copyright year.
10789 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10790 * i386fbsd-tdep.c: Update copyright year.
10791 (i386fbsd_sigtramp_start_addr): Renamed from
10792 i386fbsd_sigtramp_start.
10793 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10794 (i386fbsdaout_init_abi): Adjust for renamed variables.
10795 * i386obsd-nat.c: Update copyright year.
10796 (_initialize_i386obsd_nat): Adjust for renamed variables.
10797 * i386obsd-tdep.c: Include "target.h".
10798 (i386obsd_page_size): New variable.
10799 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10800 (i386obsd_sigtramp_end): New functions.
10801 (i386obsd_sigtramp_start_addr): Renamed from
10802 i386obsd_sigtramp_start.
10803 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10804 (i386obsd_init_abi): Adjust for renamed variables. Set
10805 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10806 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10807
84d04465
MK
10808 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10809 trampoline change in OpenBSD kernel.
10810
b053aceb
MK
10811 * amd64-nat.c: Update copyright year.
10812 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10813 architecture from REGCACHE.
10814
f5859b4d
MK
10815 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10816 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10817
e4bbbda8
MK
108182004-02-21 Mark Kettenis <kettenis@gnu.org>
10819
ba361932
MK
10820 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10821 i[34567]86-*-openbsd3.[0-3].
10822 * config/i386/obsdaout.mh: New file.
10823
d3e48264
MK
10824 * config/i386/obsd.mh (MH_FLAGS): Remove.
10825
60a6eeb6
MK
10826 Fix PR build/1549.
10827 * i386obsd-tdep.c: Update copyright years. Include
10828 "solib-svr4.h".
10829 (i386obsd_init_abi): Don't set regset_from_core_section here.
10830 (i386obsd_aout_init_abi): New function. Set
10831 regset_from_core_section here.
10832 (i386obsd_elf_init_abi): New function.
10833 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10834 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10835 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10836 (TM_FILE): Set to tm-nbsd.h.
10837
10838 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10839 solib-sunos.o.
10840
e4bbbda8
MK
10841 * solib-svr4.h: Update copyright year.
10842 (svr4_ilp32_fetch_link_map_offsets)
10843 (svr4_lp64_fetch_link_map_offsets): New prototype.
10844 * solib-svr4.c: Update copyright year.
10845 (svr4_ilp32_fetch_link_map_offsets)
10846 (svr4_lp64_fetch_link_map_offsets): New function.
10847
f6fe98ef
DJ
108482004-02-20 Daniel Jacobowitz <drow@mvista.com>
10849
10850 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10851 to the partial symbol table.
10852
589ca796
JB
108532004-02-20 J. brobecker <brobecker@gnat.com>
10854
10855 * PROBLEMS: Add description of problem documented under gdb/1560.
10856
2031c21a
MK
108572004-02-20 Mark Kettenis <kettenis@gnu.org>
10858
30b344b1
MK
10859 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10860 comments.
10861 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10862 functions.
10863 (amd64obsd_init_abi): Reorder initializations. Use
10864 amd64obsd_r_reg_offset to initialize the general-purpose register
10865 set details. Set regset_from_core_section.
10866 (_initialize_amd64obsd_tdep): Rename from
10867 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10868 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10869 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10870
2031c21a
MK
10871 * NEWS (New native configurations): Mention OpenBSD/alpha.
10872 * configure.tgt: Add alpha*-*-openbsd*.
10873 * configure.host: Add alpha*-*-openbsd*.
10874 * alphanbsd-tdep.c: Update copyright year.
10875 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10876
42471775
AC
108772004-02-20 Andrew Cagney <cagney@redhat.com>
10878
10879 Fix PR tdep/1372.
10880 * configure.tgt: Delete target "none-*-*".
10881 * configure.host: Delete host "none-*-*".
10882 * config/none/none.mh: Delete file.
10883 * config/none/none.mt: Delete file.
10884 * config/none/xm-none.h: Delete file.
10885 * config/none/tm-none.h: Delete file.
10886 * config/none/nm-none.h: Delete file.
10887
960ccd7d
FF
108882004-02-19 Fred Fish <fnf@redhat.com>
10889
10890 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10891 cache->uses_fp prior to setting it.
10892
5f883edd
FF
108932004-02-19 Fred Fish <fnf@redhat.com>
10894
10895 Fix for PR breakpoint/1558.
10896 * sh-tdep.c (IS_JSR): New macro.
10897 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10898
f98c22d5
JB
108992004-02-19 Jim Blandy <jimb@redhat.com>
10900
10901 * findvar.c (value_from_register): Doc fix.
10902
95051d27
JJ
109032004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10904
10905 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10906 type being greater than sizeof of host's LONGEST. Always use
10907 unpack_long() unless format 'f' chosen.
10908
ccefbec3
EZ
109092004-02-19 Joel Brobecker <brobecker@gnat.com>
10910
10911 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10912
ccefbec3
EZ
10913 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10914 contains a symbol wich is the best, non-exact match for the given
10915 pc. Update comments.
10916
109172004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10918
2ede629f
EZ
10919 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10920 macro, which was part of the now removed Mach 3 port.
10921 * utils.c (request_quit): Ditto.
10922
567ee972
MK
109232004-02-18 Mark Kettenis <kettenis@gnu.org>
10924
10925 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10926 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10927
50cca7bb
MK
109282004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10929
10930 Committed by Mark Kettenis <kettenis@gnu.org>.
10931
10932 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10933 Define.
10934
226361c4
AC
109352004-02-18 Andrew Cagney <cagney@redhat.com>
10936
10937 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10938 CONFIG_INSTALL and CONFIG_UNINSTALL.
10939 * configure: Re-generate.
10940 * interps.h (INTERP_TUI): Define.
10941 * Makefile.in: Update dependencies.
10942 (TUI): New macro.
10943 (tui-main.o): Specify dependencies.
10944 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10945 * tui/tui-main.c: New file.
10946
49cfa46f
MK
109472004-02-18 Mark Kettenis <kettenis@gnu.org>
10948
e2879ccb
MK
10949 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10950 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10951 dependencies.
10952 * configure.host: Add x86_64-*-openbsd*.
10953 * configure.tgt: Add x86_64-*-openbsd*.
10954 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10955
c43f4bec
MK
10956 * tui/tui.c: Don't include <malloc.h>.
10957
09ae75b6
MK
10958 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10959 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10960 amd64nbsd-tdep.c.
10961
49cfa46f 10962 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10963 static. Remove extraneous whitespace.
49cfa46f
MK
10964 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10965 static.
10966
05957fdb
JB
109672004-02-17 Jim Blandy <jimb@redhat.com>
10968
10969 * findvar.c (value_from_register): Doc fix.
10970
d0f54f9d
JB
109712004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10972
10973 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10974
8a1dac83 10975 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10976 CORE_ADDR as type for selectors. Correct types for GNU run time
10977 message lookup function to use double indirection.
10978 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10979 * objc-lang.h (lookup_child_selector): Adapt prototype.
10980
9cbd5950
JB
10981 * s390-nat.c (SUBOFF): New macro.
10982 (supply_gregset, fill_gregset): Use it to handle debugging
10983 of 32-bit exectuables running under a 64-bit kernel.
10984 * s390-tdep.c: Include "solib-svr4.h".
10985 (s390_svr4_fetch_link_map_offset): New function.
10986 (s390x_svr_fetch_link_map_offset): Likewise.
10987 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10988 * Makefile.in (s390-tdep.o): Update dependencies.
10989
a8c99f38
JB
10990 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10991 "frame-unwind.h".
10992 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10993 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10994 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10995 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10996 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10997 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10998 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10999 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11000 (struct frame_extra_info): Remove.
11001 (s390_memset_extra_info): Remove.
f73b1eff
JB
11002 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11003 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11004 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11005 (is_rse): Renamed to ...
11006 (is_rsy): ... this. Support long displacements.
11007 (is_rxe): Renamed to ...
11008 (is_rxy): ... this. Support long displacements.
11009 (compute_x_addr): Support long displacements.
11010 (struct s390_prologue_data): New data type.
11011 (s390_on_stack): Change API to use struct s390_prologue_data.
11012 (s390_store): Reimplement.
11013 (s390_load): New function.
11014 (s390_get_signal_frame_info): Remove.
11015 (s390_get_frame_info): Remove, replace by ...
11016 (s390_analyze_prolog): ... this new function.
11017 (s390_check_function_end): Remove.
11018 (s390_function_start): Remove.
11019 (s390_frameless_function_invokation): Remove.
11020 (s390_is_sigreturn): Remove.
11021 (s390_init_frame_pc_first): Remove.
11022 (s390_init_frame_extra_info): Remove.
11023 (s390_frame_init_saved_regs): Remove.
11024 (s390_frame_saved_pc_nofix): Remove.
11025 (s390_frame_saved_pc): Remove.
11026 (s390_frame_chain): Remove.
11027 (s390_fp_regnum, s390_read_fp): Remove.
11028 (s390_pop_frame_regular, s390_pop_frame): Remove.
11029 (s390_saved_pc_after_call): Remove.
11030 (s390_skip_prologue): Reimplement.
11031 (s390_in_function_epilogue_p): Support long displacements.
11032 (struct s390_unwind_cache): New data structure.
11033 (s390_frame_unwind_cache): New function.
11034 (s390_prologue_frame_unwind_cache): Likewise.
11035 (s390_backchain_frame_unwind_cache): Likewise.
11036 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11037 (s390_frame_unwind): Define.
11038 (s390_frame_sniffer): New function.
11039 (struct s390_pltstub_unwind_cache): New data structure.
11040 (s390_pltstub_frame_unwind_cache): New function.
11041 (s390_pltstub_frame_this_id): Likewise.
11042 (s390_pltstub_frame_prev_register): Likewise.
11043 (s390_pltstub_frame_unwind): Define.
11044 (s390_pltstub_frame_sniffer): New function.
11045 (struct s390_sigtramp_unwind_cache): New data structure.
11046 (s390_sigtramp_frame_unwind_cache): New function.
11047 (s390_sigtramp_frame_this_id): Likewise.
11048 (s390_sigtramp_frame_prev_register): Likewise.
11049 (s390_sigtramp_frame_unwind): Define.
11050 (s390_sigtramp_frame_sniffer): New function.
11051 (s390_frame_base_address, s390_local_base_address): New functions.
11052 (s390_frame_base): Define.
11053 (s390_unwind_pc, s390_unwind_sp): New function.
11054 (s390_push_dummy_call): Use new frame base location.
11055 (s390_unwind_dummy_id): Likewise.
11056 (s390_gdbarch_init): Remove calls to:
11057 set_gdbarch_frameless_function_invocation,
11058 set_gdbarch_deprecated_init_frame_pc,
11059 set_gdbarch_deprecated_frame_chain,
11060 set_gdbarch_deprecated_frame_init_saved_regs,
11061 set_gdbarch_deprecated_pop_frame,
11062 set_gdbarch_deprecated_init_extra_frame_info,
11063 set_gdbarch_deprecated_init_frame_pc_first,
11064 set_gdbarch_deprecated_target_read_fp,
11065 set_gdbarch_deprecated_frame_saved_pc,
11066 set_gdbarch_deprecated_saved_pc_after_call,
11067 set_gdbarch_deprecated_fp_regnum.
11068 Add calls to:
11069 set_gdbarch_in_solib_call_trampoline,
11070 frame_unwind_append_sniffer,
11071 frame_base_set_default,
11072 set_gdbarch_unwind_pc,
11073 set_gdbarch_unwind_sp.
11074 * Makefile.in (s390-tdep.o): Update dependencies.
11075
b0cf273e
JB
11076 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11077 (S390_STACK_FRAME_OVERHEAD): Remove.
11078 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11079 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11080 (s390_promote_integer_argument): Remove.
11081 (s390_cannot_extract_struct_value_address): Remove.
11082 (s390_use_struct_convention, s390_store_struct_return): Remove.
11083 (s390_extract_return_value, s390_store_return_value): Remove.
11084 (s390_return_value_convention, s390_return_value): New functions.
11085 (is_float_singleton): Handle typedefs.
8a1dac83 11086 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11087 Remove, replace by ...
11088 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11089 s390_function_arg_integer): ... these new functions.
11090 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11091 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11092 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11093 Fill in tdep->abi.
11094 Remove calls to:
11095 set_gdbarch_deprecated_store_struct_return,
11096 set_gdbarch_deprecated_extract_return_value,
11097 set_gdbarch_deprecated_store_return_value,
11098 set_gdbarch_use_struct_convention,
11099 set_gdbarch_extract_struct_value_address,
11100 set_gdbarch_deprecated_pc_in_call_dummy,
11101 set_gdbarch_deprecated_push_arguments,
11102 set_gdbarch_deprecated_save_dummy_frame_tos,
11103 set_gdbarch_deprecated_push_return_address,
11104 set_gdbarch_deprecated_sizeof_call_dummy_words,
11105 set_gdbarch_deprecated_call_dummy_words,
11106 set_gdbarch_deprecated_dummy_write_sp.
11107 Add calls to:
11108 set_gdbarch_push_dummy_call,
11109 set_gdbarch_unwind_dummy_id,
11110 set_gdbarch_return_value.
8a1dac83 11111
e1457d83
JB
11112 * config/s390/nm-linux.h: Update comments.
11113 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11114 (STOPPED_BY_WATCHPOINT): Redefine.
11115 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11116 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11117 (s390_stopped_by_watchpoint): Likewise.
11118 (watch_area_cnt): Remove.
11119 * s390-nat.c: Update comments.
11120 (watch_area): Remove typedef.
11121 Global replace watch_area by struct watch_area.
11122 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11123 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11124 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11125 (s390_fix_watch_points): Remove pid argument,
11126 use s390_inferior_tid. Recompute area spanned by watchpoints.
11127 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11128 argument. Reimplement.
11129
d0f54f9d
JB
11130 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11131 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11132 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11133 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11134 core-regset.o.
11135 * config/s390/s390x.mt: Remove.
11136 * config/s390/tm-s390.h: Remove.
11137 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11138 (TARGET_ELF64): Remove.
11139 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11140 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11141 s390*-*-* case; always set gdb_target to s390.
11142 * regformats/reg-s390.dat: Remove control registers.
11143 * regformats/reg-s390x.dat: Likewise.
11144 * s390-tdep.h: New file.
8a1dac83 11145 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11146 Include "inferior.h" and "s390-tdep.h".
11147 Remove private definition of offsetof.
11148 (s390_register_u_addr): Remove.
11149 (regmap_gregset, regmap_fpregset): Define.
11150 (supply_gregset, fill_gregset): Reimplement.
11151 (supply_fpregset, fill_fpregset): Likewise.
11152 (s390_inferior_tid): New function.
11153 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11154 (fetch_inferior_registers, store_inferior_registers): Likewise.
11155 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11156 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11157 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11158 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11159 (struct gdbarch_tdep): Define.
11160 (struct s390_register_info): Define.
11161 (s390_register_info): New variable.
11162 (s390_register_name): Reimplement.
11163 (s390_register_type): New function.
11164 (s390_register_raw_size, s390x_register_raw_size): Remove.
11165 (s390_cannot_fetch_register): Remove.
11166 (s390_register_byte): Remove.
11167 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11168 (s390_dwarf_regmap): New variable.
11169 (s390_dwarf_reg_to_regnum): New function.
11170 (s390_stab_reg_to_regnum): Remove.
11171 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11172 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11173 (s390_convert_register_p): Likewise.
11174 (s390_register_to_value, s390_value_to_register): Likewise.
11175 (s390_register_reggroup_p): Likewise.
11176 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11177 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11178 (s390_supply_regset, s390_regset_from_core_section): New functions.
11179 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11180 (S390_FPR_SIZE): Likewise.
11181 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11182 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11183 (S390_NUM_GPRS): Move here from tm-s390.h.
11184 (S390_NUM_FPRS): Likewise.
11185 (s390_in_function_epilogue_p): New function.
11186 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11187 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11188 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11189 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11190 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11191 Remove calls to:
11192 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11193 set_gdbarch_deprecated_max_register_virtual_size,
11194 set_gdbarch_deprecated_register_byte,
d0f54f9d 11195 set_gdbarch_cannot_fetch_register,
8a1dac83 11196 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11197 set_gdbarch_deprecated_register_size,
11198 set_gdbarch_deprecated_register_raw_size,
11199 set_gdbarch_deprecated_register_virtual_size,
11200 set_gdbarch_deprecated_register_virtual_type,
11201 set_gdbarch_deprecated_register_bytes.
11202 Add calls to:
11203 set_gdbarch_num_pseudo_regs,
11204 set_gdbarch_register_type,
11205 set_gdbarch_convert_register_p,
11206 set_gdbarch_register_to_value,
11207 set_gdbarch_value_to_register,
11208 set_gdbarch_register_reggroup_p,
11209 set_gdbarch_regset_from_core_section,
11210 set_gdbarch_pseudo_register_read,
11211 set_gdbarch_pseudo_register_write,
11212 set_gdbarch_in_function_epilogue_p.
11213 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11214 (s390_tdep_h): New variable.
11215
8cfe231d
JB
112162004-02-17 Jim Blandy <jimb@redhat.com>
11217
4589a601
JB
11218 * findvar.c (value_from_register): If the type has no length, just
11219 return an acceptable value --- don't report an internal error.
11220
8cfe231d
JB
11221 * stabsread.c (read_type): If we find any type numbers that are
11222 forward references, complain if the references aren't resolved by
11223 the time we're finished reading.
11224 (cleanup_undefined_types): Make error message more appropriate for
11225 a complaint.
11226
5bf0017e
EZ
112272004-02-17 Elena Zannoni <ezannoni@redhat.com>
11228
9d62932d
EZ
11229 * Makefile.in (defs_h): Remove dependency on progress_h.
11230 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11231 progress.h.
11232 * main.c (captured_main): Delete use of START_PROGRESS and
11233 END_PROGRESS.
11234
112352004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11236
5bf0017e
EZ
11237 * objfiles.c (terminate_minimal_symbol_table): Add back
11238 initialization of MSYMBOL_TYPE.
11239
9fc9f5e2
AC
112402004-02-17 David Mosberger <davidm@hpl.hp.com>
11241
11242 Committed by Andrew Cagney.
11243 * Makefile.in (ia64_tdep_h): New macro.
11244 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11245 (ia64-tdep.o): Likewise.
11246 * ia64-tdep.h: New file.
11247 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11248 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11249 (ia64_aix_sigcontext_register_address): Likewise.
11250 (ia64_linux_getunwind_table): Delete declaration.
11251 * ia64-linux-tdep.c: Likewise.
11252
76cd2bd9
CV
112532004-02-17 Corinna Vinschen <vinschen@redhat.com>
11254
11255 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11256 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11257 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11258
634aa483
AC
112592004-02-17 Andrew Cagney <cagney@redhat.com>
11260
11261 * symtab.c (skip_prologue_using_sal): New function.
11262 * symtab.h (skip_prologue_using_sal): Declare.
11263 * frv-tdep.c: Include "symtab.h".
11264 (skip_prologue_using_sal): Delete function.
11265 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11266 * rs6000-tdep.c (refine_prologue_limit): Mention
11267 skip_prologue_using_sal.
11268 * ia64-tdep.c (refine_prologue_limit): Ditto.
11269 * Makefile.in: Update dependencies.
11270
112712004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11272
39ce7b3f
AC
11273 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11274 START_INFERIOR_TRAPS_EXPECTED.
11275 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11276 START_INFERIOR_TRAPS_EXPECTED.
11277 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11278 Delete macro.
11279 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11280 macro, moved to "nm-osf.h". Update copyright.
11281 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11282 update copyright.
11283
19772a2c
AC
11284 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11285 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11286 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11287 frameless_look_for_prologue.
11288 * frame.h (legacy_frameless_look_for_prologue): Rename
11289 frameless_look_for_prologue.
11290 * gdbarch.h, gdbarch.c: Re-generate.
11291 * sh64-tdep.c (sh64_gdbarch_init): Update.
11292 * sh-tdep.c (sh_gdbarch_init): Update.
11293 * s390-tdep.c (s390_gdbarch_init): Update.
11294 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11295 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11296 * m68k-tdep.c (m68k_gdbarch_init): Update.
11297 (delta68_frame_args_address): Update.
11298 * m32r-tdep.c (m32r_gdbarch_init): Update.
11299 * hppa-tdep.c (hppa_gdbarch_init): Update.
11300 * h8300-tdep.c (h8300_gdbarch_init): Update.
11301 * frv-tdep.c (frv_gdbarch_init): Update.
11302 (frv_frameless_function_invocation): Update.
11303 * cris-tdep.c (cris_gdbarch_init): Update.
11304 (cris_frameless_function_invocation): Update.
11305 * avr-tdep.c (avr_gdbarch_init): Update.
11306 * arm-tdep.c (arm_gdbarch_init): Update.
11307 * stack.c (frame_info): Update, call predicate.
11308 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11309 * frame.c (legacy_get_prev_frame): Update, call predicate..
11310 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11311 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11312 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11313 invocation.
11314 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11315 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11316 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11317
11318 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11319 function.
11320
7dcaac91
DJ
113212004-02-16 Daniel Jacobowitz <drow@mvista.com>
11322
11323 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11324 initializations.
11325
88289b6e
AC
113262004-02-16 Andrew Cagney <cagney@redhat.com>
11327
11328 * tui/tui-windata.c: Include "gdb_string.h".
11329 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11330 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11331 * Makefile.in: Update dependencies.
11332
9f976b41
DJ
113332004-02-16 Daniel Jacobowitz <drow@mvista.com>
11334
11335 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11336 * infrun.c: Include "gdb_assert.h".
11337 (singlestep_ptid, saved_singlestep_ptid)
11338 (stepping_past_singlestep_breakpoint): New variables.
11339 (resume): Set singlestep_ptid. Check for singlestep thread
11340 hop.
11341 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11342 (handle_inferior_event): Handle singlestep thread hop.
11343
c324d747
AC
113442004-02-16 Andrew Cagney <cagney@redhat.com>
11345
f090b9b1
AC
11346 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11347 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11348 (dwarf2_frame_init_reg): Ditto.
11349
fd33e6cb
AC
11350 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11351 suggested by Joshua Neuheisel
11352
c324d747
AC
11353 * configure.in: Always check for curses, including pdcurses.
11354 Warn, instead of error, when no curses are found. Enable TUI when
11355 curses is available.
11356 * configure: Re-generate.
11357
b66ba949
CV
113582004-02-16 Corinna Vinschen <vinschen@redhat.com>
11359
11360 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11361 sh_sh4_register_convert_to_virtual.
11362 (sh_register_convert_to_raw): Rename from
11363 sh_sh4_register_convert_to_raw.
11364 (sh_pseudo_register_read): Accomodate above name change.
11365 (sh_pseudo_register_write): Ditto.
11366
b58cbbf2
CV
113672004-02-16 Corinna Vinschen <vinschen@redhat.com>
11368
11369 * sh-tdep.c (sh_generic_register_name): Remove.
11370 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11371
5929a910
AC
113722004-02-15 Andrew Cagney <cagney@redhat.com>
11373
4566dfcf
AC
11374 * configure.in (build_warnings): Add -Wunused-function.
11375 * configure: Re-generate.
11376
db11ed55
AC
11377 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11378 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11379
46ac7a5d
AC
11380 * procfs.c (procfs_init_inferior): Assume that
11381 START_INFERIOR_TRAPS_EXPECTED is defined.
11382 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11383 * config/ns32k/tm-nbsd.h: Delete file,
11384 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11385
ba801595
AC
11386 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11387 * config/vax/tm-vax.h: Delete file.
11388
5929a910
AC
11389 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11390 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11391 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11392 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11393 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11394 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11395 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11396
8f22cb90
MK
113972004-02-15 Mark Kettenis <kettenis@gnu.org>
11398
11399 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11400 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11401 (struct dwarf2_frame_ops): New.
11402 (dwarf2_frame_default_init_reg): New function, based on
11403 dwarf2_frame_init_reg.
11404 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11405 (dwarf2_frame_init_reg): Call architecture-specific function.
11406 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11407 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11408 instead of dwarf2_frame_data.
11409 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11410 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11411
8132723e
AC
114122004-02-15 Andrew Cagney <cagney@redhat.com>
11413
046a4708
AC
11414 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11415 register_gdbarch_swap.
11416 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11417 * f-lang.c (_initialize_f_language): Update, use
11418 DEPRECATED_REGISTER_GDBARCH_SWAP.
11419 * remote.c (_initialize_remote): Ditto.
11420 * regcache.c (_initialize_regcache): Ditto.
11421 * parse.c (_initialize_parse): Ditto.
11422 * infrun.c (_initialize_infrun): Ditto.
11423 * mi/mi-main.c (_initialize_mi_main): Ditto.
11424 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11425
549c1eea
AC
11426 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11427 poking .cacheable directly.
11428 * symfile.c (symfile_bfd_open): Ditto.
11429
0c0b39de
AC
11430 * Makefile.in: Update all dependencies.
11431
8132723e
AC
11432 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11433 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11434 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11435 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11436 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11437
b9d26eb9
AC
114382004-02-14 Andrew Cagney <cagney@redhat.com>
11439
8e1f669a
AC
11440 * arch-utils.c (legacy_convert_register_p): Check
11441 DEPRECATED_REGISTER_CONVERTIBLE_P.
11442 * findvar.c (value_of_register): Ditto.
11443
cd0bfa36
AC
11444 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11445 * gdbarch.h, gdbarch.c: Re-generate.
11446 * arch-utils.c (deprecated_register_convertible_not): Delete.
11447 * arch-utils.h (deprecated_register_convertible_not): Delete.
11448 * mi/mi-main.c (get_register): Update. Update copyright.
11449 * infcmd.c (default_print_registers_info): Update.
11450
b9d26eb9
AC
11451 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11452 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11453 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11454 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11455 * frame.c (deprecated_get_next_frame_hack): Delete function.
11456 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11457 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11458 Update.
11459 * infcall.c (call_function_by_hand): Update.
11460
9ab9195f
EZ
114612004-02-14 Elena Zannoni <ezannoni@redhat.com>
11462
11463 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11464 from here...
9ab9195f
EZ
11465 * objfiles.c (init_entry_point_info, entry_point_address):..to
11466 here.
11467 * symfile.h (init_entry_point_info, entry_point_address): Remove
11468 prototypes.
11469 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11470 prototypes.
9ab9195f
EZ
11471 * cris-tdep.c: Remove include of symfile.h. Add include of
11472 objfiles.h.
11473 * infcall.c: Ditto.
11474 * mcore-tdep.c: Ditto.
11475 * mn10300-tdep.c: Ditto.
11476 * sh64-tdep.c: Ditto.
11477 * v850-tdep.c: Ditto.
11478 * arm-tdep.c: Remove include of symfile.h.
11479 * blockframe.c: Ditto.
11480 * coffread.c: Ditto.
11481 * dbxread.c: Ditto.
11482 * dwarf2read.c: Ditto.
11483 * dwarfread.c: Ditto.
8a1dac83 11484 * frv-tdep.c: Ditto.
9ab9195f
EZ
11485 * ia64-tdep.c: Ditto.
11486 * mdebugread.c: Ditto.
11487 * mipsread.c: Ditto.
8a1dac83 11488 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11489 * s390-tdep.c: Ditto.
11490 * sh-tdep.c: Ditto.
8a1dac83 11491 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11492 * gdbarch.sh: Remove include of symfile.h.
11493 * gdbarch.c: Regenerate.
11494 * solib-irix.c (enable_break): Use entry_point_address().
11495 Add comment about include file.
11496 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11497 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11498 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11499 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11500 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11501 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11502
c4c5b7ba
AC
115032004-02-13 Andrew Cagney <cagney@redhat.com>
11504
11505 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11506 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11507 copyright.
11508 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11509
3e7879de
FF
115102004-02-12 Fred Fish <fnf@redhat.com>
11511
11512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11513 set_gdbarch_store_return_value.
11514
6a7760b6
AC
115152004-02-12 Andrew Cagney <cagney@redhat.com>
11516
11517 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11518 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11519 (interrupt_query): Ditto.
11520 (ofunc): Delete unused variable.
11521 * cris-tdep.c (cris_abi): Delete unused function.
11522 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11523 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11524 (cris_get_asr_quick_shift_steps): Ditto.
11525 (cris_skip_prologue_frameless_p): Ditto.
11526 * arm-tdep.c (arm_push_return_address): Delete unused function.
11527 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11528 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11529 * s390-tdep.c (s390_function_start): Delete unused function.
11530
31687c3c
AC
115312004-02-12 Andrew Cagney <cagney@redhat.com>
11532
11533 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11534 gdbarch.h, gdbarch.c: Re-generate.
11535 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11536 to generic_prologue_frameless_p.
11537 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11538 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11539
6de918a6
DJ
115402004-02-11 Daniel Jacobowitz <drow@mvista.com>
11541
11542 * mips-linux-tdep.c: Include "frame.h".
11543 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11544 (mips_linux_skip_resolver): New functions.
11545 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11546 and set_gdbarch_in_solib_call_trampoline.
11547 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11548 to after set_gdbarch_in_solib_return_trampoline. Only set the
11549 solib hooks to mips16 functions if the OS ABI is unknown.
11550 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11551 including "config/tm-linux.h".
11552 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11553 * Makefile.in (mips-linux-tdep.o): Update.
11554
87b3ede8
DC
115552004-02-11 David Carlton <carlton@kealia.com>
11556
11557 * linespec.c (decode_compound): Only look for a class symbol when
11558 considering all but the rightmost component.
11559
5979bc46
AC
115602004-02-11 Andrew Cagney <cagney@redhat.com>
11561
11562 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11563 abi code are are separatly grouped.
11564
5867a2fb
AC
115652004-02-11 Andrew Cagney <cagney@redhat.com>
11566
11567 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11568 * gdbarch.h, gdbarch.c: Re-generate.
11569 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11570 * v850-tdep.c (v850_gdbarch_init): Update.
11571 * sh64-tdep.c (sh64_gdbarch_init): Update.
11572 * sh-tdep.c (sh_gdbarch_init): Update.
11573 * s390-tdep.c (s390_gdbarch_init): Update.
11574 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11575 * mips-tdep.c (mips_gdbarch_init): Update.
11576 * mcore-tdep.c (mcore_gdbarch_init): Update.
11577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11578 * m32r-tdep.c (m32r_gdbarch_init): Update.
11579 * ia64-tdep.c (ia64_gdbarch_init): Update.
11580 * hppa-tdep.c (hppa_gdbarch_init): Update.
11581 * h8300-tdep.c (h8300_gdbarch_init): Update.
11582 * frv-tdep.c (frv_gdbarch_init): Update.
11583 * d10v-tdep.c (d10v_gdbarch_init): Update.
11584 * cris-tdep.c (cris_gdbarch_init): Update.
11585 * avr-tdep.c (avr_gdbarch_init): Update.
11586 * arm-tdep.c (arm_gdbarch_init): Update.
11587 * alpha-tdep.c (alpha_gdbarch_init): Update.
11588
026a72f8
CV
115892004-02-11 Corinna Vinschen <vinschen@redhat.com>
11590
11591 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11592 comma.
11593 (sh_sh4al_dsp_register_name): Ditto.
11594
3903d437
AC
115952004-02-10 Andrew Cagney <cagney@redhat.com>
11596
11597 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11598 (mips_init_frame_pc_first): Delete function.
11599 (mips_frame_saved_pc): Delete function.
11600 (mips_frame_chain): Delete function.
11601 (mips_init_extra_frame_info): Delete function.
11602 (mips_xfer_register): Delete unused variable "reg".
11603 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11604 (mips_n32n64_return_value): Delete unused variable "reg".
11605 (mips_n32n64_return_value): Delete unused variable "pos".
11606 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11607 (mips_o32_return_value): Delete unused variable "pos".
11608 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11609 (mips_print_fp_register): Delete unused variable "namelen"
11610 (mips_print_fp_register): Delete unused variable "flt2"
11611 (get_frame_pointer): Delete function.
11612 (cached_proc_desc): Delete static variable.
11613 (mips_pop_frame): Delete function.
11614 (mips_find_saved_regs): Delete function.
11615 (mips_get_saved_register): Delete function.
11616 (mips_saved_pc_after_call): Delete function.
11617 (SIGFRAME_BASE): Delete macro.
11618 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11619 (SIGFRAME_PC_OFF): Delete macro.
11620 (SIGFRAME_REGSAVE_OFF): Delete macro.
11621 (mips_dump_tdep): Do not print deleted macro definitions.
11622
b9fb98bd
AC
116232004-02-10 Andrew Cagney <cagney@redhat.com>
11624
11625 * Makefile.in (SFILES): Remove explictly listed tui files.
11626 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11627
78ced177 116282004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11629
78ced177
JJ
11630 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11631 to use paddr functions to format ia64 addresses and long values.
11632 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11633 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11634 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11635 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11636 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11637
6a83354a
AC
116382004-02-10 Andrew Cagney <cagney@redhat.com>
11639
11640 * defs.h: Do not include "tui.h".
11641 * gdb_curses.h: New file.
11642 * tui/tui-hooks.h: New file.
11643 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11644 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11645 (tui_initialize_io): Delete declaration.
11646 (tui_initialize_readline: Delete redundant declaration.
11647 (struct tui_point): Delete definition.
11648 * tui/tui-data.h (struct tui_point): Define.
11649 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11650 * utils.c: Include "tui/tui.h".
11651 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11652 * printcmd.c [TUI]: Include "tui/tui.h".
11653 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11654 * tui/tui-command.c: Include "gdb_curses.h".
11655 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11656 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11657 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11658 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11659 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11660 * Makefile.in: Update all dependencies.
11661 (tui_hooks_h, gdb_curses_h): Define.
11662 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11663
997470ef
EZ
116642004-02-10 Elena Zannoni <ezannoni@redhat.com>
11665
11666 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11667 auxf2. Add comments about some other rarely used fields.
11668
4ff2cc4d
AC
116692004-02-10 Andrew Cagney <cagney@redhat.com>
11670
11671 * Makefile.in (init.c): Fix script removing duplicates. Problem
11672 reported by Peter Schauer.
11673
1ab21617
EZ
116742004-02-09 Elena Zannoni <ezannoni@redhat.com>
11675
11676 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11677 obstack_specify_allocation.
11678 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11679 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11680 (allocate_rt_common_objfile): Ditto.
11681 * symfile.c (reread_symbols): Ditto.
11682 * gdb_obstack.h: Add comment.
11683
17763fd9
EZ
116842004-02-09 Elena Zannoni <ezannoni@redhat.com>
11685
11686 * linespec.c (decode_line_1, locate_first_half)
11687 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11688 commented out code.
11689
ec5cdd75
DJ
116902004-02-09 Daniel Jacobowitz <drow@mvista.com>
11691
11692 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11693 obstack_free.
11694
43b54b88
AC
116952004-02-09 Andrew Cagney <cagney@redhat.com>
11696
11697 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11698 fails, try find_pc_section. Fix PR c++/1267.
11699 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11700 instead of find_pc_mapped_section.
11701 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11702 not default to the section containing PC. Fix PR symtab/1519.
11703
edfae063
AC
117042004-02-09 Andrew Cagney <cagney@redhat.com>
11705
11706 * Makefile.in (mips-tdep.o): Update dependencies.
11707 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11708 "trad-frame.h".
11709 (mips_unwind_pc): Return the pseudo PC register.
11710 (mips_unwind_dummy_id): New function.
11711 (mips16_fetch_instruction): New function.
11712 (mips32_fetch_instruction): New function.
11713 (struct mips_frame_cache): Define.
11714 (mips_mdebug_frame_cache): New function.
11715 (mips_mdebug_frame_this_id): New function.
11716 (mips_mdebug_frame_prev_register): New function.
11717 (mips_mdebug_frame_unwind): Define.
11718 (mips_mdebug_frame_sniffer): New function.
11719 (mips_mdebug_frame_base_address): New function.
11720 (mips_mdebug_frame_base): Define.
11721 (mips_mdebug_frame_base_sniffer): New function.
11722 (mips_gdbarch_init): Append unwind and base sniffers. Set
11723 unwind_dummy_id.
11724
defc864c
AC
117252004-02-08 Andrew Cagney <cagney@redhat.com>
11726
6764ddad
AC
11727 * frame.c: Print both the register number and name.
11728
defc864c
AC
11729 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11730 and a sed into a single sed. Make .c and .o patterns more robust.
11731 (OBS): Delete.
11732 (INIT_FILES): Replace OBS with COMMON_OBS.
11733 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11734
645d6d10
MK
117352004-02-08 Mark Kettenis <kettenis@gnu.org>
11736
11737 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11738 the PT_WCOOKIE request.
11739
23e3c3fc
AC
117402004-02-08 Andrew Cagney <cagney@redhat.com>
11741
58dfe9ff
AC
11742 * mips-tdep.c (mips_unwind_pc): New function.
11743 (mips_gdbarch_init): Set mips_unwind_pc.
11744
1152e35e
AC
11745 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11746 (get_frame_id): Allow the UNKNOWN_FRAME.
11747 (frame_register_unwind, get_frame_type): Ditto.
11748
31b75dbf
AC
11749 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11750 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11751 unwind_dummy_id indicates a legacy frame.
11752
3483b318
AC
11753 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11754 * configure: Re-generate.
11755
23e3c3fc
AC
11756 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11757 methods.
11758
33f8ca73
AC
117592004-02-08 Andrew Cagney <cagney@redhat.com>
11760
11761 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11762 makefile macro.
11763 * configure: Re-generate.
11764 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11765 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11766 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11767 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11768 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11769 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11770 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11771 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11772 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11773 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11774
6ba8e26f 117752004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11776
20d286a5
AC
11777 * Makefile.in: Update all dependencies.
11778
d836ee13
AC
11779 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11780 * configure: Re-generate.
11781 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11782 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11783 (COMMON_OBS): Add "main.o" and "annotate.o".
11784 (ANNOTATE_OBS): Delete.
11785 (OBS): Remove ANNOTATE_OBS.
11786 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11787 CONFIG_INITS.
11788 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11789 against CONFIG_OBS and "main.o".
11790 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11791 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11792
d02c80cd
AC
11793 * tui/tui-command.c: Include "gdb_string.h", delete register
11794 attribute, use ISO-C function signatures.
11795 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11796 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11797 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11798 * tui/tui.c: Ditto.
6ba8e26f
AC
11799
11800 * tui/tui-command.c: Change variable and function names to lower
11801 case.
11802 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11803 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11804 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11805 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11806 * tui/tui-winsource.c, tui/tui.c: Ditto.
11807
4a146b47
EZ
118082004-02-07 Elena Zannoni <ezannoni@redhat.com>
11809
11810 * buildsym.c (free_pending_blocks, finish_block)
11811 (record_pending_block, make_blockvector, end_symtab): Replace
11812 symbol_obstack with objfile_obstack.
8a1dac83 11813 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11814 (coff_read_enum_type): Ditto.
8a1dac83 11815 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11816 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11817 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11818 (dwarf2_symbol_mark_computed): Ditto.
11819 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11820 * elfread.c (elf_symtab_read): Ditto.
11821 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11822 (hpread_read_enum_type, hpread_read_function_type)
11823 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11824 Ditto.
8a1dac83 11825 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11826 (java_link_class_type): Ditto.
8a1dac83 11827 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11828 (new_symbol): Ditto.
11829 * minsyms.c (install_minimal_symbols): Ditto.
11830 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11831 (terminate_minimal_symbol_table): Replace symbol_obstack with
11832 objfile_obstack.
11833 (free_objfile): Remove freeing of symbol_obstack.
11834 * objfiles.h: Remove symbol_obstack field.
11835 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11836 objfile_obstack.
11837 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11838 symbol_obstack.
11839 (solib_add_common_symbols): Replace symbol_obstack with
11840 objfile_obstack.
11841 * somsolib.c (som_solib_add): Ditto.
11842 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11843 (common_block_start, common_block_end): Ditto.
11844 * symfile.c (reread_symbols): Remove freeing and init of
11845 symbol_obstack.
11846 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11847 * symfile.h: Update comment.
11848 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11849 stats printing.
11850 * symtab.c (symbol_set_names): Replace symbol_obstack with
11851 objfile_obstack.
11852 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11853 Update comments.
11854 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11855 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11856 objfile_obstack.
11857
6d012f14
AC
118582004-02-07 Andrew Cagney <cagney@redhat.com>
11859
11860 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11861 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11862 fields and variables.
11863 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11864 (m_beInvisible): Delete macro.
11865 * tui/tui-data.h: Fix case case fields and variables.
11866 (m_genWinPtrIsNull): Delete macro.
11867 (tui_win_list): Rename winList.
11868 (TUI_SRC_WIN): Rename srcWin.
11869 (TUI_DISASM_WIN): Rename disassemWin.
11870 (TUI_DATA_WIN): Rename dataWin.
11871 (TUI_CMD_WIN): Rename cmdWin.
11872 (m_genWinPtrNotNull): Delete macro.
11873 (m_winPtrIsNull): Delete macro.
11874 (m_winPtrNotNull): Delete macro.
11875 (tui_win_is_source_type): Replace m_winIsSourceType
11876 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11877 (tui_win_has_locator): Replace m_hasLocator.
11878 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11879 m_setWinHighlightOff.
11880 * tui/tui-data.c: Update references.
11881 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11882 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11883 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11884 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11885 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11886 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11887 * tui/tui-winsource.c, tui/tui.c: Ditto.
11888
7d34766b
MK
118892004-02-07 Mark Kettenis <kettenis@gnu.org>
11890
1c800673
MK
11891 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11892 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11893 StackGhost.
11894
7d34766b
MK
11895 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11896 variable `i6' to `i7'.
11897 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11898
22940a24
AC
118992004-02-07 Andrew Cagney <cagney@redhat.com>
11900
11901 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11902 (TuiPoint, TuiPointPtr): Ditto.
11903 (TuiStatus, TuiStatusPtr): Ditto.
11904 (TuiWinType, TuiWinTypePtr): Ditto.
11905 (struct tui_point): Rename _TuiPoint.
11906 (tui_get_low_disassembly_address): Rename
11907 tuiGetLowDisassemblyAddress.
11908 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11909 (tuiFree): Delete declaration.
11910 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11911 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11912 * tui/tui.c (tuiFree): Delete function.
11913 * cli/cli-cmds.c (disassemble_command): Update references.
11914 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11915 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11916 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11917 * tui/tui-winsource.c: Ditto.
11918
8b92e4d5
EZ
119192004-02-07 Elena Zannoni <ezannoni@redhat.com>
11920
11921 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11922 coffstab_build_psymtabs, elfstab_build_psymtabs)
11923 (stabsect_build_psymtabs): Replace psymbol_obstack with
11924 objfile_obstack.
11925 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11926 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11927 Ditto.
11928 * dwarfread.c (scan_compilation_units): Ditto.
11929 * elfread.c (elfstab_offset_sections): Ditto.
11930 * hppa-tdep.c (read_unwind_info): Ditto.
11931 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11932 (hpread_end_psymtab): Ditto.
11933 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11934 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11935 Ditto.
11936 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11937 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11938 (build_objfile_section_table): Ditto.
11939 (allocate_objfile): Remove init of psymbol_obstack.
11940 (free_objfile): Remove freeing of psymbol_obstack.
11941 * objfiles.h (struct objfile): Remove field
11942 psymbol_obstack. Update comments.
11943 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11944 psymbol_obstack with objfile_obstack.
11945 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11946 psymbol_obstack.
11947 * somread.c (som_symfile_offsets, init_import_symbols)
11948 (init_export_symbols): Replace psymbol_obstack with
11949 objfile_obstack.
11950 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11951 * symfile.c (default_symfile_offsets, syms_from_objfile)
11952 (reread_symbols): Remove freeing and init of psymbol_obstack.
11953 (cashier_psymtab): Update comment.
11954 * symmisc.c (print_objfile_statistics): Don't report stats for
11955 psymbol obstack.
11956 * symtab.h (struct general_symbol_info, struct partial_symtab):
11957 Update comments.
11958 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11959 (xcoff_symfile_offsets): Replace psymbol_obstack with
11960 objfile_obstack.
11961
b99607ea
EZ
119622004-02-07 Elena Zannoni <ezannoni@redhat.com>
11963
11964 * objfiles.h (struct objfile): Add objfile_obstack field.
11965 Remove type_obstack field.
11966
11967 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11968 read_structure_scope read_enumeration, new_symbol): Replace
11969 type_obstack with objfile_obstack.
11970 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11971 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11972 (lookup_fundamental_type): Ditto.
11973 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11974 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11975 (hpread_read_doc_function_type, hpread_read_struct_type)
11976 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11977 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11978 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11979 (java_link_class_type): Ditto.
11980 * mdebugread.c (parse_type): Ditto.
11981 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11982 * solib-sunos.c (solib_add_common_symbols): Ditto.
11983 * stabsread.c (define_symbol, read_type, read_member_functions,
11984 read_cpp_abbrev, read_one_struct_field): Ditto.
11985 * symfile.c (reread_symbols): Ditto.
11986 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11987
2a8854a7
AC
119882004-02-07 Andrew Cagney <cagney@redhat.com>
11989
11990 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11991 (tui_exec_info_content): Rename TuiExecInfoContent.
11992 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11993 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11994 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11995 (TuiList, TuiListPtr): Ditto.
11996 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11997 (TuiDataType, TuiDataTypePtr): Ditto.
11998 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11999 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12000 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12001 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12002 (TuiDataElement, TuiDataElementPtr): Ditto.
12003 (TuiWinElement, TuiWinElementPtr): Ditto.
12004 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12005 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12006 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12007 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12008 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12009 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12010 * tui/tui-command.c, tui/tui-data.c: Update references.
12011 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12012 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12013 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12014 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12015
05cbe71a
MK
120162004-02-07 Mark Kettenis <kettenis@gnu.org>
12017
12018 * dwarf2-frame.h: Update copyright.
12019 (enum dwarf2_frame_reg_rule): New.
12020 (struct dwarf2_frame_state_reg): New.
12021 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12022 * dwarf2-frame.c: Update copyright.
12023 (enum dwarf2_reg_rule): Remove.
12024 (struct dwarf2_frame_state): Remove defenition of `struct
12025 dwarf2_frame_state_reg'.
12026 (read_reg): Call get_frame_arch to get the architecture instead of
12027 using CURRENT_GDBARCH.
12028 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12029 DWARF2_FRAME_.
12030 (dwarf2_frame_init_reg): New function.
12031 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12032 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12033 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12034 tags with DWARF2_FRAME_.
12035 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12036 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12037 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12038
ec7d9e56
AC
120392004-02-06 Andrew Cagney <cagney@redhat.com>
12040
dd1abb8c
AC
12041 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12042 (enum tui_data_type): Rename _TuiDataType.
12043 (struct tui_layout_def): Rename _TuiLayoutDef.
12044 (struct tui_source_element): Rename _TuiSourceElement.
12045 (struct tui_data_element): Rename _TuiDataElement.
12046 (struct tui_command_element): Rename _TuiCommandElement.
12047 (struct tui_locator_element): Rename _TuiLocatorElement.
12048 (union tui_which_element): Define.
12049 (struct tui_win_element): Rename _TuiWinElement.
12050 (struct tui_data_info): Rename _TuiDataInfo.
12051 (struct tui_source_info): Rename _TuiSourceInfo.
12052 (struct tui_command_info): Rename _TuiCommandInfo.
12053 (tui_initialize_static_data): Rename initializeStaticData.
12054 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12055 (tui_alloc_win_info): Rename allocWinInfo.
12056 (tui_init_generic_part): Rename initGenericPart.
12057 (tui_init_win_info): Rename initWinInfo.
12058 (tui_alloc_content): Rename allocContent.
12059 (tui_add_content_elements): Rename addContentElements.
12060 (tui_init_content_element): Rename initContentElement.
12061 (tui_free_window): Rename freeWindow.
12062 (tui_free_win_content): Rename freeWinContent.
12063 (tui_free_data_content): Rename freeDataContent.
12064 (tui_free_all_source_wins_content): Rename
12065 freeAllSourceWinsContent.
12066 (tui_del_window): Rename tuiDelWindow.
12067 (tui_del_data_windows): Rename tuiDelDataWindows.
12068 (tui_partial_win_by_name): Rename partialWinByName.
12069 (tui_win_name): Rename winName.
12070 (tui_current_layout): Rename currentLayout.
12071 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12072 (tui_term_height): Rename termHeight.
12073 (tui_set_term_height_to): Rename setTermHeightTo.
12074 (tui_term_width): Rename termWidth.
12075 (tui_set_term_width_to): Rename setTermWidthTo.
12076 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12077 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12078 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12079 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12080 (tui_source_windows): Rename sourceWindows.
12081 (tui_clear_source_windows): Rename clearSourceWindows.
12082 (tui_clear_source_windows_detail): Rename
12083 clearSourceWindowsDetail.
12084 (tui_clear_win_detail): Rename clearWinDetail.
12085 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12086 (tui_default_tab_len): Rename tuiDefaultTabLen.
12087 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12088 (tui_win_with_focus): Rename tuiWinWithFocus.
12089 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12090 (tui_layout_def): Rename tuiLayoutDef.
12091 (tui_win_resized): Rename tuiWinResized.
12092 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12093 (tui_next_win): Rename tuiNextWin.
12094 (tui_prev_win): Rename tuiPrevWin.
12095 (tui_add_to_source_windows): Rename addToSourceWindows.
12096 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12097 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12098 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12099 * tui/tui.c, tui/tui-data.c: Ditto.
12100 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12101 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12102
a358af15
AC
12103 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12104 (struct symtab): Declare.
12105 (tui_set_source_content): Rename tuiSetSourceContent.
12106 (tui_show_symtab_source): Rename tuiShowSource.
12107 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12108 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12109 * tui/tui-source.c: Update copyright. Update references.
12110 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12111 * tui/tui-stack.c: Update references.
12112
a21fcd8f
AC
12113 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12114 (struct tui_win_info): Declare.
12115 (tui_scroll_forward): Rename tuiScrollForward.
12116 (tui_scroll_backward): Rename tuiScrollBackward.
12117 (tui_scroll_left): Rename tuiScrollLeft.
12118 (tui_scroll_right): Rename tuiScrollRight.
12119 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12120 (tui_resize_all): Rename tuiResizeAll.
12121 (tui_refresh_all_win): Rename tuiRefreshAll.
12122 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12123 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12124 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12125 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12126
edae1ccf
AC
12127 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12128 (tui_erase_data_content): Rename tuiEraseDataContent.
12129 (tui_display_all_data): Rename tuiDisplayAllData.
12130 (tui_check_data_values): Rename tuiCheckDataValues.
12131 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12132 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12133 (tui_first_data_element_no_in_line): Rename
12134 tuiFirstDataElementNoInLine.
12135 (tui_delete_data_content_windows): Rename
12136 tuiDeleteDataContentWindows.
12137 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12138 (tui_display_data_from): Rename tuiDisplayDataFrom.
12139 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12140 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12141 * tui/tui-win.c, tui/tui-regs.c: Update references.
12142 * tui/tui-layout.c, tui/tui.c: Update references.
12143
ec7d9e56
AC
12144 * tui/tui-wingeneral.h: Update copyright.
12145 (m_allBeVisible): Delete macro.
8a1dac83 12146 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12147 (struct tui_gen_win_info): Declare.
12148 (struct tui_win_info): Declare.
12149 (tui_unhighlight_win): Rename unhighlightWin.
12150 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12151 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12152 (tui_make_window): Rename makeWindow.
12153 (tui_copy_win): Rename copyWin.
12154 (tui_box_win): Rename boxWin.
12155 (tui_highlight_win): Rename highlightWin.
12156 (tui_check_and_display_highlight_if_needed): Rename
12157 checkAndDisplayHighlightIfNeeded.
12158 (tui_refresh_all): Rename refreshAll.
12159 (tui_delete_win): Rename tuiDelwin.
12160 (tui_refresh_win): Rename tuiRefreshWin.
12161 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12162 (tui_make_visible, tui_make_invisible): New functions.
12163 (tui_make_all_visible, tui_make_all_invisible): New functions.
12164 (make_all_visible): Rename makeAllVisible.
12165 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12166 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12167 * tui/tui-windata.c, tui/tui-win.c: Update references.
12168 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12169 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12170
1e52e2eb
MK
121712004-02-06 Mark Kettenis <kettenis@gnu.org>
12172
12173 * proc-api.c (write_with_trace): Initialize local variable to
12174 silence compiler warning.
12175
f80bda8e
AC
121762004-02-06 Andrew Cagney <cagney@redhat.com>
12177
12178 * tui/tui-source.h: Do not include "defs.h".
12179 (struct tui_win_info): Declare.
12180 (tui_set_source_content_nil): Declare.
12181 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12182 (union tui_line_or_address): Rename _TuiLineOrAddress.
12183 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12184 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12185 (tui_update_source_window_as_is): Rename
12186 tuiUpdateSourceWindowAsIs.
12187 (tui_update_source_windows_with_addr): Rename
12188 tuiUpdateSourceWindowsWithAddr.
12189 (tui_update_source_windows_with_line): Rename
12190 tuiUpdateSourceWindowsWithLine.
12191 (tui_clear_source_content): Rename tuiClearSourceContent.
12192 (tui_erase_source_content): Rename tuiEraseSourceContent.
12193 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12194 (tui_show_source_content): Rename tuiShowSourceContent.
12195 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12196 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12197 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12198 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12199 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12200 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12201 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12202 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12203 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12204 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12205 (struct tui_win_info): Declare.
12206 * tui/tui-stack.c: Update references.
12207 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12208 * tui/tui-win.c, tui/tui-source.c: Ditto.
12209 * tui/tui.c, tui/tui-disasm.c: Ditto.
12210
9fbfb822
MK
122112004-02-06 Mark Kettenis <kettenis@gnu.org>
12212
12213 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12214 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12215
03cebad2
MK
122162004-02-05 Mark Kettenis <kettenis@gnu.org>
12217
12218 * infrun.c (handle_inferior_event): Allow for breakpoint
12219 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12220 and SIGEMT. Update comments.
12221 * NEWS (Revised SPARC target): Mention support for non-executable
12222 stack.
12223
290281b1
MK
122242004-02-04 Mark Kettenis <kettenis@gnu.org>
12225
12226 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12227 * inftarg.c: Update copyright year.
12228 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12229 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12230 (sparc_xfer_wcookie): New function.
12231 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12232 * Makefile.in (sparc-nat.o): Update dependencies.
12233 * config/sparc/nm-nbsd.h: Include "target.h".
12234 (NATIVE_XFER_WCOOKIE): New define.
12235 (sparc_xfer_wcookie): New prototype.
12236
212161df
AC
122372004-02-04 Andrew Cagney <cagney@redhat.com>
12238
12239 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12240 SYSCALL_TRAP function.
12241 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12242
6e4c6c91
DJ
122432004-02-04 Andrew Cagney <cagney@redhat.com>
12244 Daniel Jacobowitz <drow@mvista.com>
12245
12246 * objfiles.h: Delete comments refering to inside_entry_func and
12247 DEPRECATED_FRAME_CHAIN_VALID.
12248 * defs.h (inside_entry_func): Update prototype..
12249 * blockframe.c (inside_entry_func): Rename to
12250 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12251 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12252
cae688ec
JJ
122532004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12254
12255 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12256 outside of #ifdef SOLIB_ADD region.
12257 (do_restore_lang_radix_cleanup): Ditto.
12258 (resolve_pending_breakpoint): Ditto.
12259
19217676
AC
122602004-02-03 Andrew Cagney <cagney@redhat.com>
12261
12262 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12263 (process_note_abi_tag_sections): Delete unused function.
12264 (ia64_read_fp): Delete unused function.
12265 (gdbarch_extract_struct_value_address): Delete declaration.
12266
876753be
AC
122672004-02-02 Andrew Cagney <cagney@redhat.com>
12268
12269 * vax-tdep.c (vax_frame_chain): Delete call to
12270 deprecated_inside_entry_file.
12271 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12272
d4f10bf2
MK
122732004-02-02 Mark Kettenis <kettenis@gnu.org>
12274
12275 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12276 column that's "empty" or "same value" when eliminating REG_RA
12277 rules.
12278
cae688ec
JJ
122792004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12280
12281 * NEWS: Add information about new pending breakpoint support.
12282
0101ce28
JJ
122832004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12284
12285 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12286 and pending fields for pending breakpoint support.
12287 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12288 (condition_command): Only parse condition if not a pending
12289 breakpoint.
12290 (print_one_breakpoint): Add support for pending breakpoints.
12291 (describe_other_breakpoints): Add checks to verify we are not
12292 dealing with pending breakpoints.
12293 (check_duplicates): Don't check pending breakpoints.
12294 (set_raw_breakpoint): Initialize pending flag.
12295 (do_restore_lang_radix_cleanup): New cleanup routine.
12296 (resolve_pending_breakpoint): New function.
12297 (re_enable_breakpoints_in_shlibs): Try and resolve any
12298 pending breakpoints via resolve_pending_breakpoint.
12299 (mention): Add pending breakpoint support.
12300 (parse_breakpoint_sals): Add new parameter to pass to
12301 decode_line_1 to indicate silent errors when files or functions
12302 are not found. Change all callers.
12303 (do_captured_parse_breakpoint): New function.
12304 (break_command_1): Change prototype to return an rc value and to
12305 take an optional pending breakpoint pointer. Support creating
12306 a pending breakpoint if a "not found" form of error occurs when
12307 parsing the breakpoint. Also support resolving an existing pending
12308 breakpoint and be silent if the resolution fails.
12309 (create_breakpoints): Change prototype to take pending breakpoint
12310 pointer. When resolving a pending breakpoint, use the new pointer
12311 to provide a conditional or commands added by the end-user.
12312 (delete_breakpoint): Add appropriate check for pending.
12313 (breakpoint_re_set_one): Ditto.
12314 (do_enable_breakpoint): Ditto.
12315
8d577d32
DC
123162004-02-02 David Carlton <carlton@kealia.com>
12317
12318 * valops.c (enum oload_classification): New.
12319 (find_overload_match): Break implementation into separate
12320 functions; delete #if 0'd code; look for symbols within
12321 namespaces.
12322 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12323 (find_oload_champ,oload_method_static,classify_oload_match): New.
12324 * cp-support.h: Add declaration for cp_func_name; update
12325 declaration for make_symbol_overload_list.
12326 * cp-support.c (cp_func_name): New.
12327 (overload_list_add_symbol): Fix comment, use
12328 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12329 (make_symbol_overload_list): Take a function name and a namespace
12330 instead of a symbol; change implementation.
12331 (make_symbol_overload_list_using): New.
12332 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12333
22e8e3c7
FF
123342004-02-02 Fred Fish <fnf@redhat.com>
12335
12336 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12337 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12338 * remote-sim.c (gdb_os_write_stderr): Write output to
12339 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12340 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12341 gdb_stderr stream and update copyright years.
22e8e3c7 12342
6b753f60
DJ
123432004-02-01 Daniel Jacobowitz <drow@mvista.com>
12344
12345 * Makefile.in (mips-linux-nat.o): Update dependencies.
12346 * mips-linux-nat.c: Include mips-tdep.h.
12347
123482004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12349
12350 * sol-thread.c (sol_thread_xfer_partial): New function.
12351 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12352 (init_sol_core_ops): Likewise.
12353
12354 * procfs.c (procfs_xfer_partial): New function.
12355 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12356 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12357
12358 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12359 procfs_xfer_auxv function.
12360
12361 * procfs.c (procfs_make_note_section): If we can read
12362 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12363 * linux-proc.c (linux_make_note_section): Likewise.
12364
12365 * auxv.h: New file.
12366 * auxv.c: New file.
12367 * Makefile.in (auxv_h): New variable.
12368 (COMMON_OBS): Add auxv.o here.
12369 (auxv.o): New target.
12370
12371 * corelow.c (core_xfer_partial): New function.
12372 (init_core_ops): Use it for core_ops.to_xfer_partial.
12373
12374 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12375 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12376 macro if that is defined.
12377
fa5281d0
DJ
123782004-02-01 Daniel Jacobowitz <drow@mvista.com>
12379
12380 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12381 and check the specified thread for each breakpoint.
12382 * breakpoint.h (bpstat_stop_status): Update prototype.
12383 * infrun.c (handle_inferior_event): Update calls to
12384 bpstat_stop_status.
12385
26ee262d
DJ
123862004-02-01 Daniel Jacobowitz <drow@mvista.com>
12387
12388 * Makefile.in (cli-cmds.o): Add $(readline_h).
12389
d9b52655
DJ
123902004-02-01 Daniel Jacobowitz <drow@mvista.com>
12391
12392 * cli/cli-cmds.c: Include readline.h.
12393 (complete_command): Pass the start of the last word to
12394 complete_line.
12395
9709f61c
DJ
123962004-01-31 Daniel Jacobowitz <drow@mvista.com>
12397
12398 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12399 argument, and change first argument to a CORE_ADDR.
12400 * breakpoint.h (bpstat_stop_status): Update prototype.
12401 * infrun.c (adjust_pc_after_break): Add a new comment.
12402 (handle_inferior_event): Update calls to bpstat_stop_status.
12403
4f1280bb
DJ
124042004-01-31 Daniel Jacobowitz <drow@mvista.com>
12405
12406 * breakpoint.h: Update copyright years.
12407
4fa8626c
DJ
124082004-01-31 Daniel Jacobowitz <drow@mvista.com>
12409
12410 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12411 (bpstat_stop_status): Don't decrement PC.
12412 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12413 prototype.
12414 * infrun.c (adjust_pc_after_break): New function.
12415 (handle_inferior_event): Call it, early. Remove later references
12416 to DECR_PC_AFTER_BREAK.
12417 (normal_stop): Add commentary.
12418
fad0733a
DJ
124192004-01-31 Daniel Jacobowitz <drow@mvista.com>
12420
12421 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12422 2004-01-27 double-free fix.
12423
42cdca6c
MK
124242004-01-31 Mark Kettenis <kettenis@gnu.org>
12425
12426 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12427 (sparc32_frame_prev_register): Handle StackGhost.
12428 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12429
932d5416
RM
124302004-01-29 Roland McGrath <roland@redhat.com>
12431
12432 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12433 * configure: Regenerated.
12434
12435 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12436 * Makefile.in (procfs.o): Add dep.
12437
47d3492a
AC
124382004-01-28 Andrew Cagney <cagney@redhat.com>
12439
12440 * tui/tui-stack.h: Update copyright.
12441 (struct frame_info): Add opaque declaration.
12442 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12443 (tui_show_locator_content): Rename tuiShowLocatorContent.
12444 (tui_show_frame_info): Rename tuiShowFrameInfo.
12445 * tui/tui-stack.c: Update copyright. Update references.
12446 * tui/tui-winsource.c: Update references.
12447 * tui/tui-win.c: Update references.
12448 * tui/tui-layout.c: Update references.
12449 * tui/tui-hooks.c: Update copyright, update references.
12450 * tui/tui.c: Update copyright, update references.
12451 * tui/tui-disasm.c: Update references.
12452
5d51ca54
DC
124532004-01-28 David Carlton <carlton@kealia.com>
12454
12455 * dwarf2read.c (add_partial_structure): Use demangled name if
12456 namespace equals "".
12457
086ed43d
JB
124582004-01-27 Jim Blandy <jimb@redhat.com>
12459
12460 Clean up misapplied patch:
12461 * dwarf2read.c (determine_prefix): Change one of the two forward
12462 declarations for 'determine_prefix_aux' to a declaration for this.
12463 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12464 argument to 'die_specification'.
12465
2a35147e
JB
12466 * dwarf2read.c (read_func_scope): Re-indent comment.
12467
a355c7de 124682004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12469
a355c7de
AC
12470 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12471 b->exp to NULL after freeing so that error during re-parsing or
12472 evaluation of expressions associated with breakpoint don't
12473 eventually lead to re-freeing of storage.
12474 Committed by Andrew Cagney.
12475
63ff5125
AC
124762004-01-27 Andrew Cagney <cagney@redhat.com>
12477
12478 * source.c (ambiguous_line_spec): Delete undefined declaration.
12479 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12480 (m32r_set_server_address, m32r_set_download_path): Ditto.
12481 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12482
e142c38c
DJ
124832004-01-27 Daniel Jacobowitz <drow@mvista.com>
12484
12485 * dwarf2read.c: Update calls to changed and renamed functions, and
12486 references to moved variables.
12487
12488 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12489 language, language_defn, list_in_scope, and ftypes members.
12490 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12491 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12492 (baseaddr): Remove globals.
12493
12494 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12495 (set_cu_language, die_is_declaration, die_specification)
12496 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12497 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12498 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12499 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12500
12501 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12502 cu.list_in_scope. Don't initialize cu_header_offset.
12503 (add_partial_symbol): Add local baseaddr.
12504 (psymtab_to_symtab_1): Add local baseaddr. Use
12505 objfile->section_offsets for consistency. Don't initialize
12506 cu_header_offset; do initialize cu.header.offset and
12507 cu.list_in_scope.
12508 (read_file_scope, read_func_scope, read_lexical_block_scope)
12509 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12510
c6e06ede
MC
125112004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12512
fb328ecc 12513 * PROBLEMS: Add gdb/1516.
c6e06ede 12514
48184fd4
AC
125152003-12-29 Robert Millan <robertmh@gnu.org>
12516
12517 Patch committed by Andrw Cagney.
12518 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12519 * configure.tgt: Match knetbsd*-gnu.
12520
c1321b30
AC
125212004-01-26 Andrew Cagney <cagney@redhat.com>
12522
f3699be3
AC
12523 * breakpoint.c (catch_command_1): Delete #ifdef code.
12524 (catch_fork_command_1): Delete #ifdef wrapper.
12525 (catch_exec_command_1): Ditto.
12526 (catch_load_command_1): Ditto.
12527 (catch_unload_command_1): Ditto.
12528
c1321b30
AC
12529 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12530 (catch_breakpoint): Delete #if0ed function.
12531 (disable_catch_breakpoint): Ditto.
12532 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12533 (disable_catch, enable_catch, delete_catch): Ditto.
12534
b4501125
AC
125352004-01-26 Andrew Cagney <cagney@redhat.com>
12536
12537 * remote.c (echo_check, quit_flag): Delete variables.
12538 (cisco_kernel_mode): Delete variable.
12539 (minitelnet_return, tty_input, escape_count): Delete variables.
12540 (remote_cisco_mode): Delete variable.
12541 (remote_cisco_open, remote_cisco_close): Delete function.
12542 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12543 (init_remote_cisco_ops): Delete function.
12544 (_initialize_remote): Do not install "remote cisco" code.
12545 (read_frame): Delete cisco specific code.
12546 (remote_info_process): Delete function.
12547 (remote_wait): Delete cisco specific code.
12548 (remote_cisco_section_offsets): Delete function.
12549 (remote_cisco_objfile_relocate): Delete function.
12550 (remote_async_wait): Delete cisco specific code.
12551 (minitelnet, readtty, readsocket): Delete function.
12552
74055713
AC
125532004-01-26 Andrew Cagney <cagney@redhat.com>
12554
12555 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12556 comments mentioning extract_returned_value_address.
12557 * infcmd.c (print_return_value): Update. Add comments on
12558 extract_returned_value_address.
12559 * stack.c (return_command): Add comments on
12560 extract_returned_value_address.
12561 * values.c: Update comment.
12562 * m32r-tdep.c: Update comment.
12563 * sparc-tdep.c: Update comment.
12564 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12566 * sh64-tdep.c (sh64_gdbarch_init): Update.
12567 * sh-tdep.c (sh_gdbarch_init): Update.
12568 * s390-tdep.c (s390_gdbarch_init): Update.
12569 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12570 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12571 * m68k-tdep.c (m68k_gdbarch_init): Update.
12572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12573 * m32r-tdep.c (m32r_gdbarch_init): Update.
12574 * ia64-tdep.c (ia64_gdbarch_init): Update.
12575 * h8300-tdep.c (h8300_gdbarch_init): Update.
12576 * frv-tdep.c (frv_gdbarch_init): Update.
12577 * arm-tdep.c (arm_gdbarch_init): Update.
12578 * alpha-tdep.c (alpha_gdbarch_init): Update.
12579
a67af2b9
AC
125802004-01-26 Andrew Cagney <cagney@redhat.com>
12581
12582 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12583 SYMBOL_LOCATION_FUNCS
12584 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12585 "struct symbol_ops".
12586 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12587 type to "struct symbol_ops".
12588 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12589 (struct symbol): Replace ".aux_value.loc.funcs" and
12590 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12591 (SYMBOL_OBJFILE): Delete macro.
12592 (SYMBOL_LOCATION_FUNCS): Delete macro.
12593 (SYMBOL_LOCATION_BATON): Update.
12594 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12595 intead of SYMBOL_LOCATION_FUNCS.
12596 * ax-gdb.c (gen_var_ref): Ditto.
12597 * printcmd.c (address_info): Ditto.
12598 * findvar.c (read_var_value): Ditto.
12599 (symbol_read_needs_frame): Ditto.
12600
c034e007
AC
126012004-01-26 Andrew Cagney <cagney@redhat.com>
12602
12603 * dwarf2read.c (read_func_scope): Document frame-base hack.
12604
bb472c1e
MK
126052004-01-25 Mark Kettenis <kettenis@gnu.org>
12606
12607 * infcmd.c (print_return_value): Plug memory leak; delete
12608 ui_stream object. Rename argument `structure_return' to
12609 `struct_return'.
12610
c8e737d5
MK
126112004-01-25 Mark Kettenis <kettenis@gnu.org>
12612
f941662f
MK
12613 * infcmd.c (print_return_value): Wrap long lines.
12614 (finish_command_continuation, finish_command): Remove unused
12615 variable `funcaddr'. Fix some coding-standards problems.
12616
c558d81a 12617 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12618 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12619 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12620 TDEP->fpregset to zero.
12621
bf1e5861 12622 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12623 floating-point registers for traditional NetBSD core files.
12624 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12625 TDEP->sizeof_fpregset here.
12626
4c72d57a
MK
126272004-01-25 Mark Kettenis <kettenis@gnu.org>
12628
566626fa
MK
12629 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12630 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12631 function with code split out from
12632 sparc32nbsd_sigcontext_frame_cache.
12633 (sparc32nbsd_sigcontext_frame_cache): Use
12634 sparc32nbsd_sigcontext_saved_regs.
12635 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12636 OpenBSD.
12637 * sparcobsd-tdep.c: New file.
12638 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12639 (sparcobsd-tdep.o): New dependency.
12640 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12641 * config/sparc/obsd.mt: New file.
12642
4c72d57a
MK
12643 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12644 TDEP->fpregset to be initialized to enable core file register
12645 sets.
12646
7e5e9f88
MK
126472004-01-24 Mark Kettenis <kettenis@gnu.org>
12648
f0f207fd 12649 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12650 Add opaque declarations.
12651 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12652 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12653 function with code split out from
12654 sparc64nbsd_sigcontext_frame_cache.
12655 (sparc64nbsd_sigcontext_frame_cache): Use
12656 sparc64nbsd_sigcontext_saved_regs.
12657 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12658 OpenBSD.
12659 * sparc64obsd-tdep.c: New file.
12660 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12661 (sparc64obsd-tdep.o): New dependency.
12662 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12663 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12664 * config/sparc/obsd64.mt: New file.
12665
690668cc
MK
12666 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12667 read the instruction at PC.
12668
7e5e9f88
MK
12669 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12670 value of GDB_OSABI_DEFAULT.
12671 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12672 instead of GDB_OSABI_NETBSD_AOUT.
12673
68b6dce9
NR
126742004-01-24 Nick Roberts <nick@nick.uklinux.net>
12675
12676 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12677 copyright.
12678
080ce8c0
AC
126792004-01-23 Andrew Cagney <cagney@redhat.com>
12680
12681 * printcmd.c (display_command): Replace tui_set_display call with
12682 tui_set_layout_for_display_command.
12683 * tui/tui.h (enum tui_win_type): Define.
12684 (tui_set_layout): Delete declaration.
12685 (tui_set_layout_for_display_command): Rename set_tui_layout.
12686 * tui/tui-data.h (enum tui_layout_type): Define.
12687 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12688 "tui.h".
12689 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12690 (tui_default_win_height): Rename tuiDefaultWinHeight.
12691 (tui_default_win_viewport_height): Rename
12692 tuiDefaultWinViewportHeight.
12693 (tui_set_layout): RenametuiSetLayout.
12694 * tui/tui-layout.c: Update references.
12695 * tui/tui.c: Update references.
12696 * tui/tui-disasm.c: Update references.
12697
b368761e
DC
126982004-01-23 David Carlton <carlton@kealia.com>
12699
12700 Partial workaround for PR c++/1511:
12701 * cp-namespace.c: Include frame.h.
12702 (cp_lookup_transparent_type): New
12703 (cp_lookup_transparent_type_loop): New.
12704 * cp-support.h: Declare cp_lookup_transparent_type.
12705 * symtab.c (basic_lookup_transparent_type): Renamed from
12706 lookup_transparent_type.
12707 (lookup_transparent_type): Replace old body by a call to
12708 current_language->la_lookup_transparent_type.
12709 * symtab.h: Update copyright. Declare
12710 basic_lookup_transparent_type.
12711 * language.h: Update copyright.
12712 (struct language_defn): Add la_lookup_transparent_type.
12713 * language.c: Update copyright.
12714 (unknown_language_defn): Add basic_lookup_transparent_type.
12715 (auto_language_defn): Add basic_lookup_transparent_type.
12716 (local_language_defn): Add basic_lookup_transparent_type.
12717 * ada-lang.c: Update copyright.
12718 (ada_language_defn): Add basic_lookup_transparent_type.
12719 * c-lang.c: Update copyright.
12720 (c_language_defn): Add basic_lookup_transparent_type.
12721 (cplus_language_defn): Add basic_lookup_transparent_type.
12722 (asm_language_defn): Add basic_lookup_transparent_type.
12723 (minimal_language_defn): Add basic_lookup_transparent_type.
12724 * f-lang.c: Update copyright.
12725 (f_language_defn): Add basic_lookup_transparent_type.
12726 * jv-lang.c: Update copyright.
12727 (java_language_defn): Add basic_lookup_transparent_type.
12728 * m2-lang.c: Update copyright.
12729 (m2_language_defn): Add basic_lookup_transparent_type.
12730 * objc-lang.c: Update copyright.
12731 (objc_language_defn): Add basic_lookup_transparent_type.
12732 * p-lang.c: Update copyright.
12733 (p_language_defn): Add basic_lookup_transparent_type.
12734 * scm-lang.c: Update copyright.
12735 (scm_language_defn): Add basic_lookup_transparent_type.
12736 * Makefile.in (cp-namespace.o): Depend on frame.h.
12737
fdde2d81
DC
127382004-01-23 David Carlton <carlton@kealia.com>
12739
12740 Patch for PR c++/1520:
12741 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12742 properly if we have a specification die.
12743 (determine_prefix_aux): Rename from determine_prefix.
12744 (determine_prefix): Like the old determine_prefix, but never
12745 returns NULL.
12746
5b828b6b
TR
127472004-01-23 Theodore A. Roth <troth@openavr.org>
12748
12749 * avr-tdep.c: Update copyright.
12750 (avr_iaddr_p): Delete unused function.
12751 (avr_saddr_p): Delete unused function.
12752
a1b8c067
DC
127532004-01-23 David Carlton <carlton@kealia.com>
12754
12755 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12756 Fix for PR symtab/1534.
12757
f2cab569
MK
127582004-01-23 Mark Kettenis <kettenis@gnu.org>
12759
12760 * NEWS (New native configurations): Mention OpenBSD/sparc and
12761 OpenBSD/sparc64.
12762 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12763 * configure.host: Likewise.
12764 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12765 handler for OpenBSD.
12766 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12767
642d8300
MK
127682004-01-22 Mark Kettenis <kettenis@gnu.org>
12769
89aac506
MK
12770 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12771 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12772
36662fde
MK
12773 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12774 * cli/cli-cmds.c (shell_escape): Likewise.
12775
642d8300
MK
12776 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12777 OpenBSD .note.openbsd.ident sections.
12778
fae299cd
DC
127792004-01-22 David Carlton <carlton@kealia.com>
12780
12781 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12782 get_scope_pc_bounds.
12783 (read_file_scope): Ditto.
12784 (get_scope_pc_bounds): New function, produced by extracting code
12785 from the above two functions, consolidating it, and adding support
12786 for DW_TAG_namespace.
12787
a49d618c
MK
127882004-01-22 Mark Kettenis <kettenis@gnu.org>
12789
12790 * osabi.c (MAX_NOTESZ): New define.
12791 (check_note): New function.
12792 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12793 check_note.
12794
fe61caab
RM
127952004-01-21 Roland McGrath <roland@redhat.com>
12796
12797 * MAINTAINERS (write after approval): Add myself.
12798
ec145965
EZ
127992004-01-21 Eli Zaretskii <eliz@gnu.org>
12800
12801 * utils.c (init_page_info): Move declarations of `rows' and
12802 `cols' before the __GO32__-specific code. Move the closing brace
12803 outside the #ifdef __GO32__..#endif block.
12804 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12805
877522db
PB
128062004-01-21 Paul Brook <paul@codesourcery.com>
12807
12808 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12809 BPSTAT_WHAT_CHECK_SHLIBS.
12810
dbf5be1c
PB
128112004-01-21 Paul Brook <paul@codesourcery.com>
12812
12813 * MAINTAINERS: Add myself to write-after-approval.
12814
81f08b92
AC
128152004-01-20 Andrew Cagney <cagney@redhat.com>
12816
5a1efed7
AC
12817 * ax-gdb.c (print_axs_value): Delete unused function.
12818 * jv-lang.c (java_lookup_type): Delete unused function.
12819 * cli/cli-dump.c (dump_filetype): Delete unused function.
12820 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12821 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12822 (mips_getstring): Delete unused function.
12823 (pmon_insert_breakpoint): Delete #if0ed function.
12824 (PMON_MAX_BP): Delete #if0ed MACRO.
12825 (mips_pmon_bp_info): Delete #if0ed variable.
12826 (pmon_remove_breakpoint): Delete #if0ed function.
12827 * monitor.c (monitor_write_even_block): Delete unused function.
12828 (monitor_write_memory_block): Delete #if0ed code.
12829 * dink32-rom.c (dink32_load): Delete unused function.
12830 (_initialize_dink32_rom): Delete #if0ed code.
12831 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12832
b0a30fce
AC
12833 * tui/tui-command.c: Update references.
12834 * tui/tui-io.c: Update references.
12835 * tui/tui-command.h: Update copyright.
12836 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12837
81f08b92
AC
12838 * source.c (ambiguous_line_spec): Delete never-defined function.
12839 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12840 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12841 * cli/cli-cmds.c (validate_comname): Ditto.
12842
65f05602
AC
12843 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12844 "tui-data.h".
12845 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12846 (tui_show_disassem): Rename tuiShowDisassem.
12847 (tui_show_disassem_and_update_source): Rename
12848 tuiVerticalDisassemScroll.
12849 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12850 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12851 * tui/tui.h: Update copyright.
12852 (enum tui_status): Define.
12853 * tui/tui-data.h (enum tui_scroll_direction): Define.
12854 * tui/tui-disasm.c: Update copyright. Update references.
12855 * tui/tui-winsource.c: Update copyright. Update references.
12856 * tui/tui-win.c: Update references.
12857 * tui/tui-layout.c: Update references.
12858
6bb0384f
AC
128592004-01-20 Andrew Cagney <cagney@redhat.com>
12860
12861 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12862 sym2 to start of block.
12863
9175c9a3
MC
128642004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12865
12866 * MAINTAINERS: Delete mmalloc.
12867 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12868 * NEWS: Mention removal of --with-malloc.
12869 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12870 * config.in: Regenerate.
12871 * configure: Regenerate.
6bb0384f
AC
12872 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12873 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12874 * gdbinit.in: Remove mmalloc.
12875 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12876 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12877 * config/i386/go32.mh: Likewise.
12878 * config/i386/interix.mh: Likewise.
12879 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12880
4fcef00a
JJ
128812004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12882
12883 * linespec.c (decode_variable, symtab_from_filename): Call
12884 error_silent with error message instead of throwing an exception
12885 directly.
12886 * defs.h (error_silent, error_output_message): Add prototypes.
12887 (catch_exceptions_with_msg): Ditto.
12888 * utils.c (error_silent, error_output_message): New functions.
12889 * top.c (catch_exceptions_with_msg): New function.
12890
8e94b928
NR
128912004-01-20 Nick Roberts <nick@nick.uklinux.net>
12892
12893 * mi/mi-cmds.h (enum print_values): Add definition.
12894
12895 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12896 type and value for simple data types and just the name and type
12897 for complex ones, if required.
12898
12899 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12900 children, if required.
12901
a02d6af8
KB
129022004-01-19 Kevin Buettner <kevinb@redhat.com>
12903
12904 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12905 unused declarations.
12906
78a4a9b9
AC
129072004-01-19 Andrew Cagney <cagney@redhat.com>
12908
12909 * top.h (mapped_symbol_files): Delete declaration.
12910 * main.c (captured_main): Delete option "m" and "mapped".
12911 * objfiles.c (mapped_symbol_files): Delete variable.
12912 * symfile.c (symbol_file_command): Delete mmap code.
12913 (symbol_file_add_with_addrs_or_offsets): Ditto.
12914 (add_symbol_file_command, reread_separate_symbols): Ditto.
12915 * objfiles.h (OBJF_MAPPED): Delete.
12916 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12917 (free_objfile) [USE_MMALLOC]: Ditto.
12918 (open_existing_mapped_file): Delete function.
12919 (open_mapped_file): Delete function.
12920 (map_to_file): Delete function.
12921
2dbd5e30
KB
129222004-01-19 Kevin Buettner <kevinb@redhat.com>
12923
12924 * infrun.c (step_into_function): Account for possible breakpoint
12925 adjustment when computing ``stop_func_start''.
12926
437b434f
KB
129272004-01-19 Kevin Buettner <kevinb@redhat.com>
12928
12929 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12930 the region size against the size of a pointer, not the size of
12931 a register as given by DEPRECATED_REGISTER_SIZE.
12932
55fb0713
AC
129332004-01-19 Andrew Cagney <cagney@redhat.com>
12934
12935 * tui/tui-regs.h: Include "tui-data.h".
12936 (tuiFirstRegElementNoInLine): Delete declaration.
12937 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12938 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12939 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12940 (tui_calculate_regs_column_count): Rename
12941 tuiCalculateRegsColumnCount.
12942 (tui_check_register_values): Rename tuiCheckRegisterValues.
12943 (tui_show_registers): Rename tuiShowRegisters.
12944 (tui_display_registers_from_line): Rename
12945 tuiDisplayRegistersFromLine.
12946 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12947 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12948 (tui_first_reg_element_no_inline): Rename
12949 tuiFirstRegElementNoInLine.
12950 * tui/tui-data.h: Update copyright.
12951 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12952 * tui/tui-windata.c: Update copyright, update references.
12953 * tui/tui-regs.c: Update copyright, update references.
12954 * tui/tui-win.c: Update copyright, update references.
12955 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12956
cebe9500
AC
129572004-01-18 Andrew Cagney <cagney@redhat.com>
12958
bcdf1568
AC
12959 * tui/tui-io.c: Update copyright.
12960 (key_is_end_sequence, key_is_backspace): New functions.
12961 (key_is_command_char, key_is_start_sequence): New function.
12962 (tui_getc): Update references.
12963 * tui/tui-io.h: Update copyright.
12964 (m_tuiStartNewLine): Delete macro.
12965 (m_isBackspace, m_isDeleteChar): Delete macros.
12966 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12967 (m_isNextPage, m_isPrevPage): Delete macros.
12968 (m_isLeftArrow, m_isRightArrow): Delete macros.
12969 (m_isXdbStyleCommandChar): Delete macro.
12970 (key_is_start_sequence): Declare, replace m_isStartSequence.
12971 (key_is_end_sequence): Declare, replace m_isEndSequence.
12972 (key_is_backspace): Declare ,replace m_isBackspace.
12973 (key_is_command_char): Declare, replace m_isCommandChar.
12974 * tui/tui-command.c: Update copyright.
12975 (tuiDispatchCtrlChar): Update references.
12976
130d87e6
AC
12977 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12978 tuiSourceWin.h.
12979
d7b2e967
AC
12980 * tui/tui-command.c: Rename tui/tuiCommand.c.
12981 * tui/tui-command.h: Rename tui/tuiCommand.h.
12982 * tui/tui-data.c: Rename tui/tuiData.c.
12983 * tui/tui-data.h: Rename tui/tuiData.h.
12984 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12985 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12986 * tui/tui-io.c: Rename tui/tuiIO.c.
12987 * tui/tui-io.h: Rename tui/tuiIO.h.
12988 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12989 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12990 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12991 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12992 * tui/tui-source.c: Rename tui/tuiSource.c.
12993 * tui/tui-source.h: Rename tui/tuiSource.h.
12994 * tui/tui-stack.c: Rename tui/tuiStack.c.
12995 * tui/tui-stack.h: Rename tui/tuiStack.h.
12996 * tui/tui-win.c: Rename tui/tuiWin.c.
12997 * tui/tui-win.h: Rename tui/tuiWin.h.
12998 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12999 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13000 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13001 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13002 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13003 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13004 * tui/tui-file.c: Update includes.
13005 * tui/tui-hooks.c: Update includes.
13006 * tui/tui-interp.c: Update includes.
13007 * tui/tui.c: Update includes.
13008 * Makefile.in: Update all tui/ dependencies.
13009 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13010
b2100910
AC
13011 * Makefile.in: Update copyright. Update dependencies.
13012
cebe9500
AC
13013 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13014 problem.
13015
c6f0559b
AC
130162004-01-18 Andrew Cagney <cagney@redhat.com>
13017
43e9390b
AC
13018 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13019 instead of register_gdbarch_init.
13020
c6f0559b
AC
13021 * remote-sds.c (tohex): Delete unused function. Update copyright.
13022 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13023 * v850-tdep.c (v850_register_virtual_size): Ditto.
13024 * target.c (normal_target_post_startup_inferior): Ditto.
13025 * source.c (ambiguous_line_spec): Ditto.
13026 * remote.c (adapt_remote_get_threadinfo): Ditto.
13027 * mi/mi-out.c (out_field_fmt): Ditto.
13028 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13029 (output_control_change_notification): Ditto.
13030 * m68k-tdep.c (m68k_register_byte): Ditto.
13031 (m68k_remote_breakpoint_from_pc): Ditto.
13032 * ui-out.c (init_ui_out_state): Delete unused declaration.
13033 * stabsread.c (search_value): Ditto.
13034 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13035 * maint.c (print_section_table): Ditto.
13036 * infrun.c (set_follow_fork_mode_command): Ditto.
13037
a8504492
MK
130382004-01-18 Mark Kettenis <kettenis@gnu.org>
13039
13040 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13041 DW_CFA_def_cfa_exporession. Add support for
13042 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13043 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13044
0bd8997e
AC
130452004-01-18 Andrew Cagney <cagney@redhat.com>
13046
13047 * ocd.c: Update copyright.
13048 (bdm_read_register_command): Delete unused function.
13049 (_initialize_remote_ocd): Delete commented out reference.
13050 (get_quoted_char, reset_packet): Delete #if0ed function.
13051 (output_packet, put_quoted_char): Delete #if0ed function.
13052 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13053 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13054 (BDM_BREAKPOINT): Delete #if0ed macro.
13055 (remote_timeout): Delete #if0ed variable.
13056
31bb40e4
MK
130572004-01-18 Mark Kettenis <kettenis@gnu.org>
13058
13059 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13060 (core-sol2.o): Remove dependency.
13061 * core-sol2.c: Remove file.
13062
887432a5
AC
130632004-01-17 Andrew Cagney <cagney@redhat.com>
13064
13065 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13066 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13067 enums.
13068
29182b13
DJ
130692004-01-17 Daniel Jacobowitz <drow@mvista.com>
13070
13071 * remote.c: Update copyright years.
13072
2963ee1d
DJ
130732004-01-17 Daniel Jacobowitz <drow@mvista.com>
13074
13075 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13076
79d45cd4
AC
130772004-01-17 Andrew Cagney <cagney@redhat.com>
13078
ee300cd4
AC
13079 * mdebugread.c: Update copyright.
13080 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13081 (parse_type, parse_procedure): Ditto.
13082 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13083
fcacc9c2
AC
13084 * cris-tdep.c (cris_store_struct_return): Put back accidently
13085 deleted function.
13086
79d45cd4
AC
13087 * gdbarch.sh: Update copyright year.
13088 * gdbarch.h, gdbarch.c: Re-generate.
13089
b263358a
DJ
130902004-01-17 Daniel Jacobowitz <drow@mvista.com>
13091
13092 Suggested by George Anzinger.
13093 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13094 correct stack offset. Include unknown opcode numbers in the error
13095 message.
13096
931aecf5
AC
130972004-01-17 Andrew Cagney <cagney@redhat.com>
13098
13099 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13100 extract_struct_value_address, i386 does not set it.
13101 * sparc64-tdep.c (sparc64_init_abi): Do not set
13102 extract_struct_value_address, never called.
13103 (sparc64_extract_struct_value_address): Delete function.
13104 * m68hc11-tdep.c: Update copyright.
13105 (m68hc11_gdbarch_init): Delete redundant assignment of
13106 extract_struct_value_address.
13107 * i386-tdep.c: Update copyright.
13108 (i386_gdbarch_init): Do not set extract_struct_value_address,
13109 never called.
13110 (i386_extract_struct_value_address): Delete function.
13111 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13112 extract_struct_value_address, never called.
13113 (sparc32_extract_struct_value_address): #if 0 function. Add
13114 comments explaining its future.
13115
756fe439
DJ
131162004-01-17 Daniel Jacobowitz <drow@mvista.com>
13117
13118 * arm-tdep.c (arm_write_pc): New function.
13119 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13120
e74f0f02
DJ
131212004-01-17 Daniel Jacobowitz <drow@mvista.com>
13122
13123 * breakpoint.c (must_shift_inst_regs): Delete.
13124 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13125 and SHIFT_INST_REGS.
13126 * infcmd.c (step_1, step_1_continuation): Delete references to
13127 SHIFT_INST_REGS.
13128 * infrun.c (keep_going): Likewise.
13129 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13130 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13131
b6cb9035
AC
131322004-01-17 Andrew Cagney <cagney@redhat.com>
13133
444a1e2e
AC
13134 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13135 * gdbarch.h, gdbarch.c: Re-generate.
13136 * infcmd.c (print_return_value): Delete reference to
13137 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13138
def7e6ed
AC
13139 * cris-tdep.c (cris_gdbarch_init): Do not set
13140 deprecated_extract_struct_value_address.
13141
07be497a
AC
13142 * xstormy16-tdep.c: Update copyright.
13143 (xstormy16_extract_struct_value_address): Update to current
13144 extract struct value address interface.
13145 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13146 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13147 current extract struct value address interface.
13148 (sh64_gdbarch_init): Set extract_struct_value_address.
13149
6b4d5c91
AC
13150 * cris-tdep.c: Update copyright.
13151 (cris_extract_struct_value_address): Delete function.
13152 (struct_return_address): Delete variable.
13153 (cris_store_struct_return): Do not set struct_return_address.
13154
464e0365
AC
13155 * mcore-tdep.c: Update copyright.
13156 (mcore_extract_struct_value_address): Delete function. Update
13157 comments.
13158 (mcore_gdbarch_init): Update.
13159 * mn10300-tdep.c: Update copyright.
13160 (mn10300_extract_struct_value_address): Delete function.
13161 (mn10300_gdbarch_init): Update.
13162 * v850-tdep.c: Update copyright.
13163 (v850_extract_struct_value_address): Delete.
13164 (v850_gdbarch_init): Update.
13165 * ns32k-tdep.c: Update copyright.
13166 (ns32k_extract_struct_value_address): Delete.
13167 (ns32k_gdbarch_init): Update.
13168 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13169 (hppa_gdbarch_init): Update.
13170 * vax-tdep.c: Update copyright.
13171 (vax_extract_struct_value_address): Delete.
13172 (vax_gdbarch_init): Update.
13173
afb18d0f
AC
13174 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13175 * gdbarch.h, gdbarch.c: Re-generate.
13176 * procfs.c (procfs_fetch_registers): Delete reference to
13177 DEPRECATED_NPC_REGNUM.
13178 (procfs_store_registers): Ditto.
13179 * regcache.c (generic_target_write_pc): Simplify.
13180 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13181
a698f53e
AC
13182 * core-sol2.c (fetch_core_registers): Replace
13183 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13184
adc11376
AC
13185 * hppa-tdep.c: Update copyright year.
13186 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13187 NPC_REGNUM.
13188 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13189
b6cb9035
AC
13190 * mips-tdep.c (mips_write_pc): New function.
13191 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13192 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13193 (mips_find_saved_regs, mips_software_single_step: Ditto.
13194 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13195 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13196
6d82d43b
AC
131972004-01-17 Andrew Cagney <cagney@redhat.com>
13198
13199 * mips-tdep.c: Re-indent. Group functions by ABI.
13200
71bd6bd4
AC
132012004-01-17 Andrew Cagney <cagney@redhat.com>
13202
13203 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13204 * gdbarch.c: Re-generate.
13205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13206 DECR_PC_AFTER_BREAK to zero.
13207 * vax-tdep.c (vax_gdbarch_init): Ditto.
13208 * v850-tdep.c (v850_gdbarch_init): Ditto.
13209 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13210 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13211 * sh-tdep.c (sh_gdbarch_init): Ditto.
13212 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13213 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13214 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13215 * mips-tdep.c (mips_gdbarch_init): Ditto.
13216 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13218 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13219 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13220 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13221 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13222 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13223 * frv-tdep.c (frv_gdbarch_init): Ditto.
13224 * cris-tdep.c (cris_gdbarch_init): Ditto.
13225 * avr-tdep.c (avr_gdbarch_init): Ditto.
13226 * arm-tdep.c (arm_gdbarch_init): Ditto.
13227 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13228
a02abb62
JB
132292004-01-17 J. Brobecker <brobecker@gnat.com>
13230
13231 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13232 Delete, no longer used.
13233 (read_subrange_type): New function, mostly extracted from
13234 read_array_type().
13235 (read_array_type): Replace extracted code by call to
13236 read_subrange_type().
13237 (dwarf2_get_attr_constant_value): New function.
13238 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13239 (add_partial_symbol): Likewise.
13240 (process_die): Likewise.
13241 (new_symbol): Likewise.
13242 (read_type_die): Likewise.
13243
cf5b2f1b
AC
132442004-01-16 Andrew Cagney <cagney@redhat.com>
13245
13246 * symfile.c: Update copyright year.
13247 (compare_symbols): Delete unused function.
13248 * stabsread.c: Update copyright year.
13249 (lrs_general_complaint): Delete unused function.
13250 (ref_search_value): Ditto.
13251 (get_substring): Delete declaration.
13252 * sh64-tdep.c: Update copyright year.
13253 (sh64_get_gdb_regnum): Delete unused function.
13254 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13255 Delete unused function.
13256
d33b9831
MK
132572004-01-17 Mark Kettenis <kettenis@gnu.org>
13258
13259 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13260 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13261
7aea86e6
AC
132622004-01-16 Andrew Cagney <cagney@redhat.com>
13263
13264 Changes from Peter Schauer.
13265 * rs6000-tdep.c: Update copyright year.
13266 (rs6000_push_dummy_call): Update the stack pointer before
13267 accessing the corresponding stack region.
13268 * rs6000-nat.c: Update copyright year.
13269 (set_host_arch): Set "info.abfd" to "exec_bfd".
13270
26b0da32
MK
132712004-01-15 Mark Kettenis <kettenis@gnu.org>
13272
13273 * blockframe.c: Update copyright year.
13274 (inside_entry_func): Don't treat a zero PC specially.
13275
86fbe6cc
EZ
132762004-01-14 Elena Zannoni <ezannoni@redhat.com>
13277
13278 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13279 variable.
13280 (gcore_create_callback): Ditto. Skip any memory segment that has
13281 no permissions set.
13282
63d06c5c
DC
132832004-01-14 David Carlton <carlton@kealia.com>
13284
13285 Change symbols for C++ nested types to contain the fully qualified
13286 name, if possible. (At least in the DWARF-2 case.) Partial fix
13287 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13288 c++/895.
13289 * c-exp.y (qualified_type): Handle types nested within classes.
13290 * cp-namespace.c: Update comments.
13291 (cp_set_block_scope): Delete #if 0.
13292 (cp_lookup_nested_type): Handle types nested within classes.
13293 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13294 when appropriate.
13295 (add_partial_symbol): Add the name of the enclosing namespace to
13296 types.
13297 (pdi_needs_namespace): New.
13298 (add_partial_namespace): Tweak comment.
13299 (add_partial_structure): New.
13300 (psymtab_to_symtab_1): Initialize processing_current_prefix
13301 here...
13302 (process_die): instead of here.
13303 (read_structure_scope): Try to figure out the name of the class or
13304 namespace that the structure might be defined within.
13305 (read_enumeration): Generate fully-qualified names, if possible.
13306 (read_namespace): Don't set name to NULL.
13307 (die_specification): New.
13308 (new_symbol): Generate fully-qualified names for types.
13309 (read_type_die): Determine appropriate prefix.
13310 (determine_prefix): New.
13311 (typename_concat): New.
13312 (class_name): New.
13313 * valops.c (value_aggregate_elt): Pass NOSIDE to
13314 value_struct_elt_for_reference.
13315 (value_struct_elt_for_reference): Make static, add NOSIDE
13316 parameter, call value_maybe_namespace_elt as a last resort.
13317 (value_namespace_elt): Break out code into
13318 value_maybe_namespace_elt.
13319 (value_maybe_namespace_elt): New.
13320
87783b8b
AC
133212004-01-12 Andrew Cagney <cagney@redhat.com>
13322
13323 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13324 cooked floating-point registers.
13325 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13326 and value_to_register.
13327
6503b91e
AC
133282004-01-13 Andrew Cagney <cagney@redhat.com>
13329
13330 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13331 * gdbarch.c: Re-generate.
13332 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13333 FUNCTION_START_OFFSET.
13334 * v850-tdep.c (v850_gdbarch_init): Ditto.
13335 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13336 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13337 * sh-tdep.c (sh_gdbarch_init): Ditto.
13338 * s390-tdep.c (s390_gdbarch_init): Ditto.
13339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13340 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13341 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13342 * mips-tdep.c (mips_gdbarch_init): Ditto.
13343 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13344 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13346 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13347 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13348 * i386-tdep.c (i386_gdbarch_init): Ditto.
13349 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13350 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13351 * frv-tdep.c (frv_gdbarch_init): Ditto.
13352 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13353 * cris-tdep.c (cris_gdbarch_init): Ditto.
13354 * avr-tdep.c (avr_gdbarch_init): Ditto.
13355 * arm-tdep.c (arm_gdbarch_init): Ditto.
13356 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13357
ea1dd7bc
DJ
133582004-01-13 Daniel Jacobowitz <drow@mvista.com>
13359
13360 * infrun.c (follow_fork_mode_ask): Remove.
13361 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13362 (follow_fork): Simplify and remove internal error for
13363 follow_fork_mode_ask.
13364 (_initialize_infrun): Update "set follow-fork-mode" help text.
13365
0f0cffd2
AC
133662004-01-13 Andrew Cagney <cagney@redhat.com>
13367
13368 * configure.in: Update copyright year.
13369 (build_warnings): Add -Wunused-label.
13370 * configure: Re-generate.
13371
de38af99
AC
133722004-01-12 Andrew Cagney <cagney@redhat.com>
13373
954a7fba
AC
13374 * exec.h (exec_ops): Make "extern".
13375
de38af99
AC
13376 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13377 the function is void.
13378 (mips_pseudo_register_write): Ditto.
13379
1a111ce3
AC
133802004-01-12 Andrew Cagney <cagney@redhat.com>
13381
13382 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13383 call. Never defined.
13384 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13385 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13386 (struct sparc_gregset, struct regcache): Ditto.
13387 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13388
48efe704
AC
133892004-01-12 Andrew Cagney <cagney@redhat.com>
13390
13391 * mi/ChangeLog: Delete file. Renamed to ...
13392 * mi/ChangeLog-1999-2003: New file.
13393 * tui/ChangeLog: Delete file. Renamed to ...
13394 * tui/ChangeLog-1998-2003: New file.
fe61caab 13395
a54124c5
MK
133962004-01-11 Mark Kettenis <kettenis@gnu.org>
13397
2ca62865
MK
13398 * sparc64nbsd-tdep.c: Include "regset.h".
13399 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13400 Remove variables.
13401 (fetch_core_registers): Remove function.
13402 (sparc64nbsd_core_fns): Remove variable.
13403 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13404 functions.
13405 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13406 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13407 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13408
ca9d58e9
MK
13409 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13410 sparc_extract_struct_value_address.
13411 (sparc32_gdbarch_init): Set extract_struct_value_address.
13412 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13413 function.
13414 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13415 return_value_on_stack.
13416
3cc87ec0
MK
13417 * NEWS: Mention that %cs and %ss have been added to the AMD64
13418 configurations
13419
5bf00f29
MK
13420 * frame.c: Update copyright year.
13421 (get_prev_frame): Improve comment.
13422
4f7ec84e
MK
13423 * sparc64fbsd-tdep.c: Include "regset.h".
13424 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13425 Remove variables.
13426 (fetch_core_registers): Remove function.
13427 (sparc64fbsd_core_fns): Remove variable.
13428 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13429 functions.
13430 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13431 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13432 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13433
4e7b0cd3
MK
13434 * sparcnbsd-tdep.c: Include "regset.h".
13435 (fetch_core_registers): Remove function.
13436 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13437 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13438 functions.
13439 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13440 TDEP->fpregset.
46b58ce9 13441 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13442
a54124c5
MK
13443 * sparc-tdep.h (struct regset): Provide opaque declaration.
13444 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13445 fpregset and sizeof_fpregset members.
13446 * sparc-tdep.c (struct regset): Provide opaque declaration.
13447 (sparc_regset_from_core_section): New function.
13448 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13449 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13450 Set regset_from_core_section when appropriate.
13451
29ff87c5
MK
134522004-01-10 Mark Kettenis <kettenis@gnu.org>
13453
79b1ab3d
MK
13454 * x86-64-tdep.c (amd64_non_pod_p): New function.
13455 (amd64_classify_aggregate): Return class memory for non-POD
13456 C++ structure types.
13457
6470d250
MK
13458 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13459 argument. Use it to reserve a register if necessary.
13460 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13461 amd64_push_arguments.
13462
562c50c2
MK
13463 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13464
af233647
MK
13465 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13466 register numbers in comments.
13467 * x86-64-tdep.h: Update copyright year.
13468 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13469 Adjust for addition of %cs and %ss.
13470 * amd64fbsd-nat.c: Update copyright year.
13471 (reg_offset): Add register offsets for %cs and %ss.
13472 * amd64fbsd-tdep.c: Update copyright year.
13473 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13474 (amd64fbsd_sc_reg_offset): Likewise.
13475 * x86-64-linux-nat.c: Update copyright year.
13476 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13477 and %ss.
13478 * amd64nbsd-nat.c: Update copyright year.
13479 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13480 * amd64nbsd-tdep.c: Update copyright year.
13481 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13482 * x86-64-linux-tdep.c: Update copyright year.
13483 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13484 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13485 * regformats/reg-x86-64.dat: Add %cs and %ss.
13486
29ff87c5
MK
13487 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13488 variables to prevent long lines. Update comments to reflect
13489 reality.
13490
38d518c9
EZ
134912004-01-09 David Carlton <carlton@kealia.com>
13492
13493 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13494 * dwarf2read.c (read_namespace): Pull out name-generating code
13495 into namespace_name. Rename previous_namespace to previous_prefix
13496 and processing_current_namespace to processing_current_prefix..
13497 (namespace_name): New function.
13498 (add_partial_symbol): Substitute uses of pdi->name with
13499 actual_name.
13500 * cp-support.h: Rename processing_current_namespace to
13501 processing_current_prefix.
13502 Update copyright year.
13503 * cp-namespace.c: Rename processing_current_namespace to
13504 processing_current_prefix.
13505 Update copyright year.
fe61caab 13506
1e4728e7
AC
135072004-01-09 Andrew Cagney <cagney@redhat.com>
13508
13509 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13510
c77c642a
MK
135112004-01-09 Mark Kettenis <kettenis@gnu.org>
13512
13513 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13514 complaining.
13515 (process_one_symbol): Deal with N_PATCH stabs.
13516
b44e9041
EZ
135172004-01-09 Elena Zannoni <ezannoni@redhat.com>
13518
13519 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13520 ifdeffed code.
13521 Update copyright year.
38d518c9 13522
eccfb640
MC
135232004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13524
13525 * config/pa/tm-hppa.h: Update extern declarations for
13526 hppa32_hpux_frame_saved_pc_in_sigtramp,
13527 hppa32_hpux_frame_base_before_sigtramp, and
13528 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13529
848c5feb
MC
135302004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13531
13532 * config/pa/tm-hppah.h: Update copyright years.
13533
3cc5d663
AC
135342004-01-08 Andrew Cagney <cagney@redhat.com>
13535
13536 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13537 (mips_o32_reg_struct_has_addr): Delete function.
13538 (mips_gdbarch_init): Update.
13539 (mips_extract_struct_value_address): Delete function.
13540
bfec0b41
JJ
135412004-01-08 David Mosberger <davidm@hpl.hp.com>
13542
13543 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13544 reality.
13545
16e109ca
AC
135462004-01-07 Andrew Cagney <cagney@redhat.com>
13547
6214a8a1
AC
13548 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13549 architecture's elf flags (when available).
13550
8d5838b5
AC
13551 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13552 FPU to the start, check the MIPS FPU when looking for an old
13553 architecture.
13554 (set_mipsfpu_single_command): Update the architecture.
13555 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13556
480d3dd2
AC
13557 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13558 (mips_mask_address_p): Add "tdep" parameter.
13559 (show_mask_address, mips_addr_bits_remove): Update.
13560 (mips_dump_tdep): Update.
13561 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13562 (MIPS_STACK_ARGSIZE): Delete macro.
13563 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13564 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13565 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13566 (mips_dump_tdep): Update.
13567 (MIPS_SAVED_REGSIZE): Delete macro.
13568 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13569 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13570 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13571 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13572 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13573 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13574 (mips_pop_frame, return_value_location): Update.
13575 (mips_n32n64_return_value, mips_dump_tdep): Update.
13576
ec03c1ac
AC
13577 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13578 MIPS ABI.
13579
16e109ca
AC
13580 * mips-tdep.c: Update copyright.
13581 (mips_gdbarch_init): Merge two code blocks handling the register
13582 name and number layout.
13583
15255275
MS
135842004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13585
13586 * tracepoint.c (validate_actionline): Fix segv at EOF
13587
9f9057da
MC
135882004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13589
13590 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13591 properly for static fields.
13592
0127c0d3 135932004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13594 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13595
13596 * disasm.c: Update copyright to include 2004.
13597 (do_mixed_source_and_assembly): For uiout asm list
13598 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13599 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13600 the tuple/list. Move check for whether to close off the
fe61caab 13601 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13602 on each loop iteration.
13603
5269965e
AC
136042004-01-05 Andrew Cagney <cagney@redhat.com>
13605
54f1137d
AC
13606 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13607 should be a switch case and not a label.
13608 * mips-tdep.c (mips32_next_pc): Delete unused labels
13609 "greater_equal_branch" and "less_zero_branch".
13610 * jv-valprint.c (java_print_value_fields): Delete unused label
13611 "flush_it".
13612
5269965e
AC
13613 * target.c (unpush_target): Only close a target that is in the
13614 target stack.
13615
dbc22fa1
MK
136162004-01-05 Mark Kettenis <kettenis@gnu.org>
13617
9515395e
MK
13618 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13619 address from [sp + 64] instead of %o2.
13620
dbc22fa1
MK
13621 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13622 fixes PR backtrace/1476.
13623
5439edaa
AC
136242004-01-05 Andrew Cagney <cagney@redhat.com>
13625
13626 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13627 move to start of file.
13628 * i386-tdep.h (struct regcache): Add opaque declaration.
13629 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13630 declaration.
13631 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13632 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13633 * win32-nat.c (fake_create_process): Use ISO C style definition.
13634 * stabsread.c (define_symbol): Delete #ifndef
13635 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13636 stabs_argument_has_addr call, macro never defined.
13637
19061abe
MC
136382004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13639
13640 * op50-rom.c: Delete.
13641 * w89k-rom.c: Delete.
13642 * Makefile.in: Remove references.
13643
e53bef9f
MK
136442004-01-04 Mark Kettenis <kettenis@gnu.org>
13645
13646 * x86-64-tdep.c: Update copyright year.
13647 (struct amd64_register_info): Rename from x86_64_register_info.
13648 (amd64_register_info): Rename from x86_64_register_info.
13649 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13650 (amd64_register_name): Rename from x86_64_register_name.
13651 (amd64_register_type): Rename from x86_64_register_type.
13652 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13653 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13654 (amd64_dwarf_reg_to_regnum): Rename from
13655 x86_64_dwarf_reg_to_regnum.
13656 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13657 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13658 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13659 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13660 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13661 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13662 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13663 (amd64_frame_cache): Rename from x86_64_frame_cache.
13664 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13665 (amd64_frame_prev_register): Rename from
13666 x86_64_frame_prev_register.
13667 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13668 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13669 (amd64_sigtramp_frame_cache): Rename from
13670 x86_64_sigtramp_frame_cache.
13671 (amd64_sigtramp_frame_prev_register): Rename from
13672 x86_64_sigtramp_frame_prev_register.
13673 (amd64_sigtramp_frame_unwind): Rename from
13674 x86_64_sigtramp_frame_unwind.
13675 (amd64_sigtramp_frame_sniffer): Rename from
13676 x86_64_sigtramp_frame_sniffer.
13677 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13678 (amd64_frame_base): Rename from x86_64_frame_base.
13679 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13680 (amd64_frame_align): Rename from x86_64_frame_align.
13681 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13682 (amd64_regset_from_core_section): Rename from
13683 x86_64_regset_from_core_section.
13684 (x86_64_init_abi): Update comments.
13685
fca6aa58
NR
136862004-01-04 Nick Roberts <nick@nick.uklinux.net>
13687
13688 * MAINTAINERS (write after approval): Add myself.
13689
8ada74e3
MK
136902004-01-04 Mark Kettenis <kettenis@gnu.org>
13691
13692 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13693 `float' arguments.
13694
5154b0cd
MK
136952004-01-04 Mark Kettenis <kettenis@gnu.org>
13696
13697 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13698 such that it mentions a specific version of GCC that exhibits this
13699 bug.
13700
fb316966
MK
137012004-01-03 Mark Kettenis <kettenis@gnu.org>
13702
200cc553
MK
13703 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13704 structure that has a single `float' member, store it in %f1 in
13705 addition to %f0.
13706
e226a4a0
MK
13707 * sparc-sol2-nat.c: Add missing '\'.
13708
b9d4c5ed
MK
13709 * sparc-tdep.c (sparc32_return_value): New function.
13710 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13711 Remove functions.
13712 (sparc32_gdbarch_init): Set return_value, don't set
13713 extract_return_value, store_return_value, use_struct_convention
13714 and return_value_on_stack.
13715
fb316966
MK
13716 * sparc-sol2-nat.c: Add missing ')'.
13717
1af510a8
JB
137182004-01-03 J. Brobecker <brobecker@gnat.com>
13719
13720 * infrun.c (handle_step_into_function): New function.
13721 (handle_inferior_event): Extract out some code into the new
13722 function above.
13723
5cf4d23a
JB
137242004-01-03 J. Brobecker <brobecker@gnat.com>
13725
13726 * infrun.c (handle_inferior_event): Move the declaration of
13727 real_stop_pc inside the if blocks where it is used.
13728
60af1db2
MK
137292004-01-03 Mark Kettenis <kettenis@gnu.org>
13730
13731 * sparc64-tdep.c (sparc64_16_byte_align_p)
13732 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13733 Use check_typedef to get subtypes of structures and unions.
13734 (sparc64_store_return_value): Fix calculation of the appropriate
13735 offset into VALBUF when storing a structure or union.
13736 (sparc64_return_value): New function.
13737 (sparc64_use_struct_convention): Remove function.
13738 (sparc64_init_abi): Set return_value, don't set
13739 extract_return_value, store_return_value and
13740 use_struct_convention.
13741
1a901d3f
EZ
137422004-01-03 Eli Zaretskii <eliz@elta.co.il>
13743
13744 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13745 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13746 gdb/config/alpha/xm-alphaosf.h,
13747 gdb/config/powerpc/tm-ppcle-eabi.h,
13748 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13749 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13750 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13751 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13752 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13753 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13754 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13755 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13756 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13757 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13758 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13759 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13760 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13761 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13762 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13763 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13764 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13765 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13766 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13767 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13768 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13769 Remove lines for .cvsignore files.
13770
ef52e463
JB
137712004-01-03 J. Brobecker <brobecker@gnat.com>
13772
13773 * infrun.c: Back out the previous change.
13774
cb1bf9dc
MK
137752004-01-03 Mark Kettenis <kettenis@gnu.org>
13776
f0424ef6
MK
13777 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13778 sparc-*-sunos4* to the list of REMOVED configurations.
13779
cb1bf9dc
MK
13780 * configure.tgt: Add back sparc-*-vxworks*.
13781 * remote-vxsparc.c: Remove all includes except for "defs.h",
13782 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13783 Include "sparc-tdep.h".
13784 (SPARC_R_G1): New define.
13785 (vxsparc_gregset): New variable.
13786 (ext_format_sparc): Remove extern declaration.
13787 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13788 sparc32_supply_fpregset.
13789 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13790 sparc_collect_rwindow and sparc32_collect_fpregset.
13791 * config/sparc/tm-vxworks.h: New file, based on recently removed
13792 tm-vxsparc.h.
13793 * config/sparc/vxworks.mt: New file, based on recently removed
13794 vxworks.mt.
fe61caab 13795
5e938f9f
JB
137962004-01-03 J. Brobecker <brobecker@gnat.com>
13797
13798 * infrun.c (handle_step_into_function): New function.
13799 (handle_inferior_event): Extract out some code into the new
13800 function above.
13801
386c036b
MK
138022004-01-02 Mark Kettenis <kettenis@gnu.org>
13803
13804 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13805 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13806 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13807 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13808 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13809 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13810 (sparc_nat_h): New variable.
13811 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13812 (tm-sun4os4.h): Remove dependency.
13813 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13814 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13815 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13816 sparc-tdep.o): Update dependencies.
13817 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13818 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13819 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13820 dependencies.
13821 * configure.host: Remove existing sparc-*-lynxos*,
13822 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13823 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13824 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13825 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13826 triplets.
13827 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13828 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13829 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13830 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13831 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13832 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13833 sparc64-*-solaris2* and sparc64-*-* triplets.
13834 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13835 "symtab.h" and "objfiles.h".
13836 (BIAS): Remove define.
13837 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13838 (X_DISP19): Remove macros.
13839 (sparc_fetch_instruction): Remove function.
13840 (struct gdbarch_tdep): Remove definition.
13841 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13842 (sparc_breakpoint_from_pc): Remove function.
13843 (struct sparc64_frame_cache): Remove definition.
13844 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13845 sparc64_unwind_pc): Remove functions.
13846 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13847 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13848 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13849 (sparc64_frame_cache): Change return type to `struct
13850 sparc_frame_cache *'. Simply call sparc_frame_cache.
13851 (sparc64_frame_this_id, sparc64_frame_prev_register,
13852 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13853 instead of `struct sparc64_frame_cache.
13854 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13855 sparc_analyze_control_transfer, sparc_software_single_step,
13856 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13857 _initialize_sparc64_tdep): Remove functions.
13858 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13859 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13860 macros.
13861 (sparc64_supply_gregset, sparc64_collect_gregset,
13862 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13863 (sparc64_init_abi): New function.
13864 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13865 inclusion guard. Include "sparc-tdep.h".
13866 (BIAS): Define.
13867 (r_tstate_offset, r_fprs_offset): New defines.
13868 (enum sparc_regnum): Remove defenition.
13869 (enum sparc64_regnum): Reformat.
13870 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13871 (sparc64_init_abi, sparc64_supply_gregset,
13872 sparc64_collect_gregset, sparc64_supply_fpregset,
13873 sparc64_collect_fpregset): New prototypes.
13874 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13875 Add extern declarations.
13876 (sparc64_sol2_init_abi): New prototype.
13877 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13878 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13879 prototypes.
13880 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13881 "sparnbsd-nat.h".
13882 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13883 functions.
13884 (_initialize_sparc64fbsd_nat): Remove initialization of
13885 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13886 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13887 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13888 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13889 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13890 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13891 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13892 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13893 (sparc64fbsd_r_y_offset): Remove variables.
13894 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13895 Make static and const.
13896 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13897 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13898 functions.
13899 (sparc64fbsd_gregset): New variable.
13900 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13901 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13902 and sparc64_supply_fpregset.
13903 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13904 (sparc64fbsd_sigtramp_frame_this_id)
13905 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13906 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13907 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13908 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13909 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13910 * sparcnbsd-tdep.c: Update copyright year. Include
13911 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13912 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13913 "value.h" and "sparcnbsd-tdep.h".
13914 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13915 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13916 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13917 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13918 defines.
13919 (sparcnbsd_gregset): New variable.
13920 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13921 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13922 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13923 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13924 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13925 variables.
13926 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13927 (sparc32nbsd_sigcontext_frame_this_id)
13928 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13929 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13930 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13931 (sparcnbsd_get_longjmp_target_32,
13932 sparcnbsd_get_longjmp_target_64): Remove functions.
13933 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13934 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13935 sparcnbsd_init_elf): Remove.
13936 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13937 (sparcnbsd_elf_init_abi): New functions.
13938 (_initialize_sparcnbsd_tdep): New prototype.
13939 (_initialize_sparnbsd_tdep): Update.
13940 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13941 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13942 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13943 * config/sparc/linux.mh: Update comment.
13944 (XM_FILE, HOST_IPC): Remove variables.
13945 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13946 sparc-linux-nat.o.
13947 * config/sparc/linux.mt: Update comment.
13948 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13949 * config/sparc/nbsd.mt: Reformat.
13950 * config/sparc/nbsd64.mh: Update comment.
13951 (NATDEPFILES): Add sparc-nat.o.
13952 * config/sparc/nbsd64.mt: Update comment.
13953 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13954 (TM_FILE): Set to tm-nbsd.h.
13955 * config/sparc/nbsdelf.mh: Update comment.
13956 (NATDEPFILES): Add sparc-nat.o.
13957 (XM_FILE): Delete.
13958 * config/sparc/nbsdaout.mh: Update comment.
13959 (NATDEPFILES): Add sparc-nat.o
13960 (XM_FILE): Delete.
13961 * config/sparc/nm-linux.h: Update copyright year. Don't include
13962 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13963 inclusion.
13964 (KERNEL_U_SIZE): Remove define.
13965 (kernel_u_size): Remove prototype.
13966 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13967 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13968 "regcache.h".
13969 (CHILD_PREPARE_TO_STORE): Remove define.
13970 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13971 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13972 sparcnbsd-nat.c: Rewrite files.
13973 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13974 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13975 sparcnbsd-tdep.h: Remove files.
13976 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13977 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13978 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13979 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13980 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13981 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13982 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13983 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13984 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13985 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13986 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13987 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13988 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13989 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13990 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13991 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13992 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13993 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13994 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13995
ee84457a
AC
139962004-01-02 Andrew Cagney <cagney@redhat.com>
13997
13998 From 2003-12-18 Kazuhiro Inaoka:
13999 * configure.host: Add m32r-linux target.
14000
0bc2134e
MC
140012004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14002
14003 * top.c (print_gdb_version): Update year to 2004.
14004
89a72f9c
MM
140052004-01-02 Mark Mitchell <mark@codesourcery.com>
14006
14007 * MAINTAINERS: Add myself to the write-after-approval category.
14008
86b013ed
DJ
140092004-01-02 Daniel Jacobowitz <drow@mvista.com>
14010
14011 From Bernardo Innocenti <bernie@develer.com>:
14012 * configure.tgt: Add uClinux target.
14013
e42c9534
AC
140142004-01-02 Andrew Cagney <cagney@redhat.com>
14015
14016 * utils.c (do_my_cleanups): Make static, add forward declaration.
14017 * defs.h (do_my_cleanups): Delete declaration.
14018
162467d3
EZ
140192004-01-02 Eli Zaretskii <eliz@elta.co.il>
14020
14021 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14022 bfd/ChangeLog-0203.
14023
78434e59
MK
140242004-01-02 Mark Kettenis <kettenis@gnu.org>
14025
14026 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14027 in <machine/reg.h>.
14028 * configure, config.in: Regenerate.
14029
48efe704
AC
14030For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14031tui/ChangeLog-1998-2003.
c906108c
SS
14032\f
14033Local Variables:
14034mode: change-log
14035left-margin: 8
14036fill-column: 74
14037version-control: never
14038End:
This page took 1.553514 seconds and 4 git commands to generate.