2004-11-10 Jon Beniston <jon@beniston.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
390e974f
AC
12004-11-09 Andrew Cagney <cagney@gnu.org>
2
3 GDB 6.3 released from GDB 6.3 branch.
4
92e023d6
AC
52004-11-09 Andrew Cagney <cagney@gnu.org>
6
7 * values.c: Rename to ...
8 * value.c: ..., new file.
9 * Makefile.in: Update.
10
d10891d4
DJ
112004-11-09 Daniel Jacobowitz <dan@debian.org>
12
13 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
14 size.
15
00a4c844
AC
162004-11-09 Andrew Cagney <cagney@gnu.org>
17
c44523e7
AC
18 * TODO: Delete.
19
00a4c844
AC
20 * value.h (struct value): Delete field bfd_section.
21 (VALUE_BFD_SECTION): Delete macro.
22 (COERCE_REF): Update.
23 (value_at, value_at_lazy): Delete asection parameter.
24 * printcmd.c (print_formatted, x_command): Update.
25 (do_examine): Delete asection parameter.
26 (next_section): Delete variable.
27 * valops.c (value_cast, value_at, value_at_lazy)
28 (value_coerce_function, value_addr, value_ind, value_string)
29 (find_rt_vbase_offset, value_full_object): Update.
30 * hpacc-abi.c (hpacc_virtual_fn_field)
31 (hpacc_value_rtti_type): Update.
32 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
33 (gnuv3_baseclass_offset): Update.
34 * f-valprint.c (f_val_print): Update.
35 * c-valprint.c (c_val_print): Update.
36 * p-valprint.c (pascal_val_print): Update.
37 * jv-valprint.c (java_value_print): Update.
38 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
39 * ada-lang.c (ada_value_primitive_packed_val)
40 (ada_evaluate_subexp): Update.
41 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
42 * expprint.c (print_subexp_standard): Update.
43 * infcall.c (call_function_by_hand): Update.
44 * valarith.c (value_add): Update.
45 * eval.c (evaluate_subexp_standard): Update.
46 * values.c (allocate_value, value_copy, value_static_field): Update.
47 * findvar.c (read_var_value, locate_var_value): Update.
48
5cb2fe25
AC
492004-11-09 Andrew Cagney <cagney@gnu.org>
50
51 * i386-linux-tdep.c: Include "dwarf2-frame.h".
52 * Makefile.in: Update all dependencies.
53
cbafadeb
AC
542004-11-08 Andrew Cagney <cagney@gnu.org>
55
56 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
57 (sentinel_frame_unwinder): Add the prev_pc method.
58 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
59 available. Do not handle the sentinel-frame case.
60 * frame-unwind.h (frame_prev_register_ftype): Define.
61 (struct frame_unwind): Add prev_pc;
62
3b78cdbb
DA
632004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
64
65 * configure.in: Check for ncurses/term.h.
66 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
67 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
68 * tui/tui.c: Don't include term.h.
69 * configure, config.in: Rebuilt.
70
bcfca652
MK
712004-11-08 Mark Kettenis <kettenis@gnu.org>
72
73 * m68kbsd-nat.c: Include "inf-ptrace.h".
74 (_initialize_m68kbsd_nat): Fix pasto.
75 * Makefile.in (m68kbsd-nat.o): Update dependencies.
76
527159b7
RC
772004-11-08 Randolph Chung <tausq@debian.org>
78
79 * infrun.c (debug_infrun): New variable.
80 (resume, proceed, wait_for_inferior): Annotate with debug messages.
81 (handle_inferior_event, keep_going): Likewise.
82 (_initialize_infrun): Register "set debug infrun" command.
83
c874c7fc
AS
842004-11-08 Andreas Schwab <schwab@suse.de>
85
86 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
87 PTRACE_EVENT_VFORKDONE.
88 (child_follow_fork): Adjust.
89
3c8fa307
AC
902004-11-08 Andrew Cagney <cagney@gnu.org>
91
5c26072a
AC
92 * README: Refer to 6.3, not 6.2, update directory listing droppng
93 references to intl/ and mmalloc/.
94 * PROBLEMS: Refer to 6.3 not 6.2.
95
3c8fa307
AC
96 * PROBLEMS: Delete no-longer applicable problems.
97
12b8a2cb
DJ
982004-11-07 Andrew Cagney <cagney@redhat.com>
99 Daniel Jacobowitz <dan@debian.org>
100 Roland McGrath <roland@redhat.com>
101
102 * Makefile.in (symfile-mem.o): Update dependencies.
103 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
104 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
105 * inf-ptrace.c (inf_ptrace_attach): Call
106 observer_notify_inferior_created.
107 * inftarg.c (child_attach): Likewise.
108 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
109 (symbol_file_add_from_memory): Take NAME argument. Use it for
110 the new BFD's filename.
111 (add_symbol_file_from_memory_command): Update call to
112 symbol_file_add_from_memory.
113 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
114 (symbol_file_add_from_memory_wrapper): New.
115 (_initialize_symfile_mem): Register add_vsyscall_page as an
116 inferior_created observer.
117
abbc6945
MK
1182004-11-07 Mark Kettenis <kettenis@gnu.org>
119
120 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
121 fetch_inferior_registers. Make static.
122 (m68kbsd_store_inferior_registers): Rename from
123 store_inferior_registers. Make static.
124 (_initialize_m68kbsd_nat): Construct and add target vector.
125 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
126 inftarg.o. Add inf-ptrace.o.
127 (NAT_FILE): Set to tm-solib.h.
128 (LOADLIBES): New variable.
129 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
130 inftarg.o. Add inf-ptrace.o.
131 (NAT_FILE): Delete variable.
132 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
133 inftarg.o. Add inf-ptrace.o.
134 (NAT_FILE): Set to tm-solib.h.
135 * config/m68k/nm-nbsdaout.h: Remove file.
136
3ed09a32
DJ
1372004-11-07 Daniel Jacobowitz <dan@debian.org>
138
139 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
140 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
141 (dwarf2_signal_frame_unwind): New.
142 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
143 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
144
8e763687
MK
1452004-11-07 Mark Kettenis <kettenis@gnu.org>
146
4fb31ed0
MK
147 * Makefile.in (mips64obsd-tdep.o): Fix typo.
148
fabe86c8
MK
149 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
150 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
151 to only include the structure members we actually need.
152 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
153 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
154 only include the structure members we actually need.
155 (mipsnbsd_init_abi): Update.
156
366e93e8
MK
157 * mips64obsd-nat.c: Include "mips-tdep.h".
158 (MIPS64OBSD_NUM_REGS): Remove define.
159 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
160 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
161 floating-point registers correctly.
162 * Makefile.in (mips64obsd-nat.o): Update dependencies.
163
8e763687
MK
164 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
165 "gdb_assert.h".
166 (mips64obsd_sigframe_init): New function.
167 (mips64obsd_sigframe): New variable.
168 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
169 unwinder.
170 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
171
5f6a2351
JB
1722004-11-06 Joel Brobecker <brobecker@gnat.com>
173
174 * alpha-mdebug-tdep.c: #include mdebugread.h.
175 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
176 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
177
f059bf6f
AC
1782004-11-05 Andrew Cagney <cagney@gnu.org>
179
180 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
181 CFI and the init_reg method leave the register unspecified.
182 Include the register name in the "Incomplete CFI data" complaint.
183 Supress leading zeros in the address.
184
1234d960
MK
1852004-11-05 Mark Kettenis <kettenis@gnu.org>
186
187 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
188 skipping a personality routine in a CIE augmentation.
189
d75e3c94
JJ
1902004-11-05 Jeff Johnston <jjohnstn@redhat.com>
191
192 * defs.h (fatal, vfatal): New function prototypes.
193 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
194 via catch_errors.
195 (backtrace_command): Change to call backtrace_command_stub via
196 catch_errors instead of calling backtrace_command_1 directly.
197 (backtrace_full_command): Ditto.
198 * utils.c (error_stream_1): New static function.
199 (verror): Change to call error_stream_1 instead of error_stream.
200 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
201 (vfatal, fatal): New functions.
202
98f276a0
AC
2032004-11-05 Andrew Cagney <cagney@gnu.org>
204
205 * stack.c (parse_frame_specification_1): Clear selected_frame_p
206 when not using selected frame.
207
f724bf08
MK
2082004-11-05 Mark Kettenis <kettenis@jive.nl>
209
210 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
211 personality routine in a CIE augmentation.
212
c789492a
FL
2132004-11-05 Felix Lee <felix+log1@specifixinc.com>
214
215 * stack.c (set_current_sal_from_frame): New function.
216 (print_args_stub): Use it.
217 (print_frame_info): Don't set sal here.
218
a81b10ae
MK
2192004-11-04 Mark Kettenis <kettenis@gnu.org>
220
221 * dwarf2-frame.c (read_encoded_value): Change type of third
222 argument to `unsigned char *'. Add support for LEB128 encodings.
223
ad766c0a
JB
2242004-11-04 Jim Blandy <jimb@redhat.com>
225
226 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
227 prevent cross-objfile references.
228 (make_cv_type): Doc fix. Don't create cross-objfile references,
229 even for stub types.
230 (replace_type): Add assertion to prevent cross-objfile references.
231 (check_typedef): Never resolve a stub type by copying over a type
232 from another file.
233
c46b0409 2342004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 235
c46b0409
KI
236 * Makefile.in (m32r-tdep.o): Update dependencies.
237 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
238 ABI-specific overrides.
239
9f0b0322 2402004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 241
9f0b0322
KI
242 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
243 unnecessary parallel execution bit.
244 (m32r_memory_remove_breakpoint): Ditto.
245 (m32r_breakpoint_from_pc): Update.
246
d5c27f81
RC
2472004-11-03 Randolph Chung <tausq@debian.org>
248
249 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 250 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
251 (hppa_frame_this_id): Likewise.
252
4577593c
AC
2532004-11-03 Andrew Cagney <cagney@gnu.org>
254
255 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
256 packet, obsolete configurations, end-of-life deprecated_registers.
257
b04de778
MK
2582004-11-02 Mark Kettenis <kettenis@gnu.org>
259
260 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
261 encodings as well as unsigned encodings.
262
9f2feefc
AC
2632004-11-02 Andrew Cagney <cagney@gnu.org>
264
265 * value.h (COERCE_VARYING_ARRAY): Delete.
266 * valops.c (value_cast, value_slice): Delete use.
267 * valarith.c (value_subscript, value_concat): Delete use.
268
117ea3cf
PH
2692004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
270
271 * NEWS: GDB understands GNAT Ada.
272
0bbc026e
JM
2732004-11-01 Joseph S. Myers <joseph@codesourcery.com>
274
275 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
276 (amd64-sol2-tdep.o): Add dependencies.
277 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
278 config/i386/sol2-64.mt: New files.
279 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
280 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
281 (supply_gregset): Correct order of arguments to
282 amd64_supply_native_gregset.
283 (fill_gregset): Correct order of arguments to
284 amd64_collect_native_gregset.
285 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
286 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
287 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
288 for definition of NEW_PROC_API.
289 * configure: Regenerate.
290
3d38a0a5
JM
2912004-11-01 Joseph S. Myers <joseph@codesourcery.com>
292
293 * MAINTAINERS (Write After Approval): Add myself.
294
f81cd1cf
AC
2952004-11-01 Andrew Cagney <cagney@gnu.org>
296
297 * configure.tgt: Mark d10v-*-* as obsolete.
298 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
299
f4e88c8e
PH
3002004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
301
302 * values.c (modify_field): Correct handling of bit-fields that
303 don't fit in 32 bits. Use unsigned operations throughout and
304 simplify the code a bit. Document preconditions.
305
84674fe1
AC
3062004-10-31 Andrew Cagney <cagney@gnu.org>
307
96693b3a
AC
308 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
309 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
310 (in_plt_section): Delete.
311
6f296f8f
AC
312 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
313 (mips_gdbarch_init): Do not set same.
314
618501c0
AC
315 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
316 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
317
b22e8f02
AC
318 * gdbarch.sh (in_solib_call_trampoline): Delete.
319 * gdbarch.h, gdbarch.c: Re-generate.
320
84674fe1
AC
321 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
322 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
323 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
324 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
325 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
326
c6d1029f
MK
3272004-10-31 Mark Kettenis <kettenis@gnu.org>
328
329 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
330 (mipsnbsd_fetch_inferior_registers): Rename from
331 fetch_inferior_registers. Make static.
332 (mipsnbsd_store_inferior_registers): Rename from
333 store_inferior_registers. Make static.
334 (_initialize_mipsnbsd_nat): New function and prototype.
335 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
336 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
337 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
338 inf-ptrace.o.
339
bd9ca83f
AC
3402004-10-31 Andrew Cagney <cagney@gnu.org>
341
19d718a3
AC
342 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
343 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
344 delete corresponding unused function.
345 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
346 in_solib_call_trampoline.
347 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
348 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
349 * config/mips/tm-nbsd.h: Ditto.
350 * config/arm/tm-linux.h: Ditto.
351 * config/mips/tm-linux.h: Ditto.
352
e8ce19c0
AC
353 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
354 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
355 in_solib_call_trampoline, delete corresponding unused function.
356 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
357 (vaxnbsd_aout_init_abi): Ditto.
358 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
359 (sparc32nbsd_aout_init_abi): Ditto.
360 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
361 (ppc_linux_init_abi): Ditto.
362 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
363 (ns32knbsd_init_abi_aout): Ditto.
364 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
365 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
366 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
367 (m68kbsd_aout_init_abi): Ditto.
368 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
369 (i386_cygwin_init_abi): Ditto.
370 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
371 (i386bsd_init_abi): Ditto.
372
af380d61
AC
373 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
374 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
375 isn't used by this architecture.
376 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
377 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
378 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
379 * s390-tdep.c (s390_gdbarch_init): Ditto.
380 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
381 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
382 * i386-tdep.c (i386_svr4_init_abi): Ditto.
383 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
384 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
385 * amd64-tdep.c (amd64_init_abi): Ditto.
386
0528d9f7
AC
387 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
388 in_solib_call_trampoline to its default value of
389 generic_in_solib_call_trampoline.
390 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
391 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
392 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
393 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
394 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
395 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
396
f9f9eacb
AC
397 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
398
a4ffd1e7
AC
399 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
400
82e34d2f
AC
401 * config/mips/tm-mips.h: Delete file.
402 * remote-mips.c: Delete tm-mips.h from comment.
403 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
404 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
405 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
406 * config/mips/tm-linux.h: Don't include tm-mips.h.
407 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
408 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
409 * config/mips/tm-wince.h: Don't include.
410
75dec9cf
AC
411 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
412 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
413 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
414 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
415
bd9ca83f
AC
416 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
417 * mdebugread.c (ecoff_relocate_efi): Delete function.
418 * objfiles.c (objfile_relocate): Delete #ifdef
419 MDEBUG_EFI_SYMBOL_NAME code.
420
3352ef37
AC
4212004-10-31 Orjan Friberg <organ.friberg@axis.com>
422 Andrew Cagney <cagney@gnu.org>
423
424 * gdbarch.sh (single_step_through_delay): Add.
425 * gdbarch.h, gdbarch.c: Re-generate.
426 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
427 (mips_step_skips_delay): Delete.
428 * mips-tdep.c (mips_single_step_through_delay): Replace
429 mips_step_skips_delay.
430 (mips_gdbarch_init): Set single_step_through_delay.
431 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
432
2440b685
MK
4332004-10-31 Mark Kettenis <kettenis@gnu.org>
434
435 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
436 from TRAMP_FRAME frame type.
437
56a2fed5
AC
4382004-10-31 Andrew Cagney <cagney@gnu.org>
439
9b792b1d
AC
440 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
441
0a5e8d98
AC
442 * mips-tdep.c (mips_ignore_helper): Delete.
443 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
444 * infrun.c (handle_inferior_event): Delete #ifdef
445 DEPRECATED_IGNORE_HELPER_CALL code.
446
56a2fed5
AC
447 * config/mips/tm-mips.h (RA_REGNUM): Delete.
448
f69c55b2
MK
4492004-10-31 Mark Kettenis <kettenis@gnu.org>
450
451 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
452 (fill_fpregset): Do not compile for 64-bit systems.
453 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
454 * Makefile.in (i386-sol2-nat.o): Update dependencies.
455 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
456
d37cca3d
AC
4572004-10-30 Andrew Cagney <cagney@gnu.org>
458
36b8628e
AC
459 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
460 (struct mdebug_extra_func_info): Define.
461 * config/alpha/tm-alpha.h: Delete same.
462 * config/mips/tm-mips.h: Delete same.
463 * mdebugread.c: Delete same.
464 * Makefile.in: Update dependencies.
465 * mips-mdebug-tdep.c: Include "mdebugread.h".
466
5b123146
AC
467 * objfiles.c: Include "mdebugread.h".
468 * mdebugread.c: Include "mdebugread.h".
469 (ecoff_relocate_cfi): Delete.
470 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
471 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
472 * mdebugread.h (ecoff_relocate_efi): New file.
473 * Makefile.in: Update dependencies.
474
b9c3a7de
AC
475 * mips-tdep.c (struct frame_extra_info): Delete.
476 (temp_proc_desc): Delete.
477
f92761ec
AC
478 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
479 MIPS_EFI_SYMBOL_NAME.
480 (mips_extra_func_info_t, mips_extra_func_info): Delete.
481 (struct mdebug_extra_func_info): Replace struct
482 alpha_extra_func_info and alpha_extra_func_info_t.
483 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
484 MIPS_EFI_SYMBOL_NAME.
485 (struct mdebug_extra_func_info): Replace struct
486 alpha_extra_func_info and alpha_extra_func_info_t.
487 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
488 * mdebugread.c, alpha-mdebug-tdep.c:
489
0bb57b31
AC
490 Suggested by Mark Kettenis.
491 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
492 fields frame_adjust and high_addr.
493 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
494 (non_heuristic_proc_desc): Delete references.
495
a5c9623c
AC
496 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
497 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
498 * mips-tdep.c: Update.
499
607fc93c
AC
500 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
501 (MIPS_LAST_EMBED_REGNUM): Add.
502 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
503 (LAST_EMBED_REGNUM): Delete.
504 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
505
24e05951
AC
506 * config/mips/tm-mips.h (PS_REGNUM): Delete.
507 * mips-tdep.h (MIPS_PS_REGNUM): Add.
508 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
509 * mips-linux-nat.c: Update.
510
613e114f
AC
511 * mips-tdep.h: Add comments on registers.
512 (MIPS_UNUSED_REGNUM): Define.
513 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
514 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
515 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
516 * mips-linux-nat.c, remote-mips.c: Update.
517
d37cca3d
AC
518 * config/mips/tm-mips.h (t_insn): Delete.
519 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
520 Replace t_insn with ULONGEST.
521
ceb41096
MK
5222004-10-30 Mark Kettenis <kettenis@gnu.org>
523
d1180b0f
MK
524 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
525 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
526 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
527 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
528 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
529 (mipsnbsd_core_osabi_sniffer): New function.
530 (mipsnbsd_init_abi): Set regset_from_core_section.
531 (_initialize_mipsnbsd_tdep): Remove calls to
532 deprecated_add_core_fns.
533 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
534 (mipsnbsd_regset_from_core_section): New functions.
535 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
536 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
537
ceb41096
MK
538 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
539 Remove optimization for DEPRECATED_FP_REGNUM.
540
ec4045ea
AC
5412004-10-30 Andrew Cagney <cagney@gnu.org>
542
cd65c8f6
AC
543 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
544 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
545 (alpha_setup_arbitrary_frame): Delete.
546 * mips-tdep.c (setup_arbitrary_frame): Delete.
547 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
548 (setup_arbitrary_frame): Delete.
549 * stack.c (parse_frame_specification_1): When specified, call
550 create_new_frame with two parameters. Delete #ifdef
551 SETUP_ARBITRARY_FRAME.
552
95ac2dcf
AC
553 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
554 (MIPS_INSTLEN): Delete.
555 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
556 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
557 * remote-mips.c, mips-tdep.c: Update.
558
1a8da44d
AC
559 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
560 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
561 * mips-tdep.c (mips_mdebug_frame_cache)
562 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
563 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
564 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
565 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
566 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
567 (mips_gdbarch_init): Do not append mdebug sniffers.
568 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
569 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
570 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
571 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
572 * Makefile.in: Update dependencies.
573
e6bc2e8a
AC
574 * mips-tdep.h (mips_abi_regsize): Declare.
575 * mips-tdep.c (mips_abi_regsize): Make non-static.
576
ec4045ea
AC
577 * mips-tdep.c (gdb_print_insn_mips): Simplify.
578 (make_mips16_addr): Delete.
e6bc2e8a 579
6b16acab
MK
5802004-10-30 Mark Kettenis <kettenis@gnu.org>
581
582 * i386-sol2-nat.c: New file.
583 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
584 i386-sol2-tdep.c.
585 (i386-sol2-nat.o): Update dependencies.
586 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
587 i386-sol2-nat.o.
588
8b622e6a
AC
5892004-10-30 Andrew Cagney <cagney@gnu.org>
590
591 Total breakage identified by Joel Brobecker.
592 * mips-tdep.c (after_prologue): Delete.
593 (mips_skip_prologue): Use skip_prologue_using_sal.
594 (heuristic_proc_desc): Delete, unused.
595
772cf8be
MK
5962004-10-30 Mark Kettenis <kettenis@gnu.org>
597
598 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
599 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
600 Cleanup coding style.
601
9c8fdbfa
AC
6022004-10-30 Andrew Cagney <cagney@gnu.org>
603
0fe7e7c8
AC
604 * mips-tdep.h (mips_pc_is_mips16): Declare.
605 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
606 non-static. Update calls.
607
1b295c3d
AC
608 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
609 * command.h (add_setshow_enum_cmd): Declare.
610 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
611
6bcadd06
AC
612 * mips-tdep.c (_initialize_mips_tdep): Use
613 add_setshow_zinteger_cmd.
614
9c8fdbfa
AC
615 * mips-tdep.c (mips_eabi_extract_return_value)
616 (mips_o64_extract_return_value, mips_o64_store_return_value)
617 (return_value_location, mips_eabi_reg_struct_has_addr)
618 (mips_eabi_use_struct_convention)
619 (mips_eabi_store_return_value): Delete.
620 (mips_eabi_store_return_value): New function.
621 (mips_eabi_return_value): New function.
622 (mips_gdbarch_init): For O64 and EABI, delete
623 extract_return_value, store_return_value, use_struct_convention
624 and reg_struct_has_addr, add return_value.
625
1d93fe1a
AC
626 * mips-tdep.c (read_signed_register): Use
627 regcache_cooked_read_signed.
628
303d2914
MK
6292004-10-30 Mark Kettenis <kettenis@gnu.org>
630
631 * mipsread.c: Cleanup coding style.
632 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
633 (mipscoff_symfile_finish): Remove prototypes.
634
6352004-10-29 Mark Kettenis <kettenis@gnu.org>
636
637 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
638 (mips_mdebug_frame_cache, mips16_scan_prologue)
639 (mips32_scan_prologue, mips_stub_frame_cache)
640 (heuristic_proc_start, heuristic_proc_desc)
641 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
642 (mips_n32n64_return_value, mips_o32_push_dummy_call)
643 (mips_o32_return_value, mips_o64_push_dummy_call)
644 (mips_step_skips_delay, mips_skip_trampoline_code)
645 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
646 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
647 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
648 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
649 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
650 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
651 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
652 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
653 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
654 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
655 ZERO_REGNUM.
656 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
657 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
658 ZERO_REGNUM.
659 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
660 A0_REGNUM.
661 * mipsnbsd-nat.c: Include "mips-tdep.h".
662 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
663 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
664
1c8831c5
AC
6652004-10-29 Andrew Cagney <cagney@gnu.org>
666
667 * stack.c (parse_frame_specification_1): New function based on
668 parse_frame_specification. Add message and selected_frame_p
669 paramters. Truely always return non-NULL.
670 (parse_frame_specification): Call parse_frame_specification_1.
671 (frame_info): Update. Eliminate target_has_stack check.
672 (select_frame_command): Update.
673
b04f3ab4
AC
6742004-10-29 Andrew Cagney <cagney@gnu.org>
675
676 * frame.h (get_selected_frame): Add message parameter.
677 * frame.c (get_selected_frame): Add and use message parameter.
678 * stack.c (current_frame_command, return_command, locals_info)
679 (catch_info, args_info, up_silently_base, down_silently_base): Use
680 get_selected_frame with an explicit message.
681 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
682 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
683 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
684 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
685 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
686 * breakpoint.c: Update.
687
6882004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
689
690 * trad-frame.c (trad_frame_get_prev_register): Use
691 frame_unwind_register instead of frame_register_unwind, do not
692 recurse the register's location.
693 * xstormy16-tdep.c (xstormy16_frame_prev_register):
694 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
695 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
696 * sh-tdep.c (sh_frame_prev_register): Ditto.
697 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
698 * i386-tdep.c (i386_frame_prev_register): Ditto.
699 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
700 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
701
7a952542
MK
7022004-10-28 Mark Kettenis <kettenis@jive.nl>
703
c18c06be
MK
704 * proc-events.c: Fix several coding-style issues. Consistently
705 use #ifdef instead of #if defined().
706 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
707 ARRAY_SIZE.
708 (_initialize_proc_events): New prototype.
709
7a952542
MK
710 * proc-why.c: Fix several coding-style issues.
711 (proc_prettyfprint_why): Use ARRAY_SIZE.
712
fcad0fa4
JB
7132004-10-27 Jim Blandy <jimb@redhat.com>
714
715 * remote.c (fetch_register_using_p): Construct 'p' packet in a
716 manner independent of the host byte order.
717
c163184f
MK
7182004-10-27 Mark Kettenis <kettenis@gnu.org>
719
720 * mips-tdep.c (id_delayed): Remove prototype.
721
9c46b6f0
MK
7222004-10-26 Mark Kettenis <kettenis@gnu.org>
723
724 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
725 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
726 to enum with register numbers.
727 (enum mips_insn_size): New enum.
728
0d0266c6
AC
7292004-10-26 Andrew Cagney <cagney@gnu.org>
730
e7d6a6d2
AC
731 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
732 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
733 (mips_gdbarch_init): Update.
734 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
735
c5115f39
AC
736 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
737 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
738 IN_SOLIB_RETURN_TRAMPOLINE.
739 * mips-tdep.c (mips_dump_tdep): Do not print
740 IN_SOLIB_RETURN_TRAMPOLINE.
741 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
742 (mips_gdbarch_init): Update.
743
0d0266c6
AC
744 * mips-tdep.h (mips_software_single_step): Move to here ...
745 * config/mips/tm-mips.h: ... from here.
746 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
747 (SOFTWARE_SINGLE_STEP): Delete.
748 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
749
156a53ca
AC
7502004-10-25 Andrew Cagney <cagney@gnu.org>
751
752 * NEWS: Add Changes since GDB 6.3 section.
753
f27cf670
AS
7542004-10-23 Andreas Schwab <schwab@suse.de>
755
156a53ca
AC
756 * ada-lang.c (grow_vect): Return the new array instead of
757 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
758 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
759
121d8485
UW
7602004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
761
762 * s390-tdep.c (enum pv_boolean): Remove.
763 (pv_is_array_ref): Remove.
764 (s390_on_stack): Remove.
765 (S390_NUM_SPILL_SLOTS): Remove.
766 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
767 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
768 (s390_store): Track all stores of orginal incoming registers to the
769 stack constant offsets relative to the CFA, instead of only tracking
770 stores into specific spill slots.
771 (s390_load): Likewise.
772 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
773 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
774 defined as call-saved by the ABI.
775 (s390_push_dummy_call): Use bottom of dummy call argument save area
776 as return value, not the top. Do not store to the called function's
777 register save area.
778 (s390_unwind_dummy_id): Adapt accordingly.
779
0a6ddd08
AC
7802004-10-23 Andrew Cagney <cagney@gnu.org>
781
782 * objfiles.h (struct objfile): Rename obj_private to
783 deprecated_obj_private, sym_private to deprecated_sym_private, and
784 sym_stab_info to deprecated_sym_stab_info.
785 * gdb-stabs.h: Update.
786 * elfread.c: Update.
787 * dbxread.c: Update.
788 * coffread.c: Update.
789 * xcoffread.c: Update.
790 * symfile.c: Update.
791 * somread.c: Update.
792 * nlmread.c: Update.
793 * mdebugread.c: Update.
794 * hpread.c: Update.
795 * coffread.c: Update.
796
abc08782
MK
7972004-10-23 Mark Kettenis <kettenis@gnu.org>
798
799 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
800 * configure.host: Add mips64*-*-openbsd*.
801 * configure.tgt: Add mips64*-*-openbsd*.
802 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
803 mips64obsd-tdep.c.
804 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
805 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
806
fc062ac6
JB
8072004-10-21 Joel Brobecker <brobecker@gnat.com>
808
809 * symtab.c (symbol_search_name): Minor reformatting.
810
5bccb4d1
JB
8112004-10-20 Joel Brobecker <brobecker@gnat.com>
812
813 * symtab.h: Fix typo in comment.
814
a738430d
MK
8152004-10-19 Mark Kettenis <kettenis@gnu.org>
816
817 * dwarf2read.c (struct comp_unit_head): Fix coding style.
818 (dwarf_decode_line_header): Likewise.
819
f2cb65ca
MC
8202004-10-19 Michael Chastain <mec.gnu@mindspring.com>
821
822 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
823
09e55376
AC
8242004-10-19 Andrew Cagney <cagney@gnu.org>
825
826 GDB 6.3 branch created.
827 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
828
bc5f45f8
JB
8292004-10-15 Joel Brobecker <brobecker@gnat.com>
830
831 * dwarf2read.c (set_cu_language): Set language to Ada for
832 DW_LANG_Ada83 and DW_LANG_Ada95.
833
2941da8c
MC
8342004-10-15 Michael Chastain <mec.gnu@mindspring.com>
835
836 From Andreas Schwab <schwab@suse.de>:
837 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
838 for xmalloc and xrealloc.
839
34a17005
AC
8402004-10-15 Andrew Cagney <cagney@gnu.org>
841
842 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
843 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
844 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
845 Update dependencies.
846
714e53ab
PH
8472004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
848
849 * ada-lang.c (ada_lookup_symbol): Correct comment.
850 (ada_evaluate_subexp): Change error message for
851 OP_FUNCALL case so as not to indicate an internal error.
852
8532004-10-15 Joel Brobecker <brobecker@gnat.com>
854
855 Committed by Paul Hilfinger.
856 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
857 type sizes in XVE/XVU types, and emit a warning when that happens,
858 instead of rounding up the size of the resulting type.
859 Some minor reformatting.
860 (ada_is_aligner_type): Do not consider a type as an aligner type
861 if there is a corresponding XVS type as well.
862 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
863 have several levels of pointer indirection to the array.
864
8652004-10-15 Jerome Guitton <guitton@gnat.com>
866
867 Committed by Paul Hilfinger.
868 * ada-lang.c (check_size): New function.
869 (coerce_unspec_val_to_type): call check_size to make sure
870 that the object size is reasonable.
871 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
872 Implements the case when we get a reference when we evaluate
873 the expression of one of the bounds of the slice.
874 (ada_value_struct_elt): when a packed array field is
875 a reference, use ada_coerce_ref to dereference it; use
876 ada_value_ind only if it is a pointer.
877
29639122
JB
8782004-10-15 Joel Brobecker <brobecker@gnat.com>
879
880 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
881 a bit to avoid the necessity of an advance declaration. Remove
882 declaration.
883 (set_reg_offset): Move implemenation up.
884 (mips16_get_imm): Likewise.
885 (mips16_scan_prologue): Likewise.
886 (reset_saved_regs): Likewise.
887 (mips32_scan_prologue): Likewise.
888
a65bbe44
JB
8892004-10-14 Joel Brobecker <brobecker@gnat.com>
890
891 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
892 Remove sp as a parameter, compute it internally instead. Move
893 prologue scanning limit from heuristic_proc_desc to here.
894 (mips16_scan_prologue): Likewise.
895 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
896 by call to mips16_scan_prologue.
897 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
898 by call to mips32_scan_prologue.
899 (heuristic_proc_desc): Remove code that's no longer necessary.
900 Update calls to mips16_scan_prologue and mips32_scan_prologue.
901 (mips_skip_prologue): Update calls to mips16_scan_prologue
902 and mips32_scan_prologue.
903
1c645fec
JB
9042004-10-14 Joel Brobecker <brobecker@gnat.com>
905
906 * mips-tdep.c (mips16_scan_prologue): Merge code from
907 mips16_skip_prologue. Now return the address of the first
908 instruction past the function prologue.
909 (mips16_skip_prologue): Remove, no longer necessary.
910 (mips_skip_prologue): Replace call to mips16_skip_prologue
911 by call to mips16_scan_prologue.
912
98b4dd94
JB
9132004-10-14 Joel Brobecker <brobecker@gnat.com>
914
915 * mips-tdep.c (mips32_scan_prologue): Merge code from
916 mips32_skip_prologue. Now return the address of the first
917 instruction past the function prologue.
918 (mips32_skip_prologue): Remove. No longer necessary.
919 (mips16_skip_prologue): Add parameter end_pc instead of
920 computing it.
921 (mips_skip_prologue): Compute the upper limit for the
922 prologue scanning. Update call to mips16_skip_prologue.
923 Replace call to mips32_skip_prologue by call to
924 mips32_scan_prologue.
925
ad4c72d2
MK
9262004-10-14 Mark Kettenis <kettenis@gnu.org>
927
dfaf8edb
MK
928 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
929 NetBSD system call stubs that store %rp in the ERP slot of the
930 stack frame.
931
3e3a28f1
MK
932 * source.c: Always define O_BINARY to 0 if not defined already.
933 (openp): Unconditionally use O_BINARY.
934
ad4c72d2
MK
935 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
936 * event-top.c (gdb_readline2): Likewise.
937
52bd1401
OF
9382004-10-14 Orjan Friberg <orjanf@axis.com>
939
940 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
941 deprecated_add_core_fns which was removed by mistake.
942
e0e25c6c
KB
9432004-10-13 Kevin Buettner <kevinb@redhat.com>
944
945 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
946 references to deprecated_registers[] with equivalent code.
947
9f335945
KB
9482004-10-13 Kevin Buettner <kevinb@redhat.com>
949
950 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
951 ``deprecated_registers'' with equivalent code. Use gdb_assert()
952 instead of explicit test and print statement.
953
06c2338d
MK
9542004-10-12 Mark Kettenis <kettenis@gnu.org>
955
1b9445c2
MK
956 * sparc-nat.c: Include "inf-ptrace.h".
957 (sparc_target): New function.
958 * sparc-nat.h: Update copyright year.
959 (sparc_target): New prototype.
960 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
961 (_initialize_sparcnbsd_nat): Construct and add target vector.
962 * sparc64nbsd-nat.c: Include "target.h".
963 (_initialize_sparc64nbsd_nat): Construct and add target vector.
964 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
965 Update dependencies.
966 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
967 inftarg.o, add inf-ptrace.o.
968 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
969 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
970 (NAT_FILE): Set to nm-bsd.h.
971 (LOADLIBES): New variable.
972 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
973 infarg.o, add inf-ptrace.o.
974 * config/sparc/nm-nbsdaout.h: Remove file.
975 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
976 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
977 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
978
06c2338d
MK
979 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
980 "fopen-same.h". Update comment.
981
3303a276
MK
9822004-10-11 Mark Kettenis <kettenis@gnu.org>
983
984 * i386gnu-nat.c: Include "gdb_string.h".
985 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
986 registers when the floating-point state isn't initialized.
987 * Makefile.in (i386gnu-nat.o): Update dependencies.
988
04c663e3
DA
9892004-10-11 David Anderson <davea@sgi.com>
990
991 * regcache.c (regcache_raw_read): Comment was missing "to".
992 Extraneous ' removed.
993 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
994 comment now describes use.
995
a5f6c8f5
OF
9962004-10-11 Orjan Friberg <orjanf@axis.com>
997
998 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
999 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1000 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1001 (cris_sigtramp_frame_sniffer): New functions.
1002 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1003 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1004 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1005 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1006 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1007 command.
1008 (cris_version_update): Remove, replace with ...
1009 (set_cris_version): New function.
1010 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1011 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1012 (_initialize_cris_tdep): Remove CRIS mode command.
1013 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1014 cris-fpless-backtrace command.
1015 (cris_scan_prologue): Fix prologue scanning limit.
1016 (cris_register_type): Update to reflect actual registers.
1017 (cris_register_bytes_ok) Remove.
1018 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1019 Remove set_gdbarch_deprecated_register_size,
1020 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1021
77109804
AC
10222004-10-10 Andrew Cagney <cagney@gnu.org>
1023
1024 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1025 comment.
1026
25652d4f
JB
10272004-10-10 Joel Brobecker <brobecker@gnat.com>
1028
1029 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1030
1e05a7bf
JB
10312004-10-10 Joel Brobecker <brobecker@gnat.com>
1032
1033 * mips-tdep.c (mips16_scan_prologue): Renames
1034 mips16_heuristic_proc_desc. Update comment.
1035 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1036 (heuristic_proc_desc): Update calls to the 2 functions above.
1037
c68a4142
JB
10382004-10-10 Joel Brobecker <brobecker@gnat.com>
1039
1040 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1041 Update comments. Also immediately return empty cache when the start
1042 address of our function could not be found.
1043 (mips_insn32_frame_cache): Likewise.
1044
0fce0821
JB
10452004-10-10 Joel Brobecker <brobecker@gnat.com>
1046
1047 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1048 (mips_insn16_frame_cache): Pass frame cache in call to
1049 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1050 Remove code that became redundant as a consequence.
1051 (mips32_heuristic_proc_desc): No longer compute a fake
1052 procedure descriptor. Compute the full frame cache instead.
1053 Some minor comment reformatting.
1054
b672553e
JB
10552004-10-10 Jim Blandy <jimb@redhat.com>
1056
1057 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1058 reader, tracing bytecode stuff): Remove self.
1059
9cc52bde
MK
10602004-10-10 Mark Kettenis <kettenis@gnu.org>
1061
cc9784b6
MK
1062 * sparc64-linux-tdep.c: Update copyright year. Don't include
1063 "solib-svr4.h".
1064 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1065 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1066 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1067
ee8aef23
MK
1068 * sparc-linux-tdep.c: Update copyright year.
1069 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1070 to struct frame_info *. Use safe_frame_unwind_memory instead of
1071 deprecated_read_memory_nobpt.
1072 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1073 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1074 changed signature of sparc_linux_sigtramp_start.
1075 (sparc32_linux_pc_in_sigtramp): Remove function.
1076 (sparc32_linux_sigtramp_p): New function.
1077 (sparc32_linux_sigtramp_frame_sniffer): Use
1078 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1079
bc73f8cc
MK
1080 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1081 Remove function.
1082 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1083
a2249542
MK
1084 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1085 (decode_packed_array_type, value_subscript_packed)
1086 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1087 argument in call to lim_warning.
1088
9cc52bde
MK
1089 * configure.in: Really disable the TUI if an enhanced curses
1090 library isn't found.
1091 * configure: Regenerate.
1092
151fc45b
MK
10932004-10-09 Mark Kettenis <kettenis@gnu.org>
1094
1095 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1096 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1097 * config/i386/nm-nbsdaout.h: Remove file.
1098 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1099 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1100 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1101 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1102 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1103 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1104 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1105 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1106 (ldd, ld_un, ld_2): Remove defines.
1107 * config/i386/nm-obsd.h: Likewise.
1108
375c0479
PH
11092004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1110
1111 * ada-lex.l: Remove useless rule whose right-context clause
1112 causes unreferenced static function warning for yyrealloc.
1113 (ada_flex_use): Remove the artificial reference to yyrealloc.
1114
c8e73a31
AC
11152004-10-08 Andrew Cagney <cagney@gnu.org>
1116
1117 * target.h (struct target_ops): Rename to_xfer_memory to
1118 deprecated_xfer_memory.
1119 * target.c: Update.
1120 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1121 * wince.c: Update.
1122 * win32-nat.c: Update.
1123 * v850ice.c: Update.
1124 * uw-thread.c: Update.
1125 * thread-db.c: Update.
1126 * sol-thread.c: Update.
1127 * remote.c: Update.
1128 * remote-vx.c: Update.
1129 * remote-st.c: Update.
1130 * remote-sim.c: Update.
1131 * remote-sds.c: Update.
1132 * remote-rdp.c: Update.
1133 * remote-rdi.c: Update.
1134 * remote-mips.c: Update.
1135 * remote-m32r-sdi.c: Update.
1136 * remote-e7000.c: Update.
1137 * procfs.c: Update.
1138 * ppc-bdm.c: Update.
1139 * nto-procfs.c: Update.
1140 * monitor.c: Update.
1141 * linux-nat.c: Update.
1142 * inftarg.c: Update.
1143 * hpux-thread.c: Update.
1144 * go32-nat.c: Update.
1145 * gnu-nat.c: Update.
1146 * exec.c: Update.
1147 * corelow.c: Update.
1148 * bsd-kvm.c: Update.
1149 * aix-thread.c: Update.
1150
aa869812
AC
11512004-10-08 Andrew Cagney <cagney@gnu.org>
1152
1153 * target.c (debug_target): Move to near start of file.
1154 (target_stopped_data_address_p): Re-org logic, add casts.
1155
8dcef9cf
MK
11562004-10-02 Mark Kettenis <kettenis@gnu.org>
1157
1158 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1159 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1160 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1161 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1162 New defines.
1163
4aa7a7f5
JJ
11642004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1165
1166 * target.h (to_stopped_data_address): Change prototype to
1167 take a CORE_ADDR pointer and return an int.
1168 * target.c (update_current_target): Change to_stopped_data_address
1169 to match new prototype.
1170 (debug_to_stopped_data_address): Change appropriately.
1171 * breakpoint.c (bpstat_stop_status): Change call to
1172 target_stopped_data_address to use new prototype.
1173 * frv-tdep.c (frv_have_stopped_data_address): New function.
1174 (frv_stopped_data_address): Change to new prototype and
1175 functionality.
1176 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1177 prototype and functionality.
1178 (ia64_stopped_by_watchpoint): New function.
1179 * i386-nat.c (i386_stopped_data_address): Change to new
1180 prototype and functionality.
1181 (i386_stopped_by_watchpoint): New function.
1182 * remote.c (remote_stopped_data_address): Change to new prototype
1183 and functionality.
1184 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1185 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1186 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1187 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1188 new i386_stopped_by_watchpoint function.
1189 (i386_stopped_by_watchpoint): New prototype.
1190 (i386_stoppped_data_address): Change to new prototype.
1191 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1192 new ia64_stopped_by_watchpoint function.
1193 (ia64_stopped_by_watchpoint): New prototype.
1194 (ia64_stopped_data_address): Ditto.
1195
61ee279c
PH
11962004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1197
1198 * ada-typeprint.c (ada_print_type): Use int_string for printing
1199 modulus of modular type.
1200 * ada-lang.h (ada_modulus): Change return type to unsigned.
1201 * ada-lang.c (ada_language_arch_info): Correct type of
1202 string_char_type.
1203 (ada_modulus): Return unsigned result.
1204 (ada_lookup_symbol): Remove user disambiguation and modify comment
1205 accordingly.
1206
12072004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1208
1209 Committed by Paul Hilfinger.
1210 * ada-lang.c (decode_packed_array): On big-endian targets,
1211 left-justify the value if it comes with a modular type.
1212
12132004-10-08 Joel Brobecker <brobecker@gnat.com>
1214
1215 Committed by Paul Hilfinger.
1216 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1217 (is_name_suffix): Add support for "___JM" suffixes.
1218 (ada_check_typedef): Renames ada_completed_type.
1219 Update all users of CHECK_TYPEDEF, check_typedef, and
1220 ada_complete_type to call ada_check_typedef.
1221 * ada-typeprint.c: Likewise.
1222 * ada-valprint.c: Likewise.
1223
b6c25a56
CV
12242004-10-08 Corinna Vinschen <vinschen@redhat.com>
1225
1226 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1227
83ca6a46
NR
12282004-10-08 Nick Roberts <nickrob@snap.net.nz>
1229
1230 * MAINTAINERS: Update e-mail address.
1231
1fd8cd20
DJ
12322004-10-07 Daniel Jacobowitz <dan@debian.org>
1233
1234 From Maciej W. Rozycki <macro@mips.com>:
1235 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1236 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1237
cea15572
KI
12382004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1239
1240 * m32r-tdep.c (decode_prologue): Support functions written
1241 in assembler language. Recognize trap instructions as the
1242 end of prologue.
1243 (m32r_frame_unwind_cache): Ditto.
1244 (m32r_skip_prologue): Extend search limit. Quit analyzing
1245 prologue if pc's location is not readable.
1246
23485554
PH
12472004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1248
1249 * Makefile.in (.l.c): Do conversions of names of alloc and free
1250 functions that are done for .y.c files, plus special one
1251 for yy_flex_realloc. Also, correct missing-file tests here.
1252 * ada-lex.l (malloc, free): Remove macros.
1253 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1254 xrealloc.
1255 (ada_flex_use): Dummy definition to remove warnings about unused
1256 functions.
1257 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1258 to suppress warning.
1259
c0409442
CV
12602004-10-06 Corinna Vinschen <vinschen@redhat.com>
1261
1262 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1263 RETURN_VALUE.
1264 (sh_return_value_fpu): Ditto for CPUs with FPU.
1265 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1266 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1267 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1268 RETURN_VALUE functions.
1269
9bed62d7
CV
12702004-10-06 Corinna Vinschen <vinschen@redhat.com>
1271
1272 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1273 (sh_pseudo_register_write): Ditto.
1274
03131d99
CV
12752004-10-06 Corinna Vinschen <vinschen@redhat.com>
1276
1277 * sh-tdep.c (IS_MACL_STS): New define.
1278 (IS_MOVI20): Ditto.
1279 (IS_MACL_LDS): Ditto.
1280 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1281 instructions in prologue.
1282 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1283 instructions in epilogue.
1284
da962468
CV
12852004-10-06 Corinna Vinschen <vinschen@redhat.com>
1286
1287 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1288 (sh_sh_register_name): Add eight empty register names.
1289 (sh_sh3_register_name): Ditto.
1290 (sh_sh3e_register_name): Ditto.
1291 (sh_sh2e_register_name): Ditto.
1292 (sh_sh2a_register_name): New function, defining SH2A register set.
1293 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1294 in nofpu case.
1295 (sh_sh_dsp_register_name): Add eight empty register names.
1296 (sh_sh3_dsp_register_name): Ditto.
1297 (sh_sh4_register_name): Ditto.
1298 (sh_sh4_nofpu_register_name): Ditto.
1299 (sh_sh4al_dsp_register_name): Ditto.
1300 (sh2a_show_regs): New function.
1301 (sh2a_nofpu_show_regs): New function.
1302 (sh_sh2a_register_type): New function.
1303 (do_bank_register_info): New function.
1304 (sh_print_pseudo_register): Call do_bank_register_info.
1305 Call sh_print_pseudo_register for valid "bank" register.
1306 (sh_sh2a_register_sim_regno): New function.
1307 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1308 Increment pseudo register count by one for all sh variants with
1309 pseudo registers to accomodate pseudo bank register.
1310 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1311 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1312 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1313 Increment pseudo register numbers.
1314
1326e61b
CV
13152004-10-06 Corinna Vinschen <vinschen@redhat.com>
1316
1317 * dwarf2read.c (read_subroutine_type): Call make_function_type
1318 instead of lookup_function_type.
1319
146c42e3
JB
13202004-10-05 Jim Blandy <jimb@redhat.com>
1321
1322 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1323 (Previous change missed some uses.)
1324
1df84f13
AC
13252004-10-05 Andrew Cagney <cagney@gnu.org>
1326
1327 * target.h (deprecated_child_ops): Rename child_ops.
1328 * wince.c: Update copyright. Rename child_ops.
1329 * win32-nat.c: Rename child_ops.
1330 * target.c: Rename child_ops.
1331 * rs6000-nat.c: Rename child_ops.
1332 * linux-nat.c: Rename child_ops.
1333 * infttrace.c: Rename child_ops.
1334 * inftarg.c: Rename child_ops.
1335 * infptrace.c: Rename child_ops.
1336 * hppah-nat.c: Update copyright. Rename child_ops.
1337 * hpux-thread.c: Update copyright. Rename child_ops.
1338
21e3b9b9
DJ
13392004-10-05 Daniel Jacobowitz <dan@debian.org>
1340
1341 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1342
de83afe7
AC
13432004-10-05 Andrew Cagney <cagney@gnu.org>
1344
1345 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1346
10b3939b
DJ
13472004-10-05 Daniel Jacobowitz <dan@debian.org>
1348
1349 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1350 (die_ref_table): Remove.
1351 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1352 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1353 the usage of this type.
1354 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1355 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1356 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1357 (dwarf2_create_include_psymtab): Update comment.
1358 (find_partial_die): Remove third argument. Remove unreachable call
1359 to error ().
1360 (dwarf2_find_containing_comp_unit): Update comments. Change one
1361 assertion to an error. Remove an unreachable error.
1362 (dwarf2_find_comp_unit): Update comments.
1363 (type_at_offset): Remove dead code.
1364 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1365 (store_in_ref_table): Add CU argument.
1366 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1367 inter-compilation-unit references.
1368 (load_full_comp_unit, process_full_comp_unit): New functions, based
1369 on psymtab_to_symtab_1.
1370 (psymtab_to_symtab_1): Use them.
1371 (dwarf2_add_dependence): New function.
1372 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1373 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1374 (partial_die_parent_scope, guess_structure_name): Update for changes
1375 to find_partial_die.
1376 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1377 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1378 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1379 (read_die_and_children): Update call to store_in_ref_table.
1380 (do_free_die_list_cleanup): Remove.
1381 (fixup_partial_die): Update for changes to find_partial_die.
1382 (read_full_die): Handle queueing absolute references.
1383 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1384 (dwarf2_attr, die_specification, die_type)
1385 (die_containing_type, dwarf2_extension): Update calls to
1386 follow_die_ref.
1387 (dump_die): Update DW_FORM_ref* handling.
1388 (dwarf2_get_ref_die_offset): Likewise.
1389 (free_one_comp_unit): Release the dies list.
1390 (dwarf2_mark_helper): New function.
1391 (dwarf2_mark): Use it.
1392
998bdd68
MK
13932004-10-05 Mark Kettenis <kettenis@jive.nl>
1394
1395 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1396 when writing to memory.
1397
14588880
KI
13982004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1399
1400 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1401 (m32r_extract_struct_value_address): Delete function.
1402 (m32r_return_value): New function.
1403 (m32r_gdbarch_init): Instead of store_return_value,
1404 extract_return_value, deprecated_extract_struct_value_address
1405 and deprecated_use_struct_convention, set return_value.
1406
dd5e6932
DJ
14072004-10-03 Daniel Jacobowitz <dan@debian.org>
1408
1409 * dwarf2read.c (read_subrange_type): Add comment for variable
1410 sized arrays.
1411
7dc1ef8d
PH
14122004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1413
1414 * Makefile.in (.l.c): Modify rule for compatibility with recent
1415 versions of flex, and remove most command-line options.
1416 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1417 options.
1418
1f8173e6
PH
14192004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1420
1421 Turn on initial Ada support (mainly expression evaluation).
1422
1423 * Makefile.in (SFILES): Remove ada-tasks.c.
1424 (HFILES_NO_SRCDIR): Add ada-lang.h.
1425 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1426 (YYOBJ): Add ada-exp.o.
1427 (rule .l.c): Generalize to not mention ada.
1428 * symtab.c: Include ada-lang.h.
1429 (symbol_natural_name, symbol_demangled_name)
1430 (symbol_search_name): Add Ada case.
1431
cb85a953
AC
14322004-10-01 Andrew Cagney <cagney@gnu.org>
1433
3f3db248
AC
1434 * Makefile.in (COMMON_OBS): Add inf-child.o.
1435 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1436 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1437 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1438 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1439 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1440 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1441 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1442 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1443 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1444 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1445 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1446 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1447 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1448
cb85a953
AC
1449 * target.c (xfer_using_stratum): Change return type to LONGEST.
1450 On each iteration offset, readbuf and writebuf.
1451 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1452 partial_length, and read/modify/write predicate, update comments.
1453 Pass buffer.word to ptrace write.
1454
963a6417
PH
14552004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1456
1457 * symfile.c (init_filename_language_table): Add extensions for
1458 Ada.
1459 * defs.h (enum language): Add language_ada.
1460 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1461 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1462 (add_symbols_from_enclosing_procs): Make a no-op for now.
1463 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1464 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1465 (find_line_in_linetable, find_next_line_in_linetable)
1466 (read_all_symtabs, is_plausible_func_for_line)
1467 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1468 (is_runtime_sym_defined, check_size): Remove declaration.
1469 (function_name_from_pc, ada_translate_error_message)
1470 (ada_lookup_minimal_symbol): Remove definition.
1471 (ada_add_block_symbols): Remove useless label.
1472 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1473 useless declaration.
1474 (ada_is_exception_sym): Likewise.
1475
9b32d526
KI
14762004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1477
1478 Add m32r-linux support.
1479 * configure.tgt: Add m32r*-*-linux*.
1480 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1481 and m32r-linux-tdep.c.
1482 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1483 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1484 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1485 m32r-linux-tdep.c.
1486 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1487 config/m32r/linux.mh, config/m32r/linux.mt,
1488 config/m32r/nm-linux.h: New files.
1489
2de118d3
JB
14902004-09-30 Joel Brobecker <brobecker@gnat.com>
1491
1492 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1493 (mips32_fetch_instruction): Remove, unused.
1494
a9fe69d1
JB
14952004-09-30 Joel Brobecker <brobecker@gnat.com>
1496
1497 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1498 conditions that will always be true.
1499
bc8ffc12
MK
15002004-09-30 Mark Kettenis <kettenis@gnu.org>
1501
ba0cd111
MK
1502 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1503 (vaxbsd_fetch_inferior_registers): Rename from
1504 fetch_inferior_registers. Make static.
1505 (vaxbsd_store_inferior_registers): Rename from
1506 store_inferior_registers. Make static.
1507 (_initialize_vaxbsd_nat): Construct and add target vector.
1508 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1509 inftarg.o. Add inf-child.o and inf-ptrace.o.
1510 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1511 inftarg.o. Add inf-child.o and inf-ptrace.o.
1512 (NAT_FILE): Remove.
1513 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1514 inftarg.o. Add inf-child.o and inf-ptrace.o.
1515 (NAT_FILE): Remove.
1516 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1517
bc8ffc12
MK
1518 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1519 (m88kbsd_fetch_inferior_registers): Rename from
1520 fetch_inferior_registers. Make static.
1521 (m88kbsd_store_inferior_registers): Rename from
1522 store_inferior_registers. Make static.
1523 (_initialize_m88kbsd_nat): New prototype and function.
1524 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1525 inftarg.o. Add inf-child.o and inf-ptrace.o.
1526 (NAT_FILE): Remove.
1527 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1528
27394598
AC
15292004-09-30 Andrew Cagney <cagney@gnu.org>
1530
1531 * target.c (target_xfer_partial): New function.
1532 (target_read_memory_partial, target_write_memory_partial)
1533 (default_xfer_partial, target_read_partial, target_write_partial)
1534 (xfer_using_stratum): Use.
1535 (debug_to_xfer_partial): Delete function.
1536 (setup_target_debug): Do not override to_xfer_partial.
1537
74a4fe32
MK
15382004-09-30 Mark Kettenis <kettenis@chello.nl>
1539
1540 * fork-child.c: Update copyright year. Fix coding style.
1541
982526a1
MK
15422004-09-29 Mark Kettenis <kettenis@gnu.org>
1543
1544 * defs.h (msavestring, mstrsave): Remove prototypes.
1545 * utils.c (msavestring, mstrsave): Remove functions.
1546 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1547 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1548 of mstrsave.
1549 * source.c (find_and_open_source): Use xstrdup instead of
1550 mstrsave.
1551
b8eb5af0
AC
15522004-09-30 Andrew Cagney <cagney@gnu.org>
1553
0779438d
AC
1554 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1555 (inf_ptrace_xfer_memory): Delete.
1556 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1557 (target_read_memory, target_write_memory): Use xfer_using_stratum
1558 when target_xfer_partial_p.
1559 (debug_target): Move to start of file.
1560 (target_read_memory_partial, target_write_memory_partial): Use
1561 to_xfer_partial when target_xfer_partial_p.
1562
f929a579
AC
1563 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1564 inf_ptrace_xfer_memory with equivalent code.
1565 * inftarg.c (child_xfer_partial): When performing a write, pass
1566 writebuf to child_xfer_memory.
1567
b8eb5af0
AC
1568 * target.c (target_read_string): Use target_read_memory instead of
1569 target_xfer_memory.
1570
ee21b650
AC
15712004-09-29 Andrew Cagney <cagney@gnu.org>
1572
d3e05d0d
AC
1573 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1574 the address of status.
1575
ee21b650
AC
1576 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1577 (kill_inferior): Inline ptrace_wait call.
1578 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1579 * inftarg.c (child_wait): Inline ptrace_wait call.
1580
a182eed6
AC
1581 * target.h (struct target_ops): Delete field to_post_wait.
1582 (target_post_wait): Delete macro.
1583 (child_post_wait): Delete declaration.
1584 * target.c (update_current_target, update_current_target)
1585 (debug_to_post_wait, setup_target_debug): Delete functions and
1586 references.
1587 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1588 * inftarg.c (child_post_wait): Delete.
1589 (init_child_ops): Do not set to_post_wait.
1590 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1591 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1592 * inf-child.c (inf_child_post_wait): Delete.
1593 (inf_child_target): Do not set to_post_wait.
1594 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1595 (inf_ptrace_target): Do not set to_post_wait.
1596
ba0c540b
AC
1597 * wince.c (child_ops): Delete.
1598 * win32-nat.c (child_ops): Delete.
1599
81977402
AC
1600 * inftarg.c (inftarg_set_find_memory_regions)
1601 (inftarg_set_make_corefile_notes): Delete functions.
1602 (_initialize_linux_nat): Inline calls.
1603
5ac10fd1
AC
1604 * target.h (child_ops): Declare.
1605 * inftarg.c (child_ops): Move from here ...
1606 * target.c (child_ops): ... to here.
1607 * wince.c (child_ops): Delete extern declaration.
1608 * win32-nat.c (child_ops): Delete extern declaration.
1609 * linux-nat.c (child_ops): Delete extern declaration.
1610 * hpux-thread.c (child_ops): Delete extern declaration.
1611
663408c2 16122004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1613
1614 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1615
0dad8a66
MK
16162004-09-28 Mark Kettenis <kettenis@gnu.org>
1617
1618 * configure.in: Only set host_makefile_frag when building a native
1619 debugger.
1620 * configure: Regenerate.
e8d74ed3
MK
1621
1622 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1623 for OpenBSD ELF.
1624
dba24537
AC
16252004-09-28 Andrew Cagney <cagney@gnu.org>
1626
e979516b
AC
1627 Problem identified by Paul Hilfinger.
1628 * Makefile.in (ada_lex_c): Define.
1629 (ada-lex.o): Delete rule.
1630
dba24537
AC
1631 * linux-proc.c: Delete file.
1632 * Makefile.in: Update.
1633 * config/sparc/linux64.mh (NATDEPFILES):
1634 * config/sparc/linux.mh (NATDEPFILES): Update.
1635 * config/s390/s390.mh (NATDEPFILES): Update.
1636 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1637 * config/powerpc/linux.mh (NATDEPFILES): Update.
1638 * config/pa/linux.mh (NATDEPFILES): Update.
1639 * config/mips/linux.mh (NATDEPFILES): Update.
1640 * config/m68k/linux.mh (NATDEPFILES): Update.
1641 * config/ia64/linux.mh (NATDEPFILES): Update.
1642 * config/i386/linux64.mh (NATDEPFILES): Update.
1643 * config/i386/linux.mh (NATDEPFILES): Update.
1644 * config/arm/linux.mh (NATDEPFILES): Update.
1645 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1646 * linux-nat.c: Update copyright. Include <sys/param.h>,
1647 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1648 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1649 (O_LARGEFILE): Possibly define.
1650 (_initialize_linux_nat, linux_proc_pending_signals)
1651 (add_line_to_sigset, linux_proc_xfer_memory)
1652 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1653 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1654 (struct linux_corefile_thread_data)
1655 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1656 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1657
d6b0e80f
AC
16582004-09-16 Andrew Cagney <cagney@gnu.org>
1659
1660 * lin-lwp.c: Delete file.
1661 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1662 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1663 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1664 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1665 (linux_nat_attach, detach_callback, linux_nat_detach)
1666 (resume_callback, resume_clear_callback, linux_nat_resume)
1667 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1668 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1669 (status_callback, running_callback, count_events_callback)
1670 (select_singlestep_lwp_callback, select_event_lwp_callback)
1671 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1672 (child_wait, stop_and_resume_callback, linux_nat_wait)
1673 (kill_callback, kill_wait_callback, linux_nat_kill)
1674 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1675 (linux_nat_xfer_memory, linux_nat_thread_alive)
1676 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1677 (_initialize_linux_nat): New functions.
1678 * Makefile.in: Update all dependencies.
1679 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1680 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1681 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1682 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1683 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1684 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1685 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1686 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1687 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1688 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1689 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1690 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1691 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1692
5a174d79
MK
16932004-09-27 Mark Kettenis <kettenis@gnu.org>
1694
2f604c28
MK
1695 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1696 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1697
5a174d79
MK
1698 * configure.in: Don't comment out NATDEPFILES in the generated
1699 Makefile if NAT_FILE is unset.
1700 * configure: Regenerate.
1701
b2ed1746
AC
17022004-09-27 Andrew Cagney <cagney@gnu.org>
1703
44cbf7b5
AC
1704 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1705 (insert_step_resume_breakpoint): Delete.
1706 (insert_step_resume_breakpoint_at_frame): New function.
1707 (insert_step_resume_breakpoint_at_sal): New function.
1708 (handle_inferior_event, step_into_function)
1709 (insert_step_resume_breakpoint): Simplify by using same.
1710
b2ed1746
AC
1711 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1712
3691b3be
MK
17132004-09-26 Mark Kettenis <kettenis@gnu.org>
1714
36f391e8
MK
1715 * fbsd-proc.c: Remove file.
1716 * Makefile.in (fbsd-proc.o): Remove dependency.
1717
771e236c
MK
1718 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1719 code together.
1720
3691b3be
MK
1721 * config/i386/nm-fbsd64.h: Remove file.
1722 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1723
6a5c78a3
MK
17242004-09-26 Mark Kettenis <kettenis@gnu.org>
1725
1726 * amd64-nat.h: Update copyright year.
1727 (amd64bsd_target): New prototype.
1728 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1729 (amd64bsd_target): New function.
1730 (amd64bsd_fetch_inferior_registers): Rename from
1731 fetch_inferior_registers. Make static.
1732 (amd64bsd_store_inferior_registers): Rename from
1733 store_inferior_registers. Make static.
1734 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1735 (_initialize_amd64fbsd_nat): Construct and add target vector.
1736 * amd64nbsd-nat.o: Include "target.h".
1737 (_initialize_amd64nbsd_nat): Construct and add target vector.
1738 * amd64obsd-nat.c: Include "target.h".
1739 (_initialize_amd64obsd_nat): Construct and add target vector.
1740 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1741 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1742 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1743 fbsd-nat.o.
1744 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1745 Remove infptrace.o and inftarg.o. Add inf-child.o and
1746 inf-ptrace.o.
1747 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1748 (amd64obsd-nat.o): Update dependencies.
1749
27acbe61
MK
17502004-09-25 Mark Kettenis <kettenis@gnu.org>
1751
509a5e7d
MK
1752 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1753 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1754 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1755 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1756 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1757
6e1e94ea
MK
1758 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1759 Inline attach call.
1760 (inf_ptrace_detach): Inline detach call.
1761
8b9cf735
MK
1762 * configure.in: Check for waddstr instead of mvwaddstr when
1763 searching for curses library. Check for wborder.
1764 * configure, config.in: Regenerate.
1765 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1766 available.
1767
27acbe61
MK
1768 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1769
b96ec7ac
AC
17702004-09-24 Robert Picco <Robert.Picco@hp.com>
1771
1772 Committed by Andrew Cagney.
1773 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1774 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1775 configuration.
1776 (fetch_register_using_p): Implement 'p' packet. Based on code by
1777 Fernando Nasser.
1778 (remote_fetch_registers): Call fetch_register_using_p.
1779 (init_all_packet_configs, show_remote_cmd)
1780 (_initialize_remote): Add p-packet.
1781
62ece330
MK
17822004-09-24 Mark Kettenis <kettenis@gnu.org>
1783
1784 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1785 instead of call_ptrace. Call wait directly instead of
1786 ptrace_wait.
1787 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1788 (inf_ptrace_wait): Inline ptrace_wait call.
1789
00937274
PH
17902004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1791
1792 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1793 rolled back instead.
1794
3f2c7a45
PH
17952004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1796
1797 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1798 the new argument order.
1799
b6fcb393
CV
18002004-09-23 Corinna Vinschen <vinschen@redhat.com>
1801
1802 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1803 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1804 (struct gdbarch_tdep): Remove.
1805 (struct xstormy16_frame_cache): New frame cache structure.
1806 (xstormy16_register_byte, xstormy16_register_raw_size)
1807 (xstormy16_reg_virtual_type, xstormy16_register_type)
1808 (xstormy16_push_arguments, xstormy16_push_return_address)
1809 (xstormy16_pop_frame, xstormy16_store_struct_return)
1810 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1811 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1812 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1813 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1814 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1815 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1816 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1817 (xstormy16_extract_return_value, xstormy16_store_return_value):
1818 Regcachify. Drop useless struct convention handling.
1819 (xstormy16_register_type, xstormy16_return_value)
1820 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1821 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1822 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1823 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1824 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1825 (xstormy16_unwind_dummy_id) : New functions.
1826 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1827 of xstormy16_scan_prologue.
1828 (xstormy16_frame_unwind): New frame_unwind structure.
1829 (xstormy16_frame_base): New frame_base structure.
1830 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1831 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1832
1285b746
MK
18332004-09-22 Mark Kettenis <kettenis@gnu.org>
1834
1835 * language.c (language_gdbarch_post_init): Fix off-by one error.
1836
1c379e20
DJ
18372004-09-21 Daniel Jacobowitz <dan@debian.org>
1838
1839 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1840 (struct dwarf2_offset_and_type): New.
1841 (set_die_type, reset_die_and_siblings_types, get_die_type)
1842 (offset_and_type_hash, offset_and_type_eq): New functions.
1843 (read_structure_type, read_enumeration_type, read_array_type)
1844 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1845 (read_tag_reference_type, read_tag_const_type)
1846 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1847 (read_typedef, read_base_type, read_subrange_type): Use
1848 set_die_type.
1849
ae038cb0
DJ
18502004-09-20 Daniel Jacobowitz <dan@debian.org>
1851
1852 * Makefile.in (dwarf2read.o): Update dependencies.
1853 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1854 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1855 and read_in_chain.
1856 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1857 mark, and has_form_ref_addr.
1858 (struct dwarf2_per_cu_data): New.
1859 (dwarf2_max_cache_age): New.
1860 (dwarf2_build_psymtabs_hard): Free cached compilation units
1861 after loading. Create and manage the list of compilation units.
1862 Remove unnecessary NULL initialization. Fix indentation.
1863 (psymtab_to_symtab_1): Initialize all of CU.
1864 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1865 (find_partial_die): Use dwarf2_find_containing_comp_unit
1866 and load_comp_unit.
1867 (free_stack_comp_unit): Update comments. Clear the per-cu
1868 pointer. Handle aging.
1869 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1870 (age_cached_comp_units, free_one_cached_comp_unit)
1871 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1872 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1873 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1874 (show_dwarf2_cmd): New.
1875 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1876 and "maint show dwarf2 max-cache-age".
1877 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1878 externs.
1879 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1880 global.
1881
987504bb
JJ
18822004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1883
1884 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1885 and dwarf2_cu struct pointer as arguments. Change function to use
1886 obstack if provided and use dwarf2_cu to determine language-specific
1887 separator.
1888 (partial_die_parent_scope): Change comment to include java. Use
1889 new version of typename_concat instead of obconcat.
1890 (partial_die_full_name): Use typename_concat.
1891 (read_namespace): Ditto.
1892 (read_enumeration_type): Use typename_concat instead of obconcat.
1893 (new_symbol): Ditto.
1894 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1895 (guess_structure_name): Ditto.
1896 (read_subroutine_type): Ditto.
1897 (read_structure_type): Ditto.
1898 (is_vtable_name): Add Java support.
1899 (determine_class_name): Switch to new typename_concat call.
1900 (determine_prefix): Switch to new typename_concat call.
1901 * jv-exp.y (FuncStart): New pattern.
1902 (MethodInvocation): Add support for simple function calls. Change
1903 warning message for other forms of inferior call currently not
1904 supported.
1905 * valarith.c (value_subscript): Treat an array with upper-bound
1906 of -1 as unknown size.
1907
d9c8471e
DJ
19082004-09-20 Daniel Jacobowitz <dan@debian.org>
1909
1910 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1911 (lookup_partial_symtab): Use symtab_to_fullname.
1912
d73f140a
JB
19132004-09-19 Jim Blandy <jimb@redhat.com>
1914
1915 * minsyms.c (lookup_minimal_symbol): Doc fix.
1916
adbef1f0
AC
19172004-09-20 Andrew Cagney <cagney@gnu.org>
1918
1919 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1920 CHILD_RESUME.
1921 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1922 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1923 KILL_INFERIOR.
1924 * infptrace.c: Update.
1925
d092d1a2
DJ
19262004-09-19 Daniel Jacobowitz <dan@debian.org>
1927
1928 * symtab.c (output_source_filename): Mark first argument as const.
1929 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1930 for "info sources" output.
1931
86d9e1d7
MK
19322004-09-20 Mark Kettenis <kettenis@gnu.org>
1933
1934 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1935 <machine/vmparam.h>.
1936 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1937 (register_u_addr): Remove prototype.
1938
9a6c8ef4
MK
19392004-09-19 Mark Kettenis <kettenis@gnu.org>
1940
9692934b
MK
1941 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1942 (i386bsd_fetch_inferior_registers): Rename from
1943 fetch_inferior_registers. Make static.
1944 (i386bsd_store_inferior_registers): Rename from
1945 store_inferior_registers. Make static.
1946 (i386bsd_target): New function.
1947 * i386bsd-nat.h: New file.
1948 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1949 "i386bsd-nat.h".
1950 (i386fbsd_resume): Rename from child_resume. Make static.
1951 (_initialize_i386fbsd_nat): Construct and add target vector.
1952 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1953 (_initialize_i386nbsd_nat): Construct and add target vector.
1954 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1955 Remove defines.
1956 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1957 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1958 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1959 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1960 (LOADLIBES): New variable.
1961 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1962 inf-ptrace.o. Remove inftarg.o.
1963 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1964 inf-ptrace.o. Remove inftarg.o.
1965 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1966 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1967 (LOADLIBES): New variable.
1968 * Makefile.in (i386bsd_nat_h): New variable.
1969 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1970 dependencies.
1971
3510d1f2
MK
1972 * sparc64nbsd-tdep.c: Include "objfiles.h".
1973 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1974 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1975 svr4_lp64_fetch_link_map_offsets.
1976 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1977 "nbsd-tdep.h".
1978 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1979 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1980 svr4_lp64_fetch_link_map_offsets.
1981 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1982 dependencies.
1983
578c1c03
MK
1984 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1985 * fbsd-nat.h: New file.
1986 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1987 (fbsd_nat_h): New variable.
1988 (fbsd-nat.o): New dependency.
1989
7a7b73b7
MK
1990 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1991 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1992
9a6c8ef4
MK
1993 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1994 comment.
1995
72d5681a
PH
19962004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1997
1998 * ada-exp.y (type_int): New function to add layer of abstraction
1999 around references to expression types.
2000 (type_long): Ditto.
2001 (type_long_long): Ditto.
2002 (type_float): Ditto.
2003 (type_double): Ditto.
2004 (type_long_double): Ditto.
2005 (type_char): Ditto.
2006 (type_system_address): Ditto.
2007 (simple_exp): Use type_* functions in place of builtin_*
2008 variables.
2009 (exp): Ditto.
2010 (write_var_from_name): Ditto.
2011 (write_object_renaming): Ditto.
2012 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2013 declaration.
2014 (build_ada_types): Remove, replacing with...
2015 (ada_language_arch_info): New function to initialize primitive
2016 type vector in language_arch_info.
2017 (ada_array_length): Remove use of builtin_type_ada_int.
2018 (value_pos_atr): Ditto.
2019 (ada_evaluate_subexp): Ditto.
2020 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2021 builtin_type_ada_long_long, builtin_type_ada_char,
2022 builtin_type_ada_float, builtin_type_ada_double,
2023 builtin_type_ada_long_double, builtin_type_ada_natural,
2024 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2025 (ada_builtin_types): Remove.
2026 (ada_language_defn): Remove entries for la_builtin_type_vector and
2027 string_char_type and use ada_language_arch_info.
2028 (_initialize_ada_language): Do type-vector initialization along
2029 the lines of c-lang.c.
2030 (ada_create_fundamental_type): Break up line.
2031 (ada_dump_symtab): Remove unused function.
2032 (enum ada_primitive_types): Define.
2033 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2034 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2035 builtin_type_ada_float, builtin_type_ada_double,
2036 builtin_type_ada_long_double, builtin_type_ada_natural,
2037 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2038 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2039 (processInt): Ditto.
2040 (processReal): Ditto.
2041 (name_lookup): Ditto.
2042 * ada-typeprint.c (print_range): Use builtin_type_int, not
2043 builtin_type_ada_int.
2044
4f0be353
MK
20452004-09-18 Mark Kettenis <kettenis@gnu.org>
2046
30b0e2d8
MK
2047 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2048
4f0be353
MK
2049 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2050 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2051 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2052 * configure.in: Improve checks for curses library by checking for
2053 mvwaddstr instead of initscr. Drop HP curses in favour of
2054 standard curses on HP-UX.
2055 * configure: Regenerated.
2056
72d5681a 20572004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2058
2059 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2060 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2061 Minor formatting changes.
2062 (empty_array): Slight rewrite for formatting.
2063 (emit_char,parse,ada_language_defn,build_ada_types,
2064 ada_is_exception_sym, _initialize_ada_language): Move
2065 definitions around.
2066 (ada_dump_symtab): Remove unused definition.
2067 (ada_maybe_exception_partial_symbol): Remove unused definition.
2068
1c8c7407
AC
20692004-09-16 Andrew Cagney <cagney@gnu.org>
2070
7681f339
AC
2071 * inf-child.c: Include "gdb_string.h".
2072 (inf_child_core_file_to_sym_file): Delete.
2073 (inf_child_target): Set to_fetch_registers and to_store_registers.
2074 * inf-ptrace.c: Include "gdb_string.h".
2075 * Makefile.in: Update all dependencies.
2076
1c8c7407
AC
2077 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2078 problem.
2079
65596487
JB
20802004-09-14 Joel Brobecker <brobecker@gnat.com>
2081
2082 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2083 call to heuristic_proc_desc. Remove code that became redundant
2084 as a consequence.
2085 (read_next_frame_reg): Remove special case for SP_REGNUM.
2086 (set_reg_offset): Fix small typo.
2087 (reset_saved_regs): New procedure.
2088 (mips32_heuristic_proc_desc): No longer compute a fake
2089 procedure descriptor. Compute the full frame cache instead.
2090 Some minor comment reformatting.
2091
95575b2e
AC
20922004-09-14 Andrew Cagney <cagney@gnu.org>
2093
f200c492
AC
2094 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2095 maintainer.
2096
95575b2e
AC
2097 * thread-db.c (thread_db_new_objfile): Assume that there is a
2098 child process.
2099
69657671
JB
21002004-09-13 Jim Blandy <jimb@redhat.com>
2101
2102 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2103 so that its storage isn't referenced after its lifetime ends.
2104
6c4182dd
JB
2105 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2106 and never assigned to. Delete it, and the 'if (use_buffer)'
2107 clauses. Delete 'raw_buffer', since it is now unused.
2108
ee31a58d
AC
21092004-09-13 Andrew Cagney <cagney@gnu.org>
2110
2c0fc042
AC
2111 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2112 * configure: Re-generate.
2113 * nlm/Makefile.in (TAGS): Update.
2114 * Makefile.in (TAGS): Update.
2115 * config/vax/nbsd.mt (TM_FILE): Update.
2116 * config/sparc/vxworks.mt (TM_FILE): Update.
2117 * config/sparc/sol2.mt (TM_FILE): Update.
2118 * config/sparc/sol2-64.mt (TM_FILE): Update.
2119 * config/sparc/obsd64.mt (TM_FILE): Update.
2120 * config/sparc/obsd.mt (TM_FILE): Update.
2121 * config/sparc/nbsd64.mt (TM_FILE): Update.
2122 * config/sparc/nbsd.mt (TM_FILE): Update.
2123 * config/sparc/linux64.mt (TM_FILE): Update.
2124 * config/sparc/linux.mt (TM_FILE): Update.
2125 * config/sparc/fbsd.mt (TM_FILE): Update.
2126 * config/sh/wince.mt (TM_FILE): Update.
2127 * config/sh/nbsd.mt (TM_FILE): Update.
2128 * config/sh/linux.mt (TM_FILE): Update.
2129 * config/sh/embed.mt (TM_FILE): Update.
2130 * config/s390/s390.mt (TM_FILE): Update.
2131 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2132 * config/rs6000/rs6000.mt (TM_FILE): Update.
2133 * config/rs6000/aix4.mt (TM_FILE): Update.
2134 * config/powerpc/vxworks.mt (TM_FILE): Update.
2135 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2136 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2137 * config/powerpc/obsd.mt (TM_FILE): Update.
2138 * config/powerpc/nbsd.mt (TM_FILE): Update.
2139 * config/powerpc/linux.mt (TM_FILE): Update.
2140 * config/powerpc/aix.mt (TM_FILE): Update.
2141 * config/pa/obsd.mt (TM_FILE): Update.
2142 * config/pa/linux.mt (TM_FILE): Update.
2143 * config/pa/hppahpux.mt (TM_FILE): Update.
2144 * config/pa/hppa64.mt (TM_FILE): Update.
2145 * config/pa/hppa.mt (TM_FILE): Update.
2146 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2147 * config/mips/wince.mt (TM_FILE): Update.
2148 * config/mips/vxmips.mt (TM_FILE): Update.
2149 * config/mips/nbsd.mt (TM_FILE): Update.
2150 * config/mips/linux.mt (TM_FILE): Update.
2151 * config/mips/irix6.mt (TM_FILE): Update.
2152 * config/mips/irix5.mt (TM_FILE): Update.
2153 * config/mips/embed.mt (TM_FILE): Update.
2154 * config/m68k/vxworks68.mt (TM_FILE): Update.
2155 * config/m68k/st2000.mt (TM_FILE): Update.
2156 * config/m68k/os68k.mt (TM_FILE): Update.
2157 * config/m68k/obsd.mt (TM_FILE): Update.
2158 * config/m68k/nbsd.mt (TM_FILE): Update.
2159 * config/m68k/monitor.mt (TM_FILE): Update.
2160 * config/m68k/linux.mt (TM_FILE): Update.
2161 * config/m68k/cisco.mt (TM_FILE): Update.
2162 * config/ia64/linux.mt (TM_FILE): Update.
2163 * config/ia64/aix.mt (TM_FILE): Update.
2164 * config/ia64/ia64.mt (TM_FILE): Update.
2165 * config/i386/vxworks.mt (TM_FILE): Update.
2166 * config/i386/obsd64.mt (TM_FILE): Update.
2167 * config/i386/obsd.mt (TM_FILE): Update.
2168 * config/i386/nto.mt (TM_FILE): Update.
2169 * config/i386/nbsd64.mt (TM_FILE): Update.
2170 * config/i386/nbsd.mt (TM_FILE): Update.
2171 * config/i386/linux64.mt (TM_FILE): Update.
2172 * config/i386/linux.mt (TM_FILE): Update.
2173 * config/i386/i386sol2.mt (TM_FILE): Update.
2174 * config/i386/i386lynx.mt (TM_FILE): Update.
2175 * config/i386/fbsd64.mt (TM_FILE): Update.
2176 * config/i386/fbsd.mt (TM_FILE): Update.
2177 * config/i386/cygwin.mt (TM_FILE): Update.
2178 * config/h8300/h8300.mt (TM_FILE): Update.
2179 * config/frv/frv.mt (TM_FILE): Update.
2180 * config/cris/cris.mt (TM_FILE): Update.
2181 * config/arm/wince.mt (TM_FILE): Update.
2182 * config/arm/nbsd.mt (TM_FILE): Update.
2183 * config/arm/linux.mt (TM_FILE): Update.
2184 * config/arm/embed.mt (TM_FILE): Update.
2185 * config/alpha/nbsd.mt (TM_FILE): Update.
2186 * config/alpha/fbsd.mt (TM_FILE): Update.
2187 * config/alpha/alpha.mt (TM_FILE): Update.
2188 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2189 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2190
362646f5
AC
2191 Eliminate event_loop_p, always has the value 1.
2192 * defs.h (event_loop_p): Delete macro.
2193 * breakpoint.c (until_break_command): Simplify.
2194 * utils.c (prompt_for_continue): Simplify.
2195 * tracepoint.c (read_actions): Simplify.
2196 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2197 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2198 (set_prompt, init_main): Simplify.
2199 (init_signals, disconnect): Delete, unused.
2200 * remote.c (remote_async_resume)
2201 (extended_remote_async_create_inferior): Simplify.
2202 * mi/mi-interp.c (mi_input): Delete, unused.
2203 (mi_interpreter_resume, mi_command_loop): Simplify.
2204 * interps.c (current_interp_command_loop): Simplify.
2205 * infrun.c (proceed): Simplify.
2206 * infcmd.c (run_command, continue_command, step_1, jump_command)
2207 (until_command, advance_command, finish_command)
2208 (interrupt_target_command): Simplify.
2209 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2210
ee31a58d
AC
2211 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2212 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2213 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2214 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2215 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2216 * mips-tdep.c (mips_dump_tdep): Do not print same.
2217
b7ffc4a8
AC
22182004-09-12 Andrew Cagney <cagney@gnu.org>
2219
2bfb72ee
AC
2220 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2221 const.
2222 * Makefile.in (valprint.o): Delete explict rule.
2223
4f17c3c1
AC
2224 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2225 reported by Dave Anderson.
2226
f810308b
AC
2227 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2228
b7ffc4a8
AC
2229 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2230
28b41c52
AC
22312004-09-12 Salvador E. Tropea <set@users.sf.net>
2232 Andrew Cagney <cagney@gnu.org>
2233
2234 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2235 (mi_cmd_data_list_register_values)
2236 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2237 the register number computation.
2238
5bf970f9
AC
22392004-09-12 Andrew Cagney <cagney@gnu.org>
2240
2241 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2242 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2243 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2244 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2245 target.
2246 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2247 inf-ptrace.o and inf-child.o.
2248 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2249 * Makefile.in: Update dependencies.
2250
0759e0bf
AC
22512004-09-11 Andrew Cagney <cagney@gnu.org>
2252
2253 * language.c (hex_string, hex_string_custom): Move from here ...
2254 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2255 (CELLSIZE): Increase to 50.
2256 * language.h (hex_string, hex_string_custom): Move from here ...
2257 * defs.h: ... to here.
2258 * Makefile.in: Update all dependencies.
2259
bb599908
PH
22602004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2261
2262 * language.c (local_hex_format_custom): Remove.
2263 (local_hex_string): Rename to hex_string, use C format, and move to
2264 utils.c
2265 (local_hex_string_custom): Rename to hex_string_custom and change
2266 interface. Now uses C format. Move to utils.c
2267 (local_octal_format_custom): Remove.
2268 (local_decimal_format_custom): Remove.
2269 (unknown_language_defn): Remove language-specific number
2270 formatting entries.
2271 (auto_language_defn): Ditto.
2272 (local_language_defn): Ditto.
2273 * language.h (struct language_format_info): Delete declaration.
2274 (struct language_defn): Remove language_format_info fields
2275 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2276 (local_binary_format): Remove macro.
2277 (local_binary_format_prefix): Remove macro.
2278 (local_binary_format_specifier): Remove macro.
2279 (local_binary_format_suffix): Remove macro.
2280 (local_octal_format): Remove macro.
2281 (local_octal_format_prefix): Remove macro.
2282 (local_octal_format_specifier): Remove macro.
2283 (local_octal_format_suffix): Remove macro.
2284 (local_decimal_format): Remove macro.
2285 (local_decimal_format_prefix): Remove macro.
2286 (local_decimal_format_specifier): Remove macro.
2287 (local_decimal_format_suffix): Remove macro.
2288 (local_hex_format): Remove macro.
2289 (local_hex_format_prefix): Remove macro.
2290 (local_hex_format_specifier): Remove macro.
2291 (local_hex_format_suffix): Remove macro.
2292 (local_decimal_format_custom): Remove.
2293 (local_octal_format_custom): Remove.
2294 (local_hex_format_custom): Remove.
2295 (local_hex_string): Rename to hex_string and move to defs.h.
2296 (local_hex_string_custom): Rename to hex_string_custom, change
2297 interface, and move to defs.h.
2298 * utils.c: (int_string): New function.
2299 (hex_string): New function (from language.c).
2300 (hex_string_custom): New function (from language.c).
2301 (octal2str): New function.
2302 (decimal2str): Add width parameter.
2303 (paddr_u): Use new decimal2str interface.
2304 (paddr_d): Ditto.
2305 * defs.h (hex_string): Declare.
2306 (hex_string_custom): Declare.
2307 (int_string): Declare.
2308 * printcmd.c (print_scalar_formatted): Remove localized binary
2309 formatting.
2310 * valprint.c (print_longest): Use int_string.
2311 (print_floating): Use C hex format.
2312 (print_hex_chars): Ditto.
2313 (print_binary_chars): Remove language-specific formatting.
2314 (print_octal_chars): Use C octal format.
2315 (print_decimal_chars): Delocalize format.
2316 (print_decimal): Remove.
2317 * ada-lang.c (ada_language_defn): Remove language-specific number
2318 formatting entries.
2319 * p-lang.c (pascal_language_defn): Ditto.
2320 * c-lang.c (c_language_defn): Ditto.
2321 (cplus_language_defn): Ditto.
2322 (asm_language_defn): Ditto.
2323 (minimal_language_defn): Ditto.
2324 * f-lang.c (f_language_defn): Ditto.
2325 * jv-lang.c (java_language_defn): Ditto.
2326 * m2-lang.c (m2_language_defn): Ditto.
2327 * scm-lang.c (scm_language_defn): Ditto.
2328 * objc-lang.c (objc_language_defn): Ditto.
2329 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2330 new interface.
2331 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2332 * ui-out.c (ui_out_field_core_addr): Ditto.
2333 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2334 * exec.c (print_section_info): Ditto.
2335 * i387-tdep.c (print_i387_status_word): Ditto.
2336 (print_i387_control_word): Ditto.
2337 (i387_print_float_info): Ditto.
2338 * maint.c (maint_print_section_info): Ditto.
2339 * solib.c (info_sharedlibrary_command): Ditto.
2340 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2341 * symtab.c (print_msymbol_info): Ditto.
2342 * tracepoint.c (tracepoints_info): Ditto.
2343 * solib-frv.c (lm_base): Ditto.
2344 (frv_current_sos): Ditto.
2345 (enable_break2): Ditto.
2346 (enable_break): Ditto.
2347 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2348 (process_one_symbol): Ditto.
2349 * infcmd.c (program_info): Ditto.
2350 * mdebugread.c (parse_partial_symbols): Ditto.
2351 * symfile.c (add_symbol_file_command): Ditto.
2352 * cli/cli-cmds.c (edit_command): Ditto.
2353 (list_command): Ditto.
2354 * infcall.c (call_function_by_hand): Ditto.
2355 * remote-vx.c (vx_run_files_info): Ditto.
2356 (vx_wait): Ditto.
2357 (vx_attach): Ditto.
2358 (vx_detach): Ditto.
2359 (vx_kill): Ditto.
2360 * aix-thread.c (pdc_symbol_addrs): Ditto.
2361 (pdc_read_regs): Ditto.
2362 (pdc_write_regs): Ditto.
2363 (pdc_read_data): Ditto.
2364 (pdc_write_data): Ditto.
2365 * d10v-tdep.c (display_trace): Ditto.
2366 * rs6000-nat.c (find_toc_address): Ditto.
2367 * aix-thread.c: Don't include language.h.
2368 * buildsym.c: Ditto.
2369 * dbxread.c: Ditto.
2370 * mdebugread.c: Ditto.
2371 * rs6000-nat.c: Ditto.
2372 * buildsym.c (make_blockvector): Use renamed hex_string.
2373
33f2d567
JM
23742004-09-10 Jason Molenda (jmolenda@apple.com)
2375
2376 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2377 chars after 'if' or 'while' commands in user-defined commands.
2378
7b90c3f9
JB
23792004-09-08 Jim Blandy <jimb@redhat.com>
2380
2381 Fix bug reported and analyzed by Olivier Crete:
2382 * symfile.c (copy_section_addr_info): New function.
2383 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2384 original set of address arguments, instead of handwritten code
2385 that uses one length to allocate and a different length to
2386 initialize. Use make_cleanup_free_section_addr_info.
2387 * symfile.h (copy_section_addr_info): New declaration.
2388 * utils.c: #include "symfile.h".
2389 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2390 New functions.
2391 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2392 * Makefile.in (utils.o): Update dependencies.
2393
b26a6851
AC
23942004-09-08 Andrew Cagney <cagney@gnu.org>
2395
2396 * thread-db.c (keep_thread_db): Delete.
2397 (thread_db_new_objfile, thread_db_create_inferior)
2398 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2399
be24b061
MK
24002004-09-08 Mark Kettenis <kettenis@gnu.org>
2401
f6792ef4
MK
2402 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2403 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2404 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2405 (i386_frameless_signal_p): Remove prototype.
2406 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2407 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2408 I386_SSE_NUM_REGS.
2409 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2410 instead of FP0_REGNUM.
2411 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2412 of FP0_REGNUM and FPC_REGNUM.
2413
eeefdaa7
MK
2414 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2415 (sunos_solib_create_inferior_hook): Don't call
2416 sunos_relocate_main_executable.
2417
be24b061
MK
2418 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2419 solib_svr4_fetch_link_map_offsets to
2420 svr4_ilp32_fetch_link_map_offsets.
2421 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2422 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2423 svr4_ilp32_fetch_link_map_offsets.
2424 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2425
7c679d16
JB
24262004-09-07 Jim Blandy <jimb@redhat.com>
2427
2428 * frame.h (frame_register): Doc fix.
2429
1f04aa62
AC
24302004-09-07 Andrew Cagney <cagney@gnu.org>
2431
2432 * vx-share/wait.h: Delete #ifdef USG.
2433 * utils.c (request_quit): Ditto.
2434 * tui/tui.c (tui_reset): Ditto.
2435 * remote.c: Ditto.
2436 * remote-sds.c: Ditto.
2437 * remote-rdi.c: Ditto.
2438 * mdebugread.c: Ditto.
2439 * m68klinux-nat.c: Ditto.
2440 * infttrace.c: Ditto.
2441 * infptrace.c: Ditto.
2442 * i386v-nat.c: Ditto.
2443 * exec.c: Ditto.
2444 * dbxread.c: Ditto.
2445 * core-aout.c: Ditto.
2446
90edbfbc
JB
24472004-09-05 Joel Brobecker <brobecker@gnat.com>
2448
2449 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2450 heuristic_proc_desc.
2451 (mips_insn32_frame_cache): Likewise.
2452
01f4bf2b
JB
24532004-09-04 Joel Brobecker <brobecker@gnat.com>
2454
2455 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2456 left behind by error.
2457
8511a048
JB
24582004-09-04 Joel Brobecker <brobecker@gnat.com>
2459
2460 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2461 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2462
649dfe9f
JB
24632004-09-04 Joel Brobecker <brobecker@gnat.com>
2464
2465 * config/rs6000/xm-aix4.h: Remove this file.
2466 * config/rs6000/aix4.mh (XM_FILE): Delete.
2467
6e50f889
JB
24682004-09-04 Joel Brobecker <brobecker@gnat.com>
2469
2470 * config/rs6000/xm-rs6000.h: Remove this file.
2471 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2472
b8c4aece
AC
24732004-09-03 Andrew Cagney <cagney@gnu.org>
2474
fb603883
AC
2475 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2476 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2477 only use.
2478
c9343fd1
AC
2479 * mips-tdep.c (temp_saved_regs): Delete.
2480 (set_reg_offset): Replace saved_regs parameter with this_cache.
2481 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2482 (mips32_heuristic_proc_desc): Add this_cache parameter.
2483 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2484 (after_prologue): Pass a NULL this_cache.
2485
9733cfe1
AC
2486 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2487 non-kernel trap prologues.
2488
0d5febcc
AC
2489 * mips-tdep.c (find_proc_desc): Delete function.
2490 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2491 simplify.
2492 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2493 mips_insn32_frame_cache.
2494
9733cfe1 2495 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2496 Simplify as NEXT_FRAME is NULL.
2497 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2498
177f84a3
AC
2499 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2500 local variable.
2501 (mips_skip_prologue): Update.
2502
465f7520
AC
2503 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2504 "cur_frame" parameter.
177f84a3
AC
2505 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2506 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2507
e38b8658
AC
2508 * config/vax/nm-obsd.h: Delete file.
2509 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2510 * config/vax/nm-nbsd.h: Delete file.
2511 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2512 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2513 * config/sh/nm-nbsd.h: Delete file.
2514 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2515 * config/rs6000/nm-rs6000ly.h: Delete file.
2516 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2517 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2518 * config/powerpc/nm-obsd.h: Delete file.
2519 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2520 * config/powerpc/nm-nbsd.h: Delete file.
2521 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2522 * config/pa/nm-obsd.h: Delete file.
2523 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2524 * config/mips/nm-nbsd.h: Delete file.
2525 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2526 * config/m88k/nm-obsd.h: Delete file.
2527 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2528 * config/m68k/nm-nbsd.h: Delete file.
2529 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2530 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2531 * config/i386/nm-nbsd.h: Delete file.
2532 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2533 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2534 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2535 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2536 * config/i386/nm-i386lynx.h: Delete file.
2537 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2538 * config/arm/nm-nbsd.h: Delete file.
2539 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2540 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2541
be1ed680
AC
2542 * config/i386/tm-fbsd.h: Delete file.
2543 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2544 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2545
4b392b26
AC
2546 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2547 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2548 * config/rs6000/aix4.mt (TM_FILE): Set to
2549 config/rs6000/tm-rs6000.h.
2550 * config/powerpc/tm-ppc-aix.h: Delete file.
2551 * config/powerpc/aix.mt (TM_FILE): Set to
2552 config/rs6000/tm-rs6000.h.
2553 * config/m68k/tm-linux.h: Delete file.
2554 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2555 * config/i386/tm-linux64.h: Delete file.
2556 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2557 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2558
f3219c75
AC
2559 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2560 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2561 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2562 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2563 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2564 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2565 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2566 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2567 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2568
b8c4aece
AC
2569 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2570 gdb_host_cpu.
2571
8ac2e020
JB
25722004-09-02 Joel Brobecker <brobecker@gnat.com>
2573
2574 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2575 Minor reformatting. Some code factoring.
2576
c185a355
AC
25772004-09-02 Andrew Cagney <cagney@gnu.org>
2578
63f22f0d
AC
2579 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2580 * config/vax/tm-nbsd.h: Delete file.
2581 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2582 * config/sparc/tm-vxworks.h: Delete file.
2583 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2584 * config/sparc/tm-nbsd.h: Delete file.
2585 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2586 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2587 * config/sparc/tm-linux.h: Delete file.
2588 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2589 * config/s390/tm-linux.h: Delete file.
2590 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2591 * config/pa/tm-bsd.h: Delete file.
2592 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2593 * config/m68k/tm-obsd.h: Delete file.
2594 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2595 * config/m68k/tm-nbsd.h: Delete file.
2596 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2597 * config/i386/tm-vxworks.h: Delete file.
2598 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2599 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2600 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2601 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2602 * config/i386/tm-nbsd.h: Delete file.
2603 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2604 * config/i386/tm-i386lynx.h: Delete file.
2605 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2606 * config/cris/tm-cris.h: Delete file.
2607
0f475e27
AC
2608 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2609 * configure: Re-generate.
2610 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2611 * config/arm/tm-nbsd.h: Delete file.
2612
458ed000
AC
2613 * config/powerpc/tm-ppcle-sim.h: Delete.
2614 * config/powerpc/tm-ppcle-eabi.h: Delete.
2615 * config/powerpc/tm-nbsd.h: Delete.
2616 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2617 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2618 tm-ppcle-eabi.h.
2619
f14375f3
AC
2620 * config/i386/nto.mh (NAT_FILE): Delete.
2621 * config/i386/nm-nto.h: Delete.
2622
c34d127c
AC
2623 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2624 * config/m68k/tm-os68k.h: Ditto.
2625 * config/m68k/tm-monitor.h: Ditto.
2626 * config/m68k/tm-cisco.h: Ditto.
2627 * config/m68k/st2000.mt (TM_FILE): Delete.
2628 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2629 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2630 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2631 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2632
f7f0fe03
AC
2633 * config/m68k/tm-st2000.h: Delete.
2634 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2635 * config/sparc/fbsd.mt (TM_FILE): Delete.
2636 * config/sparc/tm-fbsd.h: Delete.
2637
a2558533
AC
2638 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2639 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2640 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2641
b78960be
AC
2642 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2643 GDB_TM_FILE and GDB_XM_FILE.
2644 * gdbarch.c: Re-generate.
2645 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2646 quotes in macro definition.
2647 * configure.in: Re-generate.
2648
4d60522e
AC
2649 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2650 validating architecture methods.
2651 * gdbarch.c: Re-generate.
2652
5010d38b
AC
2653 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2654 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2655 GDB_MULTI_ARCH_PARTIAL.
2656 * gdbarch.h: Re-generate.
2657
c185a355
AC
2658 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2659 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2660 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2661 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2662 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2663 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2664 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2665 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2666 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2667 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2668 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2669 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2670
14aaa6ab
AC
26712004-09-01 Andrew Cagney <cagney@gnu.org>
2672
2673 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2674 and main_func_highpc.
2675 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2676 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2677 * nlmread.c (nlm_symfile_read): Update.
2678
a343eb3c
JB
26792004-09-01 Joel Brobecker <brobecker@gnat.com>
2680
2681 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2682 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2683 (find_proc_desc): Remove dead code.
2684
4fbbbd07
JB
26852004-09-01 Joel Brobecker <brobecker@gnat.com>
2686
2687 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2688
84acb35a
JJ
26892004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2690
2691 * observer.sh: Add struct so_list declaration.
2692 * Makefile.in: Add dependencies on observer.h for solib.c and
2693 breakpoint.c.
2694 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2695 function.
2696 (_initialize_breakpoint): Register
2697 disable_breakpoints_in_unloaded_shlib as an observer of the
2698 "solib unloaded" observation event.
2699 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2700 call decode_line_1 so unfound breakpoint errors are silent.
2701 * solib.c (update_solib_list): When a solib is discovered to have
2702 been unloaded by the program, notify all observers of the
2703 "solib unloaded" observation event.
2704
c8cd9f6c
AC
27052004-09-01 Andrew Cagney <cagney@gnu.org>
2706
2707 * frame.c: Include "objfiles.h".
2708 (inside_main_func): New function.
2709 (get_prev_frame): Use new inside_main_func.
2710 * Makefile.in (frame.o): Update dependencies.
2711 * defs.h (inside_main_func): Delete declaration.
2712 * blockframe.c (inside_main_func): Delete function.
2713
1168df01
JB
27142004-08-31 Jim Blandy <jimb@redhat.com>
2715
2716 * dwarf2read.c (is_vtable_name): New function, based on logic from
2717 read_structure_type, but passing the correct length to strncmp,
2718 and using 'sizeof' instead of 'strlen'.
2719 (read_structure_type): Call it.
2720
f14f9744
JB
27212004-08-31 Joel Brobecker <brobecker@gnat.com>
2722
2723 * config/powerpc/aix.mh: Add comment.
2724
386d4518
PG
27252004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2726
2727 * MAINTAINERS: Add self to Write-After-Approval.
2728
7d97d5e2
MI
27292004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2730
2731 * MAINTAINERS: Add self to Write-After-Approval.
2732
68f53502
AC
27332004-08-30 Andrew Cagney <cagney@gnu.org>
2734
2735 Fix PR breakpoints/1757.
2736 * infrun.c (struct execution_control_state): Replace
2737 remove_breakpoints_on_following_step with
2738 step_after_step_resume_breakpoint.
2739 (init_execution_control_state): Update.
2740 (handle_inferior_event): For signals, when stepping off a
2741 breakpoint, set step_after_step_resume_breakpoint. When
2742 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2743 (keep_going): Delete code handling
2744 remove_breakpoints_on_following_step.
2745
7ca2d3a3
DL
27462004-08-29 David Lecomber <david@streamline-computing.com>
2747
2748 Fix PR gdb/648
2749 * language.h (enum array_ordering): New enum.
2750 * language.h (struct language_defn): New la_array_ordering
2751 attribute.
2752 * language.c (unknown_language_defn, auto_language_defn)
2753 (local_language_defn): Ditto.
2754 * ada-lang.c (ada_language_defn): Ditto.
2755 * c-lang.c (c_language_defn, cplus_language_defn)
2756 (asm_language_defn, minimal_language_defn): Ditto.
2757 * f-lang.c (f_language_defn): Ditto.
2758 * jv-lang.c (java_language_defn): Ditto.
2759 * m2-lang.c (f_language_defn): Ditto.
2760 * objc-lang.c (objc_language_defn): Ditto.
2761 * p-lang.c (pascal_language_defn): Ditto.
2762 * scm-lang.c (scm_language_defn): Ditto.
2763 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2764 oriented large to small in type structure.
2765 * dwarf2read.c (read_array_order): New function.
2766 (read_array_type): Use read_array_order to check row/column
2767 major ordering.
2768
e354df01
NW
27692004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2770
2771 * target.c (target_resize_to_sections): Check
2772 current_target.to_sections for an old value when updating.
2773
9185ddce
JB
27742004-08-27 Joel Brobecker <brobecker@gnat.com>
2775
2776 * procfs.c (dbx_link_bpt_addr): New static global variable.
2777 (dbx_link_shadow_contents): New static global variable.
2778 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2779 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2780 if we just hit it.
2781 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2782 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2783 from run to run.
2784 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2785 after the inferior has been forked.
2786 (remove_dbx_link_breakpoint): New function.
2787 (dbx_link_addr): New function.
2788 (insert_dbx_link_bpt_in_file): New function.
2789 (insert_dbx_link_bpt_in_region): New function.
2790 (insert_dbx_link_breakpoint): New function.
2791 (proc_trace_syscalls_1): New function, extracted from
2792 proc_trace_syscalls.
2793 (proc_trace_syscalls): Replace extract code by call to
2794 proc_trace_syscalls_1.
2795 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2796 is no longer valid.
2797
e6742ace
JB
27982004-08-25 Jim Blandy <jimb@redhat.com>
2799
2800 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2801
8fb3e588
AC
28022004-08-25 Andrew Cagney <cagney@gnu.org>
2803
629a41ee
AC
2804 * infrun.c (struct execution_control_state): Delete field
2805 "stepping_through_sigtramp".
2806 (init_execution_control_state): Do not set same.
2807 (context_switch): Do not pass same to save_infrun_state and
2808 load_infrun_state.
2809 * gdbthread.h (struct thread_info): Delete field
2810 stepping_through_sigtramp.
2811 (save_infrun_state, load_infrun_state): Delete parameter
2812 stepping_through_sigtramp.
2813 * thread.c (load_infrun_state, save_infrun_state): Update.
2814
8fb3e588
AC
2815 * infrun.c: Re-indent. Move expression operators to the beginning
2816 of the line. Remove long disabled #if 0 code.
2817
49c54768
AC
28182004-08-24 Andrew Cagney <cagney@gnu.org>
2819
2820 * doublest.h (floatformat_ieee_quad): Rename
2821 floatformat_ia64_quad.
2822 * doublest.c (floatformat_ieee_quad): Rename
2823 floatformat_ia64_quad.
2824 (_initialize_doublest): Update.
2825
5ca2e327
JB
28262004-08-24 Jim Blandy <jimb@redhat.com>
2827
87808bd6
JB
2828 * dwarf2expr.h (struct dwarf_expr_context): New members
2829 'num_pieces' and 'pieces', for returning the result of an
2830 expression that uses DW_OP_piece.
2831 (struct dwarf_expr_piece): New struct type.
2832 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2833 pieces.
2834 (free_dwarf_expr_context): Free pieces, if any.
2835 (add_piece): New function.
2836 (execute_stack_op): Implement DW_OP_piece.
2837 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2838 expression is a list of pieces, print an error message.
2839 (dwarf2_loc_desc_needs_frame): If the expression yields
2840 pieces, and any piece is in a register, then we need a frame.
2841
5ca2e327
JB
2842 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2843 the stack until we've decided what sort of result the evaluation
2844 has produced. Use separate variables, with more specific names.
2845
2afeb6b8
RE
28462004-08-23 Richard Earnshaw <rearnsha@arm.com>
2847
2848 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2849 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2850 (arm_netbsd_init_abi_common): Register them.
2851
5885ab49
MK
28522004-08-22 Mark Kettenis <kettenis@gnu.org>
2853
fda820a6
MK
2854 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2855
1c5bf419
MK
2856 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2857 safe_frame_unwind_memory instead of target_read_memory.
2858
8cbba7c8
MK
2859 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2860 Reorder includes.
2861 (fetch_register, store_register): Remove prototypes.
2862 (child_resume): Reorganize code and comments such that it is
2863 grouped a bit more logically.
2864 (attach): Explicitly compare errno against 0.
2865 (detach): Likewise. Use perror_with_name instead of
2866 print_sys_errmsg.
2867 * Makefile.in (infptrace.o): Update dependencies.
2868
c5fa4245
MK
2869 * ia64-linux-nat.c: Update copyright year.
2870 (fetch_debug_register, store_debug_register)
2871 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2872 PTRACE_TYPE_ARG3.
2873 * config/ia64/nm-linux.h: Update copyright year.
2874 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2875
387c058c
MK
2876 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2877 from CORE_ADDR to struct frame_info *. Use
2878 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2879 (amd64_linux_sigtramp_p): Adjust for changed signature of
2880 and64_linux_sigtramp_start
2881
277215a6
MK
2882 * gdb_ptrace.h: GNU/Linux.
2883
25f6178e
MK
2884 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2885 Remove defines.
2886
652fc137
MK
2887 * infptrace.c: Include "gdb_assert.h".
2888 (PTRACE_XFER_TYPE): Remove define.
2889 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2890 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2891 Tweak comment.
2892 (fetch_inferior_registers, store_inferior_registers): Remove
2893 redundant culry braces. Tweak comment. s/regno/regnum.
2894 * Makefile.in (infptrace.o): Update dependencies.
2895
5885ab49
MK
2896 * configure.in: Change test for return type of ptrace to default
2897 to `long' instead of `int'.
2898 * configure: Regenerate.
2899
11003ae3
MK
29002004-08-21 Mark Kettenis <kettenis@gnu.org>
2901
6b95110c
MK
2902 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2903
bcb3dc3d
MK
2904 * configure.in: Check for ttrace function.
2905 * configure, config.in: Regenerate.
2906
11003ae3
MK
2907 * gdb_ptrace.h: New file.
2908 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2909 <sys/ptrace.h>.
2910 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2911 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2912 (attach): Don't define PT_ATTACH.
2913 (detach): Don't define PT_DETACH.
2914 * Makefile.in (gdb_ptrace_h): New variable.
2915 (infptrace.o): Update dependencies.
2916
f8707cac
MK
29172004-08-16 Mark Kettenis <kettenis@gnu.org>
2918
2919 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2920 instead of `int' if not already defined.
2921 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2922 PTRACE_TYPE_ARG3.
2923 * infptrace.c (call_ptrace): Revert change that replaced
2924 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2925
655c5466
MK
29262004-08-15 Mark Kettenis <kettenis@gnu.org>
2927
156e5ba7
MK
2928 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2929 Remove defines.
2930
de9a9e51
MK
2931 * linux-nat.c (kill_inferior): Add missing third and fourth
2932 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2933
88800403
MK
2934 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2935 PTRACE_TYPE_RET.
2936
849a1d7c
MK
2937 * proc-why.c (proc_prettyfprint_why): Fix format string.
2938
61ad16d1
MK
2939 * solib-osf.c (osf_current_sos): Remove unsused label.
2940
a6ed5501
MK
2941 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2942 curses headers.
2943 * configure, config.in: Regenerate.
2944 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2945 <ncurses/ncurses.h>.
2946
016ddeca
MK
2947 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2948 * config/nm-nbsd.h: Update copyright year.
2949 (PTRACE_ARG3_TYPE): Remove define.
2950
49ec097f
MK
2951 * sparc-nat.c (fetch_inferior_registers)
2952 (store_inferior_registers, sparc_xfer_wcookie):
2953 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2954
9f8e0089
MK
2955 * alphabsd-nat.c (fetch_inferior_registers):
2956 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2957 PTRACE_TYPE_ARG3.
2958 * amd64bsd-nat.c (fetch_inferior_registers)
2959 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2960 PTRACE_TYPE_ARG3.
2961 * armnbsd-nat.c: Update copyright year.
2962 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2963 (store_register, store_regs, store_fp_register, store_fp_regs):
2964 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2965 * hppabsd-nat.c (fetch_inferior_registers)
2966 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2967 PTRACE_TYPE_ARG3.
2968 * i386bsd-nat.c (fetch_inferior_registers)
2969 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2970 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2971 * m68kbsd-nat.c (fetch_inferior_registers)
2972 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2973 PTRACE_TYPE_ARG3.
2974 * m88kbsd-nat.c (fetch_inferior_registers)
2975 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2976 PTRACE_TYPE_ARG3.
2977 * mipsnbsd-nat.c: Update copyright year.
2978 (fetch_inferior_registers, store_inferior_registers):
2979 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2980 * ns32knbsd-nat.c: Update copyright year.
2981 (fetch_inferior_registers, store_inferior_registers):
2982 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2983 * ppcnbsd-nat.c (fetch_inferior_registers):
2984 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2985 PTRACE_TYPE_ARG3.
2986 * ppcobsd-nat.c (fetch_inferior_registers):
2987 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2988 PTRACE_TYPE_ARG3.
2989 * shnbsd-nat.c: Update copyright year.
2990 (fetch_inferior_registers, store_inferior_registers):
2991 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2992 * vaxbsd-nat.c (fetch_inferior_registers)
2993 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2994 PTRACE_TYPE_ARG3.
2995
655c5466
MK
2996 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2997 PTRACE_TYPE_ARG3.
2998 * infptrace.c (call_ptrace, child_resume, attach, detach)
2999 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3000 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3001 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3002 PTRACE_TYPE_ARG3.
3003
c40d0d10
MK
30042004-08-14 Mark Kettenis <kettenis@gnu.org>
3005
5cb0ff31
MK
3006 * defs.h: Remove out-of-date comment.
3007 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3008 [!GETENV_PROVIDED] (getenv): Remove prototype.
3009
5f0f34cb
MK
3010 * standalone.c: Remove file.
3011 * Makefile.in (standalone.o): Remove dependency.
3012
7532965f
MK
3013 * i386-linux-nat.c (dummy_sse_values): Remove function and
3014 prototype.
3015 (i386_linux_dr_get): Fix typo in comment.
3016 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3017
1bdc6c53
MK
3018 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3019
c40d0d10
MK
3020 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3021 from declaration.
3022 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3023 from definition.
3024
64218d3e
MK
30252004-08-13 Mark Kettenis <kettenis@gnu.org>
3026
3027 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3028 parenthesis in definition.
3029 * configure: Regenerated.
3030
926c94e7
MC
30312004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3032
3033 * PROBLEMS: Mention build/1411.
3034
69489883
NN
30352004-08-09 Robert Millan <robertmh@gnu.org>
3036
3037 Committed by Nathanael Nerode.
3038 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3039 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3040
ebb7c577
AC
30412004-08-12 Andrew Cagney <cagney@gnu.org>
3042
3043 * NEWS: Mention fixes in GDB 6.2.1.
3044 * PROBLEMS: Remove mention of mips-irix.
3045
232d697c
JB
30462004-08-11 Joel Brobecker <brobecker@gnat.com>
3047
3048 * config/powerpc/xm-aix.h: Delete.
3049 * config/powerpc/aix.mh (MH_FILE): Remove.
3050 * config/powerpc/aix432.mh (MH_FILE): Remove.
3051
72f4e82b
JB
30522004-08-11 Joel Brobecker <brobecker@gnat.com>
3053
3054 * config/powerpc/aix.mh: Remove obsolete comment.
3055 * config/powerpc/aix432.mh: Likewise.
3056
0687ccb2
JB
30572004-08-11 Joel Brobecker <brobecker@gnat.com>
3058
3059 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3060
dbf3ada7
JB
30612004-08-11 Joel Brobecker <brobecker@gnat.com>
3062
e08e1886
JB
3063 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3064 this file is now empty.
3065 * config/xm-aix4.h: Remove, this file is no longer included
3066 anywhere.
3067
30682004-08-11 Joel Brobecker <brobecker@gnat.com>
3069
3070 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3071 that file is now empty.
dbf3ada7
JB
3072 (termdef): Remove prototype, function no longer used.
3073
4c525ef6
JB
30742004-08-11 Joel Brobecker <brobecker@gnat.com>
3075
3076 * doc/gdbint.texinfo (Host Definition): Remove documentation
3077 for USE_O_NOCTTY, no longer used.
3078 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3079 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3080
82e0b968
JB
30812004-08-11 Joel Brobecker <brobecker@gnat.com>
3082
3083 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3084 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3085 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3086
f2acbe1c
MK
30872004-08-11 Mark Kettenis <kettenis@gnu.org>
3088
daa98270
MK
3089 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3090 instead of FIVE_ARG_PTRACE.
3091
f2acbe1c
MK
3092 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3093 (new_tty): Use O_NOCTTY unconditionally.
3094
cc377e6b
MK
30952004-08-10 Mark Kettenis <kettenis@gnu.org>
3096
3097 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3098 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3099 fflush on stdout.
3100
3bcc18fa
JB
31012004-08-10 Joel Brobecker <brobecker@gnat.com>
3102
3103 * xcoff_symfile_finish: Replace last call to xmfree by call
3104 to xfree.
3105
7936743b
AC
31062004-08-10 Andrew Cagney <cagney@gnu.org>
3107
cc503c8a
AC
3108 * main.c (captured_main): Delete call to init_malloc.
3109 * defs.h (init_malloc): Delete declaration.
3110 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3111 (init_malloc): Delete functions.
3112
2dc74dc1
AC
3113 * defs.h (xmfree): Delete.
3114 * utils.c (xmfree): Delete function.
3115 (xfree): Inline calls to xmfree and mfree.
3116 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3117 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3118 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3119 * somread.c (som_symfile_finish): Ditto.
3120 * objfiles.c (allocate_objfile, free_objfile):
3121 * nlmread.c (nlm_symfile_finish): Ditto.
3122 * hpread.c (hpread_symfile_finish): Ditto.
3123 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3124 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3125 * coffread.c (coff_symfile_finish): Ditto.
3126
aa2ee5f6
AC
3127 * defs.h (xmcalloc): Delete declaration.
3128 * utils.c (xmcalloc): Delete.
3129 (xcalloc): Inline calls to xmcalloc and mcalloc.
3130 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3131 xcalloc and xfree.
3132 * symtab.c (create_demangled_names_hash): Ditto.
3133
0efffb96
AC
3134 * defs.h (xmrealloc): Delete.
3135 * utils.c (xmrealloc): Delete.
3136 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3137 * symmisc.c (extend_psymbol_list): Use xrealloc.
3138 * source.c (find_source_lines): Ditto.
3139 * hpread.c (hpread_lookup_type): Ditto.
3140 * dbxread.c (add_bincl_to_list): Ditto.
3141
7936743b
AC
3142 * utils.c (xmmalloc): Delete.
3143 (xmalloc): Inline xmmalloc and mmalloc calls.
3144 (msavestring): Use xmalloc.
3145 * defs.h (xmmalloc): Delete declaration.
3146 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3147 xmmalloc.
3148 * symmisc.c (extend_psymbol_list): Ditto.
3149 * symfile.c (init_psymbol_list): Ditto.
3150 * source.c (find_source_lines): Ditto.
3151 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3152 * elfread.c (elf_symtab_read): Ditto.
3153 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3154 * coffread.c (coff_symfile_init): Ditto.
3155
252ab814
DC
31562004-08-10 David Carlton <carlton@bactrian.org>
3157
3158 * MAINTAINERS: Remove David Carlton from c++ testsuite
3159 maintainers.
3160
8f5ba92b
JG
31612004-08-10 Jerome Guitton <guitton@gnat.com>
3162
3163 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3164 print a line feed before the prompt.
3165
21749010
MK
31662004-08-10 Mark Kettenis <kettenis@gnu.org>
3167
3168 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3169
1f011ce2
JB
31702004-08-09 Joel Brobecker <brobecker@gnat.com>
3171
3172 General cleanup of the AIX xm include file:
3173 * config/xm-aix4.h (fd_set): Remove undefine.
3174 Remove include of <sys/select.h>.
3175 (HAVE_TERMIO): Remove define.
3176 (USG): Likewise.
3177 (NULL): Remove redefine.
3178 (alloca): Remove #pragma.
3179 (vfork): Remove define.
3180 (termdef): Remove.
3181 (SIGWINCH_HANDLER): Remove.
3182 (SIGWINCH_HANDLER_BODY): Remove.
3183
cf4e7692
MK
31842004-08-09 Mark Kettenis <kettenis@gnu.org>
3185
3186 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3187 GDB_OSABI_OPENBSD_ELF.
3188
ac5754fa
MK
31892004-08-07 Robert Millan <robertmh@gnu.org>
3190
3191 * bsd-kvm.c: Check for nlist.h before including it.
3192
086ec9eb
MK
31932004-08-09 Mark Kettenis <kettenis@gnu.org>
3194
bbe06c74
MK
3195 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3196 sigcontext' offset consistency checks for ancient BSD.
3197
3aa7b3b3
MK
3198 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3199
086ec9eb
MK
3200 * configure.in: Check for <sys/types.h>. Check return and
3201 argument types of ptrace.
3202 * configure, config.in: Regenerate.
3203
09991fa0
JB
32042004-08-09 Jim Blandy <jimb@redhat.com>
3205
3206 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3207 rs6000_register_sim_regno): Doc fixes.
3208
fed7ba43
JB
32092004-08-08 Joel Brobecker <brobecker@gnat.com>
3210
3211 * mips-tdep.c: Include "floatformat.h".
3212 (n32n64_floatformat_always_valid): New function.
3213 (floatformat_n32n64_long_double_big): New constant.
3214 (mips_gdbarch_init): Set size and format of long double
3215 for N32 and N64 ABIs.
3216 * Makefile.in (mips-tdep.o): Update dependencies.
3217
456fcf94
AC
32182004-08-08 Andrew Cagney <cagney@gnu.org>
3219
2f9b146e
AC
3220 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3221 print. Improve script's error messages.
3222 * gdbarch.h: Re-generate.
3223
456fcf94
AC
3224 * gdbarch.sh (pformat): New function.
3225 (float_format, double_format, long_double_format): List with bit
3226 members. Use pformat when printing.
3227 * gdbarch.c, gdbarch.h: Re-generate.
3228
69e9e646
NW
32292004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3230
3231 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3232 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3233 (ppcnbsd_supply_pcb): New function.
3234 (_initialize_ppcnbsd_nat): New prototype and function.
3235 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3236 (LOADLIBES): New variable.
3237 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3238
5ef2d0aa
AC
32392004-08-08 Andrew Cagney <cagney@gnu.org>
3240
3241 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3242 (builtin_type_ieee_double, builtin_type_ia64_quad)
3243 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3244 BE/LE floating-point types.
3245 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3246 (builtin_type_ieee_double, builtin_type_ia64_quad)
3247 (builtin_type_ia64_spill): Declare.
3248 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3249 (floatformat_ieee_double, floatformat_arm_ext)
3250 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3251 of LE/BE floatformats.
3252 * doublest.h: (struct floatformat, floatformat_ieee_single)
3253 (floatformat_ieee_double, floatformat_arm_ext)
3254 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3255
5c7f2947
MK
32562004-08-08 Mark Kettenis <kettenis@gnu.org>
3257
ecac404d
MK
3258 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3259
9b8607ce
MK
3260 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3261 instead of regcache_raw_supply when storing the registers.
3262
f6052080
MK
3263 * i386gnu-nat.c: Update copyright year.
3264 (gnu_store_registers): Don't use deprecated_registers and
3265 deprecated_registers_valid. Use regcache_valid_p and
3266 regcache_raw_supply instead.
3267
17777823
MK
3268 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3269 frame_pc_unwind.
3270
5240ceac
MK
3271 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3272 variables. Incapitalized "process".
3273
5c7f2947
MK
3274 * configure.in: Add cursesX to the list of possible curses libs.
3275 Add cursesX.h to the list of possible curses headers.
3276 * configure, config.in: Regenerate.
3277
da7d81e3
NW
32782004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3279
3280 * configure.in: Test for struct lwp in <sys/lwp.h>.
3281 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3282 the offset of l_addr in struct lwp.
3283
7f245d65
NW
32842004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3285
3286 * bsd-kvm.c: Include "gdbcore.h"
3287 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3288
47b3f456
AC
32892004-08-07 Andrew Cagney <cagney@gnu.org>
3290
70bd8e24
AC
3291 * gdbtypes.c (build_flt, build_complex): New functions.
3292 (gdbtypes_post_init): Use.
3293
9b0dea39
AC
3294 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3295
5cf7abac
AC
3296 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3297 through to builtin_type_uint128.
3298
64d2b26d
AC
3299 * c-exp.y: Use builtin_type function to obtain builtin types.
3300
7ad6570d
AC
3301 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3302 builtin_uint128.
3303 * gdbtypes.c (gdbtypes_post_init): Update.
3304 (build_gdbtypes): Move initialization of builtin_type_int0
3305 through to builtin_type_uint128 from here ...
3306 (_initialize_gdbtypes): ... to here.
3307 * d10v-tdep.c (d10v_register_type): Update.
3308
47b3f456
AC
3309 * doublest.c: Update copyright.
3310 (floatformat_from_length): Call error when floatformat is NULL.
3311 (extract_floating_by_length): Remove NULL fmt check.
3312 (store_floating_by_length): Ditto.
3313
0a8146bf
AC
33142004-08-07 Andrew Cagney <cagney@gnu.org>
3315
3316 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3317 that the register is valid.
3318
c0ccb908
MK
33192004-08-05 Mark Kettenis <kettenis@chello.nl>
3320
8e6bed05
MK
3321 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3322 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3323 struct frame_info *. Use safe_frame_unwind_memory instead of
3324 deprecated_read_memory_nobpt.
3325 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3326 changed signature of i386_linux_sigtramp_start and
3327 i386_linux_rt_sigtramp_start.
3328
24f9f5e3
MK
3329 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3330 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3331 instead of deprecated_read_memory_nobpt.
3332 (i386nbsd_sigtramp_p): Adjust for changed signature of
3333 i386nbsd_sigtramp_offset.
3334
c822af0c
MK
3335 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3336 safe_frame_unwind_memory instead of target_read_memory.
3337
c0ccb908
MK
3338 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3339 !NO_SYS_FILE.
3340 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3341 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3342 (_initialize_kernel_u_addr): Remove prototype and function.
3343 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3344 !NO_SYS_FILE.
3345 * xcoffread.c: Likewise.
3346
b9e1c0d6
MK
33472004-08-06 Mark Kettenis <kettenis@gnu.org>
3348
3349 * vax-nat.c: New file.
3350 * vaxbsd-nat.c: Tweak comment.
3351 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3352 vaxnbsd-tdep.c.
3353 (vax-nat.o): New dependency.
3354 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3355 (vax-*-ultrix2*): Remove.
3356 * config/vax/vax.mh: New file.
3357 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3358 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3359 (vax_register_u_addr): New prototype.
3360 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3361 * config/vax/vaxult2.mh: Remove file.
3362 * config/vax/vaxult.mh: Remove file.
3363 * config/vax/vaxbsd.mh: Remove file.
3364 * config/vax/vax.mt (TM_FILE): Remove.
3365 * config/vax/tm-vaxbsd.h: Remove file.
3366
9ad7bec7
JB
33672004-08-06 Joel Brobecker <brobecker@gnat.com>
3368
3369 * aix-thread.c (get_signaled_thread): New function.
3370 (iter_trap): Delete, no longer used.
3371 (iter_tid): New function.
3372 (pd_update): Find the thread that received the SIGTRAP signal
3373 by first locating the kernel thread, and then finding its
3374 associated thread.
3375
bf0d233d
UW
33762004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3377
3378 * lin-lwp.c (child_wait): Continue inferior after processing
3379 PTRACE_EVENT_CLONE event.
3380
d0f853e1
NN
33812004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3382
3383 * MAINTAINERS: Add self to Write-After-Approval.
3384
ab14aeb0
JJ
33852004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3386
3387 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3388 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3389
9c8dbfa9
AC
33902004-08-05 Andrew Cagney <cagney@gnu.org>
3391
c8f3ca46
AC
3392 * config/xm-sysv4.h: Delete file.
3393 * config/mips/xm-irix5.h: Delete file.
3394 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3395 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3396 * config/ia64/xm-aix.h: Delete file.
3397 * config/ia64/aix.mh (XM_FILE): Delete.
3398 * config/pa/xm-hppah.h: Delete file.
3399 * config/pa/hpux11w.mh (XM_FILE): Delete.
3400 * config/pa/hpux11.mh (XM_FILE): Delete.
3401 * config/pa/hpux1020.mh (XM_FILE): Delete.
3402 * config/pa/hppahpux.mh (XM_FILE): Delete.
3403
5f7daaff
AC
3404 * config/alpha/xm-alphalinux.h: Delete file.
3405 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3406 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3407 * config/alpha/xm-alphaosf.h: Delete file.
3408 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3409 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3410 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3411 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3412
69babf95
AC
3413 * config/i386/xm-i386v.h: Delete file.
3414 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3415 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3416 * config/i386/xm-i386sco.h: Delete file.
3417 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3418 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3419 * config/i386/xm-i386v4.h: Delete file.
3420 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3421 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3422 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3423 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3424
6f009c8a
AC
3425 * config/vax/xm-vax.h: Delete file.
3426 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3427 * config/vax/xm-vaxult2.h: Delete file.
3428 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3429 * config/vax/vaxult2.mh (XM_FILE): Delete.
3430 * config/vax/xm-vaxult.h: Delete file.
3431 * config/vax/vaxult.mh (XM_FILE): Delete.
3432 * config/vax/xm-vaxbsd.h: Delete file.
3433 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3434
9c8dbfa9
AC
3435 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3436 * gdbarch.h, gdbarch.c: Re-generate.
3437 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3438 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3439 * frame.h: Delete deprecated_read_fp from comments.
3440 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3441 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3442
84367a3e
MK
34432004-08-04 Mark Kettenis <kettenis@gnu.org>
3444
9c8e3411
MK
3445 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3446 trampoline in OpenBSD 3.5-current.
3447
b87bc0d8
MK
3448 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3449 SSE registers.
3450
84367a3e
MK
3451 * Makefile.in: Remove embedded page breaks.
3452
a44bddec
JB
34532004-08-04 Jim Blandy <jimb@redhat.com>
3454
7ab3286f
JB
3455 * regcache.c (regcache_raw_read): Assert that, after calling
3456 target_fetch_registers, the register we're reading is cached.
3457
a44bddec
JB
3458 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3459 a call to 'internal_error', with a more helpful error message.
3460 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3461 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3462
35124113
AC
34632004-08-04 Andrew Cagney <cagney@gnu.org>
3464
3465 * Makefile.in: Update dependencies.
3466
9f643768
JB
34672004-08-04 Jim Blandy <jimb@redhat.com>
3468
6ced10dd
JB
3469 Change the layout of the PowerPC E500 raw register cache to allow
3470 the lower 32-bit halves of the GPRS to be their own raw registers,
3471 not pseudoregisters.
3472 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3473 add ppc_ev0_upper_regnum flag.
3474 * rs6000-tdep.c: #include "reggroups.h".
3475 (spe_register_p): Recognize the ev upper half registers as SPE
3476 registers.
3477 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3478 registers.
3479 (e500_move_ev_register): New function.
3480 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3481 vector registers are the pseudo-registers now, formed by splicing
3482 together the gprs and the upper-half registers.
3483 (e500_register_reggroup_p): New function.
3484 (P): Macro deleted.
3485 (P8, A4): New macro.
3486 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3487 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3488 macros.
3489 (registers_e500): Rearrange register set so that the raw register
3490 set contains 32-bit GPRs and upper-half registers, and the SPE
3491 vector registers become pseudo-registers.
3492 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3493 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3494 register numbers are now the same for the E500 as they are for
3495 other PowerPC variants. Register e500_register_reggroup_p as the
3496 register group function for the E500.
3497 * Makefile.in (rs6000-tdep.o): Update dependencies.
3498
3499 Adapt PPC E500 native support to the new raw regcache layout.
3500 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3501 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3502 (fetch_spe_register, store_spe_register): Handle fetching/storing
3503 all the SPE registers at once, if regno == -1. These now take
3504 over the job of fetch_spe_registers and store_spe_registers.
3505 (fetch_spe_registers, store_spe_registers): Deleted.
3506 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3507 unconditionally; they're always raw. Fetch/store SPE upper half
3508 registers, if present, instead of ev registers.
3509 (fetch_register, store_register): Remove sanity checks: gprs are
3510 never pseudo-registers now, so we never need to even mention any
3511 registers that are ever pseudoregisters.
3512
9f643768
JB
3513 Use a fixed register numbering when communicating with the PowerPC
3514 simulator.
3515 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3516 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3517 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3518 New functions.
3519 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3520 init_sim_regno_table.
3521 * Makefile.in (gdb_sim_ppc_h): New variable.
3522 (rs6000-tdep.o): Update dependencies.
3523
1e2279c8
AC
35242004-08-02 Andrew Cagney <cagney@gnu.org>
3525
1d94326f
AC
3526 * cris-tdep.c (cris_register_size): Restore function, still used
3527 locally.
3528
331ae7ed
AC
3529 * gdbarch.sh (deprecated_target_read_fp)
3530 (deprecated_frame_locals_address, deprecated_frame_args_address)
3531 (deprecated_frame_chain_valid, deprecated_frame_chain)
3532 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3533 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3534 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3535 * gdbarch.h, gdbarch.c: Re-generate.
3536 * regcache.c (deprecated_read_fp): Do not call
3537 DEPRECATED_TARGET_READ_FP_P.
3538 * infcmd.c (default_print_registers_info): Do not call
3539 DEPRECATED_DO_REGISTERS_INFO.
3540 * frame-base.c (default_frame_locals_address): Do not call
3541 DEPRECATED_FRAME_LOCALS_ADDRESS.
3542 (default_frame_args_address): Do not call
3543 DEPRECATED_FRAME_ARGS_ADDRESS.
3544
1e2279c8
AC
3545 * gdbarch.sh (deprecated_register_raw_size)
3546 (deprecated_register_virtual_size:int): Delete.
3547 * gdbarch.h, gdbarch.c: Re-generate.
3548 * cris-tdep.c (cris_register_size): Delete.
3549 (cris_gdbarch_init): Update.
3550 * alpha-tdep.c (alpha_register_raw_size)
3551 (alpha_register_virtual_size): Delete.
3552 (alpha_gdbarch_init): Update.
3553
a90c06b4
AC
3554 * gdbarch.sh (deprecated_register_virtual_type)
3555 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3556 (deprecated_dummy_write_sp): Delete.
3557 * gdbarch.h, gdbarch.c: Re-generate.
3558
f42accbe
AC
3559 * gdbarch.sh (deprecated_register_bytes): Delete.
3560 * gdbarch.h, gdbarch.c: Re-generate.
3561 * regcache.c (deprecated_register_bytes): New function.
3562 * regcache.h (deprecated_register_bytes): Declare.
3563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3564 * v850-tdep.c (v850_gdbarch_init): Update.
3565 * sh64-tdep.c (sh64_gdbarch_init): Update.
3566 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3567 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3568 * mcore-tdep.c (mcore_gdbarch_init): Update.
3569 * cris-tdep.c (cris_gdbarch_init): Update.
3570 * arm-tdep.c (arm_gdbarch_init): Update.
3571 * remote.c (init_remote_state): Update.
3572 * remote-vx.c (vx_prepare_to_store): Update.
3573 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3574 * irix5-nat.c (fetch_core_registers): Update.
3575 * cris-tdep.c (cris_register_bytes_ok): Update.
3576 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3577
45c9dd44
AC
3578 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3579 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3580 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3581 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3582 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3583 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3584 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3585 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3586 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3587 with mips_insn16 and mips_insn32.
3588
3acba339
AC
3589 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3590 * rs6000-tdep.c (rs6000_push_dummy_call)
3591 (rs6000_extract_return_value): Use register_size.
3592 * xstormy16-tdep.c (xstormy16_get_saved_register)
3593 (xstormy16_extract_return_value): Ditto.
3594 * valops.c (value_assign): Ditto.
3595 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3596 * v850-tdep.c (v850_extract_return_value): Ditto.
3597 * tracepoint.c (collect_symbol): Ditto.
3598 * target.c (debug_print_register): Ditto.
3599 * stack.c (frame_info): Ditto.
3600 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3601 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3602 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3603 (store_register_using_P): Ditto.
3604 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3605 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3606 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3607 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3608 * regcache.c (deprecated_read_register_bytes)
3609 (deprecated_write_register_bytes, read_register)
3610 (write_register): Ditto.
3611 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3612 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3613 * monitor.c (monitor_supply_register, monitor_fetch_register)
3614 (monitor_store_register): Ditto.
3615 * mn10300-tdep.c (mn10300_pop_frame_regular)
3616 (mn10300_print_register): Ditto.
3617 * mipsv4-nat.c (fill_fpregset): Ditto.
3618 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3619 (mips64_fill_fpregset): Ditto.
3620 * mi/mi-main.c (register_changed_p, get_register)
3621 (mi_cmd_data_write_register_values): Ditto.
3622 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3623 * irix5-nat.c (fill_gregset, fetch_core_registers):
3624 * infrun.c (write_inferior_status_register): Ditto.
3625 * infptrace.c (fetch_register, store_register): Ditto.
3626 * infcmd.c (default_print_registers_info): Ditto.
3627 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3628 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3629 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3630 * hpux-thread.c (hpux_thread_fetch_registers)
3631 (hpux_thread_store_registers): Ditto.
3632 * hppah-nat.c (store_inferior_registers, fetch_register):
3633 * findvar.c (value_from_register): Ditto.
3634 * dve3900-rom.c (fetch_bitmapped_register):
3635 * cris-tdep.c (cris_gdbarch_init): Ditto.
3636 * alpha-tdep.h: Ditto.
3637 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3638
01e1877c
AC
3639 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3640 DEPRECATED_REGISTER_RAW_SIZE from comments.
3641 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3642 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3643 DEPRECATED_REGISTER_RAW_SIZE.
3644 * findvar.c (value_of_register): Simplify by assuming that the
3645 registers raw and virtual sizes are identical.
3646 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3647 comment.
3648 * arch-utils.c (generic_register_size): Simplify by assuming
3649 register_type.
3650
73f458fb
AC
3651 * regcache.c (legacy_read_register_gen, real_register)
3652 (legacy_write_register_gen): Delete, not used.
3653
336a3131
AC
3654 * regcache.c (struct regcache_descr): Delete legacy_p.
3655 (init_legacy_regcache_descr): Delete function.
3656 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3657 Do not use deprecated register functions.
3658 (regcache_raw_read, deprecated_write_register_gen):
3659 (deprecated_read_register_gen, regcache_raw_write): Delete code
3660 predicated on legacy_p.
3661 (register_size): Delete check against register raw size.
3662
c1d546cd
AC
3663 * cris-tdep.c (cris_register_type): Replace
3664 cris_register_virtual_type.
3665 (cris_gdbarch_init): Update, set register_type.
3666
48c2c0a6
AC
3667 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3668 * gdbarch.h, gdbarch.c: Re-generate.
3669 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3670 (arm_gdbarch_init) Do not set frameless function invocation.
3671 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3672 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3673 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3674 (frv_gdbarch_init): Do not set frameless function invocation.
3675 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3676 * sh-tdep.c (sh_gdbarch_init): Ditto.
3677 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3678 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3679 * avr-tdep.c (avr_gdbarch_init): Ditto.
3680
474093a6
AC
3681 * blockframe.c (legacy_frame_chain_valid): Delete function.
3682
3c109c8b
AC
3683 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3684 and pc. Update comments.
3685 (pc_in_dummy_frame): Delete function.
3686 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3687 use the "id".
3688 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3689 call_hi, top and pc, use the id.
3690 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3691
96860204
AC
3692 * dummy-frame.c: Include "gdb_string.h".
3693 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3694 (generic_save_dummy_frame_tos): Delete.
3695 (dummy_frame_push): New function, replaces above.
3696 * dummy-frame.h: Update copyright.
3697 (dummy_frame_push): Declare.
3698 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3699 (generic_save_call_dummy_addr): Delete declarations.
3700 * infcall.c: Include "dummy-frame.h".
3701 (call_function_by_hand): Add locals caller_regcache,
3702 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3703 with call to frame_save_as_regcache plus cleanup. Delete calls to
3704 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3705 Move clear_proceed_status to just before the resume, add call to
3706 dummy_frame_push (discard cleanup).
3707 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3708 (dummy-frame.o): Add $(gdb_string_h).
3709
d67ec5db
AC
37102004-08-01 Andrew Cagney <cagney@gnu.org>
3711
3712 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3713 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3714 * dummy-frame.c (find_dummy_frame): Delete.
3715 (struct dummy_frame_cache, dummy_frame_sniffer)
3716 (dummy_frame_prev_register, dummy_frame_this_id)
3717 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3718 frame unwinder using a dummy_frame_cache.
3719
a81dcb05
AC
37202004-08-01 Andrew Cagney <cagney@gnu.org>
3721
3722 * frame.h (frame_save_as_regcache): Declare.
3723 * frame.c (frame_save_as_regcache): New function.
3724 (do_frame_read_register): Replace do_frame_unwind_register.
3725 (frame_pop): Use frame_save_as_regcache.
3726 * dummy-frame.c (generic_push_dummy_frame): Use
3727 frame_save_as_regcache.
3728
aa495d11
JB
37292004-08-01 Joel Brobecker <brobecker@gnat.com>
3730
3731 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3732 file as included until we record the first line in the linetable.
3733
ff65ac78
AC
37342004-08-01 Andrew Cagney <cagney@gnu.org>
3735
3736 * frame.h (deprecated_pop_dummy_frame)
3737 (deprecated_read_register_dummy)
3738 (deprecated_generic_find_dummy_frame): Delete.
3739 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3740 (deprecated_read_register_dummy)
3741 (deprecated_find_dummy_frame_regcache)
3742 (discard_innermost_dummy)
3743 (deprecated_pop_dummy_frame): Delete.
3744 (dummy_frame_this_id): Simplify.
3745 (struct dummy_frame): Delete "fp" and "sp".
3746 (find_dummy_frame): Simplify.
3747 (generic_push_dummy_frame): Do not set "fp" or "sp".
3748 (fprint_dummy_frames): Do not print "fp" and "sp"
3749
37bdc87e
MK
37502004-08-01 Mark Kettenis <kettenis@gnu.org>
3751
3752 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3753 (struct i386_insn): New structure.
3754 (i386_match_insn): New function.
3755 (i386_frame_setup_skip_insns): New variable.
3756 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3757 array i386_frame_setup_insns of instructions that should be
3758 skipped inside the frame setup sequence.
3759
8241eaa6
AC
37602004-08-01 Andrew Cagney <cagney@gnu.org>
3761
5bc602c7
AC
3762 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3763 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3764 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3765 * stack.c (frame_info): Delete references to
3766 DEPRECATED_FRAME_INIT_SAVED_REGS and
3767 deprecated_get_frame_saved_regs.
3768 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3769 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3770 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3771 (frame_unwind_register_signed)
3772 (frame_unwind_register_unsigned)
3773 (frame_unwind_unsigned_register): Use register_size.
3774 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3775 (deprecated_frame_xmalloc_with_cleanup)
3776 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3777 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3778
03d363a1
AC
3779 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3780 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3781 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3782 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3783
8241eaa6
AC
3784 * infcall.c (call_function_by_hand): Do not use
3785 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3786 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3787 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3788 DEPRECATED_STACK_ALIGN.
3789
f00df8b7
AC
37902004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3791
3792 Committed by Andrew Cagney.
3793 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3794
eec63939
AC
37952004-08-01 Andrew Cagney <cagney@gnu.org>
3796
3797 * mips-tdep.c (mips16_frame_cache)
3798 (mips16_frame_this_id, mips16_frame_prev_register)
3799 (mips16_frame_unwind, mips16_frame_sniffer)
3800 (mips16_frame_base_address, mips16_frame_base)
3801 (mips16_frame_base_sniffer, mips32_frame_cache)
3802 (mips32_frame_this_id, mips32_frame_prev_register)
3803 (mips32_frame_unwind, mips32_frame_sniffer)
3804 (mips32_frame_base_address, mips32_frame_base)
3805 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3806 separate heuristic mips16 and mips32 unwinders.
3807 (mips_stub_frame_cache, mips_stub_frame_this_id)
3808 (mips_stub_frame_prev_register)
3809 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3810 (mips_stub_frame_base_address, mips_stub_frame_base)
3811 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3812 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3813 match true mdebug frames.
3814 (non_heuristic_proc_desc): Add forward declaration.
3815
e66299b3
AC
38162004-08-01 Andrew Cagney <cagney@gnu.org>
3817
83cbbf3e
AC
3818 * config/mips/tm-irix6.h: Delete file.
3819 * config/mips/tm-irix5.h: Delete file.
3820 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3821 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3822
22d41b37
AC
3823 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3824 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3825 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3826 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3827 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3828 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3829 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3830 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3831 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3832 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3833 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3834 (TARGET_SIGNAL_RAW_VALUES): Delete.
3835 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3836 Delete.
3837 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3838 (TARGET_HW_WATCH_LIMIT): Delete.
3839 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3840 * minimon.h: Delete file.
3841
e66299b3
AC
3842 * trad-frame.c (trad_frame_get_this_base)
3843 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3844 functions.
3845 * trad-frame.h (trad_frame_set_this_base)
3846 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3847
1f67027d
AC
38482004-07-31 Andrew Cagney <cagney@gnu.org>
3849
3850 * trad-frame.c (trad_frame_get_prev_register): Rename
3851 trad_frame_get_prev_register.
3852 * vax-tdep.c (vax_frame_prev_register): Update.
3853 * trad-frame.h: Update.
3854 * trad-frame.c (trad_frame_get_register): Update.
3855 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3856 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3857 Update.
3858 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3859 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3860 Update.
3861 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3862 Update.
3863 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3864 Update.
3865 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3866 Update.
3867 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3868 Update.
3869 * s390-tdep.c (s390_frame_prev_register)
3870 (s390_stub_frame_prev_register)
3871 (s390_sigtramp_frame_prev_register): Update.
3872 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3873 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3874 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3875 * m88k-tdep.c (m88k_frame_prev_register)
3876 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3877 * m32r-tdep.c (m32r_frame_prev_register): Update.
3878 * hppa-tdep.c (hppa_frame_prev_register_helper)
3879 * frv-tdep.c (frv_frame_prev_register): Update.
3880 * d10v-tdep.c (d10v_frame_prev_register): Update.
3881 * cris-tdep.c (cris_frame_prev_register): Update.
3882 * avr-tdep.c (avr_frame_prev_register): Update.
3883 * arm-tdep.c (arm_prologue_prev_register)
3884 (arm_sigtramp_prev_register): Update.
3885
c1bf6f65
AC
38862004-07-31 Andrew Cagney <cagney@gnu.org>
3887
3888 * frame.h (legacy_saved_regs_unwind)
3889 (legacy_frame_chain_valid, legacy_frame_p)
3890 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3891 * dummy-frame.c (dummy_frame_this_id): Simplify.
3892 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3893 * frame.c (struct frame_info): Delete the field "type".
3894 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3895 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3896 (legacy_saved_regs_unwind, legacy_frame_p)
3897 (frame_type_from_pc): Delete.
3898 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3899 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3900
dc856692
MK
39012004-07-31 Mark Kettenis <kettenis@gnu.org>
3902
5a5effe1
MK
3903 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3904 indentation.
3905
d4fd50a6
MK
3906 * mips-nat.c: Remove file.
3907 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3908 (mips-nat.o): Remove dependency.
3909
2689df5a
MK
3910 * infptrace.c: Update copyright year.
3911 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3912 explicitly setting the buffer to all zeroes.
3913
dc856692
MK
3914 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3915 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3916
763910e0
AC
39172004-07-30 Andrew Cagney <cagney@gnu.org>
3918
3919 * GDB 6.2 released from gdb_6_2-branch.
3920
0b66e38c
EZ
39212004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3922
3923 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3924
3925 * exec.c (exec_file_attach):
3926 * nto-tdep.c (nto_find_and_open_solib):
3927 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3928 * solib.c (solib_open):
3929 * somsolib.c (som_solib_sizeof_symbol_table):
3930 * source.c (is_regular_file, openp, open_source_file):
3931 * symfile.c (symfile_bfd_open):
3932 * wince.c (upload_to_device): Differentiate between the search for
3933 binary and source files.
3934
be7d7357
AC
39352004-07-30 Andrew Cagney <cagney@gnu.org>
3936
3937 * complaints.c (_initialize_complaints): Pass NULL to
3938 add_setshow_zinteger_cmd for help_doc.
3939 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3940
ddc9cd0f
AC
39412004-07-30 Andrew Cagney <cagney@gnu.org>
3942
3943 Fix PR i18n/761.
3944 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3945 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3946 $(PACKAGE).pot and update-po.
3947 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3948 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3949 (update-po): New rules.
3950 (localedir): Define using autoconf.
3951 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3952 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3953 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3954 * configure.in: Generate CATALOGS and LINGUAS from contents of
3955 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3956 * configure: Re-generate.
3957 * po/gdbtext: New file
3958
e92f3704
JG
39592004-07-30 Jerome Guitton <guitton@gnat.com>
3960
3961 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3962 order.
3963
b0f35d58
DL
39642004-07-30 David Lecomber <dsl@sources.redhat.com>
3965
3966 * dwarf2read.c (read_file_scope): Set producer if attribute
3967 present.
3968 (struct dwarf2_cu): Added new member producer.
3969
ce7d4522
JG
39702004-07-30 Jerome Guitton <guitton@gnat.com>
3971
3972 * inflow.c (kill_command): release file handles in BFD.
3973 * exec.c (exec_file_attach): Ditto.
3974 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3975
05ee07c7
AC
39762004-07-29 Andrew Cagney <cagney@gnu.org>
3977
3978 * PROBLEMS (mips-irix): Note that it is broken.
3979
62eceb47
AC
39802004-07-29 Andrew Cagney <cagney@gnu.org>
3981
e57b8d41
AC
3982 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3983 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3984
d334389b
AC
3985 * config/xm-nbsd.h: Delete file.
3986 * config/arm/xm-nbsd.h: Delete file.
3987 * config/i386/xm-nbsd.h: Delete file.
3988 * config/ns32k/xm-nbsd.h: Delete file.
3989 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3990 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3991 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3992 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3993 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3994
e910f676
AC
3995 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3996 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3997 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3998 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3999 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4000 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4001
6fa856b9
AC
4002 * config/powerpc/xm-linux.h: Delete empty file.
4003 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4004 * config/powerpc/linux.mh (XM_FILE): Delete.
4005 * config/m68k/xm-linux.h: Delete empty file.
4006 * config/m68k/linux.mh (XM_FILE): Delete.
4007 * config/ia64/xm-linux.h: Delete empty file.
4008 * config/ia64/linux.mh (XM_FILE): Delete.
4009 * config/arm/xm-linux.h: Delete empty file.
4010 * config/arm/linux.mh (XM_FILE): Delete.
4011
471ae5ae
AC
4012 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4013 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4014 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4015 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4016 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4017 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4018 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4019 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4020
62eceb47
AC
4021 * config/m68k/xm-m68k.h: Delete file.
4022 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4023 copyright.
4024 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4025 * config/pa/xm-linux.h: Delete empty file.
4026 * config/pa/linux.mh (XM_FILE): Delete.
4027 * config/i386/xm-i386.h: Delete empty file.
4028 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4029 "i386/xm-i386.h".
4030 * config/i386/obsdaout.mh (XM_FILE): Delete.
4031 * config/i386/obsd64.mh (XM_FILE): Delete.
4032 * config/i386/fbsd64.mh (XM_FILE): Delete.
4033 * config/i386/nto.mh (XM_FILE): Delete.
4034 * config/i386/obsd.mh (XM_FILE): Delete.
4035 * config/i386/linux64.mh (XM_FILE): Delete.
4036 * config/i386/linux.mh (XM_FILE): Delete.
4037 * config/i386/i386sol2.mh (XM_FILE): Delete.
4038 * config/i386/i386gnu.mh (XM_FILE): Delete.
4039 * config/i386/fbsd.mh (XM_FILE): Delete.
4040 * config/i386/nbsd64.mh (XM_FILE): Delete.
4041
c35f4ffc
AC
40422004-07-29 Andrew Cagney <cagney@gnu.org>
4043
4044 * config/pa/xm-linux.h: Do not include "floatformat.h".
4045 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4046 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4047 * config/i386/xm-i386.h: Do not include "floatformat.h".
4048 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4049 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4050 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4051 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4052 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4053 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4054 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4055 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4056 * configure, config.in: Regenerate.
4057 * configure.host (gdb_host_float_format, gdb_host_double_format)
4058 (gdb_host_long_double_format): Set according to the host.
4059
624a44a3
AC
40602004-07-29 Andrew Cagney <cagney@gnu.org>
4061
4062 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4063
0dea2468
AC
40642004-07-28 Andrew Cagney <cagney@gnu.org>
4065
4066 * PROBLEMS: Mention threads/1650.
4067 * NEWS: Mention the NPTL fix.
4068
b3f42336
AC
40692004-07-28 Andrew Cagney <cagney@gnu.org>
4070
4071 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4072 (add_setshow_cmd_full): Make static.
4073 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4074 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4075 * cli/cli-decode.c (add_setshow_filename_cmd)
4076 (add_setshow_string_cmd): New functions.
4077 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4078 * mips-tdep.c (_initialize_mips_tdep): Update.
4079 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4080 * cli/cli-logging.c (_initialize_cli_logging): Update.
4081 * complaints.c (_initialize_complaints): Update.
4082 * remote.c (_initialize_remote): Update.
4083
3b64bf98
AC
40842004-07-28 Andrew Cagney <cagney@gnu.org>
4085
4086 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4087 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4088 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4089 print parameters. Make string parameters constant.
4090 * command.h: Update. Update copyright.
4091 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4092 * observer.c (_initialize_observer): Ditto.
4093 * frame.c (_initialize_frame): Ditto.
4094 * complaints.c (_initialize_complaints): Ditto.
4095 * maint.c (_initialize_maint_cmds): Ditto.
4096 * target.c (initialize_targets): Ditto.
4097 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4098 * infcall.c (_initialize_infcall): Ditto.
4099 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4100 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4101 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4102 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4103 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4104
e9667a65
AC
41052004-07-28 Andrew Cagney <cagney@gnu.org>
4106
54a5b07d
AC
4107 * gdbtypes.c (lookup_primitive_typename): Delete function.
4108 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4109 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4110 * gdbtypes.c (lookup_typename): Ditto.
4111 * f-exp.y (yylex): Ditto.
4112 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4113
e9667a65
AC
4114 * scm-lang.c (c_builtin_types): Delete extern declaration.
4115 (scm_language_defn): Replace
4116 string_char_type and primitive_type_vector with
4117 la_language_arch_info.
4118 * jv-lang.c (java_language_defn): Replace
4119 string_char_type and primitive_type_vector with
4120 la_language_arch_info.
4121 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4122 c_builtin_types in comment.
4123 * c-lang.h (struct language_arch_info): Declare opaque.
4124 (c_language_arch_info): Declare.
4125 (c_builtin_types): Delete declaration.
4126 * c-lang.c (c_language_arch_info): Set string_char_type to
4127 builtin_char, not builtin_true_char. Make global.
4128 (c_builtin_types): Delete array.
4129 (asm_language_defn, minimal_language_defn): Replace
4130 string_char_type and primitive_type_vector with
4131 la_language_arch_info.
4132
685419e2
AC
41332004-07-28 Andrew Cagney <cagney@gnu.org>
4134
4135 * gdbtypes.h (struct builtin_type): Rename true_char to
4136 builtin_true_char.
4137 * gdbtypes.c (gdbtypes_post_init): Update.
4138 * c-lang.c (arch_info): New function.
4139 (enum c_primitive_types): New enum.
4140 (c_language_defn): Instead of string_char_type and
4141 primitive_type_vector set la_language_arch_info.
4142
5a44ea29
AC
41432004-07-28 Andrew Cagney <cagney@gnu.org>
4144
4145 * language.h (struct language_arch_info): Fix typo
4146 s/primative/primitive/.
4147 * gdbtypes.c (lookup_primitive_typename): Ditto.
4148 * language.c (language_lookup_primitive_type_by_name)
4149 (unknown_language_arch_info): Ditto.
4150
f290d38e
AC
41512004-07-27 Andrew Cagney <cagney@gnu.org>
4152
4153 * defs.h (enum language): Add nr_languages.
4154 * language.h (struct language_arch_info): Define.
4155 (struct language_defn): Add la_language_arch_info.
4156 (language_lookup_primative_type_by_name): Declare.
4157 (language_string_char_type): Declare.
4158 * language.c (_initialize_language, language_gdbarch_post_init)
4159 (struct language_gdbarch, language_gdbarch_data): Implement
4160 per-architecture language information.
4161 (unknown_language_arch_info, language_string_char_type)
4162 (language_lookup_primative_type_by_name): New functions.
4163 (unknown_language_defn, auto_language_defn)
4164 (local_language_defn): Set la_language_arch_info to
4165 unknown_language_arch_info.
4166 (unknown_builtin_types): Delete.
4167 * gdbtypes.c (lookup_primitive_typename): Use
4168 language_lookup_primative_type_by_name.
4169 (create_string_type): Use language_string_char_type.
4170 * values.c (value_from_string): Use language_string_char_type.
4171 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4172 * p-lang.c (pascal_language_defn): Ditto.
4173 * m2-lang.c (m2_language_defn): Ditto.
4174 * jv-lang.c (java_language_defn): Ditto.
4175 * objc-lang.c (objc_language_defn): Ditto.
4176 * f-lang.c (f_language_defn): Ditto.
4177 * c-lang.c (c_language_defn, cplus_language_defn)
4178 (asm_language_defn, minimal_language_defn): Ditto.
4179
000177f0
AC
41802004-07-27 Andrew Cagney <cagney@gnu.org>
4181
4182 * gdbtypes.h (struct builtin_type): Declare.
4183 (builtin_type): Declare.
4184 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4185 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4186 (gdbtypes_post_init): New function.
4187 (builtin_type): New function.
4188
e22f895c
KI
41892004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4190
4191 * remote-m32r-sdi.c: Fix breakpoint bug.
4192 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4193 recv_char_data, recv_long_data): New functions to replace communication
4194 sequences.
4195
536517dd
MC
41962004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4197
4198 Document PR threads/1650.
4199 * PROBLEMS (Threads): Document problem with many threads
4200
a0a44d18
AC
42012004-07-26 Andrew Cagney <cagney@gnu.org>
4202
4203 * gdb-mi.el: Move from here ...
4204 * mi/gdb-mi.el: ... to here.
4205
7ac4ac06
AC
42062004-07-26 Andrew Cagney <cagney@gnu.org>
4207
4208 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4209 * main.c (captured_main): When in batch mode always detach.
4210
a1b461bf
AC
42112004-07-26 Andrew Cagney <cagney@gnu.org>
4212
4213 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4214 and h8300 as broken.
4215 * NEWS: END-OF-LIFE frame compatibility module.
4216 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4217 specific comments.
4218
cb1a6d5f
AC
42192004-07-26 Andrew Cagney <cagney@gnu.org>
4220
4221 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4222 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4223 * wince.c (_initialize_wince): Update.
4224 * win32-nat.c (_initialize_win32_nat): Update.
4225 * varobj.c (_initialize_varobj): Update.
4226 * valops.c (_initialize_valops): Update.
4227 * utils.c (initialize_utils, initialize_utils): Update.
4228 * tui/tui-win.c (_initialize_tui_win): Update.
4229 * top.c (init_main): Update.
4230 * symfile.c (_initialize_symfile): Update.
4231 * source.c (_initialize_source): Update.
4232 * somsolib.c (_initialize_som_solib): Update.
4233 * solib.c (_initialize_solib): Update.
4234 * solib-frv.c (_initialize_frv_solib): Update.
4235 * serial.c (_initialize_serial): Update.
4236 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4237 * remote.c (_initialize_remote, _initialize_remote): Update.
4238 * remote-vx.c (_initialize_vx): Update.
4239 * remote-utils.c (_initialize_sr_support): Update.
4240 * remote-sds.c (_initialize_remote_sds): Update.
4241 * remote-mips.c (_initialize_remote_mips): Update.
4242 * remote-e7000.c (_initialize_remote_e7000): Update.
4243 * proc-api.c (_initialize_proc_api): Update.
4244 * printcmd.c: Update.
4245 * parse.c (_initialize_parse): Update.
4246 * pa64solib.c (_initialize_pa64_solib): Update.
4247 * p-valprint.c (_initialize_pascal_valprint): Update.
4248 * monitor.c (_initialize_remote_monitors): Update.
4249 * mips-tdep.c (_initialize_mips_tdep): Update.
4250 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4251 * maint.c (_initialize_maint_cmds): Update.
4252 * lin-lwp.c (_initialize_lin_lwp): Update.
4253 * language.c (_initialize_language): Update.
4254 * kod.c (_initialize_kod): Update.
4255 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4256 * i386-tdep.c (_initialize_i386_tdep): Update.
4257 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4258 * gdbarch.sh: Update.
4259 * gdbarch.c: Re-generate.
4260 * gdb-events.sh: Update.
4261 * gdb-events.c: Re-generate.
4262 * frame.c (_initialize_frame): Update.
4263 * exec.c: Update.
4264 * demangle.c (_initialize_demangler): Update.
4265 * dcache.c (_initialize_dcache): Update.
4266 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4267 * cp-valprint.c (_initialize_cp_valprint): Update.
4268 * corefile.c (_initialize_core): Update.
4269 * command.h: Update.
4270 * cli/cli-decode.h: Update.
4271 * cli/cli-cmds.c (init_cli_cmds): Update.
4272 * charset.c (_initialize_charset): Update.
4273 * breakpoint.c (_initialize_breakpoint): Update.
4274 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4275 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4276 * aix-thread.c (_initialize_aix_thread): Update.
4277
b4632131
MK
42782004-07-24 Mark Kettenis <kettenis@gnu.org>
4279
4280 Partial fix for PR backtrace/1718.
4281 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4282 that GCC migrates into the prolugue. Don't handle any
4283 instructions that clobber %ebx.
4284
822c9732
AC
42852004-07-23 Andrew Cagney <cagney@gnu.org>
4286
4287 Use regcache_raw_collect instead of regcache_collect.
4288 * regcache.h (regcache_collect): Delete declaration.
4289 * regcache.c (regcache_colect): Delete function.
4290 * win32-nat.c (do_child_store_inferior_registers): Update.
4291 * sol-thread.c (sol_thread_store_registers): Update.
4292 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4293 * rs6000-nat.c (store_register): Update.
4294 * remote.c (store_register_using_P, remote_store_registers): Update.
4295 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4296 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4297 (fill_vrregset, store_spe_registers, fill_gregset)
4298 (fill_gregset): Update.
4299 * nto-procfs.c (procfs_store_registers): Update.
4300 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4301 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4302 * m68klinux-nat.c (store_register, fill_gregset): Update.
4303 * m68k-tdep.c (fill_gregset): Update.
4304 * infptrace.c (store_register): Update.
4305 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4306 * i386-linux-nat.c (store_register, fill_gregset): Update.
4307 * hppa-linux-nat.c (fill_gregset): Update.
4308 * go32-nat.c (store_register): Update.
4309 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4310 (store_fp_regs): Update.
4311 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4312 (store_nwfpe_extended, store_fpregister, store_fpregs)
4313 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4314 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4315 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4316 (store_regs_user_thread, store_regs_kernel_thread): Update.
4317
32b05c07
MK
43182004-07-24 Mark Kettenis <kettenis@gnu.org>
4319
4320 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4321 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4322 encoding.
4323 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4324 member of `struct comp_unit'.
4325
8567c30f
AC
43262004-07-23 Andrew Cagney <cagney@gnu.org>
4327
4328 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4329 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4330
f6da8dd8
MH
43312004-07-23 Martin Hunt <hunt@redhat.com>
4332 Kevin Buettner <kevinb@redhat.com>
4333
4334 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4335 alignment was being added to the offset instead of multiplied.
4336
bd921882
MK
43372004-07-23 Mark Kettenis <kettenis@gnu.org>
4338
24f033e8
MK
4339 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4340 changed signal trampoline in OpenBSD 3.5-current.
4341
90f3cecd
MK
4342 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4343 <machine/pcb.h> and "bsd-kvm.h".
4344 (sparc64nbsd_supply_pcb): New function.
4345 (_initialize_sparc64nbsd_nat): Renamed from
4346 _initialize_sparcnbsd_nat. Enable libkvm interface.
4347 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4348 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4349 (LOADLIBES): New variable.
4350
a4954a62
MK
4351 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4352
bd921882
MK
4353 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4354
23a6d369
AC
43552004-07-21 Andrew Cagney <cagney@gnu.org>
4356
4357 Use regcache_raw_supply instead of supply_register.
4358 * regcache.h (supply_register): Delete declaration.
4359 * regcache.c (supply_register): Delete function.
4360 * wince.c (do_child_fetch_inferior_registers): Update.
4361 * win32-nat.c (do_child_fetch_inferior_registers)
4362 (fetch_elf_core_registers): Update.
4363 * v850ice.c (v850ice_fetch_registers): Update.
4364 * thread-db.c (thread_db_store_registers): Update.
4365 * sol-thread.c (sol_thread_store_registers): Update.
4366 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4367 * rs6000-nat.c (fetch_register): Update.
4368 * rom68k-rom.c (rom68k_supply_one_register): Update.
4369 * remote.c (remote_wait, remote_async_wait): Update.
4370 * remote-st.c (get_hex_regs): Update.
4371 * remote-sim.c (gdbsim_fetch_register): Update.
4372 * remote-sds.c (sds_fetch_registers): Update.
4373 * remote-rdp.c (remote_rdp_fetch_register): Update.
4374 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4375 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4376 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4377 * remote-hms.c (init_hms_cmds): Update.
4378 * remote-est.c (init_est_cmds): Update.
4379 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4380 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4381 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4382 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4383 (fetch_register, supply_vrregset, supply_vrregset)
4384 (fetch_spe_registers): Update.
4385 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4386 * monitor.c (monitor_supply_register): Update.
4387 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4388 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4389 (mipsnbsd_supply_fpreg): Update.
4390 * mips-nat.c (fetch_inferior_registers)
4391 (fetch_core_registers): Update.
4392 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4393 (supply_fpregset, mips64_supply_gregset)
4394 (mips64_supply_fpregset): Update.
4395 * m68klinux-nat.c (fetch_register, supply_gregset)
4396 (supply_fpregset): Update.
4397 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4398 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4399 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4400 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4401 * infptrace.c (fetch_register): Update.
4402 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4403 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4404 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4405 (gnu_fetch_registers, gnu_store_registers): Update.
4406 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4407 * i386-linux-nat.c (fetch_register, supply_gregset)
4408 (dummy_sse_values): Update.
4409 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4410 * hppah-nat.c (fetch_register): Update.
4411 * hppa-linux-nat.c (fetch_register, supply_gregset)
4412 (supply_fpregset): Update.
4413 * go32-nat.c (fetch_register): Update.
4414 * dve3900-rom.c (fetch_bitmapped_register)
4415 (_initialize_r3900_rom): Update.
4416 * cris-tdep.c (supply_gregset): Update.
4417 * abug-rom.c (init_abug_cmds): Update.
4418 * core-aout.c (fetch_core_registers): Update.
4419 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4420 (fetch_register, fetch_fp_register): Update.
4421 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4422 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4423 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4424 * alphanbsd-tdep.c (fetch_core_registers): Update.
4425 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4426 * alpha-nat.c (fetch_osf_core_registers)
4427 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4428 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4429 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4430
73cc75f3
AC
44312004-07-21 Andrew Cagney <cagney@gnu.org>
4432
4433 * PROBLEMS: Mention breakpoints/1702.
4434 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4435 that is known to work.
4436
a53c66de
AC
44372004-07-21 Andrew Cagney <cagney@gnu.org>
4438
4439 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4440 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4441 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4442 (handle_inferior_event): Wrap call to deprecated
4443 IGNORE_HELPER_CALL in #ifdef.
4444 * config/mips/tm-nbsd.h: Update.
4445
708ff411
JB
44462004-07-20 Jim Blandy <jimb@redhat.com>
4447
412b3060
JB
4448 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4449 bfd_mach_ppc has no segment registers.
4450
13ac140c
JB
4451 Include PowerPC SPR numbers for special-purpose registers.
4452 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4453 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4454 new member in initializer.
4455 (S, S4, SN4, S64): New macros for defining special-purpose
4456 registers.
4457 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4458 registers_403, registers_403GC, registers_505, registers_860,
4459 registers_601, registers_602, registers_603, registers_604,
4460 registers_750, registers_e500): Use them.
4461
708ff411
JB
4462 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4463 replace references with expression used to initialize variable.
4464
1f602b35
AC
44652004-07-20 Andrew Cagney <cagney@gnu.org>
4466
4467 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4468 read_memory_nobpt.
4469 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4470 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4471 (s390_sigtramp_frame_sniffer): Update.
4472 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4473 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4474 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4475 (mips32_fetch_instruction): Update.
4476 * mcore-tdep.c (get_insn): Update.
4477 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4478 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4479 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4480 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4481 (i386_linux_rt_sigtramp_start): Update.
4482 * i386-linux-nat.c (child_resume): Update.
4483 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4484 * hppa-linux-tdep.c (insns_match_pattern): Update.
4485 * gdbcore.h: Update.
4486 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4487 * frame.c (safe_frame_unwind_memory): Update.
4488 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4489 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4490 * alpha-tdep.c (alpha_read_insn): Update.
4491
2cd8546d
AC
44922004-07-20 Andrew Cagney <cagney@gnu.org>
4493
4494 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4495 containing both bytes and mask. Add "frame_type".
4496 * tramp-frame.c (tramp_frame_start): Update.
4497 (tramp_frame_prepend_unwinder): Update.
4498 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4499 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4500 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4501 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4502
f928dd62
EZ
45032004-07-19 Eli Zaretskii <eliz@gnu.org>
4504
4505 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4506 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4507 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4508 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4509
d5c560f7
AC
45102004-07-17 Andrew Cagney <cagney@gnu.org>
4511
860660cb
AC
4512 * NEWS, PROBLEMS: Update for 6.2.
4513
8c266f54
AC
4514 * README: Update to 6.2.
4515
a552edd9
AC
4516 * utils.c (xvasprintf): Call xstrvprintf.
4517
c4a172b5
AC
4518 * parse.c: Update copyright.
4519 (null_post_parser): Eliminate ARGSUSED.
4520
da745b36
AC
4521 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4522 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4523 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4524
9cbc6ef0
AC
4525 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4526 * ppc-linux-nat.c: Use "Linux kernel".
4527 * hppa-linux-tdep.c: Use GNU/Linux.
4528 * hppa-linux-nat.c: Use GNU/Linux.
4529 * dwarfread.c: Add [sic] to use of Linux.
4530
1b89295f
AC
4531 * hppa-linux-nat.c: Do not include <string.h>.
4532 (supply_fpregset): Remove "register" attribute.
4533
d5c560f7
AC
4534 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4535
7ddd7709
MK
45362004-07-17 Mark Kettenis <kettenis@gnu.org>
4537
b1d19a62
MK
4538 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4539 * configure, config.in: Regenerated.
4540
7ddd7709
MK
4541 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4542 "bsd-kvm.h".
4543 (vaxbsd_supply_pcb): New function.
4544 (_initialize_vaxbsd_nat): New prototype and function.
4545 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4546 solib-sunos.o.
4547 (LOADLIBES): New variable.
4548 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4549 (LOADLIBES): New variable.
4550 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4551 (LOADLIBES): New variable.
4552 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4553
2c07db7a
AC
45542004-07-16 Andrew Cagney <cagney@gnu.org>
4555
4556 * defs.h (event_loop_p): Replace variable declaration with macro,
4557 always 1.
4558 * main.c (captured_main): Delete options "-async" and "-noasync".
4559 (event_loop_p): Delete variable.
4560 * NEWS: Mention that "-async" and "-noasync" were removed.
4561
717eb1cf
AC
45622004-07-16 Andrew Cagney <cagney@gnu.org>
4563
4564 * remote-m32r-sdi.c: Re-indent.
4565
c101bc14
JB
45662004-07-16 Jim Blandy <jimb@redhat.com>
4567
5109a438
JB
4568 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4569 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4570 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4571 missing MPC823 SPRs.
4572 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4573 incorrect. (This was corrected in GDB's register name tables on
4574 2004-07-14.)
4575
c101bc14
JB
4576 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4577 should be "esasrr" ("ESA Save and Restore Register").
4578
7ce450bd
AC
45792004-07-16 Andrew Cagney <cagney@gnu.org>
4580
4581 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4582 calls, no longer applicable. Update comments and rename parameter
4583 "step_frame" to "return_frame".
4584
ca73dd9d
AC
45852004-07-16 Andrew Cagney <cagney@gnu.org>
4586
4587 * frame.c (fprint_field): New function.
4588 (fprint_frame_id): Use fprint_field.
4589
31941f6d
JB
45902004-07-15 Joel Brobecker <brobecker@gnat.com>
4591
4592 * ada-lang.c (ada_language_defn): Remove commented out code.
4593
f86a7158
JB
45942004-07-15 Jim Blandy <jimb@redhat.com>
4595
4596 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4597 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4598
c24791ec
JB
45992004-07-14 Jim Blandy <jimb@redhat.com>
4600
29bb1356
JB
4601 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4602
cc98b5cc
JB
4603 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4604
8f088af7
JB
4605 * ppc-tdep.h (ppc_num_srs): New enum constant.
4606
0ea0ec5f
JB
4607 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4608 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4609 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4610 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4611 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4612 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4613 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4614 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4615 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4616 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4617 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4618 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4619 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4620 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4621 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4622 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4623 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4624 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4625 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4626 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4627 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4628 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4629 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4630 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4631 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4632 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4633 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4634 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4635 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4636 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4637 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4638 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4639 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4640 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4641 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4642 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4643 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4644 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4645 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4646 special-purpose register numbers.
4647
c24791ec
JB
4648 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4649 manual mentions 'md_twb', but many mention 'm_twb', and at that
4650 point in the register list.)
4651
d833db3b
AC
46522004-07-14 Andrew Cagney <cagney@gnu.org>
4653
4654 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4655 instead of "internal-error".
4656
080228b2
JB
46572004-07-10 Joel Brobecker <brobecker@gnat.com>
4658
4659 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4660 that was inserted inside a comment.
4661
c268433a
RC
46622004-07-10 Randolph Chung <tausq@debian.org>
4663
4664 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4665 function.
4666 (hppa_hpux_push_dummy_code): New function.
4667 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4668 Set find_global_pointer method.
4669
71009278
MK
46702004-07-10 Mark Kettenis <kettenis@gnu.org>
4671
4672 * NEWS: Mention BSD libkvm interface.
4673
b2fa5097
MS
46742004-07-10 Michael Snyder <msnyder@redhat.com>
4675
4676 * symfile.c (generic_load): Comment typo.
4677 * stack.c (get_selected_block): Ditto.
4678 * regcache.c (regcache_cooked_read): Ditto.
4679 * monitor.c (monitor_debug): Ditto.
4680 * mips-tdep.c (mips_read_pc): Ditto.
4681 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4682 * gdb_mbuild.sh: Ditto.
4683 * gdbarch.sh: Ditto.
4684 * gdbarch.h: Ditto.
4685
c3e5cd34
PH
46862004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4687
8a2225b2
PH
4688 * ada-tasks.c: Remove file.
4689
c3e5cd34
PH
4690 Remove ARI problems:
4691
4692 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4693 beginning of line.
4694
4695 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4696 Add comment.
4697 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4698 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4699 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4700 (UMIN_OF_SIZE): Remove.
4701 (max_of_type): New function to replace orphan macro in gdbtypes.h
4702 (min_of_type): Ditto.
4703 (discrete_type_high_bound): Use max_of_type.
4704 (discrete_type_low_bound): Use min_of_type.
4705 (possible_user_operator_p): Move operator to beginning of line.
4706 (ada_is_variant_part): Ditto.
4707 (ensure_lval): Rewrite to avoid deprecated operations.
4708 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4709 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4710 (ada_enum_name): Remove assignments in 'if' statements.
4711 (build_ada_types): Add gdbarch parameter.
4712 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4713 with gdbarch_data_register_post_init.
4714 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4715 add_show_from_set.
4716
4717 * ada-valprint.c (inspect_it): Remove declaration.
4718 (repeat_count_threshold): Remove declaration.
4719 (ada_print_floating): Remove assignments in 'if' statements.
4720 (print_str): Move operator to beginning of line.
4721
61ce229a
JB
47222004-07-08 Jim Blandy <jimb@redhat.com>
4723
4724 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4725
09bcec80
BR
47262004-07-08 Bob Rossi <bob@brasko.net>
4727
4728 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4729
31c27f77
JJ
47302004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4731
4732 * language.h (struct_language_defn): Add new function pointer:
4733 la_class_name_from_physname. Also add new prototype for
4734 language_class_name_from_physname.
4735 * language.c (language_class_name_from_physname): New function.
4736 (unk_lang_class_name): Ditto.
4737 (unknown_language_defn, auto_language_defn): Change
4738 to add unk_lang_class_name function pointer for
4739 la_class_name_from_physname.
4740 (local_language_defn): Ditto.
4741 * dwarf2read.c (guess_structure_name): Change to call
4742 language_class_name_from_physname.
4743 (determine_class_name): Ditto.
4744 * cp-support.c (class_name_from_physname): Renamed.
4745 (cp_class_name_from_physname): New name of function.
4746 * cp-support.h: Ditto.
4747 * c-lang.c (c_language_defn): Change to add NULL
4748 for class_name_from_physname function pointer.
4749 (cplus_language_defn): Change to add cp_class_name_from_physname.
4750 * jv-lang.c (java_class_name_physname): New function.
4751 (java_find_last_component): New static routine.
4752 (java_language_defn): Add java_class_name_from_physname pointer.
4753 * ada-lang.c (ada_language_defn): Change to add NULL
4754 for class_name_from_physname function pointer.
4755 * f-lang.c (f_language_defn): Ditto.
4756 * m2-lang.c (m2_language_defn): Ditto.
4757 * objc-lang.c (objc_language_defn): Ditto.
4758 * p-lang.c (pascal_language_defn): Ditto.
4759 * scm-lang.c (scm_language_defn): Ditto.
4760
ee28ca0f
AC
47612004-07-06 Andrew Cagney <cagney@gnu.org>
4762
4763 Patch from Bart Robinson.
4764 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4765 (O_LARGEFILE): Define to 0, if not defined.
4766
fdb1bf9d
MK
47672004-07-03 Mark Kettenis <kettenis@gnu.org>
4768
cb162ff6
MK
4769 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4770 <machine/pcb.h> and "bsd-kvm.h".
4771 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4772 (m68kbsd_supply_pcb): New function.
4773 (_initialize_m68kbsd_nat): New prototype and function.
4774 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4775 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4776 (LOADLIBES): New variable.
4777 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4778 (LOADLIBES): New variable.
4779
fdb1bf9d
MK
4780 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4781
963c4174
MK
47822004-07-03 Mark Kettenis <kettenis@gnu.org>
4783
4784 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4785 <sys/proc.h>.
4786 (bsd_kvm_cmdlist): New variable.
4787 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4788 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4789 command and "kvm proc" command.
4790 * Makefile.in (bsd-kvm.o): Update dependencies.
4791
533f1d8f
MK
47922004-07-02 Mark Kettenis <kettenis@gnu.org>
4793
4794 * osabi.c: Update copyright year.
4795 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4796 notes if EI_OSABI is set to ELFOSABI_HPUX.
4797
6780dcde
MS
47982004-07-01 Michael Snyder <msnyder@redhat.com>
4799
4800 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4801 that seems to have gotten whacked out of line.
4802
67bebe79
MK
48032004-07-01 Mark Kettenis <kettenis@gnu.org>
4804
4805 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4806 code.
4807
0b5d8877
PH
48082004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4809
4810 * ada-lang.c (decode_packed_array): Minor change to comment.
4811 (ada_value_slice_ptr): New function.
4812 (ada_value_slice): New function.
4813 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4814 test. Don't know why it is there.
4815 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4816 to avoid dereferencing huge arrays from which one is slicing.
4817 (empty_array): Correct to return an array rather than
4818 a subrange value.
4819 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4820 on empty arrays (let'em use 'FIRST instead).
4821
19c1ef65
PH
48222004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4823
4824 Address complaints from gdb_ari.sh:
4825
4826 * ada-exp.y: Include gdb_string.h rather than string.h.
4827 (convert_char_literal): Reformat declaration.
4828 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4829 * ada-lex.l: Change use of free to xfree (the macro would do so
4830 anyway, but this is harmless).
4831 Include gdb_string.h rather than string.h.
4832 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4833
4834 * ada-lang.c (parse): Remove K&Rism in parameter list.
4835 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4836
d81cbc94
MK
48372004-06-30 Mark Kettenis <kettenis@gnu.org>
4838
4839 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4840 dead code.
4841
07681759
MK
48422004-06-30 Mark Kettenis <kettenis@gnu.org>
4843
4844 * alphabsd-nat.c: Update copyright year.
4845 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4846
f7948b5f
JB
48472004-06-29 Joel Brobecker <brobecker@gnat.com>
4848
6e0cdd28 4849 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4850 (i386_cygwin_in_solib_call_trampoline): New function.
4851 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4852 and skip_trampoline_code gdbarch methods.
4853
8f113c9a
JB
48542004-06-29 Jim Blandy <jimb@redhat.com>
4855
4856 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4857 name actually used in the dependency lists.
4858
97dc871c
RC
48592004-06-29 Randolph Chung <tausq@debian.org>
4860
4861 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4862
47216e51
CV
48632004-06-29 Corinna Vinschen <vinschen@redhat.com>
4864
4865 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4866 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4867 functionality.
4868
e623b504
AC
48692004-06-28 Andrew Cagney <cagney@gnu.org>
4870
4871 * defs.h (xstrvprintf): Declare.
4872 * utils.c (xstrvprintf): New function.
4873 (internal_vproblem, xstrprintf, xasprintf)
4874 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4875 * serial.c (serial_printf): Ditto.
4876 * complaints.c (vcomplaint): Ditto.
4877
79acc9b3
CV
48782004-06-29 Corinna Vinschen <vinschen@redhat.com>
4879
4880 * infcmd.c (attach_command): Move call to target_terminal_inferior
4881 behind loading symbol table.
4882
1daf35d9
AC
48832004-06-28 Andrew Cagney <cagney@gnu.org>
4884
4885 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4886 change - add back extern deprecated_ui_loop_hook declaration.
4887
b435e160
AC
48882004-06-28 Andrew Cagney <cagney@gnu.org>
4889
4890 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4891 xstrprintf.
4892 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4893 (c_value_of_variable): Ditto.
4894 * utils.c (internal_vproblem): Ditto.
4895 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4896 * remote.c (add_packet_config_cmd): Ditto.
4897 * remote-rdp.c (rdp_set_command_line): Ditto.
4898 * regcache.c (regcache_dump): Ditto.
4899 * frv-tdep.c (new_variant, new_variant): Ditto.
4900 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4901 (fbsd_find_memory_regions): Ditto.
4902 * breakpoint.c (create_thread_event_breakpoint)
4903 (create_breakpoints): Ditto.
4904 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4905 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4906
06d5cf63
JB
49072004-06-28 Joel Brobecker <brobecker@gnat.com>
4908
4909 * ada-lang.c: Re-indent file, with some massaging to help indent
4910 a bit when the result is otherwise really too ugly.
4911
35809fad
UW
49122004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4913
4914 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4915 code_addr_p and special_addr_p to 'unsigned int'.
4916
40e20472
MK
49172004-06-27 Mark Kettenis <kettenis@gnu.org>
4918
4919 * i386v4-nat.c: Update copyright year and tweak comment.
4920 (regmap): Remove trailing comma.
4921 (supply_gregset): Rename local variable i to regnum. Call
4922 regcache_raw_supply instead of supply_register.
4923 (fill_gregset): Rename argument regno to regnum. Call
4924 regcache_raw_collect instead of regcache_collect.
4925
12b0b6de
UW
49262004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4927
4928 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4929 and special_addr_p.
4930 (frame_id_build, frame_id_build_special): Update comments.
4931 (frame_id_build_wild): New prototype.
4932 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4933 struct frame_id fields.
4934 (frame_id_build_wild): New function.
4935 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4936
47b42a3e
MK
49372004-06-27 Mark Kettenis <kettenis@gnu.org>
4938
4939 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4940 hppabsd-tdep.c.
4941
1265e4aa
JB
49422004-06-27 Joel Brobecker <brobecker@gnat.com>
4943
4944 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4945
76a01679
JB
49462004-06-27 Joel Brobecker <brobecker@gnat.com>
4947
4948 * ada-lang.c: Re-indent file.
4949
7aca490a
JB
49502004-06-27 Joel Brobecker <brobecker@gnat.com>
4951
4952 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4953 (no_symtab_msg): Likewise.
4954
5e987968
AS
49552004-06-27 Andreas Schwab <schwab@suse.de>
4956
4957 * source.c: Fix whitespace.
4958
315c4276
MK
49592004-06-27 Mark Kettenis <kettenis@gnu.org>
4960
d15be926
MK
4961 * configure.in: Include <sys/param.h> for td_pcb test.
4962 * configure: Regenerated.
4963
9062529b
MK
4964 * i386nbsd-nat.c: New file.
4965 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4966 i386obsd-nat.c and i386obsd-tdep.c.
4967 (i386nbsd-nat.o): New dependency.
4968 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4969 bsd-kvm.o.
4970 (LOADLIBES): New variable.
4971 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4972 bsd-kvm.o.
4973 (LOADLIBES): New variable.
4974
8010310e
MK
4975 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4976 (LOADLIBES): New variable.
4977
efe1d7b9
MK
4978 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4979 fetching from BSD_KVM_PADDR. Correctly lookup address for
4980 "_thread0".
4981
315c4276
MK
4982 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4983 "bsd-kvm.h".
4984 (amd64fbsd_supply_pcb): New funcion.
4985 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4986
399cfac6
DL
49872004-06-27 <david@streamline-computing.com>
4988
4989 Partial fix for PR cli/1056.
4990 * valarith.c: Check for zero in division and remainder
4991 evaluation.
4992
6235f9c8
MK
49932004-06-27 Mark Kettenis <kettenis@gnu.org>
4994
4995 * i387-tdep.c: Remove excessive whitespace.
4996
2726dafc
AC
49972004-06-26 Andrew Cagney <cagney@gnu.org>
4998
4999 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5000 * gdb-events.h, gdb-events.c: Re-generate.
5001 * tui/tui-hooks.c (tui_install_hooks): Update.
5002 (tui_remove_hooks): Update.
5003 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5004
0e56aeaf
MK
50052004-06-26 Mark Kettenis <kettenis@gnu.org>
5006
cb461069
MK
5007 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5008 (gregset_t, fpregset_t): Remove typedefs.
5009 (REG_OFFSET): Rename argument.
5010 (amd64bsd_r_reg_offset): Rename from reg_offset.
5011 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5012 Remove functions.
5013 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5014 of reg_offset.
5015 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5016
ecba89de
MK
5017 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5018
4cd80476
MK
5019 * vax-tdep.c: Tweak comment.
5020
0e56aeaf
MK
5021 Add OpenBSD/hppa support.
5022 * NEWS (New native configurations): Mention OpenBSD/hppa.
5023 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5024 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5025 files.
5026 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5027 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5028 * configure.host: Add hppa*-*-openbsd*.
5029 * configure.tgt: Add hppa*-*-openbsd*.
5030
98bbd631
AC
50312004-06-25 Andrew Cagney <cagney@gnu.org>
5032
5033 * defs.h (deprecated_ui_loop_hook): Deprecated.
5034 * wince.c (child_wait): Update.
5035 * win32-nat.c (child_wait): Update.
5036 * v850ice.c (v850ice_wait): Update.
5037 * top.c (deprecated_ui_loop_hook): Update.
5038 * serial.h: Update.
5039 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5040 (do_unix_readchar): Update.
5041 * ser-tcp.c (net_open): Update.
5042 * remote-sim.c (gdb_os_poll_quit): Update.
5043 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5044
769d7dc4
AC
50452004-06-24 Andrew Cagney <cagney@gnu.org>
5046
5047 * defs.h (deprecated_pre_add_symbol_hook)
5048 (deprecated_post_add_symbol_hook): Deprecated.
5049 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5050 (symbol_file_add_with_addrs_or_offsets): Update references.
5051
11c949aa
AC
50522004-06-24 Andrew Cagney <cagney@gnu.org>
5053
5054 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5055 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5056 * wince.c (ui_loop_hook): Delete extern declaration.
5057 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5058 * v850ice.c (ui_loop_hook): Delete extern declaration..
5059 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5060 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5061 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5062 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5063 ui_loop_hook declaration.
5064
eedc19af
AC
50652004-06-24 Andrew Cagney <cagney@gnu.org>
5066
5067 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5068 entry_func_highpc fields.
5069 * objfiles.c (init_entry_point_info): Do not clear
5070 entry_func_lowpc and entry_func_highpc.
5071 (objfile_relocate): Do not relocate entry_func_lowpc and
5072 entry_func_highpc.
5073 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5074 entry_func_highpc.
5075 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5076 entry_func_highpc.
5077 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5078 entry_func_lowpc and entry_func_highpc with call to
5079 inside_entry_func.
5080
d47079be
MK
50812004-06-24 Mark Kettenis <kettenis@gnu.org>
5082
5083 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5084 quad-precision floating point arguments in registers.
5085
2107e348
MK
50862004-06-24 Mark Kettenis <kettenis@gnu.org>
5087
5088 From Michael Mueller <m.mueller99@kay-mueller.de>:
5089 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5090 account.
5091
46587c42
JJ
50922004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5093
5094 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5095 to -1.
5096 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5097 untriggered watchpoints to a separate if clause. Update function
5098 comment regarding STOPPED_BY_WATCHPOINT argument.
5099
226f5cf4
JB
51002004-06-22 Jim Blandy <jimb@redhat.com>
5101
5102 * gdbarch.sh: Doc fix.
5103
f10683bb
MH
51042004-06-21 Martin Hunt <hunt@redhat.com>
5105 Kevin Buettner <kevinb@redhat.com>
5106
5107 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5108 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5109 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5110 to set_gdbarch_sp_regnum(). Use cooked register number.
5111 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5112
412d5987
AC
51132004-06-21 Andrew Cagney <cagney@gnu.org>
5114
5115 * gdbarch.sh: When the macro field is empty, do not generate a
5116 macro definition. When the macro field is "=", generate the macro
5117 name from the upper-case function name.
5118 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5119 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5120 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5121 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5122 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5123 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5124 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5125 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5126 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5127 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5128 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5129 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5130 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5131 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5132 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5133 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5134 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5135 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5136 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5137 (DEPRECATED_USE_STRUCT_CONVENTION)
5138 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5139 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5140 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5141 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5142 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5143 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5144 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5145 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5146 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5147 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5148 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5149 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5150 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5151 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5152 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5153 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5154 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5155 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5156
68908a3e
AC
51572004-06-21 Andrew Cagney <cagney@gnu.org>
5158
48f7351b
AC
5159 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5160 macro name, and the function rather than macro value. Only wrap
5161 macro print statements in #ifdef. Move format logic to where it
5162 is needed.
5163 * gdbarch.c: Re-generate.
5164
283354d8
AC
5165 * gdbarch.sh (read): Delete "print_p" and "description", add
5166 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5167 Delete references to print_p.
5168 (TARGET_ARCHITECTURE): Delete print predicate.
5169 * gdbarch.c: Re-generate.
5170
68908a3e
AC
5171 * gdbarch.sh: Check that multi-arch methods do not provide a
5172 macro.
5173 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5174 (print_registers_info, print_float_info, print_vector_info)
5175 (adjust_breakpoint_address, remote_translate_xfer_address)
5176 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5177 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5178 name from the multi-arch definition.
5179
a2428dbe
AC
51802004-06-20 Andrew Cagney <cagney@gnu.org>
5181
5182 * gdbarch.sh: Sort by the function, instead of macro name.
5183 * gdbarch.c: Re-generate.
5184
750eb019
AC
51852004-06-20 Andrew Cagney <cagney@gnu.org>
5186
66d659b1
AC
5187 * gdbarch.sh: Use the function, instead of macro name in
5188 errors and the log file.
5189 (return_value): Remove stray ":" in spec.
5190
750eb019
AC
5191 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5192 * gdbarch.h, gdbarch.c: Re-generate.
5193 * Makefile.in (arch-utils.o): Update dependencies.
5194 * values.c (using_struct_return): Move code calling
5195 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5196 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5197 to legacy_return_value, simplify.
5198 * infcmd.c (print_return_value): Move code calling
5199 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5200 to legacy_return_value, simplify.
5201 * infcall.c (call_function_by_hand): Move code calling
5202 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5203 * arch-utils.c: Update copyright. Include "gdbcore.h".
5204 (legacy_return_value): New function.
5205 * arch-utils.h: Update copyright.
5206 (legacy_return_value): Declare.
5207
b5622e8d
AC
52082004-06-20 Andrew Cagney <cagney@gnu.org>
5209
5210 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5211 * gdbarch.h, gdbarch.c: Re-generate.
5212 * values.c (using_struct_return): Update call.
5213 * mcore-tdep.c: Update comment.
5214 * infcall.c (call_function_by_hand): Update comment.
5215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5216 * arch-utils.h (always_use_struct_convention): Update.
5217 * v850-tdep.c (v850_gdbarch_init): Update.
5218 * sh64-tdep.c (sh64_gdbarch_init): Update.
5219 * sh-tdep.c (sh_gdbarch_init): Update.
5220 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5221 * mips-tdep.c (mips_gdbarch_init): Update.
5222 * mcore-tdep.c (mcore_gdbarch_init): Update.
5223 * m32r-tdep.c (m32r_gdbarch_init): Update.
5224 * ia64-tdep.c (ia64_gdbarch_init): Update.
5225 * h8300-tdep.c (h8300_gdbarch_init): Update.
5226 * frv-tdep.c (frv_gdbarch_init): Update.
5227 * cris-tdep.c (cris_gdbarch_init): Update.
5228 * arm-tdep.c (arm_gdbarch_init): Update.
5229 * alpha-tdep.c (alpha_gdbarch_init): Update.
5230
5191de37
MC
52312004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5232
5233 * PROBLEMS: Add more specific information, and a work-around,
5234 for PR gdb/1458.
5235
782263ab
AC
52362004-06-18 Andrew Cagney <cagney@gnu.org>
5237
5238 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5239 * gdbarch.h, gdbarch.c: Re-generate.
5240 * ada-lang.c (ada_finish_decode_line_1): Update.
5241 * infrun.c (handle_inferior_event): Update.
5242 * infcall.c (find_function_addr): Update.
5243 * linespec.c (minsym_found): Update.
5244 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5245 Update.
5246 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5247 * cli/cli-cmds.c (disassemble_command): Update.
5248 * vax-tdep.c (vax_gdbarch_init): Update.
5249
2f305df1
MK
52502004-06-18 Mark Kettenis <kettenis@gnu.org>
5251
5252 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5253
e5fe55f7
AC
52542004-06-17 Andrew Cagney <cagney@gnu.org>
5255
5256 GDB 6.1.1 released from the GDB 6.1 branch.
5257 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5258 * PROBLEMS: Ditto.
5259
473b7be6
DJ
52602004-06-16 Daniel Jacobowitz <dan@debian.org>
5261
5262 PR gdb/1658
5263 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5264 operation as a uleb128. Found by Michael Coulter.
5265
96d887e8
PH
52662004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5267
5268 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5269 make it non-static.
5270 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5271 to ada-lang.h; this is needed to be able to implement the kill command
5272 in multi-task mode.
5273 (task_ptid): Ditto.
5274 (task_entry): Ditto.
5275 (task_list): Ditto.
5276 (ada_build_task_list): Ditto.
5277
5278 * ada-lang.c: Conditionalize routines and data structures related
5279 to breakpoints, exceptions, completion, and symbol caching on
5280 GNAT_GDB, since these are not yet used in the submitted public sources.
5281 (ada_main_name): Editorial: Move definition out of exception-related
5282 code.
5283
31eef181
AC
52842004-06-15 Andrew Cagney <cagney@gnu.org>
5285
5286 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5287 deprecated_pc_in_call_dummy.
5288
2c500098
AM
52892004-06-15 Alan Modra <amodra@bigpond.net.au>
5290
5291 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5292 bfd_get_section_size_before_reloc or _raw_size.
5293 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5294 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5295 (dwarf2_read_section): Likewise.
5296 * elfread.c (elf_locate_sections): Likewise.
5297 * gcore.c (derive_heap_segment): Likewise.
5298 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5299 * remote-e7000.c (e7000_load): Likewise.
5300 * remote-m32r-sdi.c (m32r_load): Likewise.
5301 * remote-mips.c (mips_load_srec): Likewise.
5302 (pmon_load_fast): Likewise.
5303 * remote.c (compare_sections_command): Likewise.
5304 * symfile.c (add_section_size_callback): Likewise.
5305 (load_section_callback): Likewise.
5306 (pc_in_unmapped_range): Likewise.
5307 (pc_in_mapped_range): Likewise.
5308 (sections_overlap): Likewise.
5309 (list_overlays_command): Likewise.
5310 (simple_overlay_update_1): Likewise.
5311 (simple_overlay_update): Likewise.
5312 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5313 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5314
90f943f1
RC
53152004-06-14 Randolph Chung <tausq@debian.org>
5316
5317 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5318 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5319 static.
5320 (hppa_hpux_inferior_created): New function.
5321 (hppa_hpux_init_abi): Register observer.
5322 * symfile.c (hp_cxx_exception_support_initialized)
5323 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5324 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5325
700c15aa
RC
53262004-06-14 Randolph Chung <tausq@debian.org>
5327
3973a7d3
AC
5328 * MAINTAINERS (Write After Approval): Alphabetize my entry
5329 correctly.
700c15aa 5330
cea4838c
AC
53312004-06-14 Andrew Cagney <cagney@gnu.org>
5332
5333 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5334 testsuite maintainer.
5335
97092415
AC
53362004-06-13 Andrew Cagney <cagney@gnu.org>
5337
e8c3165b
AC
5338 * infcmd.c (print_return_value): Fix logic, allow
5339 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5340
bceabdd8
AC
5341 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5342 defining any macros.
5343 * gdbarch.h: Re-generate.
5344
57010b1c
AC
5345 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5346 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5347 * gdbarch.h: Re-generate.
5348
bc87dfa0
AC
5349 * values.c (generic_use_struct_convention): Don't check gcc_p.
5350
15ac804d
AC
5351 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5352 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5353 * gdbarch.h, gdbarch.c: Regenerate.
5354 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5355 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5357 deprecated_max_register_raw_size and
5358 deprecated_max_register_virtual_size.
5359 * v850-tdep.c (v850_gdbarch_init): Ditto.
5360 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5361 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5362 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5363 * cris-tdep.c (cris_gdbarch_init): Ditto.
5364
97092415
AC
5365 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5366 * gdbarch.h, gdbarch.c: Re-generate.
5367 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5368 (m68hc11_use_struct_convention): Delete function.
5369 (m68hc11_extract_struct_value_address): Delete function.
5370 (m68hc11_return_value): New function.
5371 (m68hc11_gdbarch_init): Instead of store_return_value,
5372 extract_return_value, return_value_on_stack,
5373 deprecated_extract_struct_value_address and use_struct_convention,
5374 set return_value.
5375 * values.c (using_struct_return): Do not call
5376 RETURN_VALUE_ON_STACK.
5377 * arch-utils.h (generic_return_value_on_stack_not): Delete
5378 declaration.
5379 * arch-utils.c (generic_return_value_on_stack_not): Delete
5380 function.
5381
44e5158b
AC
53822004-06-12 Andrew Cagney <cagney@gnu.org>
5383
5384 * values.c (register_value_being_returned): Delete function.
5385 * infcmd.c (legacy_return_value): Delete function.
5386 * infcall.c (call_function_by_hand): Inline
5387 "register_value_being_returned", simplify.
5388 * values.c (using_struct_return): Update comment, refer to
5389 print_return_value instead of register_value_being_returned.
5390 * infcmd.c (print_return_value): Inline calls to
5391 register_value_being_returned and legacy_return_value. Simplify.
5392
b887c273
RC
53932004-06-11 Randolph Chung <tausq@debian.org>
5394
5395 * somread.c (som_symtab_read): Exclude gcc local symbols.
5396
1b2bfbb9
RC
53972004-06-11 Randolph Chung <tausq@debian.org>
5398
3973a7d3
AC
5399 * infrun.c (handle_inferior_event): Handle the case when a
5400 trampoline ends up in the runtime resolver, and if the trampoline
5401 has no name. Rearrange the code so that all the trampoline
5402 processing happens before other step-out-of-range handling.
1b2bfbb9 5403
a9d61c86
MH
54042004-06-11 Martin Hunt <hunt@redhat.com>
5405
5406 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5407 has no fpu.
5408
2c87cf5a
AC
54092004-06-10 Andrew Cagney <cagney@gnu.org>
5410
5411 * blockframe.c (legacy_inside_entry_func): Delete.
5412 (legacy_frame_chain_valid): Inline call to
5413 legacy_inside_entry_func, simplify.
5414
0b67b468 54152004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5416
5417 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5418 * dwarf2read.c (partial_die_info): Add dirname field.
5419 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5420 (read_partial_die): Save away DW_AT_comp_dir.
5421 * defs.h (symtab_to_filename): Removed.
5422 * source.c (find_and_open_source): Added.
57c22c6c 5423 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5424 (symtab_to_filename): Removed.
5425 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5426 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5427 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5428 symtab_to_filename.
5429 * symtab.h (partial_symtab): Add dirname field.
5430 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5431 (mi_cmd_file_list_exec_source_file): Call new function
5432 symtab_to_fullname to find fullname.
57c22c6c 5433 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5434 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5435 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5436
9a1dd1ad
AC
54372004-06-10 Andrew Cagney <cagney@gnu.org>
5438
239ae8c7
AC
5439 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5440 to generic_use_struct_convention, the default value.
5441
fc720350
AC
5442 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5443 of abort.
5444
9a1dd1ad
AC
5445 * ns32k-tdep.c (ns32k_push_arguments): New function.
5446 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5447 * infcall.c (call_function_by_hand): Call error instead of
5448 legacy_push_arguments.
5449 * value.h (legacy_push_arguments): Delete declaration.
5450 * valops.c (legacy_push_arguments): Delete function.
5451 (value_push): Delete function.
5452
fea25152
BF
54532004-06-10 Brian Ford <ford@vss.fsi.com>
5454
5455 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5456 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5457 info.
5458 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5459
30a4a8e0
AC
54602004-06-10 Andrew Cagney <cagney@gnu.org>
5461
5462 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5463 * gdbarch.h, gdbarch.c: Re-generate.
5464 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5465 parameters.
5466 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5467 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5468 deprecated_pc_in_call_dummy instead of
5469 DEPRECATED_PC_IN_CALL_DUMMY.
5470 (arm_skip_prologue): Ditto.
5471 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5472 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5473 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5474 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5475 Ditto.
5476 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5477 (sh64_init_extra_frame_info, sh64_get_saved_register)
5478 (sh64_pop_frame): Ditto.
5479 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5480 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5481 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5482 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5483 (h8300_pop_frame): Ditto.
5484 * blockframe.c (legacy_inside_entry_func)
5485 (legacy_frame_chain_valid): Ditto.
5486 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5487 to deprecated_pc_in_call_dummy.
5488
81cfbe54
AC
54892004-06-09 Andrew Cagney <cagney@gnu.org>
5490
a1f4a1b6
AC
5491 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5492 provide a default value.
5493 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5494 * gdbarch.h, gdbarch.c: Re-generate.
5495 * arch-utils.c (generic_convert_register_p): Rename
5496 legacy_convert_register_p
5497 (legacy_register_to_value, legacy_value_to_register): Delete
5498 functions.
5499 * arch-utils.h (generic_convert_register_p): Rename
5500 legacy_convert_register_p.
5501 (legacy_register_to_value, legacy_value_to_register): Delete
5502 declarations.
5503
9730f241
AC
5504 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5505 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5506 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5507 * gdbarch.h, gdbarch.c: Re-generate.
5508 * infcmd.c (default_print_registers_info): Simplify.
5509 * findvar.c (value_of_register): Simplify.
5510 * mi/mi-main.c (get_register): Simplify.
5511 * arch-utils.c (legacy_convert_register_p): Always return 0.
5512 (legacy_register_to_value, legacy_value_to_register): Always call
5513 internal_error.
5514
8a1bf479
AC
5515 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5516 #ifdef CLEAR_INSN_CACHE code.
5517 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5518 Delete #ifdef CLEAR_DEFERRED_STORES code.
5519
4b38d6f1
AC
5520 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5521
2d62ecc7
AC
5522 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5523 copyright.
5524 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5525
be4f7469
AC
5526 * config/mips/mipsv4.mh: Delete file.
5527
81cfbe54
AC
5528 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5529 unreferenced macro.
5530 (hpread_adjust_stack_address): Delete declaration.
5531
d966f0cb
AC
55322004-06-08 Andrew Cagney <cagney@gnu.org>
5533
5534 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5535 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5536 PTRACE_ATTACH / PTRACE_DETACH available call error.
5537 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5538 * infttrace.c (update_thread_state_after_attach, attach, detach):
5539 Remove #ifdef wrappers.
5540 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5541 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5542 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5543 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5544 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5545 * config/nm-linux.h (ATTACH_DETACH): Delete.
5546 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5547 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5548 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5549 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5550 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5551
d91670b9
CV
55522004-06-08 Corinna Vinschen <vinschen@redhat.com>
5553
5554 * configure.in: Set $configdir to the right OS specific value.
5555 Use value when setting $tcldir and $tkdir.
5556 * configure: Regenerate.
5557
28ba0b33
PB
55582004-06-06 Paul Brook <paul@codesourcery.com>
5559
5560 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5561 records.
5562
f26caa11
PH
55632004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5564
5565 * ada-lang.c (lookup_symbol_in_language): New function to allow
5566 re-use of another language's symbol lookup code. (Placed here
5567 temporarily while Ada support is being integrated into the public
5568 tree).
5569 (restore_language): New auxiliary function for
5570 lookup_symbol_in_language.
5571 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5572 temporarily while Ada support is being integrated into the public
5573 tree).
5574
d560a54b
AO
55752004-06-08 Alexandre Oliva <aoliva@redhat.com>
5576
e75d110c
AO
5577 * Makefile.in (check//%): New.
5578
d560a54b
AO
5579 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5580 (mn10300_store_return_value): Rewrite.
5581 (mn10300_type_align): New.
5582 (mn10300_use_struct_convention): Rewrite.
5583 (mn10300_return_value): New, using all of the above.
5584 (mn10300_pop_frame_regular): Add saved_regs_size.
5585 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5586
a72fbdb7
AO
5587 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5588 regs if PC is on movm.
5589
01904826
JB
55902004-06-07 Jim Blandy <jimb@redhat.com>
5591
5592 Add native Linux support for the PowerPC E500.
5593 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5594 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5595 all architectures except the E500.
5596 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5597 #definitions.
5598 (struct gdb_evrregset_t): New type.
5599 (have_ptrace_getsetevrregs): New variable.
5600 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5601 fetch_spe_registers): New functions.
5602 (fetch_register): Call fetch_spe_register as appropriate.
5603 Assert that we're only passed raw register numbers.
5604 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5605 Don't fetch gprs if they're pseudoregisters.
5606 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5607 store_spe_registers): New functions.
5608 (store_register): Call store_spe_register as appropriate.
5609 Assert that we're only passed raw register numbers.
5610 (store_ppc_registers): Call store_spe_registers as appropriate.
5611 Don't store gprs if they're pseudoregisters.
5612
f90ef764
JJ
56132004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5614
5615 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5616 struct if one exists, even if we are dealing with a zombie thread.
5617
45b75230
AC
56182004-06-07 Andrew Cagney <cagney@gnu.org>
5619
5620 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5621 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5622 Rename PC_REQUIRES_RUN_BEFORE_USE.
5623 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5624 #ifdef.
5625
1658da49
RC
56262004-06-07 Randolph Chung <tausq@debian.org>
5627
5628 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5629 unwinding after sp has been saved to the stack but before the end
5630 of the prologue, and after the fp has been modified but before it has
5631 been saved to the stack.
5632 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5633 Remove superfluous definitions.
5634 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5635
9a727a3c
RC
56362004-06-07 Guy Martin <gmsoft@gentoo.org>
5637
5638 Committed by Randolph Chung.
5639 * hppa-linux-nat.c: Include the correct version of the header file
5640 depending on the kernel version.
5641
9e500012
RC
56422004-06-06 Randolph Chung <tausq@debian.org>
5643
5644 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5645 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5646
3388d7ff
RC
56472004-06-06 Randolph Chung <tausq@debian.org>
5648
5649 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5650 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5651 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5652 * hppa-tdep.c (hppa_symbol_address): New function definition.
5653 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5654
d49771ef
RC
56552004-06-06 Randolph Chung <tausq@debian.org>
5656
5657 * hppa-tdep.h (struct value): Forward declaration.
5658 (gdbarch_tdep): Define tdep find_global_pointer method.
5659 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5660 associated with the function we are trying to call, and write it
5661 to the gp register.
5662 (hppa32_convert_from_funct_ptr_addr): New function.
5663 (hppa_find_global_pointer): New function.
5664 (hppa_gdbarch_init): Set default find_global_pointer method; set
5665 convert_from_func_ptr_addr method.
5666 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5667 (hppa_linux_init_abi): Set find_global_pointer method.
5668 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5669
7d9b040b
RC
56702004-06-06 Randolph Chung <tausq@debian.org>
5671
5672 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5673 to struct value *function.
5674 * gdbarch.c: Regenerate.
5675 * gdbarch.h: Likewise.
5676 * infcall.c (call_function_by_hand): Pass entire function value
5677 to push_dummy_call.
5678
5679 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5680 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5681 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5682 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5683 * arm-tdep.c (arm_push_dummy_call): Likewise.
5684 * avr-tdep.c (avr_push_dummy_call): Likewise.
5685 * cris-tdep.c (cris_push_dummy_call): Likewise.
5686 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5687 * frv-tdep.c (frv_push_dummy_call): Likewise.
5688 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5689 * hppa-tdep.c (hppa32_push_dummy_call)
5690 (hppa64_push_dummy_call): Likewise.
5691 * i386-tdep.c (i386_push_dummy_call): Likewise.
5692 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5693 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5694 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5695 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5696 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5697 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5698 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5699 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5700 (ppc64_sysv_abi_push_dummy_call): Likewise.
5701 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5702 (ppc64_sysv_abi_push_dummy_call): Likewise.
5703 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5704 * s390-tdep.c (s390_push_dummy_call): Likewise.
5705 * sh-tdep.c (sh_push_dummy_call_fpu)
5706 (sh_push_dummy_call_nofpu): Likewise.
5707 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5708 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5709 * vax-tdep.c (vax_push_dummy_call): Likewise.
5710
4a19ea35
JB
57112004-06-04 Jim Blandy <jimb@redhat.com>
5712
8327ccee
JB
5713 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5714 gdbarch argument to register_size.
5715
a3c001ce
JB
5716 * rs6000-tdep.c (rs6000_store_return_value): Use
5717 regcache_cooked_write_part instead of
5718 deprecated_write_register_bytes.
5719 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5720 not gdbarch_deprecated_store_return_value.
5721
4a19ea35
JB
5722 * ppc-linux-nat.c (store_register, fetch_register): Remove
5723 incorrect assertions. Simplify and generalize handling of
5724 transfers whose sizes are not multiples of, or less than, sizeof
5725 (PTRACE_XFER_TYPE).
5726
b9b5d7ea
JJ
57272004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5728
5729 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5730 as a new thread event.
720c7d64 5731 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5732 zombie, return TD_THR_ZOMBIE.
720c7d64 5733 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5734 TD_THR_ZOMBIE, check if the thread is still on the thread list
5735 and return a -1 ptid if not found.
5736 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5737 change the status to TARGET_WAITKIND_SPURIOUS.
5738
c8a3b559
CV
57392004-06-03 Corinna Vinschen <vinschen@redhat.com>
5740
5741 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5742 double values in little endian mode.
5743
20605361
AC
57442004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5745
5746 Committed by Andrew Cagney.
5747 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5748 after last enum constant to avoid error from IBM C
5749 compiler.
5750
bc97b3ba
JB
57512004-06-02 Jim Blandy <jimb@redhat.com>
5752
5753 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5754 to 'message', and make it local to the lone block that uses it.
5755
1da28ab0
JB
5756 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5757
4c4b4cd2
PH
57582004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5759
8a2225b2
PH
5760 * ada-exp.y: Update copyright notice.
5761 Include block.h.
5762
5763 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5764 SPECIAL_VARIABLE and unify the treatment of these cases.
5765
5766 (write_attribute_call0): Remove.
5767 (write_attribute_call1): Remove.
5768 (write_attribute_calln): Remove.
5769 (save_qualifier): Add missing semicolon.
5770
5771 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5772 temporarily disabled to allow compilation with FSF head version.
5773
5774 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5775 use individual operators (OP_*) for all attributes.
5776 (exp syntax): Use write_int.
5777 Handle STRING literals with OP_STRING.
5778 (variable syntax): Add limit parameter to calls to
5779 write_object_renaming.
5780
5781 (temp_parse_space): New definition to hold entities that need
5782 only live until the next call to ada_parse.
5783 (string_to_operator): Rename fields of ada_opname_table entries.
5784
5785 (write_var_from_sym): Record block.
5786 (write_var_from_name): Minor reformatting.
5787 Make sure saved name is properly encoded in the case of multiple
5788 matches, and set its language to Ada.
5789 Update comment.
5790 Modify to indicate unresolved name as symbol in the UNRESOLVED
5791 namespace, allocated in temp_parse_space.
5792 (write_int): New function.
5793
5794 (write_object_renaming): Add max_depth parameter to limit
5795 chains of object renamings.
5796 Handle case where root of renaming expression is itself a renaming.
5797 Use temp_parse_space for temporary name buffer.
5798 Handle renamings to dereferenced pointers (___XEXA suffices).
5799
5800 (ada_parse, yyerror, string_to_operator,
5801 write_var_from_sym, write_var_from_name, write_attribute_call0,
5802 write_attribute_call1, write_attribute_calln,
5803 write_object_renaming): Protoize.
5804
5805 (_initialize_ada_exp): New function.
5806
5807 * ada-lang.c: Update copyright notice.
5808 General terminology change to conform to GNAT compiler usage:
5809 mangle => encode, demangle => decode
5810 Include gdb_obstack.h.
5811 Include gdb_regex.h
5812 Include frame.h
5813 Include hashtab.h
5814 Include completer.h
5815 Include gdb_stat.h
5816 Include block.h
5817 Include infcall.h
5818
5819 (ADA_RETAIN_DOTS): Make sure this is defined.
5820 (TRUNCATION_TOWARDS_ZERO): Define.
5821 (struct string_vector): Define.
5822 (unresolved_names): Remove definition.
5823 (xnew_string_vector): New function.
5824 (string_vector_append): New function.
5825 (extract_string): Make static.
5826 (ada_unqualified_name): New function.
5827 (add_angle_brackets): New function.
5828 (function_name_from_pc): New function.
5829 (place_on_stack): Rename to ensure_lval.
5830
5831 (ensure_lval): Renamed from place_on_stack.
5832 Make identity on lvals.
5833 Update comment.
5834 (is_nonfunction): New interface.
5835 Only symbols in LOC_CONST class can be enumerals.
5836 (fill_in_ada_prototype): Remove; now independent of language.
5837 (add_defn_to_vec): Add obstack and symtab arguments.
5838 Use obstack to hold collected definitions.
5839 (num_defns_collected): New function.
5840 (defns_collected): New function.
5841 (ada_resolve_subexp): Rename to resolve_subexp.
5842 (resolve_subexp): Renamed from ada_resolve_subexp.
5843 (ada_op_name): Return non-const result.
5844 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5845 other purposes.
5846
5847 (to_fixed_array_type): Add declaration.
5848 (coerce_unspec_val_to_type): Remove offset parameter.
5849 (find_sal_from_funcs_and_line): New interface.
5850 (find_line_in_linetable): Ditto.
5851
5852 (all_sals_for_line): Rename to ada_sals_for_line and make
5853 global.
5854 Add new parameter. When set, do not ask the user to choose the
5855 instance, but use the first one found instead.
5856 Use given line number in returned sals.
5857 Fix comment.
5858 Skip the prologue if funfirstline is set.
5859 Correct for memory leak when 0 lines found.
5860
5861 (value_pos_atr): Use pos_atr.
5862 (pos_atr): New function.
5863 (standard_lookup): Add block parameter.
5864
5865 (makeTimeStart): Remove declaration and uses.
5866 (makeTimeStop): Remove declaration and uses.
5867
5868 (ada_completer_word_break_characters): Allow for VMS.
5869 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5870 (raise_sym_name): New constant.
5871 (raise_unhandled_sym_name): New constant.
5872 (raise_assert_sym_name): New constant.
5873 (process_raise_exception_name): New constant.
5874 (longest_exception_template): New constant.
5875 (warning_limit): New variable to limit warnings during expression
5876 evaluation.
5877 (warnings_issued): New variable to keep track of warnings issued.
5878 (known_runtime_file_name_patterns): New constant.
5879 (known_auxiliary_function_name_patterns): New constant.
5880 (symbol_list_obstack): New variable.
5881
5882 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5883 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5884 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5885 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5886 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5887 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5888 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5889 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5890 and strcmp.
5891
5892 (ada_get_field_index): New function.
5893 (lim_warning): New function.
5894 (ada_translate_error_message): New function.
5895 (MAX_OF_SIZE): New function.
5896 (MIN_OF_SIZE): New function.
5897 (UMAX_OF_SIZE): New function.
5898 (UMIN_OF_SIZE): New function.
5899 (discrete_type_high_bound): New function.
5900 (discrete_type_low_bound): New function.
5901 (base_type): New function.
5902 (do_command): Remove.
5903
5904 (ada_update_initial_language): Use language_ada, not language_unknown.
5905 (ada_encode): Renamed from ada_mangle.
5906 Obey ADA_RETAIN_DOTS.
5907 (ada_decode): Renamed from ada_demangle.
5908 Update coding conventions.
5909 (decoded_names_store): New hash table.
5910 (ada_decode_symbol): New function.
5911 (ada_la_decode): New function.
5912
5913 (modify_general_field): Correct computations of offset and bit
5914 position.
5915 (desc_base_type): Handle ref types, too.
5916 (ada_is_direct_array_type): New function.
5917
5918 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5919 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5920 (ada_is_bogus_array_descriptor,ada_type_of_array,
5921 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5922 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5923 ada_is_array_descriptor_type.
5924
5925 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5926 (ada_is_packed_array_type): Handle pointers or
5927 references to packed arrays as well.
5928 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5929 (decode_packed_array_type): Search for the packed array type
5930 symbol in the currently selected block and associated
5931 superblocks too.
5932 Use lookup_symbol again.
5933
5934 (decode_packed_array): Handle pointers and references.
5935 Update call to coerce_unspec_val_to_type.
5936 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5937 (ada_value_primitive_packed_val): Improve comment.
5938
5939 (ada_index_type): Substitute int type for "undefined".
5940 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5941 ada_array_langth, ada_is_string_type): Use renamed
5942 ada_is_simple_array_type.
5943 (empty_array): New function.
5944
5945 (ada_resolve): Rename to resolve.
5946 (resolve): Make static.
5947 Call renamed resolve_subexp.
5948 Update comment.
5949 (ada_resolve_subexp): Rename to resolve_subexp.
5950 (resolve_subexp): Update comment.
5951 Decomment disabled code.
5952 Add LOC_COMPUTED* cases.
5953 Modify to use temporary struct symbols (marked as being in
5954 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5955 OP_UNRESOLVED_VALUE.
5956 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5957 Add OP_STRING case.
5958 Remove OP_ARRAY.
5959 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5960 Use new ada_lookup_symbol_list interface.
5961 Use new ada_resolve_function interface.
5962 Remove OP_TYPE case.
5963
5964 (ada_args_match): Idiot proof against null actuals.
5965 Use intermediate variables to clarify.
5966 (ada_resolve_function): Update comment and interface.
5967 (mangled_ordered_before): Rename to encoded_ordered_before and
5968 update comment.
5969 (sort_choices): Update comment and interface.
5970 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5971 (user_select_syms): New interface.
5972 Use new sort_choices interface.
5973 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5974 (possible_user_operator_p): Idiot-proof against null values.
5975 (ada_simple_renamed_entity): Don't make cleanup; rely on
5976 caller to free result string.
5977 Remove const from return type.
5978 (make_array_descriptor): Rename uses of place_on_stack to
5979 ensure_lval.
5980 Make sure that arrays are on stack.
5981
5982 (HASH_SIZE): Define.
5983 (struct cache_entry): Define.
5984 (cache_space): Define.
5985 (cache): Define.
5986 (clear_ada_sym_cache): New function.
5987 (find_entry): New function.
5988 (lookup_cached_symbol): New function.
5989 (defn_vector_size): Define.
5990 (cache_symbol): New function.
5991 (defn_symbols): Remove.
5992
5993 (standard_lookup): Use lookup_symbol_in_language to get effect of
5994 C lookup.
5995 Cache results.
5996
5997 (symbol_completion_match): New function.
5998 (symbol_completion_add): New function.
5999 (ada_make_symbol_completion_list): New function.
6000
6001 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6002 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6003 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6004 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6005
6006 (ada_lookup_simple_minsym): New function.
6007 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6008
6009 (add_symbols_from_enclosing_procs): New interface.
6010 Conditionalize more helpfully.
6011 Don't bother if program isn't running.
6012 Use new interface to get_frame_block.
6013 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6014
6015 (remove_extra_symbols): New interface.
6016 (xget_renaming_scope): New function.
6017 (is_package_name): New function.
6018 (renaming_is_visible): New function.
6019 (remove_out_of_scope_renamings): New function.
6020
6021 (ada_lookup_symbol_list): New interface.
6022 Properly reinitialize the symbol list obstack.
6023 Don't call add_symbols_from_enclosing_procs if we start from a
6024 static or global block.
6025 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6026 add_symbols_from_enclosing_procs.
6027 Add symtab data to cached entries.
6028 Handle symbols prefixed with
6029 "standard__" specially; strip prefix and don't look in local symbols.
6030 Do not include out of scope renaming symbols in list of
6031 symbols returned.
6032 Add const to block parameter.
6033 Move check for non-local, non-global symbols earlier.
6034 Remove timing stuff.
6035 (ada_lookup_symbol): New interface.
6036 Find symtab as well.
6037 (ada_lookup_symbol_nonlocal): New function.
6038
6039 (is_name_suffix): Enhance suffix detection to recognize
6040 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6041 (is_dot_digits_suffix): New function.
6042 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6043
6044 (ada_add_block_symbols): New interface. Use obstack to return results
6045 in a vector of struct ada_symbol_infos. Add symtab argument.
6046 Use new interface to add_defn_to_vec.
6047 Remove calls to fill_in_ada_prototype.
6048 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6049
6050 (ada_finish_decode_line_1): Add const qualification to local to fix
6051 warning.
6052 Start looking in static block for functions to avoid attempts
6053 to search frame chain for up-level variables.
6054 Adapt to new ada_sals_for_line interface.
6055 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6056 Handle quoting of the function name inside the spec string.
6057 Skip prologue when funfirstline is set and update the
6058 function documentation to that effect.
6059
6060 (debug_print_lines, debug_print_block, debug_print_blocks,
6061 debug_print_symtab): Remove.
6062
6063 (ada_main_name): New function.
6064 (ada_exception_breakpoint_type): New function.
6065 (is_known_support_routine): New function.
6066 (ada_find_printable_frame): Renamed from find_printable_frame and made
6067 global.
6068 Remove level parameter.
6069 Use new interface to select_frame.
6070
6071 (begin_command): Remove.
6072 (ada_adjust_exception_stop): New function.
6073 (ada_print_exception_stop): New function.
6074 (exception_name_from_cond): New function.
6075 (ada_report_exception_break): Replace disabled code with
6076 conditionalization on GNAT_GDB.
6077 Get the exception name from the condition string.
6078 Remove and move functionality into new functions
6079 ada_print_exception_breakpoint_task and
6080 ada_print_exception_breakpoint_nontask.
6081 (error_breakpoint_runtime_sym_not_found): New function.
6082 (is_runtime_sym_defined): New function.
6083 (ada_breakpoint_rewrite): Uncomment suppressed code.
6084 Use symbolic error-message and runtime-symbol names.
6085 Surround runtime symbol names in quotes.
6086 Allow non-specific breakpoints on exceptions and assertions before
6087 program starts.
6088
6089 (ada_is_tagged_type): Add parameter.
6090 (ada_is_tag_type): New function.
6091 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6092 (ada_variant_discrim_type): Ditto.
6093 (value_tag_from_contents_and_address): New function.
6094 (type_from_tag): New function.
6095 (struct tag_args): New structure used to communicate with
6096 ada_tag_name_1.
6097 (ada_tag_name_1): New function.
6098 (ada_tag_name): New function.
6099
6100 (ada_scan_number): Update comment.
6101 (find_struct_field): New function.
6102 (ada_search_struct_field): Make static.
6103 (ada_value_struct_elt): New version that returns references when
6104 given pointers or references to structs.
6105 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6106 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6107 interface.
6108 (ada_value_ind): Use new ada_to_fixed_value interface.
6109 (ada_coerce_ref): Ditto.
6110 (field_offset): Remove.
6111
6112 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6113 (ada_find_renaming_symbol): New function.
6114 (ada_prefer_type): Prefer named types over unnamed ones.
6115 (variant_field_index): New function.
6116 (contains_variant_part): Removed: subsumed by variant_field_index.
6117 (ada_template_to_fixed_record_type): New function, mostly from
6118 template_to_fixed_record_type.
6119 (template_to_fixed_record_type):
6120 Do not scan the type fields beyond the last one; prevents a
6121 potential SEGV.
6122 Handle case where variant field is listed BEFORE discriminant it
6123 depends on.
6124 Fix calculation of record length when bit length is
6125 not evenly divisible by char length.
6126 Move code to ada_template_to_fixed_record_type and call it.
6127
6128 (template_to_static_fixed_type): Revise comment.
6129 Modify to work on ordinary record types as well as templates,
6130 so as to handle fields that use ___XVE or ___XVU encodings.
6131 (to_record_with_fixed_variant_part): Fill out comment.
6132 Initialize C++ stuff in right type.
6133 Allow case where DVAL is null.
6134 Handle case where variant field is not last.
6135 Fix typo concerning record length.
6136 (to_fixed_record_type): Decomment disabled code.
6137 (to_fixed_record_type): Use variant_field_index instead of
6138 contains_variant_part.
6139 (to_fixed_variant_branch_type): Ditto.
6140 (to_fixed_array_type): Decomment disabled code.
6141 (ada_to_fixed_type): Convert tagged types to the specific type.
6142 Deactivate the size-check for array types in order to avoid
6143 some false size alarms.
6144 (to_static_fixed_type): Decomment disabled code.
6145 Modify to call template_to_static_fixed_type
6146 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6147 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6148 Remove valaddr argument, as it is never really used.
6149 (ada_to_fixed_value): Change interface to act on single struct value*
6150 operand.
6151 (adjust_pc_past_prologue): New function.
6152 (ada_attribute_name): Modify to take enum exp_opcode argument.
6153
6154 (ada_enum_name): Recognize new homonym-distinguishing convention.
6155 Adjust local variable's type to remove compiler warning.
6156 Fix a small problem in the part that unqualifies the enumeration name.
6157 (ada_value_binop): New function.
6158 (ada_value_equal): New function.
6159
6160 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6161 Don't give error message when not doing normal evaluation
6162 and a tagged type doesn't seem to contain a structure member.
6163 Give error message for packed arrays.
6164 For indexing arrays, handle pointers to packed arrays correctly.
6165 Handle case of 'first and 'last attributes of bare integral type
6166 without encoded subtype info.
6167 Remove some unnecessary casts.
6168 Fix uninitialized value of type in computing 'first, 'last, or 'length
6169 of array object.
6170 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6171 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6172 calls.
6173 Attributes are now exp_opcode values.
6174 Correct treatment of 'modulus.
6175 Better error message for taking 'length of wrong kind of type;
6176 improve comment.
6177 Change EVAL_NORMAL to noside for consistency.
6178 Use ada_value_binop for DIV, MOD, REM.
6179 Make special case out of array of length 0, since an argument
6180 of 0 upsets some platforms' malloc.
6181 Use OP_STRING instead of OP_ARRAY.
6182 For slice, add check that we have an array type before extracting
6183 a slice out of it. Avoids a SEGV.
6184 When evaluating an array slice, if the array type is a reference to
6185 an aligner type, then replace the aligner type by the actual type.
6186 Decomment disabled code.
6187 Remove some dead code.
6188 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6189 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6190 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6191 and UNOP_MBR to UNOP_IN_RANGE.
6192 If an array type has a parallel ___XVE type, then use it.
6193 Turn arrays into pointers for lvalue arrays.
6194 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6195 bounds error and handle 0-length slices.
6196 Use lim_warning.
6197 When selecting fields, apply ada_to_fixed_value (because the fields
6198 might have ___XVU or ___XVE encodings even if not dynamic.)
6199 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6200 (ada_is_system_address_type): New function.
6201
6202 (get_var_value): Use new interface to ada_lookup_symbol_list.
6203 (get_int_var_value): New interface.
6204 (to_fixed_range_type): Allow unknown bound, with warning.
6205 (ada_is_modular_type): Decomment disabled code.
6206 (ADA_OPERATORS): New definition.
6207 (ada_operator_length): New function.
6208 (ada_expr_op_name): New function.
6209 (ada_forward_operator_length): New function.
6210 (ada_dump_subexp_body): New function.
6211 (ada_print_subexp): New function.
6212 (ada_exp_descriptor): New constant.
6213 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6214 (ada_language_defn): Add ada_exp_descriptor entry.
6215 Change ada_parse => parse.
6216 Add post-parser entry.
6217 Use ada-specific non-local symbol lookup.
6218 Don't use C-style arrays.
6219 String lower-bound is 1.
6220 Decomment disabled code.
6221 (parse): New function.
6222 New fields ada_translate_error_message, ada_lookup_symbol,
6223 ada_lookup_minimal_symbol.
6224
6225 * ada-lang.h: Update copyright dates.
6226 Replace the mangle/demangle terminology throughout by the
6227 more appropriate encode/decode one.
6228 Include breakpoint.h.
6229 Forward declare struct partial_symbol, struct block.
6230 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6231 (EXTRACT_ADDRESS): Remove.
6232 (EXTRACT_INT): Remove.
6233 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6234 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6235 (MAX_RENAMING_CHAIN_LENGTH): Define.
6236 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6237
6238 (enum task_states): Remove.
6239 ada_task_states: Remove.
6240 (fat_string): Remove.
6241 (struct entry_call): Remove.
6242 (struct task_fields): Remove.
6243 (struct task_entry): Remove.
6244
6245 (struct ada_symbol_info): Define.
6246 (enum ada_attribute): Remove.
6247 (enum ada_operator): Define.
6248
6249 (ada_get_field_index): Declare.
6250 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6251 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6252 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6253 (ada_lookup_symbol_list): New interface.
6254 (ada_decode_symbol): Declare.
6255 (ada_decode): Declare.
6256 (ada_lookup_symbol): New interface.
6257 (ada_update_initial_language): Declare.
6258 (ada_lookup_simple_minsym): Declare.
6259 (user_select_syms): New interface.
6260 (ada_sals_for_line): Declare.
6261 (ada_is_tagged_type): New interface.
6262 (ada_tag_name): Declare.
6263 (ada_lookup_struct_elt_type): Remove declaration.
6264 (ada_search_struct_field): Remove declaration.
6265 (ada_attribute_name): New interface.
6266 (ada_is_system_address_type): Declare.
6267 (ada_to_fixed_value): Remove declaration.
6268 (ada_template_to_fixed_record_type_1): Declare.
6269 (get_int_var_value): New interface.
6270 (ada_find_any_symbol): Declare.
6271 (ada_find_renaming_symbol): Declare.
6272 (ada_mangle): Rename to ada_encode.
6273 (ada_simple_renamed_entity): Remove const.
6274 (ada_main_name): Declare.
6275 (get_current_task): Rename to ada_get_current_task.
6276 (get_entry_number): Remove declaration.
6277 (ada_report_exception_break): Remove declaration.
6278 (ada_print_exception_breakpoint_nontask): Declare.
6279 (ada_print_exception_breakpoint_task): Declare.
6280 (ada_find_printable_frame): Declare.
6281
6282 * ada-lex.l: Update copyright notices.
6283 Use xmalloc and xfree instead of malloc and free.
6284 Use new interface to name_lookup.
6285 Use new interface to
6286 ada_mangle=>ada_encode.
6287 Redo handling of '$...' variable to parallel current treatment
6288 in c-exp.y.
6289 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6290 digit_to_int, strtoulst, processInt, processReal, processId,
6291 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6292 yywrap): Protoize.
6293
6294 (processInt): Use cast to remove harmless warning.
6295 (processReal): Modify to get rid of compiler warning on scan formats.
6296
6297 (processId): Replace xmalloc with obstack_alloc for name and remove
6298 call to ada_name_string_cleanup.
6299 Remove obsolete disabled code.
6300 (name_lookup): Ditto.
6301 New interface.
6302 Use obsavestring on temp_parse_space instead of savestring
6303 on name, and remove call to ada_name_string_cleanup.
6304 Free string returned from ada_simple_renamed_entity.
6305 Use new interface to ada_lookup_symbol_list.
6306 Decomment disabled code.
6307 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6308 not types.
6309 When a type name lookup succeeds as a result of
6310 lookup_primitive_typename, check for regular type entry that has not
6311 yet been read in.
6312 Limit length of chain of renamed symbols we are willing to follow.
6313 Do not break names beginning with "standard__" into segments.
6314 (block_lookup): Use new interface to ada_lookup_symbol_list.
6315
6316 * ada-typeprint.c: Update copyright notice.
6317 (demangled_type_name): Rename to decoded_type_name.
6318 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6319 (print_range_bound): Correct handling of negative
6320 bounds that make the index type looked unsigned under STABS.
6321 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6322 (print_range_type_named): Use the builtin int type if no type
6323 corresponding to the given type name could be found.
6324 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6325 Add some bullet-proofing.
6326 (print_variant_clauses): Allow for variant branches with ___XVU
6327 encodings that are not dynamic fields.
6328 Use new interface to ada_is_tagged_type.
6329 (print_record_type): Allow for fields with ___XVE encodings that
6330 are not dynamic fields.
6331 Use new interface to ada_is_tagged_type.
6332 (ada_print_type): ada_is_array_descriptor =>
6333 ada_is_array_descriptor_type.
6334
6335 * ada-valprint.c: Update copyright notice.
6336 Include gdb_string.h
6337 Include infcall.h
6338 (ui_memcpy): New function.
6339 (ada_print_floating): New function.
6340 (ada_print_str): Order arguments correctly.
6341 Correct handling of empty arrays and arrays of 0-length items.
6342 ada_is_array_descriptor => ada_is_array_descriptor_type
6343 Print values of type System.Address in hexadecimal format.
6344 Use ada_print_floating to print floating-point numbers in Ada format.
6345 Print class tag values with type names.
6346 No longer print the address of reference values. Avoids
6347 a potential confusion.
6348 (ada_value_print): Stop printing the object type for reference
6349 values, but preserve that behavior for access types. Avoids
6350 a potential confusion.
6351 Simplify one conditional expression, as the first part is now
6352 necessarily true.
6353 ada_is_array_descriptor => ada_is_array_descriptor_type
6354 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6355
f65f91b5
JB
63562004-06-01 Jim Blandy <jimb@redhat.com>
6357
6358 * ppc-tdep.h: Delete unused 'regoff' member.
6359 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6360
d4687fa0
MC
63612004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6362
6363 Fix PR symtab/1661.
6364 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6365 (hpread_read_struct_type): Likewise.
6366
de169ec9
AC
63672004-06-01 Andrew Cagney <cagney@gnu.org>
6368
c6902d46
AC
6369 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6370 instead of xasprintf.
6371 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6372 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6373 (mi_cmd_data_list_register_names)
6374 (mi_cmd_data_list_changed_registers)
6375 (mi_cmd_data_list_register_values)
6376 (get_register, mi_cmd_data_write_register_values)
6377 (mi_cmd_data_write_register_values)
6378 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6379 (mi_cmd_target_download, mi_cmd_target_select)
6380 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6381 (mi_execute_cli_command, mi_execute_async_cli_command)
6382 (mi_execute_async_cli_command): Ditto.
6383 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6384 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6385
6085fc2d
AC
6386 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6387 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6388 error_last_message instead of mi_error_last_message.
6389 * mi/mi-main.c (mi_error_last_message): Delete function.
6390
de169ec9
AC
6391 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6392 "invalid number of columns" error. Delete redundant "out of
6393 memory" check.
6394
1fc7d519
MK
63952004-05-31 Mark Kettenis <kettenis@gnu.org>
6396
6cfb2041
MK
6397 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6398 (gregset_t, fpregset_t): Remove typedefs.
6399 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6400 (REG_OFFSET): Rename argument.
6401 (i386bsd_r_reg_offset): Rename from reg_offset.
6402 (REG_ADDR): Remove macro.
6403 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6404 functions.
6405 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6406 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6407 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6408 instead of supply_gregset.
6409 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6410 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6411 instead of fill_gregset.
6412 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6413
1fc7d519
MK
6414 * i386bsd-nat.c: Don't include "gregset.h".
6415 (supply_gregset, fill_gregset): Make static.
6416 (supply_fpregset, fill_fpregset): Remove.
6417 * Makefile.in (i386bsd-nat.o): Update dependencies.
6418
2c34abbe
MK
64192004-05-30 Mark Kettenis <kettenis@gnu.org>
6420
448724fb
MK
6421 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6422 "gdb_assert.h". Con't include "gregset.h".
6423 (fbsd_make_corefile_notes): Use regset-based core file support
6424 instead off fill_gregset and fill_fpregset.
6425 * Makefile.in (fbsd-proc.o): Update dependencies.
6426
5ca8ca7c
MK
6427 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6428 instructions.
6429 (m88k_frame_prev_register): Simplify code a bit.
6430
593adc23
MK
6431 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6432 (amd64_collect_fpregset): New function.
6433 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6434
8d1b517b
MK
6435 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6436
7fdafb5a
MK
6437 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6438 (i386_collect_gregset): New function.
6439 (i386_supply_fpregset): Adjust comment.
6440 (i386_collect_fpregset): New function.
6441 (i386_regset_from_core_section): Use i386_collect_gregset and
6442 i386_collect_fpregset.
6443
8693c419
MK
6444 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6445 handle VALUEP being null.
6446
2c34abbe
MK
6447 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6448
45d134d8
MK
64492004-05-29 Mark Kettenis <kettenis@gnu.org>
6450
1698f4e7
MK
6451 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6452
45d134d8
MK
6453 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6454 assembler in OpenBSD 3.5-current.
6455 (amd64obsd_sigcontext_addr): Likewise.
6456
691d145a
JB
64572004-05-28 Jim Blandy <jimb@redhat.com>
6458
6459 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6460 register set, so our regcache isn't declared "legacy" and our E500
6461 pseudoregister read and write functions aren't ignored.
6462 (rs6000_register_byte, rs6000_register_raw_size,
6463 rs6000_register_virtual_type, rs6000_register_convertible,
6464 rs6000_register_convert_to_virtual,
6465 rs6000_register_convert_to_raw): Deleted.
6466 (rs6000_register_type, rs6000_convert_register_p,
6467 rs6000_register_to_value, rs6000_value_to_register): New
6468 functions.
6469 (rs6000_gdbarch_init): Don't register
6470 gdbarch_deprecated_register_size,
6471 gdbarch_deprecated_register_bytes,
6472 gdbarch_deprecated_register_byte,
6473 gdbarch_deprecated_register_raw_size,
6474 gdbarch_deprecated_register_virtual_type,
6475 gdbarch_deprecated_register_convertible,
6476 gdbarch_deprecated_register_convert_to_virtual, or
6477 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6478 register gdbarch_register_type, gdbarch_convert_register_p,
6479 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6480
18ed0c4e
JB
64812004-05-26 Jim Blandy <jimb@redhat.com>
6482
6483 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6484 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6485 functions, updated to match the register numberings used in GCC.
6486 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6487 rs6000_dwarf2_reg_to_regnum as register number conversions
6488 functions for STABS and Dwarf2.
6489
779af9e3
RC
64902004-05-26 Randolph Chung <tausq@debian.org>
6491
6492 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6493 in header file.
6494
c23968a2
JB
64952004-05-25 Joel Brobecker <brobecker@gnat.com>
6496
6497 * NEWS: Document new "start" command.
6498
3a7d1c27
RC
64992004-05-25 Randolph Chung <tausq@debian.org>
6500
6501 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6502 hppa-linux.
6503
43613416
RC
65042004-05-25 Randolph Chung <tausq@debian.org>
6505
6506 * hppa-hpux-tdep.c (offsetof): Define.
6507 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6508 (hppa32_hpux_frame_base_before_sigtramp)
6509 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6510 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6511 (hppa64_hpux_frame_base_before_sigtramp)
6512 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6513 functions.
6514 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6515 (hppa_hpux_sigtramp_frame_unwind_cache)
6516 (hppa_hpux_sigtramp_frame_this_id)
6517 (hppa_hpux_sigtramp_frame_prev_register)
6518 (hppa_hpux_sigtramp_frame_unwind)
6519 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6520 (hppa_hpux_init_abi): Register sigtramp unwinder.
6521 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6522
6d1be3f1
RC
65232004-05-25 Randolph Chung <tausq@debian.org>
6524
6525 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6526 and multiple stack unwinds.
6527 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6528
97c34f65
AC
65292004-05-25 Andrew Cagney <cagney@gnu.org>
6530
6531 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6532 * symfile-mem.h: Delete file.
6533 * symfile-mem.c: Do not include "symfile-mem.h".
6534 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6535 "struct bfd_section". When an error do not bother returning NULL.
6536 (add_symbol_file_from_memory_command): Use "struct bfd" and
6537 "struct bfd_section".
6538 * Makefile.in (symfile_mem_h): Delete.
6539 (symfile-mem.o): Update dependencies.
6540
e23cbd82
NR
65412004-05-25 Nick Roberts <nickrob@gnu.org>
6542
6543 * gdb-mi.el: New file.
6544
20d2ca3e
AC
65452004-05-25 Andrew Cagney <cagney@gnu.org>
6546
6547 * inftarg.c: Include "observer.h".
6548 (child_attach, child_create_inferior): Notify inferior_created.
6549 * corelow.c: Include "observer.h".
6550 (core_open): Notify inferior_created.
6551 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6552
c27cda74
AC
65532004-05-25 Andrew Cagney <cagney@gnu.org>
6554
6555 * target.h (struct target_ops): Add from_tty to
6556 to_create_inferior.
6557 (target_create_inferior, find_default_create_inferior): Update.
6558 * infcmd.c (run_command): Update.
6559 * wince.c (child_create_inferior): Update.
6560 * win32-nat.c (child_create_inferior): Update.
6561 * uw-thread.c (uw_thread_create_inferior): Update.
6562 * thread-db.c (thread_db_create_inferior): Update.
6563 * target.c (debug_to_create_inferior)
6564 (find_default_create_inferior): Update.
6565 (maybe_kill_then_create_inferior): Update.
6566 * sol-thread.c (sol_thread_create_inferior): Update.
6567 * remote.c (extended_remote_async_create_inferior)
6568 (extended_remote_create_inferior): Update.
6569 * remote-vx.c (vx_create_inferior): Update.
6570 * remote-st.c (st2000_create_inferior): Update.
6571 * remote-sim.c (gdbsim_create_inferior): Update.
6572 * remote-sds.c (sds_create_inferior): Update.
6573 * remote-rdp.c (remote_rdp_create_inferior): Update.
6574 * remote-rdi.c (arm_rdi_create_inferior): Update.
6575 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6576 * remote-e7000.c (e7000_create_inferior): Update.
6577 * procfs.c (procfs_create_inferior): Update.
6578 * ocd.c (ocd_create_inferior): Update.
6579 * ocd.h (ocd_create_inferior): Update.
6580 * nto-procfs.c (procfs_create_inferior): Update.
6581 * monitor.c (monitor_create_inferior): Update.
6582 * lin-lwp.c (lin_lwp_create_inferior): Update.
6583 * inftarg.c (child_create_inferior): Update.
6584 * hpux-thread.c (hpux_thread_create_inferior): Update.
6585 * gnu-nat.c (gnu_create_inferior): Update.
6586
1db2a798
AC
65872004-05-25 Andrew Cagney <cagney@gnu.com>
6588
6589 * MAINTAINERS: Update e-mail address.
6590
007d08bb
RC
65912004-05-24 Randolph Chung <tausq@debian.org>
6592
6593 * thread.c (info_threads_command, thread_apply_all_command)
6594 (thread_apply_command, thread_command, do_captured_thread_select):
6595 Remove HPUXHPPA-specific code.
6596
69e7b95e
RC
65972004-05-24 Randolph Chung <tausq@debian.org>
6598
6599 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6600 unused symbols.
6601 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6602 references.
6603
a4d5f2e0
JB
66042004-05-24 Joel Brobecker <brobecker@gnat.com>
6605
6606 * infcmd.c (kill_if_already_running): New function, extracted
6607 from run_command().
6608 (run_command): Replace extracted code by call to
6609 kill_if_already_running().
6610 (start_command): New function.
6611 (_initialize_infcmd): Add "start" command.
6612
bf2ca189
MK
66132004-05-24 Mark Kettenis <kettenis@gnu.org>
6614
6615 Add OpenBSD/m88k support.
6616 * NEWS (New native configurations): Mention OpenBSD/m88k.
6617 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6618 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6619 * Makefile.in (m88k_tdep_h): New variable.
6620 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6621 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6622 * configure.host: Add m88*-*-openbsd*.
6623 * configure.tgt: Add m88*-*-openbsd*.
6624
80fadb11
JB
66252004-05-24 Jim Blandy <jimb@redhat.com>
6626
6627 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6628 to approve changes.
6629
19e2d14b
KB
66302004-05-24 Kevin Buettner <kevinb@redhat.com>
6631
6632 * symtab.c (fixup_section): Search section table when lookup by
6633 name fails.
6634
1b07b470
RC
66352004-05-24 Randolph Chung <tausq@debian.org>
6636
6637 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6638 be "small_struct".
6639
368702b1
MK
66402004-05-24 Mark Kettenis <kettenis@gnu.org>
6641
5df97fde
MK
6642 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6643 register number in regcache_raw_collect call.
6644 (m68kbsd_collect_fpregset): Likewise.
6645 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6646
368702b1
MK
6647 * regset.h (struct regset): Add back `regset' member.
6648
a770d4ec
MK
66492004-05-23 Mark Kettenis <kettenis@gnu.org>
6650
70f9f479
MK
6651 * configure.in: Check for td_pcb in `struct thread'.
6652 * configure, config.in: Regenerated.
6653
2e16d79e
MK
6654 * dpx2-nat.c: Remove file.
6655 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6656 (dpx2-nat.o): Remove dependencies.
6657
492cf391
MK
6658 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6659 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6660 (amd64obsd_supply_pcb): New function.
6661 (_initialize_amd64obsd_nat): Enable libkvm interface.
6662 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6663 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6664 (LOADLIBES): New variable.
6665
a770d4ec
MK
6666 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6667 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6668 (sparc32nbsd_supply_pcb): New function.
6669 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6670 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6671 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6672 (LOADLIBES): New variable.
6673
9ea75c57
MK
66742004-05-22 Mark Kettenis <kettenis@gnu.org>
6675
2e0c3539
MK
6676 * bsd-kvm.c, bsd-kvm.h: New files.
6677 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6678 "bsd-kvm.h".
6679 (i386fbsd_supply_pcb): New function.
6680 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6681 (i386fbsd-nat.o): Update dependencies.
6682 (bsd_kvm_h): New variable.
6683 (bsd-kvm.o): New dependency.
6684 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6685 (LOADLIBES): New variable.
6686
9ea75c57
MK
6687 * regset.c: Tweak comment.
6688 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6689 macro.
6690 * regset.h: Update copyright year.
6691 (struct regset): Remove `descr' member, add `gdbarch' member.
6692 (regset_alloc): Adjust prototype and comment.
6693 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6694 (i386_supply_fpregset): Likewise.
6695 (i386_regset_from_core_section): Update call to regset_alloc.
6696 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6697 REGSET->arch.
6698 (i386obsd_aout_regset_from_core_section): Update call to
6699 regset_alloc.
6700 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6701 REGSET->arch.
6702 (i386nbsd_aout_regset_from_core_section): Update call to
6703 regset_alloc.
6704 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6705 REGSET->arch.
6706 (amd64_regset_from_core_section): Update call to regset_alloc.
6707 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6708 REGSET->arch.
6709 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6710 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6711 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6712 (sparc32nbsd_init_abi): Update call to regset_alloc.
6713 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6714 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6715 (sparc64obsd_init_abi): Update call to regset_alloc.
6716 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6717 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6718 (sparc64nbsd_init_abi): Update call to regset_alloc.
6719 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6720 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6721 (sparc64fbsd_init_abi): Update call to regset_alloc.
6722
867e2dc5
JB
67232004-05-22 Jim Blandy <jimb@redhat.com>
6724
6725 * ppc-tdep.h (spe_register_p): New declaration.
6726 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6727 ppc_spefscr_regnum.
6728 * rs6000-tdep.c (spe_register_p): New function.
6729 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6730 spefscr.
6731 (rs6000_gdbarch_init): Initialize the new members of the tdep
6732 structure.
6733
617a4cba
JB
67342004-05-21 Jim Blandy <jimb@redhat.com>
6735
0397dee1
JB
6736 * ppc-linux-nat.c (fetch_register): Move code back to be next
6737 to the comment that describes it. (Moved code, instead of
6738 comment, for symmetry with store_register.)
6739
617a4cba
JB
6740 Allocate regset structures in the gdbarch's obstack, not using
6741 xmalloc.
6742 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6743 Add 'arch' argument. Allocate the regset on arch's obstack, not
6744 using xmalloc.
6745 * regset.h (regset_alloc): Update declaration.
6746 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6747 gdbarch argument.
6748 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6749 * i386-tdep.c (i386_regset_from_core_section): Same.
6750 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6751 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6752 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6753 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6754 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6755 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6756
9aa3914d
JB
67572004-05-21 Joel Brobecker <brobecker@gnat.com>
6758
6759 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6760
99c87dab
JB
67612004-05-21 Jim Blandy <jimb@redhat.com>
6762
6763 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6764 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6765
c2b6b4aa
JB
67662004-05-20 Jim Blandy <jimb@redhat.com>
6767
6768 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6769
144529d0
MK
67702004-05-20 Mark Kettenis <kettenis@gnu.org>
6771
6772 * regset.h: Make prototype const-correct.
6773 * regset.c (regset_xmalloc): Make const-correct.
6774
4725b721
PH
67752004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6776
6777 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6778 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6779 (symbol_search_name): Declare.
6780
6781 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6782 (iter_name_next_hashed): Ditto.
6783 (iter_name_next_linear): Ditto.
6784 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6785
6786 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6787 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6788 (symbol_search_name): New function.
6789
6790 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6791
6792 * minsyms.c (build_minimal_symbol_hash_tables): Change
6793 test for adding to demangled hash table to check for difference
6794 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6795
be07a590
JB
67962004-05-19 Jim Blandy <jimb@redhat.com>
6797
6798 Use a constructor function to create regset structures.
6799 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6800 (struct regset): Use supply_regset_ftype. Add new
6801 'collect_regset' member.
6802 (regset_xmalloc): New declaration.
6803 * regset.c: New file.
6804 * am64-tdep.c (amd64_regset_from_core_section): Use
6805 regset_xmalloc to construct regset structures.
6806 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6807 * i386-tdep.c (i386_regset_from_core_section): Same.
6808 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6809 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6810 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6811 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6812 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6813 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6814 * Makefile.in (COMMON_OBS): Add regset.o.
6815 (regset.o): New rule.
6816
604368f5
JB
68172004-05-19 Joel Brobecker <brobecker@gnat.com>
6818
6819 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6820 and pthread_cond_wait.c.
6821
82d69f8b
JB
68222004-05-18 Jim Blandy <jimb@redhat.com>
6823
6824 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6825 before the mach-specific switch, and then let the individual cases
6826 override the defaults, rather than leaving them uninitialized
6827 until the switch and then setting them in each case.
6828
5859efe5
RC
68292004-05-18 Randolph Chung <tausq@debian.org>
6830
6831 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6832 millicode functions.
6833
9ca80cf8
RC
68342004-05-18 Randolph Chung <tausq@debian.org>
6835
6836 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6837 references to dld_flags_buffer consistent.
6838
ed70ba00
RC
68392004-05-18 Randolph Chung <tausq@debian.org>
6840
6841 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6842 it for unwinding the stack.
6843
63100632
RC
68442004-05-18 Randolph Chung <tausq@debian.org>
6845
6846 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6847 Undefine these so we can overide them using gdbarch.
6848
090ccbb7
RC
68492004-05-18 Randolph Chung <tausq@debian.org>
6850
6851 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6852 handling for 64-bit HPUX (elf).
6853
594706e6
DJ
68542004-05-18 Daniel Jacobowitz <dan@debian.org>
6855
6856 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6857 constants.
6858 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6859 * ia64-tdep.c (examine_prologue): Likewise.
6860 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6861 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6862
e5483145
MK
68632004-05-18 Mark Kettenis <kettenis@gnu.org>
6864
6865 * vax-tdep.c (vax_return_value): Implement
6866 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6867
caed1a45
MK
68682004-05-17 Mark Kettenis <kettenis@gnu.org>
6869
6870 * vax-tdep.c (vax_return_value): Fix typo.
6871
3c0b7db2
AC
68722004-05-17 Andrew Cagney <cagney@redhat.com>
6873
5aae53e5
AC
6874 * MAINTAINERS: Mark Salter was also responsible for
6875 testsuite/config/
6876
3c0b7db2
AC
6877 * NEWS: Mention signal fixes.
6878
22b0923d
RC
68792004-05-17 Randolph Chung <tausq@debian.org>
6880
6881 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6882 check to see if we are unwinding an export stub. Export stubs clobber
6883 the %rp in the call path and stores the original rp in a stack slot.
6884
22f2b2f3
JB
68852004-05-17 Jim Blandy <jimb@redhat.com>
6886
6887 * MAINTAINERS: Update address for J.T. Conklin.
6888
cea96d64
RC
68892004-05-17 Randolph Chung <tausq@debian.org>
6890
6891 * hppa-tdep.c: Remove superfluous #include's.
6892 * Makefile.in (hppa-tdep.o): Update dependencies.
6893
f08f6a4a
RC
68942004-05-17 Randolph Chung <tausq@debian.org>
6895
6896 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6897 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6898 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6899 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6900 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6901 Remove static function declarations.
6902
51da707a
MK
69032004-05-17 Mark Kettenis <kettenis@gnu.org>
6904
caed1a45
MK
6905 * alphabsd-nat.c: Update copyright year.
6906 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6907
c0c2b0db
MK
6908 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6909 and M68K_A2_REGNUM.
6910
51da707a
MK
6911 * m68k-tdep.c (m68k_svr4_return_value): Implement
6912 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6913
8d027a04
MK
69142004-05-16 Mark Kettenis <kettenis@gnu.org>
6915
6916 * sol-thread.c Update copyright year. Fix various coding
6917 standards violations. Tweak a few comments.
6918 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6919 Delete prototypes.
6920
0d99fdb9
RC
69212004-05-15 Randolph Chung <tausq@debian.org>
6922
6923 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6924 as pointer instead of array reference since HPUX compiler does
6925 not accept unsized array arguments.
6926 * somsolib.c (dld_flags_buffer): Use constant array size.
6927
f7e3843a
MK
69282004-05-15 Mark Kettenis <kettenis@gnu.org>
6929
0fe85704
MK
6930 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6931 offset with decimal offset.
6932 (amd64obsd_sigcontext_addr): Return correct address for entire
6933 signal trampoline.
6934
a54f9a00
MK
6935 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6936 instead of get_frame_base.
6937
feae6502
MK
6938 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6939 (fill_gregset): Use regcache_raw_collect.
6940
0382d099
MK
6941 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6942 ppcobsd-tdep.c.
6943
f7e3843a
MK
6944 * config/sparc/tm-nbsd64.h: Remove file.
6945 * config/tm-sunos.h: Remove file.
6946
773df3e5
JB
69472004-05-15 Joel Brobecker <brobecker@gnat.com>
6948
6949 * rs6000-tdep.c (store_param_on_stack_p): New function,
6950 an improved version of some code extracted from skip_prologue().
6951 (skip_prologue): Use store_param_on_stack_p() to detect
6952 instructions saving a parameter on the stack. Detect when r0
6953 is used to save a parameter.
6954 Do not mark "li rx, SIMM" instructions as part of the prologue,
6955 unless the following instruction is also part of the prologue.
6956
95918acb
AC
69572004-05-14 Andrew Cagney <cagney@redhat.com>
6958
06f32659
AC
6959 * infrun.c (handle_inferior_event): Simplify
6960 STEP_OVER_UNDEBUGGABLE.
6961
95918acb
AC
6962 * infrun.c (handle_step_into_function): Delete function.
6963 (handle_inferior_event): Inline calls to
6964 handle_step_into_function.
6965
40711ff1 69662004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6967
6968 * rs6000-nat.c: Fix a comment.
6969
02f60eae
JB
69702004-05-12 David Anderson <davea@sgi.com>
6971
6972 Committed by Jim Blandy <jimb@redhat.com>:
6973 * regcache.c (struct regcache_descr): fix comment spelling.
6974
552e377b
JB
69752004-05-13 J. Brobecker <brobecker@gnat.com>
6976
6977 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6978 Fixes a link link failure.
6979
349766b2
JB
69802004-05-13 J. Brobecker <brobecker@gnat.com>
6981
6982 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6983 error that was causing the build to fail.
6984
0d4d5484
JB
69852004-05-13 J. Brobecker <brobecker@gnat.com>
6986
6987 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6988 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6989
0b30808c
AC
69902004-05-13 Andrew Cagney <cagney@redhat.com>
6991
6992 * infrun.c (handle_inferior_event): Check for
6993 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6994 calls. Update comments.
6995
cdf2c5f5
JB
69962004-05-13 Jim Blandy <jimb@redhat.com>
6997
063715bf
JB
6998 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6999 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7000 (store_regs_user_thread, store_regs_kernel_thread): Use
7001 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7002 * ppc-linux-nat.c (fill_gregset): Same.
7003 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7004 (ppc_linux_sigtramp_cache): Same.
7005 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7006 (ppcnbsd_sigtramp_cache_init): Same.
7007 * rs6000-nat.c (fetch_core_registers): Same.
7008 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7009 (rs6000_frame_cache): Same.
7010
cdf2c5f5
JB
7011 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7012 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7013 of assuming that the gprs are numbered starting with zero.
7014 * ppc-linux-nat.c (fill_gregset): Same.
7015 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7016 * ppcnbsd-nat.c (getregs_supplies): Same.
7017 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7018 * rs6000-nat.c (fetch_core_registers): Same.
7019 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7020
450bd37b
MS
70212004-05-07 Michael Snyder <msnyder@redhat.com>
7022
7023 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7024 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7025
4a72a2a6
AC
70262004-05-13 Andrew Cagney <cagney@redhat.com>
7027
7028 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7029
8edfa926
BM
70302004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7031
7032 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7033 base_address for shared libraries.
7034
723e0e3d
BM
70352004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7036
7037 * MAINTAINERS (write after approval): Add myself.
7038
00d4360e
UW
70392004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7040
7041 * breakpoint.c (bpstat_stop_status): Add new argument
7042 STOPPED_BY_WATCHPOINT. Use it instead of testing
7043 target_stopped_data_address agaist 0 to check whether
7044 or not we stopped due to a hardware watchpoint.
7045 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7046 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7047 with new argument.
7048
ec76baa5
JB
70492004-05-12 Jim Blandy <jimb@redhat.com>
7050
7051 * configure.in: When checking whether we should use the -bbigtoc
7052 option, don't forget to restore the original value of LDFLAGS.
7053 * configure: Regenerated.
7054
f2c9ca08
AC
70552004-05-12 Andrew Cagney <cagney@redhat.com>
7056
7057 * thread.c (load_infrun_state): Delete step_sp.
7058 * infrun.c (context_switch): Ditto.
7059 * inferior.h (step_sp): Ditto.
7060 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7061 * gdbthread.h (struct thread_info, save_infrun_state)
7062 (restore_infrun_state): Ditto.
7063
090ddb2a
UW
70642004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7065
7066 * MAINTAINERS (write after approval): Add myself.
7067
8aad930b
AC
70682004-05-12 Andrew Cagney <cagney@redhat.com>
7069
7070 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7071 eliminate reference to step_sp.
7072 (struct execution_control_state, init_execution_control_state)
7073 (handle_inferior_event, keep_going): Delete update_step_sp and
7074 step_sp.
7075 * infcmd.c (step_sp): Note that variable is unused.
7076
922d5ae0
AC
70772004-05-11 Andrew Cagney <cagney@redhat.com>
7078
7079 * infrun.c (step_over_function): Delete function.
7080 (handle_step_into_function): Use insert_step_resume_breakpoint.
7081 (insert_step_resume_breakpoint): Fix assertion.
7082
017c5ca5
NR
70832004-05-11 Nick Roberts <nickrob@gnu.org>
7084
7085 * utils.c (defaulted_query): Just use the normal query input type
7086 when printing the annotations.
7087
42edda50
AC
70882004-05-11 Andrew Cagney <cagney@redhat.com>
7089
7090 * infrun.c (handle_inferior_event): Simplify code handling
7091 step-into or return-from a signal trampoline.
7092
d28b44a7
AC
70932004-05-11 Andrew Cagney <cagney@redhat.com>
7094
7095 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7096 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7097
383f0f5b
JB
70982004-05-10 Jim Blandy <jimb@redhat.com>
7099
d0b57c3a
JB
7100 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7101 with a call to internal_error.
7102
383f0f5b
JB
7103 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7104 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7105 processor variant lacks those registers.
7106 (ppc_floating_point_unit_p): Change description to make it clear
7107 that this returns info about the ISA, not the ABI.
7108 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7109 return true or false by checking tdep->ppc_fp0_regnum and
7110 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7111 arch/mach switching done in rs6000_gdbarch_init; it's better to
7112 keep that logic there, and just check the results here.
7113 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7114 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7115 floating-point registers.
7116 (ppc_supply_fpregset, ppc_collect_fpregset)
7117 (rs6000_push_dummy_call, rs6000_extract_return_value)
7118 (rs6000_store_return_value): Assert that we have floating-point
7119 registers.
7120 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7121 (rs6000_frame_cache): Don't note the locations at which
7122 floating-point registers were saved if we have no fprs.
7123 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7124 registers.
7125 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7126 (store_regs_user_thread, store_regs_kernel_thread): Only call
7127 supply_fprs / fill_fprs if we actually have floating-point
7128 registers.
7129 (special_register_p): Check ppc_fpscr_regnum before matching
7130 against it.
7131 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7132 supply / collect fpscr if we don't have it.
7133 * ppc-bdm.c: #include "gdb_assert.h".
7134 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7135 have floating-point registers, since I can't test this code on
7136 FP-free systems to adapt it.
7137 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7138 fpscr and floating point register numbers if they don't exist.
7139 (fetch_register): Assert that we have floating-point registers
7140 before we reach the code that handles them.
7141 (store_register): Same. And use tdep instead of calling
7142 gdbarch_tdep again.
7143 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7144 don't have them.
7145 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7146 fprs and fpscr if we don't have them.
7147 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7148 don't have them.
7149 * ppcnbsd-nat.c: #include "gdb_assert.h".
7150 (getfpregs_supplies): Assert that we have floating-point registers.
7151 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7152 * ppcobsd-tdep.c: #include "gdb_assert.h".
7153 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7154 have floating-point registers.
7155 * rs6000-nat.c (regmap): Don't match against the fpscr and
7156 floating point register numbers if they don't exist.
7157 (fetch_inferior_registers, store_inferior_registers,
7158 fetch_core_registers): Only fetch / store / supply the
7159 floating-point registers and the fpscr if we have them.
7160 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7161 (ppcobsd-tdep.o): Update dependencies.
7162
15960608
AC
71632004-05-10 Andrew Cagney <cagney@redhat.com>
7164
7165 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7166 (context_switch): Do not switch through_sigtramp_breakpoint.
7167 * gdbthread.h (save_infrun_state, load_infrun_state)
7168 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7169 and structure member.
7170 * thread.c (load_infrun_state, save_infrun_state): Update.
7171
5ab5aa0f
MK
71722004-05-10 Mark Kettenis <kettenis@gnu.org>
7173
7174 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7175
da78b0e7
DJ
71762004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7177
7178 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7179 throughout.
7180 * aclocal.m4: Regenerate.
7181
cca0d3b0
NW
71822004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7183
7184 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7185
d303a6c7
AC
71862004-05-10 Andrew Cagney <cagney@redhat.com>
7187
7188 * infrun.c (check_sigtramp2): Delete function.
7189 (handle_inferior_event): When single stepping, and taking a
7190 signal, set a breakpoint at the signal return address. Delete
7191 redundant calls to check_sigtramp2.
7192 (insert_step_resume_breakpoint): New function.
7193 (through_sigtramp_breakpoint, handle_inferior_event)
7194 (follow_exec, wait_for_inferior, fetch_inferior_event)
7195 (currently_stepping, keep_going): Delete most uses of
7196 through_sigtramp_breakpoint, not that it should be deleted.
7197 (delete_breakpoint_current_contents): Delete function.
7198
03f4cc20
RC
71992004-05-10 Randolph Chung <tausq@debian.org>
7200
7201 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7202 target.
7203 * config/pa/tm-linux.h: New file.
7204
37fc812e
DJ
72052004-05-10 Daniel Jacobowitz <drow@mvista.com>
7206
7207 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7208 of prefixes. Don't print the prefix twice in the CLI.
7209
26c0b942
JB
72102004-05-10 Jim Blandy <jimb@redhat.com>
7211
2e56e9c1
JB
7212 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7213 collect all the gprs.
7214
26c0b942
JB
7215 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7216 loop collecting gprs.
7217
dc497459
AC
72182004-05-09 Andrew Cagney <cagney@redhat.com>
7219
7220 * remote-vx.c (net_step): Delete step-range code.
7221 * remote.c (remote_resume, init_all_packet_configs)
7222 (set_remote_protocol_E_packet_cmd)
7223 (show_remote_protocol_E_packet_cmd)
7224 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7225 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7226 (show_remote_protocol_e_packet_cmd): Ditto.
7227
0543f387
MK
72282004-05-09 Mark Kettenis <kettenis@gnu.org>
7229
c481d1ca
MK
7230 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7231
f626a069
MK
7232 * hppa-tdep.h: Update copyright year.
7233 (struct trad_frame_saved_reg): Add opaque declaration.
7234
6fa57a7d
MK
7235 * amd64-tdep.c (amd64_return_value): Implement
7236 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7237
e47577ab
MK
7238 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7239 (m68k_value_to_register): New functions.
7240 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7241 value_to_register.
7242
31db7b6c
MK
7243 * defs.h (enum return_value_convention): Add
7244 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7245 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7246 * infcmd.c (legacy_return_value): New function.
7247 (print_return_value): Rwerite to implement
7248 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7249 * values.c (using_struct_return): Check for inequality to
7250 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7251 RETURN_VALUE_STRUCT_CONVENTION.
7252 * i386-tdep.c (i386_return_value): Implement
7253 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7254
0543f387
MK
7255 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7256 include "symtab.h", "opcode/vax.h" and "inferior.h".
7257 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7258 to read_memory_unsigned_integer.
7259 (vax_gdbarch_init): Reorder.
7260 (_initialize_vax_tdep): Spell out prototype.
7261 * Makefile.in (vax-tdep.o): Update dependencies.
7262
0c93b7b6
AC
72632004-05-08 Andrew Cagney <cagney@redhat.com>
7264
e6b55ae2
AC
7265 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7266 * target.c (target_detach, target_disconnect): Ditto.
7267
1ac839b8
AC
7268 * infcall.c (call_function_by_hand): When no
7269 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7270 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7271 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7272 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7273 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7274
28954179
AC
7275 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7276 * gdbarch.h, gdbarch.c: Re-generate.
7277 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7278 deprecated_fix_call_dummy.
7279 * v850-tdep.c (v850_gdbarch_init): Ditto.
7280 * infcall.c (call_function_by_hand): Do not call
7281 DEPRECATED_FIX_CALL_DUMMY.
7282
434b87dd
AC
7283 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7284 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7285 * gdbarch.h, gdbarch.c: Re-generate.
7286 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7287 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7288 deprecated_sizeof_call_dummy_words.
7289 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7291 * v850-tdep.c (v850_gdbarch_init): Ditto.
7292 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7293 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7294 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7295 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7296 * arch-utils.h (legacy_call_dummy_words)
7297 (legacy_sizeof_call_dummy_words): Delete declarations.
7298 * arch-utils.c (legacy_call_dummy_words)
7299 (legacy_sizeof_call_dummy_words): Delete variables.
7300
58d28df8
AC
7301 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7302 * gdbarch.h, gdbarch.c: Re-generate.
7303 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7304 * infcall.c (call_function_by_hand): Eliminate call to
7305 DEPRECATED_PUSH_DUMMY_FRAME.
7306 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7307 push_dummy_frame.
7308 (ns32k_push_dummy_frame): Delete function.
7309
e4a2df64
AC
7310 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7311 deprecated_call_dummy_breakpoint_offset or
7312 deprecated_call_dummy_start_offset.
7313 * dummy-frame.c, arm-tdep.c: Update comments.
7314 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7315 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7316 * gdbarch.h, gdbarch.c: Re-generate.
7317
d3712828
AC
7318 * infcall.c (legacy_push_dummy_code): Delete function.
7319 (push_dummy_code): Delete call.
7320
7a882905
AC
7321 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7322 * gdbarch.h, gdbarch.c: Re-generate.
7323 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7324 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7325 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7326 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7327
0ec5872b
AC
7328 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7329 (struct frame_info): Delete opaque declaration.
7330 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7331 * frame.c (get_frame_type): Delete call.
7332
0c93b7b6
AC
7333 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7334 pc_in_call_dummy.
7335 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7336 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7337
75536971
MK
73382004-05-08 Mark Kettenis <kettenis@gnu.org>
7339
527ca6bb
MK
7340 * alphanbsd-tdep.c: Include "gdb_string.h".
7341 * armnbsd-tdep.c: Update copyright year.
7342 Include "gdb_string.h".
7343 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7344 dependencies.
7345
d39fdc61
MK
7346 * delta68-nat.c: Remove file.
7347 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7348 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7349 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7350 (delta68-nat.o): Remove dependency.
7351
75536971
MK
7352 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7353 function.
7354 (m68k_gdbarch_init): Don't set
7355 deprecated_frameless_function_invocation.
7356
f4ca1d1f
RC
73572004-05-07 Randolph Chung <tausq@debian.org>
7358
7359 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7360 read_memory_nobpt for code reading when doing frame unwinding.
7361 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7362
2f0e8c7a
RC
73632004-05-07 Randolph Chung <tausq@debian.org>
7364
7365 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7366 instead of sp, handle sigaltstack case.
7367 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7368 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7369 signal handler and not that of the caller.
7370 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7371 hppa_linux_sigtramp_find_sigcontext.
7372
959464ff
RC
73732004-05-07 Randolph Chung <tausq@debian.org>
7374
7375 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7376 hppa-linux-nat.c.
7377 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7378 * hppa-linux-nat.c (fetch_register, store_register): Define.
7379 (fetch_inferior_registers, store_inferior_registers): Define.
7380 (supply_gregset): Add comment and clean up some unneeded code.
7381 (fill_gregset): Add comment and fix so that it saves registers in
7382 the right place in the gregset.
7383 (fill_fpregset): Fix buffer overrun problem.
7384 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7385
0da28f8a
RC
73862004-05-07 Randolph Chung <tausq@debian.org>
7387
7388 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7389 do common handling of the pcoqt register.
7390 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7391 to use helper function.
7392 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7393 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7394 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7395 generic fallback unwinder when all else fails.
7396 (hppa_gdbarch_init): Add fallback sniffer.
7397 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7398 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7399 to use helper function.
7400
b9ec757a
JB
74012004-05-08 Joel Brobecker <brobecker@gnat.com>
7402
7403 * config/djgpp/fnchange.lst: Add translation rules for
7404 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7405
756e95f1
MK
74062004-05-08 Mark Kettenis <kettenis@gnu.org>
7407
7408 * frame.c (get_prev_frame_1): Work around GCC bug.
7409 * frame.h: Add comment about GCC bug.
7410
2b4855ab
AC
74112004-05-07 Andrew Cagney <cagney@redhat.com>
7412
7413 * observer.c: Include "commands.h" and "gdbcmd.h".
7414 (observer_debug, _initialize_observer): Add the
7415 command "set/show debug observer".
7416 * observer.sh: When observer debugging, log notify calls.
7417 * Makefile.in (observer.o): Update dependencies.
7418
ba3e8e46
JM
74192004-05-07 Jason Molenda (jmolenda@apple.com)
7420
7421 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7422
16796152
JB
74232004-05-07 Jim Blandy <jimb@redhat.com>
7424
daf6dc85
JB
7425 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7426 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7427 to recognize gpr regnums, instead of assuming that
7428 tdep->ppc_fp0_regnum marks the end of the general-purpose
7429 registers.
7430
16796152
JB
7431 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7432 the given architecture has floating-point registers.
7433
c69b8bfc
AC
74342004-05-07 Andrew Cagney <cagney@redhat.com>
7435
7436 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7437 macro defined to 1.
7438 * gdbarch.h, gdbarch.c: Re-generate.
7439 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7440 deprecated_use_generic_dummy_frames.
7441
7243600a
BF
74422004-05-07 Brian Ford <ford@vss.fsi.com>
7443
7444 * NEWS: Mention Cygwin DWARF 2 support.
7445
73c1e0a1
AC
74462004-05-07 Andrew Cagney <cagney@redhat.com>
7447
7448 * objfiles.h (struct entry_info): Delete unused fields
7449 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7450 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7451 * mipsread.c (mipscoff_symfile_read): Update.
7452 * mdebugread.c (parse_partial_symbols): Update.
7453 * dwarfread.c (read_file_scope): Update.
7454 * dwarf2read.c (read_file_scope): Update.
7455 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7456 * coffread.c (complete_symtab): Update.
7457
1d3056ac
MK
74582004-05-07 Mark Kettenis <kettenis@gnu.org>
7459
7460 * infcall.c (_initialize_infcall): Fix typo.
7461
15170568
AC
74622004-05-07 Andrew Cagney <cagney@redhat.com>
7463
7464 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7465 * command.h (add_setshow_zinteger_cmd): Declare.
7466
34f75cc1
RC
74672004-05-06 Randolph Chung <tausq@debian.org>
7468
7469 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7470 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7471 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7472 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7473 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7474 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7475 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7476 definitions ...
7477 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7478 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7479 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7480 (hppa64_hpux_frame_find_saved_regs_in_sig)
7481 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7482 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7483 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7484 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7485 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7486 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7487 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7488 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7489 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7490 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7491 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7492 (hppa32_register_type, hppa_cannot_store_register)
7493 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7494 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7495 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7496 * pa64solib.c (pa64_solib_have_load_event)
7497 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7498 (pa64_solib_unloaded_library_pathname): Likewise.
7499 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7500 (som_solib_library_pathname): Likewise.
7501
0a5e7efe
JI
75022004-05-05 Jim Ingham <jingham@apple.com>
7503
7504 * breakpoint.c (create_breakpoints): Copy the ignore count and
7505 thread id over from the pended breakpoint to the actual
7506 breakpoint.
7507
10a4b113
AC
75082004-05-05 Andrew Cagney <cagney@redhat.com>
7509
7510 * gdbarch.sh (PARM_BOUNDARY): Delete.
7511 gdbarch.h, gdbarch.c: Re-generate.
7512 * valops.c (PARM_BOUNDARY): Delete macro.
7513 (value_push): Delete PARM_BOUNDARY code.
7514 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7515
366f009f
JB
75162004-05-04 Jim Blandy <jimb@redhat.com>
7517
32b99774
JB
7518 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7519 Don't assume that the gprs, fprs, and UISA sprs are
7520 contiguous, start at register number zero, and end with fpscr.
7521 Instead, use the numbers from the tdep structure.
7522
366f009f
JB
7523 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7524 should no longer be used in code specific to the RS6000 and its
7525 derivatives.
7526 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7527 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7528 tdep->ppc_fp0_regnum.
7529 (ppc_supply_fpregset, ppc_collect_fpregset)
7530 (rs6000_push_dummy_call, rs6000_extract_return_value)
7531 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7532 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7533 FP0_REGNUM.
7534 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7535 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7536 Same.
7537 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7538 bdm_ppc_store_registers): Same.
7539 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7540 (store_register, fill_fpregset): Same.
7541 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7542 (ppc_linux_supply_fpregset): Same.
7543 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7544 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7545 Same.
7546 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7547 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7548 ppc64_sysv_abi_return_value): Same.
7549 * rs6000-nat.c (regmap, fetch_inferior_registers)
7550 (store_inferior_registers, fetch_core_registers): Same.
7551
827f338d
MK
75522004-05-01 Mark Kettenis <kettenis@gnu.org>
7553
7554 * m68knbsd-nat.c: Remove file.
7555 * m68knbsd-tdep.c: Remove file.
7556 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7557 dependencies.
7558 * configure.host: Add m68k-*-netbsdelf*.
7559 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7560 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7561 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7562 (XM_FILE): Remove.
7563 * config/m68k/nbsdelf.mh: New file.
7564 * config/m68k/nbsd.mt: New file.
7565 * config/m68k/nbsdaout.mt: Remove file.
7566 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7567 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7568 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7569 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7570 (use_struct_convention): Remove prototype.
7571 (USE_STRUCT_CONVENTION): Remove define.
7572 * config/m68k/xm-nbsd.h: Remove file.
7573
66894781
MS
75742004-05-04 Michael Snyder <msnyder@redhat.com>
7575
7576 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7577 reg_struct_return method (as gcc usually does for cross targets).
7578
f0f63663
AC
75792004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7580
7581 Committed by Andrew Cagney.
7582 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7583 alignment padding when accessing ucontext struct members.
7584
edf61169
JB
75852004-05-04 Jim Blandy <jimb@redhat.com>
7586
8bf659e8
JB
7587 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7588 'ppc_gplast_regnum' member.
7589 (ppc_num_gprs): New enum constant.
7590 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7591 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7592 * rs6000-nat.c (regmap, fetch_inferior_registers,
7593 store_inferior_registers): Same.
7594 * rs6000-tdep.c (e500_pseudo_register_read)
7595 (e500_pseudo_register_write): Same.
7596 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7597
b967e06f
JB
7598 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7599 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7600 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7601 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7602 FPLAST_REGNUM.
7603 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7604 Same.
7605 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7606 * rs6000-nat.c (regmap, fetch_inferior_registers)
7607 (store_inferior_registers): Same.
7608
edf61169
JB
7609 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7610 with FPLAST_REGNUM.
7611
58a9656e
JB
76122004-05-03 Joel Brobecker <brobecker@gnat.com>
7613
7614 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7615 failure detected by recent versions of GCC.
7616 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7617 to be consistent with the usage in dwarf2_create_include_psymtab.
7618
dc305454
MS
76192004-05-03 Michael Snyder <msnyder@redhat.com>
7620
7621 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7622 (heuristic_proc_start): Whitespace cleanup.
7623
29972665
MK
76242004-05-04 Mark Kettenis <kettenis@gnu.org>
7625
6b57680d
MK
7626 * sun3-nat.c: Remove file.
7627 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7628 dependencies.
7629 (ALLDEPFILES): Remove sun3-nat.c.
7630 (sun3-nat.o): Remove dependencies.
7631
29972665
MK
7632 * i386-interix-nat.c, i386-interix-tdep.c,
7633 config/i386/nm-interix.h, config/i386/interix.mh,
7634 config/i386/interix.mt: Remove files.
7635 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7636 dependencies.
7637
f595cb19
MK
76382004-05-03 Mark Kettenis <kettenis@gnu.org>
7639
7640 * m68k-tdep.h (struct gdbarch_tdep): Add member
7641 struct_value_regnum.
7642 (m68k_svr4_init_abi): New prototype.
7643 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7644 different calling conventions.
7645 (m68k_extract_return_value): Remove code dealing with single-field
7646 structs.
7647 (m68k_store_return_value): Remove code dealing with single-field
7648 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7649 (m68k_extract_struct_value_address): Remove function.
7650 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7651 (m68k_reg_struct_return_p, m68k_return_value)
7652 (m68k_svr4_return_value): New functions.
7653 (m68k_use_struct_convention): Remove function.
7654 (m68k_push_dummy_call): Use new struct_value_regnum member of
7655 `struct gdbarch_tdep' instead of hardcoded register number to
7656 store STRUCT_ADDR.
7657 (m68k_svr4_init_abi): New function.
7658 (m68k_gdbarch_init): Don't set extract_return_value,
7659 store_return_values, deprecated_extract_struct_value_address and
7660 use_struct_convention. Set return_value instead. Initialize new
7661 struct_value_regnum member of `struct gdbarch_tdep'.
7662 * m68klinux-tdep.c: Update copyright year.
7663 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7664 (m68k_linux_extract_struct_value_address): Remove function.
7665 (m68k_linux_init_abi): Don't set extract_return_value,
7666 store_return_values, deprecated_extract_struct_value_address and
7667 use_struct_convention. Call m68k_svr4_init_abi but override the
7668 new struct_value_regnum member of `struct gdbarch_tdep'.
7669 * Makefile.in (m68k-tdep.o): Update dependencies.
7670
aaa75496
JB
76712004-05-03 J. Brobecker <brobecker@gnat.com>
7672
7673 * dwarf2read.c (line_header): Add new included_p field in
7674 field file_names.
7675 (partial_die_info): New field has_stmt_list. New field line_offset.
7676 (dwarf2_create_include_psymtab): New function.
7677 (dwarf2_build_include_psymtabs): New function.
7678 (add_file_name): Add forward declaration. Initialize new field.
7679 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7680 to be able to determine the list of files included by the
7681 given unit, and build their associated psymtabs.
7682 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7683 files as well.
7684 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7685 (read_file_scope): Update call to dwarf_decode_lines.
7686 (read_partial_die): Handle DW_AT_stmt_list attributes.
7687
c848556f
MC
76882004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7689
7690 Unfix PR gdb/1626.
7691 * configure.in: Revert special case for osf5.*.
7692 * configure: Regenerate.
7693
eb4556d7
JB
76942004-05-02 Jim Blandy <jimb@redhat.com>
7695
7696 Move the symbol-file-from-memory functions into their own file.
7697 * symfile-mem.c, symfile-mem.h: New files.
7698 * symfile.c (symbol_file_add_from_bfd): New function.
7699 (symbol_file_add): Call symbol_file_add_from_bfd.
7700 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7701 Moved to symfile-mem.c.
7702 (_initialize_symfile): Move definition of
7703 add-symbol-file-from-memory command to symfile-mem.c.
7704 * symfile.h (symbol_file_add_from_bfd): New declaration.
7705 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7706 * config/powerpc/linux.mt (TDEPFILES): Same.
7707 * Makefile.in (SFILES): Add symfile-mem.c.
7708 (symfile_mem_h): New variable.
7709 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7710 (symfile-mem.o): New rule.
7711
80bb239e
AC
77122004-05-01 Andrew Cagney <cagney@redhat.com>
7713
7789d0fa
AC
7714 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7715 frame_find_by_id instead of frame_relative_level.
7716 (do_enable_breakpoint): Ditto.
7717 * thread.c: Update copyright.
7718 (info_threads_command): Ditto, simplify.
7719
80bb239e
AC
7720 * frame.c (deprecated_generic_get_saved_register): Delete
7721 function, moved to "xstormy16-tdep.c".
7722 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7723 deprecated_generic_get_saved_register from "frame.c".
7724 (xstormy16_frame_saved_register): Call
7725 xstormy16_get_saved_register.
7726 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7727 static.
7728 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7729 * frame.h (deprecated_generic_get_saved_register): Delete.
7730
b2a871dd
MC
77312004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7732
7733 * dwarfread.c: Update documentation on the state of dwarf-1.
7734
0e100dab
AC
77352004-05-01 Andrew Cagney <cagney@redhat.com>
7736
acd8056e
AC
7737 * stack.c (select_frame_command): Delete call to
7738 frame_relative_level.
7739 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7740 Delete #if0 code.
7741 (frame_info): Do not print FRAMELESS.
7742 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7743 (catch_info): Delete #if0 code.
7744
0e100dab
AC
7745 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7746 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7747 of frame_relative_level.
7748 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7749 to SENTINEL_FRAME.
7750 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7751 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7752 frame_relative_level.
7753
55699d59
AC
7754 * frame.h (deprecated_set_frame_type): Delete declaration.
7755 * frame.c (deprecated_set_frame_type): Delete function, update
7756 comments.
7757
fcf70625
AC
7758 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7759 * gdbarch.h, gdbarch.c: Re-generate.
7760 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7761 (shnbsd_pc_in_sigtramp): Delete.
7762 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7763 pc_in_sigtramp.
7764 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7765 pc_in_sigtramp.
7766 * frame.h: Update comments.
7767 * ppc-linux-tdep.c: Update comments.
7768 * breakpoint.c (bpstat_what): Update comments.
7769
ac5eccb7
AC
7770 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7771 m68klinux-tdep.o's dependencies, were previously added to
7772 m68klinux-nat.o.
7773
f2524b93
AC
7774 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7775 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7776 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7777 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7778 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7779
17e20bce
AC
7780 * Makefile.in (m68klinux-nat.o): Update dependencies.
7781 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7782 (m68k_linux_sigtramp_frame_cache)
7783 (m68k_linux_sigtramp_frame_this_id)
7784 (m68k_linux_sigtramp_frame_prev_register)
7785 (m68k_linux_sigtramp_frame_unwind)
7786 (m68k_linux_sigtramp_frame_sniffer)
7787 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7788 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7789 names, use trad-frame.h.
7790 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7791 (struct m68k_sigtramp_info): Delete.
7792 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7793 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7794 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7795 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7796 "m68klinux-tdep.c".
7797
c8864fa2
AC
7798 * infrun.c (check_sigtramp2): Delete check for
7799 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7800
511dd2cd
MK
78012004-05-01 Mark Kettenis <kettenis@gnu.org>
7802
7803 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7804
8c6b0e06
AC
78052004-05-01 Andrew Cagney <cagney@redhat.com>
7806
9df0bb3f
AC
7807 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7808 (frv_linux_sigtramp_frame_cache)
7809 (frv_linux_sigtramp_frame_this_id)
7810 (frv_linux_sigtramp_frame_prev_register)
7811 (frv_linux_sigtramp_frame_unwind)
7812 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7813 include "linux" in function and variable names, directly call
7814 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7815 the latest trad-frame code.
7816 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7817 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7818 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7819 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7820 * frv-tdep.c (frv_sigtramp_frame_cache)
7821 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7822 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7823 frv-linux-tdep.c.
7824 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7825 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7826 (frv_set_sigcontext_reg_addr): Delete function.
7827
8c6b0e06
AC
7828 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7829 (DEPRECATED_SIGTRAMP_END): Delete.
7830 * gdbarch.h, gdbarch.c: Re-generate.
7831 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7832 * config/vax/tm-vaxbsd.h: Update copyright.
7833 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7834 (DEPRECATED_IN_SIGTRAMP): Define.
7835 * config/m68k/tm-nbsd.h: Update copyright.
7836 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7837 (DEPRECATED_IN_SIGTRAMP): Define.
7838
50ea7769
MK
78392004-05-01 Mark Kettenis <kettenis@gnu.org>
7840
03ac2a74
MK
7841 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7842 encondings. Fixes PR gdb/1628.
7843
50ea7769
MK
7844 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7845 DW_CFA_restore state without a matching DW_CFA_remember_state
7846 instead of aborting. Fixes PR backtrace/1589.
7847
9a5d7be1
JB
78482004-04-30 Joel Brobecker <brobecker@gnat.com>
7849
7850 * MAINTAINERS: Add self as AIX maintainer.
7851 Update my e-mail address in write-after-approval section.
7852
2593d1cd
AC
78532004-04-30 Andrew Cagney <cagney@redhat.com>
7854
ce12bbf9
AC
7855 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7856 (legacy_get_prev_frame): Ditto.
7857
36710c63
AC
7858 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7859 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7860 * mipsread.c (sigtramp_address): Delete extern variable.
7861 (mipscoff_new_init): Delete reference.
7862 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7863 (fixup_sigtramp): Delete function.
7864 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7865 (fixup_sigtramp): Delete declarations.
7866
2593d1cd
AC
7867 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7868 deprecated_pc_in_sigtramp.
7869 (ppcnbsd_pc_in_sigtramp): Delete function.
7870
2a25f91c
MK
78712004-05-01 Mark Kettenis <kettenis@gnu.org>
7872
7873 * config/m68k/nm-nbsd.h: Tweak comments.
7874 * config/m68k/nm-nbsdaout.h: Likewise.
7875
0b281939
AC
78762004-04-30 Andrew Cagney <cagney@redhat.com>
7877
7878 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7879 legacy_pc_in_sigtramp.
7880 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7881
8f2d3ea0
MK
78822004-05-01 Mark Kettenis <kettenis@gnu.org>
7883
7884 Add OpenBSD/m68k support.
7885 * NEWS (New native configurations): Mention OpenBSD/m68k.
7886 * m68kbsd-tdep.c: New file.
7887 * m68kbsd-nat.c: New file.
7888 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7889 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7890 * configure.host: Add m68k-*-openbsd.
7891 * configure.tgt: Add m68k-*-openbsd.
7892 * config/m68k/tm-obsd.h: New file.
7893 * config/m68k/obsd.mt: New file.
7894 * config/m68k/obsd.mh: New file.
7895 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7896 m68kbsd-tdep.c.
7897
c40f49a4
AC
78982004-04-30 Andrew Cagney <cagney@redhat.com>
7899
7900 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7901 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7902
e81554cd
MK
79032004-04-30 Mark Kettenis <kettenis@gnu.org>
7904
7905 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7906 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7907
d4dc1a91
BF
79082004-04-30 Brian Ford <ford@vss.fsi.com>
7909
7910 Revert 2004-04-16 change.
7911 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7912 (i386_coff_init_abi): Remove.
7913 * i386-tdep.h (i386_coff_init_abi): Remove.
7914 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7915
2f72f850
AC
79162004-04-30 Andrew Cagney <cagney@redhat.com>
7917
e492f9d6
AC
7918 * blockframe.c (find_pc_partial_function): Delete use of
7919 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7920 DEPRECATED_SIGTRAMP_END.
7921
7b7adad0
AC
7922 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7923 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7924 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7925 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7926 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7927
2f72f850
AC
7928 * defs.h (deprecated_inside_entry_file): Delete declaration.
7929 * blockframe.c (deprecated_inside_entry_file): Delete function.
7930 (legacy_frame_chain_valid): Delete call.
7931 * sh64-tdep.c (sh64_frame_chain): Delete call.
7932 * objfiles.h: Update comments.
7933 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7934 call.
7935 * frame.c (get_prev_frame): Delete call, update comments.
7936
283f90a7
BF
79372004-04-30 Brian Ford <ford@vss.fsi.com>
7938
7939 * MAINTAINERS (Write After Approval): Add myself.
7940
8ee56bcf
AC
79412004-04-30 Andrew Cagney <cagney@redhat.com>
7942
7943 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7944 * gdbarch.h, gdbarch.c: Re-generate.
7945 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7946 code.
7947
ee27e1b6
AC
79482004-04-30 Andrew Cagney <cagney@redhat.com>
7949
7950 * gdb-events.sh (selected_thread_changed)
7951 (selected_frame_level_changed, target_changed): Delete.
7952 * gdb-events.h, gdb-events.c: Re-generate.
7953 * valops.c (value_assign): Update.
7954 * stack.c (select_frame_command, up_silently_base)
7955 (down_silently_base): Update.
7956
d5ac5a39
AC
79572004-04-29 Andrew Cagney <cagney@redhat.com>
7958
7959 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7960 registers correctly.
7961 (print_gp_register_row, mips32_heuristic_proc_desc)
7962 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7963 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7964 references to mips_isa_regsize.
7965
ceae6e75
AC
79662004-04-29 Andrew Cagney <cagney@redhat.com>
7967
7968 * mips-tdep.c (struct gdbarch_tdep): Delete
7969 mips_fp_register_double.
7970 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7971 mips_abi_regsize.
7972 (mips_gdbarch_init): Do not set mips_fp_register_double.
7973 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7974
a587af0b
AC
79752004-04-29 Joel Brobecker <brobecker@gnat.com>
7976
7977 Committed by Andrew Cagney.
7978 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7979 function calls.
7980
13326b4e
AC
79812004-04-29 Andrew Cagney <cagney@redhat.com>
7982
7983 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7984 gdbarch, use mips_abi, update callers.
7985 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7986 mips_abi_regsize, update callers.
7987 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7988 mips_default_abi_regsize.
7989 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7990 mips_default_abi_regsize.
7991
711cc5cd
AC
79922004-04-29 Andrew Cagney <cagney@redhat.com>
7993
1b13c4f6
AC
7994 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7995 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7996 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7997 mips_default_abi_regsize.
7998 (mips_isa_regsize): Rename mips_regisze.
7999 * mipsnbsd-tdep.c: Update.
8000 * mips-linux-tdep.c: Update.
8001 * irix5-nat.c: Update.
8002 * mips-tdep.h (mips_isa_regsize): Update.
8003
711cc5cd
AC
8004 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8005 Delete all disabled code.
8006 * gdb-events.h, gdb-events.c: Re-generate.
8007
e63bbc88
MK
80082004-04-19 Jerome Guitton <guitton@gnat.com>
8009 Mark Kettenis <kettenis@gnu.org>
8010
8011 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8012 the function begins with a branch instruction.
8013
fd35795f
MK
80142004-04-29 Mark Kettenis <kettenis@gnu.org>
8015
8016 * i386-tdep.c: Fix spelling mistakes.
8017
c960c18f
AC
80182004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8019 Andrew Cagney <cagney@redhat.com>
8020
8021 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8022 <sys/proc.h>.
8023 * acconfig.h: Provide default _KMEMUSER value.
8024 * config.in, configure: Re-generate.
8025 * NEWS: Mention fix.
8026
50306a9d
RC
80272004-04-24 Randolph Chung <tausq@debian.org>
8028
8029 * configure.host (hppa*-*-linux*): New target.
8030 * configure.tgt (hppa*-*-linux*): Likewise.
8031 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8032 gdbarch_init_osabi() call earlier so that osabi-specific frame
8033 unwinders can be registered first.
8034 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8035 hppa-linux-nat.c.
8036 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8037 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8038 * config/pa/linux.mh: New file.
8039 * config/pa/linux.mt: New file.
8040 * config/pa/nm-linux.h: New file.
8041 * config/pa/xm-linux.h: New file.
8042 * hppa-linux-nat.c: New file.
8043 * hppa-linux-tdep.c: New file.
8044
2a6228ef
RC
80452004-04-28 Randolph Chung <tausq@debian.org>
8046
8047 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8048 return values.
8049 (hppa32_push_dummy_call): Fix small struct and floating point argument
8050 passing, and make sure the stack frame is properly aligned.
8051
82c10df6
AC
80522004-04-28 Andrew Cagney <cagney@redhat.com>
8053
d762c46a
AC
8054 * stack.c (print_stack_frame): Fix description.
8055
82c10df6
AC
8056 * NEWS: Mention gdb/gdbserver/configure execute permission
8057 changed. PR server/519.
8058
0faf0076
AC
80592004-04-28 Andrew Cagney <cagney@redhat.com>
8060
8061 * stack.c (print_stack_frame_stub): Delete declaration.
8062 (struct print_stack_frame_args, print_stack_frame)
8063 (print_frame_info, print_frame): Replace "source" with print what.
8064 Replace "print" with "print_level". Replace "args" with
8065 "print_args".
8066 * frame.h (show_and_print_stack_frame, print_stack_frame)
8067 (print_frame_info): Update declarations.
8068 * stack.c (select_and_print_frame, frame_command)
8069 (current_frame_command, up_command, down_command): Update calls -
8070 use get_selected_frame, pass "enum print_what" for source, do not
8071 call frame_relative_level.
8072 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8073 * remote-rdp.c (remote_rdp_open): Ditto.
8074 * remote-mips.c (common_open): Ditto.
8075 * remote-e7000.c (e7000_start_remote): Ditto.
8076 * ocd.c (ocd_start_remote): Ditto.
8077 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8078 * infrun.c (normal_stop): Ditto.
8079 * inflow.c (kill_command): Ditto.
8080 * infcmd.c (finish_command): Ditto.
8081 * corelow.c (core_open): Ditto.
8082 * tracepoint.c (finish_tfind_command): Ditto.
8083 * thread.c (info_threads_command, info_threads_command)
8084 (restore_current_thread, do_captured_thread_select): Ditto.
8085 * ada-tasks.c (task_command): Ditto.
8086
f4c5303c
OF
80872004-04-26 Orjan Friberg <orjanf@axis.com>
8088
8089 * frame.c: Include "observer.h".
8090 (frame_observer_target_changed): New function.
8091 (_initialize_frame): Attach target_changed observer.
8092 * regcache.c: Include "observer.h".
8093 (regcache_observer_target_changed): New function.
8094 (_initialize_regcache): Attach target_changed observer.
8095 * valops.c: Include "observer.h".
8096 (value_assign): Notify target_changed event when modifying register.
8097 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8098
7270d8f2
OF
80992004-04-26 Orjan Friberg <orjanf@axis.com>
8100
8101 From Paul Koning <pkoning@equallogic.com>:
8102 * breakpoint.c (free_valchain): New function.
8103 (insert_bp_location, delete_breakpoint): Use free_valchain.
8104 (remove_breakpoint): Do not remove the valchain.
8105 (bpstat_stop_status): If not stopped by watchpoint, skip
8106 watchpoints when generating stop status list.
8107 * infrun.c (handle_inferior_event): Make
8108 stepped_after_stopped_by_watchpoint a global variable.
8109 * remote.c (remote_stopped_data_address): Return watch data
8110 address rather than zero if stepped_after_stopped_by_watchpoint is
8111 set.
8112
02d62932
MC
81132004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8114
8115 Fix PR gdb/1626.
8116 * configure.in: Check for curses after termcap.
8117 On osf5.*, do not check for ncurses.
8118 * configure: Regenerate.
8119
3e9a183c
MK
81202004-04-25 Mark Kettenis <kettenis@gnu.org>
8121
c79ac407
MK
8122 * ppcobsd-nat.c: Include "ppc-tdep.h".
8123 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8124
3e9a183c
MK
8125 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8126 Fixes PR tdep/1623 and PR tdep/1624.
8127
38cc9c28
MC
81282004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8129
8130 * xmodem.h, xmodem.c: Remove files.
8131 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8132
7f07c5b6
RC
81332004-04-23 Randolph Chung <tausq@debian.org>
8134
8135 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8136 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8137 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8138 for handling stackless frames.
8139 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8140
9f7194c3
RC
81412004-04-23 Randolph Chung <tausq@debian.org>
8142
8143 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8144 starts at a pc before the frame is created.
8145
dcff6009
JB
81462004-04-23 Joel Brobecker <brobecker@gnat.com>
8147
8148 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8149
40711ff1 81502004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8151
8152 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8153 use convert_typed_floating to get the appropriate format.
8154
abc485a1
RC
81552004-04-22 Randolph Chung <tausq@debian.org>
8156
8157 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8158 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8159 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8160 (hppa_sign_extend): Add prototype.
8161 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8162 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8163 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8164 hppa targets will also use these functions.
8165 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8166 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8167 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8168 (hppa_gdbarch_init): Remove gdbarch setting of
8169 skip_trampoline_code, in_solib_call_trampoline and
8170 in_solib_return_trampoline.
8171 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8172 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8173 hppa_in_solib_call_trampoline.
8174 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8175 Moved from hppa-tdep.c.
8176 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8177 in_solib_call_trampoline and in_solib_return_trampoline.
8178
369aa520
RC
81792004-04-22 Randolph Chung <tausq@debian.org>
8180
8181 * hppa-tdep.c (hppa_debug): New variable.
8182 (find_unwind_entry, hppa_frame_cache): Add debug output.
8183 (_initialize_hppa_tdep): Add command to set debug flag.
8184
476be15e
AC
81852004-04-22 Andrew Cagney <cagney@redhat.com>
8186
8187 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8188 "trad-frame.h".
8189 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8190 signal trampoline unwinder.
8191 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8192
d195bc9f
MK
81932004-04-22 Mark Kettenis <kettenis@gnu.org>
8194
8195 Add OpenBSD/powerpc support.
8196 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8197 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8198 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8199 (ppc_collect_fpregset): New prototypes.
8200 * ppcobsd-nat.c: New file.
8201 * ppcobsd-tdep.c: New file.
8202 * ppcobsd-tdep.h: New file.
8203 * rs6000-tdep.c: Include "regset.h".
8204 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8205 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8206 New functions.
8207 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8208 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8209 (rs6000-tdep.o): Update dependencies.
8210 * configure.host: Add powerpc-*-openbsd.
8211 * configure.tgt: Add powerpc-*-openbsd.
8212 * config/powerpc/obsd.mh: New file.
8213 * config/powerpc/nm-obsd.h: New file.
8214 * config/powerpc/obsd.mt: New file.
8215
6f14cc33
AC
82162004-04-22 Andrew Cagney <cagney@redhat.com>
8217
fcf29e5f
AC
8218 * frame.h (show_frame_info): Delete declaration.
8219
6f14cc33
AC
8220 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8221 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8222 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8223 * frv-tdep.c (frv_frame_this_id): Ditto.
8224 * avr-tdep.c (avr_frame_this_id): Ditto.
8225
e5786a5c
EZ
82262004-04-22 Elena Zannoni <ezannoni@redhat.com>
8227
8228 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8229
26e75e5c
JB
82302004-04-22 Jim Blandy <jimb@redhat.com>
8231
8232 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8233 register number zero.
8234
d8d65dd3
MS
82352004-04-21 Michael Snyder <msnyder@redhat.com>
8236
8237 * mips-tdep.c (heuristic_proc_start):
8238 Warning() already prefixes "Warning: ".
8239
9a4105ab
AC
82402004-04-21 Andrew Cagney <cagney@redhat.com>
8241
8242 * annotate.h (deprecated_annotate_starting_hook)
8243 (deprecated_annotate_stopped_hook)
8244 (deprecated_annotate_exited_hook)
8245 (deprecated_annotate_signal_hook)
8246 (deprecated_annotate_signalled_hook): Deprecate.
8247 * tracepoint.h (deprecated_create_tracepoint_hook)
8248 (deprecated_delete_tracepoint_hook)
8249 (deprecated_modify_tracepoint_hook)
8250 (deprecated_trace_find_hook)
8251 (deprecated_trace_start_stop_hook): Deprecate.
8252 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8253 * remote.h (deprecated_target_resume_hook)
8254 (deprecated_target_wait_loop_hook): Deprecate.
8255 * gdbcore.h (deprecated_exec_file_display_hook)
8256 (deprecated_file_changed_hook): Deprecate.
8257 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8258 * defs.h (deprecated_modify_breakpoint_hook)
8259 (deprecated_command_loop_hook, deprecated_show_load_progress)
8260 (deprecated_print_frame_info_listing_hook)
8261 (deprecated_query_hook, deprecated_warning_hook)
8262 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8263 (deprecated_delete_breakpoint_hook)
8264 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8265 (deprecated_readline_begin_hook, deprecated_readline_hook)
8266 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8267 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8268 (deprecated_context_hook, deprecated_target_wait_hook)
8269 (deprecated_attach_hook, deprecated_detach_hook)
8270 (deprecated_call_command_hook, deprecated_set_hook)
8271 (deprecated_error_hook, deprecated_error_begin_hook)
8272 (deprecated_ui_load_progress_hook): Deprecate.
8273 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8274 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8275 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8276 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8277 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8278 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8279 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8280 * annotate.c, aix-thread.c: Update.
8281
62cf13cc
AC
82822004-04-21 Andrew Cagney <cagney@redhat.com>
8283
b2e31a62
AC
8284 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8285 * vaxnbsd-tdep.c: Include "gdb_string.h".
8286
62cf13cc
AC
8287 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8288 (add_symbol_file_from_memory_command): #if 0 function body, call
8289 error instead.
8290
00e32a35
AC
82912004-04-21 Andrew Cagney <cagney@redhat.com>
8292
8293 * gdbcore.h: Update copyright.
8294 (deprecated_add_core_fns): Rename add_core_fns.
8295 * win32-nat.c (_initialize_core_win32): Update.
8296 * sun3-nat.c (_initialize_core_sun3): Update.
8297 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8298 * rs6000-nat.c (_initialize_core_rs6000): Update.
8299 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8300 * nto-tdep.c (_initialize_nto_tdep): Update.
8301 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8302 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8303 * mips-nat.c (_initialize_core_mips): Update.
8304 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8305 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8306 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8307 * lynx-nat.c (_initialize_core_lynx): Update.
8308 * irix5-nat.c (_initialize_core_irix5): Update.
8309 * i386-interix-nat.c (_initialize_core_interix): Update.
8310 * cris-tdep.c (_initialize_cris_tdep): Update.
8311 * corelow.c (deprecated_add_core_fns): Update.
8312 * core-regset.c (_initialize_core_regset): Update.
8313 * core-aout.c (_initialize_core_aout): Update.
8314 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8315 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8316 * alpha-nat.c (_initialize_core_alpha): Update.
8317
13c7b1ca
JB
83182004-04-21 Jim Blandy <jimb@redhat.com>
8319
8320 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8321
7b5a2f43
DJ
83222004-04-19 Daniel Jacobowitz <drow@mvista.com>
8323
8324 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8325 Delete.
8326 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8327 (read_attribute_value): Update calls to dwarf_alloc_block.
8328 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8329 dwarf2_tmp_obstack.
8330 (psymtab_to_symtab_1): Likewise. Clean up using
8331 free_stack_comp_unit.
8332 (add_to_cu_func_list): Use the comp_unit_obstack.
8333
05cf31d1
JB
83342004-04-19 Joel Brobecker <brobecker@gnat.com>
8335
8336 * dwarf2read.c (dwarf2_flag_true_p): New function.
8337 (die_is_declaration): Use the function above. Add some comments.
8338
adf93a2f
MK
83392004-04-19 Mark Kettenis <kettenis@gnu.org>
8340
8341 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8342 architecture when registering sparcnbsd_core_osabi_sniffer.
8343 Adjust comment.
8344
748894bf
MK
83452004-04-18 Mark Kettenis <kettenis@gnu.org>
8346
f622ad42
MK
8347 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8348 return value.
8349
c4fc7f1b
MK
8350 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8351 * i386-tdep.c: Correct register numbering scheme comments
8352 throughout.
8353 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8354 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8355 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8356 (i386_gdb_arch_init): Likewise.
8357
b4ead1bd
MK
8358 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8359 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8360 ppcnbsd-tdep.o.
8361
748894bf
MK
8362 * m68k-tdep.h: Tweak comments.
8363 * m68k-tdep.c: Tweak comment.
8364
fdd72f95
RC
83652004-04-17 Randolph Chung <tausq@debian.org>
8366
8367 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8368 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8369 (hppa_hpux_som_init_abi): Set is_elf to 0.
8370 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8371 * hppa-tdep.c (low_text_segment_address): Remove global.
8372 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8373 section offset to calculate segment address.
8374 (internalize_unwinds): Define low_text_segment_address as local and
8375 pass to record_text_segment_lowaddr for ELF targets.
8376 (hppa_gdbarch_init): Zero fill tdep structure.
8377 (hppa_dump_tdep): Print tdep structure.
8378 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8379
0f8d9d59
RC
83802004-04-17 Randolph Chung <tausq@debian.org>
8381
8382 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8383 (hppa_gdbarch_init): Set pseudo_register_read.
8384 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8385 * regcache.c (supply_register): Remove check for
8386 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8387
7c46b9fb
RC
83882004-04-17 Randolph Chung <tausq@debian.org>
8389
8390 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8391 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8392 (hpread_adjust_stack_address): Move to hpread.c.
8393 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8394 obj_private_struct): Move from tm-hppa.h.
8395 * hpread.c (hppa-tdep.h): Include.
8396 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8397 (hpread_read_function_type, hpread_read_doc_function_type)
8398 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8399 directly.
8400 * pa64solib.c (hppa-tdep.h): Include.
8401 * somsolib.c (hppa-tdep.h): Include.
8402 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8403 inferior_status): Remove unused forward declarations.
8404 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8405 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8406 obj_private_struct): Move to hppa-tdep.h.
8407 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8408
8d153463
RC
84092004-04-17 Randolph Chung <tausq@debian.org>
8410
8411 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8412 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8413 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8414 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8415 Remove forward declaration and make static.
8416 (hppa_reg_struct_has_addr): Remove.
8417
350c2e5b
JB
84182004-04-16 Joel Brobecker <brobecker@gnat.com>
8419
8420 * observer.sh: Move comments in sed command to first column.
8421
bbde78fa
JM
84222004-04-16 Jason Molenda (jmolenda@apple.com)
8423
8424 * frame.c: Minor typeo corrections in comments.
8425
e0270fd9
JB
84262004-04-16 Joel Brobecker <brobecker@gnat.com>
8427
8428 * observer.c (observer_test_first_notification_function): Update
8429 function profile.
8430 (observer_test_second_notification_function): Likewise.
8431 (observer_test_third_notification_function): Likewise.
8432
3d049254
MK
84332004-04-16 Mark Kettenis <kettenis@gnu.org>
8434
8435 From Brian Ford <ford@vss.fsi.com>:
8436 * i386-tdep.c (i386_coff_init_abi): New function.
8437 * i386-tdep.h (i386_coff_init_abi): New prototype.
8438 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8439 register number translation functions for DWARF and DWARF 2.
8440
7867684d
JB
84412004-04-16 Joel Brobecker <brobecker@gnat.com>
8442
8443 * dwarf2read.c: Back out my previous change, it was incorrect.
8444
72bf9492
DJ
84452004-04-16 Daniel Jacobowitz <drow@mvista.com>
8446
8447 * dwarf2read.c: Include "hashtab.h".
8448 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8449 has_namespace_info.
8450 (struct partial_die_info): Add comments. Use bitfields to reduce
8451 memory footprint. Add scope, scope_set, has_specification,
8452 spec_offset, die_parent, die_child, and die_sibling.
8453 (peek_die_abbrev): Add prototype.
8454 (partial_read_comp_unit_head): New function, broken out from
8455 dwarf2_build_psymtabs_hard.
8456 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8457 Use partial_read_comp_unit_head. Initialize the CU and
8458 comp_unit_obstack. Update calls to read_partial_die and
8459 scan_partial_symbols. Use free_stack_comp_unit and
8460 load_partial_dies.
8461 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8462 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8463 Update calls to helper functions. Remove NAMESPACE argument.
8464 Update comments.
8465 (partial_die_parent_scope, partial_die_full_name): New functions.
8466 (add_partial_symbol): Remove namespace argument. Update call to
8467 pdi_needs_namespace. Use partial_die_full_name. Handle
8468 DW_TAG_namespace. Check has_namespace_info flag.
8469 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8470 tag. Handle namespaces.
8471 (add_partial_namespace, add_partial_enumeration): Simplify.
8472 (guess_structure_name): New function, derived from
8473 add_partial_structure.
8474 (add_partial_structure): Remove.
8475 (determine_class_name): Update comment.
8476 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8477 (is_type_tag_for_partial, load_partial_dies): New functions.
8478 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8479 Record specifications instead of following them immediately.
8480 (find_partial_die_in_comp_unit, find_partial_die)
8481 (fixup_partial_die, free_stack_comp_unit)
8482 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8483 (partial_die_hash, partial_die_eq): New functions.
8484 * Makefile.in (hashtab_h): Define.
8485 (dwarf2read.o): Update dependencies.
8486 (observer_inc, observer_h): Move to the correct section.
8487
fdc860a3
JB
84882004-04-15 Joel Brobecker <brobecker@gnat.com>
8489
8490 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8491 (die_is_declaration): Use the function above. Add comment.
8492
dc718098
JB
84932004-04-15 Joel Brobecker <brobecker@gnat.com>
8494
8495 * dwarf2read.c (read_structure_scope): Identify stub types
8496 using die_is_declaration() only.
8497
8718a420
RM
84982004-04-15 Roland McGrath <roland@redhat.com>
8499
8500 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8501 argument instead of NAME.
8502 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8503 in call to symbol_file_add_with_addrs_or_offsets.
8504 (build_addr_info): New function, helper for ...
8505 (symbol_file_add_from_memory): New function.
8506 (add_symbol_file_from_memory_command): New function using that.
8507 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8508 (pre_add_symbol_hook): Add const to argument type.
8509 * symfile.h (symbol_file_add_from_memory): Declare it.
8510
8b910bab
MK
85112004-04-15 Mark Kettenis <kettenis@gnu.org>
8512
9f076e7a
MK
8513 * NEWS (New native configurations): Mention OpenBSD/vax.
8514 * configure.host: Add vax-*-openbsd*.
8515 * config/vax/obsd.mh: New file.
8516 * config/vax/nm-obsd.h: New file.
8517
8b910bab
MK
8518 * vax-tdep.c: Include "regset.h".
8519 (vax_supply_gregset): New function.
8520 (vax_gregset): New variable.
8521 (vax_regset_from_core_section): New function.
8522 (vax_gdbarch_init): Set regset_from_core_section.
8523 * Makefile.in (vax-tdep.o): Update dependencies.
8524
7a464420
AC
85252004-04-15 Andrew Cagney <cagney@redhat.com>
8526
8527 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8528 (observer_normal_stop_notification_stub)
8529 (observer_attach_normal_stop, observer_detach_normal_stop):
8530 Delete, replaced by #include "observer.inc".
8531 * infrun.c (normal_stop): Pass "stop_bpstat" to
8532 observer_notify_normal_stop.
8533 * Makefile.in (observer_inc): Define.
8534 (observer.o): Update dependencies.
8535 (observer.h, observer.inc): New rules.
8536 * observer.h: Delete file.
8537 * observer.sh: New file.
8538
e36ad527
MK
85392004-04-15 Mark Kettenis <kettenis@gnu.org>
8540
8541 * vax-tdep.c (vax_frame_cache): Fix typo.
8542
67b441e1
MK
85432004-04-14 Mark Kettenis <kettenis@gnu.org>
8544
6f606e1c
MK
8545 * NEWS (New native configurations): Mention NetBSD/vax.
8546 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8547 * config/vax/nbsdelf.mh: New file.
8548 * config/vax/nbsdaout.mh: New file.
8549 * config/vax/nm-nbsd.h: New file.
8550 * config/vax/nm-nbsdaout.h: New file.
8551
9c5519a5
MK
8552 * vaxnbsd-tdep.c: New file.
8553 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8554 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8555 * config/vax/nbsd.mt: New file.
8556 * config/vax/tm-nbsd.h: New file.
8557
4844a614
MK
8558 * Makefile.in (vaxbsd-nat.o): New dependency.
8559
67b441e1
MK
8560 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8561 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8562 struct_addr arguments. Don't push return value address.
8563 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8564 arguments to vax_store_arguments. Store return value address in
8565 R1.
8566 (vax_store_struct_return, vax_extract_return_value)
8567 (vax_store_return_value): Remove functions.
8568 (vax_return_value): New function.
8569 (vax_gdbarch_init): Set return value. Don't set
8570 deprecated_store_struct_return, deprecated_extract_struct_return
8571 and deprecated_store_return_value.
8572
6672f2ae
AS
85732004-04-14 Andreas Schwab <schwab@suse.de>
8574
8575 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8576 value buffer.
8577 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8578
7346c184
MK
85792004-04-14 Mark Kettenis <kettenis@gnu.org>
8580
8581 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8582 (vax_unwind_dummy_id): New functions.
8583 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8584 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8585 variables.
8586 (vax_fix_call_dummy): Remove function.
8587 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8588 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8589 call_dummy_location, deprecated_call_dummy_words,
8590 deprecated_sizeof_call_dummy_words,
8591 deprecated_call_dummy_breakpoint_offset,
8592 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8593 and deprecated_dummy_write_sp.
8594
58e23df4
DC
85952004-04-13 David Carlton <carlton@kealia.com>
8596
8597 * MAINTAINERS: Move myself to "paper trail" section.
8598
5e6b39ff
MK
85992004-04-12 Mark Kettenis <kettenis@gnu.org>
8600
7def7fef
MK
8601 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8602 "trad-frame.h".
8603 (vax_frame_init_saved_regs): Remove function.
8604 (vax_sigtramp_saved_pc): Remove function.
8605 (vax_frame_saved_pc): Remove function.
8606 (vax_frame_args_address): Remove function.
8607 (vax_frame_num_args): Rewrite.
8608 (vax_frame_chain): Remove function.
8609 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8610 VAX_FP_REGNUM.
8611 (vax_pop_frame): Likewise.
8612 (vax_saved_pc_after_call): Remove function.
8613 (struct vax_frame_cache): New structure.
8614 (vax_frame_cache): New function.
8615 (vax_frame_this_id): New function.
8616 (vax_frame_prev_register): New function.
8617 (vax_frame_unwind): New variable.
8618 (vax_frame_sniffer): New function.
8619 (vax_frame_base_address): New function.
8620 (vax_frame_args_address): New function.
8621 (vax_frame_base): New variable.
8622 (vax_unwind_pc): New function.
8623 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8624 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8625 deprecated_frame_chain, deprecated_frame_saved_pc,
8626 deprecated_frame_args_address and
8627 deprecated_frame_init_saved_regs.
8628 * Makefile.in (vax-tdep.o): Update dependencies.
8629
53284fc1
MK
8630 * vaxbsd-nat.c: New file.
8631
5e6b39ff
MK
8632 * vax-tdep.h: Update copyright year. Adjust comments.
8633 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8634 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8635 (vax_regnum): New enum. Replacing...
8636 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8637 (VAX_PS_REGNUM): ... these removed macros.
8638 * vax-tdep.c (vax_register_name): Remove prototype.
8639 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8640 (vax_register_byte, vax_register_raw_size,
8641 vax_register_virtual_size, vax_register_virtual_type): Remove
8642 functions.
8643 (vax_register_type): New function.
8644 (vax_breakpoint_from_pc): Reorganize.
8645 (vax_gdbarch_init): Set register_type. Don't set
8646 deprecated_register_size, deprecated_register_bytes,
8647 deprecated_register_byte, deprecated_register_raw_size,
8648 deprecated_max_register_raw_size,
8649 deprecated_register_virtual_size,
8650 deprecated_max_register_virtual_size and
8651 deprecated_register_virtual_type. Add comment on stack direction.
8652
e9c71e9f
MK
86532004-04-11 Mark Kettenis <kettenis@gnu.org>
8654
8655 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8656 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8657 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8658
d46f1176 86592004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8660
d46f1176
RC
8661 * MAINTAINERS (write after approval): Add myself.
8662
a2a84a72
RC
86632004-04-07 Randolph Chung <tausq@debian.org>
8664
8665 * hppa-tdep.c (hppa_inner_than): Remove.
8666 (is_pa_2): Remove unused static variable.
8718a420 8667 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8668
e85c3284
PH
86692004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8670
8671 * language.h (language_defn): Add new la_post_parser field.
8672 * parser-defs.h (null_post_parser): New declaration (default for
8673 la_post_parser).
8718a420 8674
e85c3284
PH
8675 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8676 insert call to that function.
8677 (parse_exp_in_context): New function, including code formerly in
8718a420 8678 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8679 prefixification.
8680 (parse_expression_in_context): New exported function.
8681 (null_post_parser): New definition.
8682 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8683
e85c3284
PH
8684 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8685 * c-lang.c (c_language_defn): Ditto.
8686 (cplus_language_defn): Ditto.
8687 (asm_language_defn): Ditto.
8688 (minimal_language_defn): Ditto.
8689 * f-lang.c (f_language_defn): Ditto.
8690 * jv-lang.c (java_language_defn): Ditto.
8691 * language.c (unknown_language_defn): Ditto.
8692 (auto_language_defn): Ditto.
8693 (local_language_defn): Ditto.
8694 * m2-lang.c (m2_language_defn): Ditto.
8695 * scm-lang.c (scm_language_defn): Ditto.
8696 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8697
d9f8c85b
MK
86982004-04-10 Mark Kettenis <kettenis@gnu.org>
8699
fa34704a
MK
8700 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8701 (amd64nbsd_mcontext_addr): New function.
8702 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8703 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8704 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8705
403e1656
MK
8706 * corelow.c (core_xfer_partial): Fix coding standards violation.
8707 Add support for TARGET_OBJECT_WCOOKIE.
8708
a57e5a95
MK
8709 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8710 deprecated_pc_in_sigtramp.
8711 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8712 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8713 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8714 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8715 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8716 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8717 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8718
377d9ebd
MK
8719 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8720 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8721 Fix typo.
8722
f0ef85a5
MK
8723 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8724 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8725 (amd64_collect_fxsave): Likewise.
8726
d9f8c85b
MK
8727 * i386-sol2-tdep.c: Include "gdb_string.h".
8728 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8729 name.
8730 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8731
75f501b5
MK
87322004-04-10 Mark Kettenis <kettenis@gnu.org>
8733
8734 * i386-sol2-tdep.c: Include "solib-svr4.h".
8735 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8736 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8737 * config/i386/tm-i386sol2.h: Include :solib.h".
8738 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8739 solib-svr4.o and solib-legacy.o.
8740 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8741 solib-svr4.o.
8742
b31bc724
MK
87432004-04-09 Mark Kettenis <kettenis@gnu.org>
8744
18bbbd9e
MK
8745 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8746 whether a register is supplied by PTRACE_GETFPREGS.
8747 (store_inferior_registers): Likewise.
8748 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8749 whether a register is supplied by PT_GETFPREGS.
8750 (store_inferior_registers): Likewise.
8751
3c30bf1b
MK
8752 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8753 * config/i386/linux64.mt (TDEPFILES): Likewise.
8754
a4194092
MK
8755 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8756
911bc6ee
MK
8757 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8758 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8759 the program counter is in the range specified by `struct
8760 gdbarch_tdep'.
8761 * amd64-linux-tdep.c: Include "symtab.h".
8762 (amd64_linux_pc_in_sigtramp): Remove function.
8763 (amd64_linux_sigtramp_p): New function.
8764 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8765 deprecated_pc_in_sigtramp.
8766 * amd64nbsd-tdep.c: Include "symtab.h".
8767 (amd64nbsd_sigtramp_p): New function.
8768 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8769 deprecated_pc_in_sigtramp.
8770 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8771 few comments.
8772 (amd64obsd_pc_in_sigtramp): Remove function.
8773 (amd64obsd_sigtramp_p): New function.
8774 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8775 deprecated_pc_in_sigtramp.
8776 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8777 (i386bsd_pc_ins_sigtramp): Remove prototype.
8778 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8779 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8780 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8781 the program counter is in the range specified by `struct
8782 gdbarch_tdep'.
8783 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8784 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8785 (i386_go32_pc_in_sigtramp): Remove function.
8786 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8787 Initialize TDEP->sigtramp_p.
8788 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8789 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8790 deprecated_pc_in_sigtramp.
8791 * i386-linux-tdep.c: Adjust comments.
8792 (i386_linux_pc_in_sigtramp): Remove function.
8793 (i386_linux_sigtramp_p): New function.
8794 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8795 deprecated_pc_in_sigtramp.
8796 * i386-nto-tdep.c: Update copyright year.
8797 (i386nto_pc_in_sigtramp): Remove function.
8798 (i386nto_sigtramp_p): New function.
8799 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8800 SP_REGNUM.
8801 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8802 deprecated_pc_in_sigtramp.
8803 * i386-sol2-tdep.c: Update copyright year.
8804 (i386_sol2_pc_in_sigtramp): Remove function.
8805 (i386_sol2_sigtramp_p): New function.
8806 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8807 deprecated_pc_in_sigtramp.
8808 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8809 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8810 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8811 deprecated_sigtramp_start and deprecated_sigtramp_end.
8812 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8813 (i386nbsd_pc_in_sigtramp): Remove function.
8814 (i386nbsd_sigtramp_p): New function.
8815 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8816 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8817 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8818 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8819 (i386obsd_pc_in_sigtramp): Remove function.
8820 (i386obsd_sigtramp_p): New function.
8821 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8822 functions.
8823 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8824 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8825 TDEP->sigtramp_p.
8826 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8827 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8828 dependencies.
8829
e083e6ec
MK
8830 * config/i386/i386aout.mt: Remove file.
8831
bd153b94
MK
8832 * configure.tgt: Remove i[34567]86-*-go32*,
8833 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8834 and i[34567]86-*-isc*. Set gdb_target to i386 for
8835 i[34567]86-*-netware* and i[34567]86-*-*.
8836 * config/i386/i386.mt: New file.
8837 * config/i386/embed.mt: Remove file.
8838 * config/i386/go32.mt: Remove file.
8839 * config/i386/i386nw.mt: Remove file.
8840 * config/i386/i386v.mt: Remove file.
8841 * config/i386/tm-go32.h: Remove file.
8842
4a1bcc8c
MK
8843 * tui/tui-hooks.c: Include "readline/readline.h" after
8844 "gdb_curses.h" instead of before.
8845 * tui/tui-io.c: Likewise.
8846
f9a79064
MK
8847 * tui/tui.c: Fix typo in comment.
8848
b31bc724
MK
8849 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8850
f83f82bc
AC
88512004-04-08 Andrew Cagney <cagney@redhat.com>
8852
8853 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8854 (deprecated_exception_support_initialized): Declare.
8718a420 8855 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8856 (initialize_hp_cxx_exception_support)
8857 (child_enable_exception_callback): Update.
8858 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8859 (deprecated_exception_support_initialized): Rename
8860 deprecated_exception_catchpoints_are_fragile and
8861 deprecated_exception_support_initialized.
8862 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8863
8864 * symtab.c (deprecated_hp_som_som_object_present): Rename
8865 hp_som_som_object_present.
8866 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8867 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8868 Update. Delete extern declaration.
8869 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8870 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8871 (parse_nested_classes_for_hpacc): Ditto.
8872 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8873 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8874 (initialize_hp_cxx_exception_support): Ditto.
8875 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8876 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8877 (cp_print_class_method): Ditto.
8718a420 8878 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8879 (c_type_print_base): Ditto.
8880 * c-exp.y (hp_som_som_object_present): Ditto.
8881
fb2be677
AC
88822004-04-08 Andrew Cagney <cagney@redhat.com>
8883
8884 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8885 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8886 (frame_unwind_find_by_frame): Re-implement the unwind code so
8887 that it can both prepend and append sniffers. Replace
8888 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8889 * tramp-frame.c (tramp_frame_append): Use
8890 frame_unwind_prepend_unwinder.
8891 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8892 frame_unwind_register_unwinder.
8893 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8894 tramp_frame_append.
8895 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8896 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8897 (mips_linux_init_abi): Update.
8898
67faf007
KB
88992004-04-08 Kevin Buettner <kevinb@redhat.com>
8900
8901 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8902 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8903 file support.
8904
8973ff21
KB
89052004-04-07 Kevin Buettner <kevinb@redhat.com>
8906
8907 * ia64-tdep.c (elf.h): Don't include.
8908 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8909
4a0e2f88
JM
89102004-04-07 Jason Molenda (jmolenda@apple.com)
8911
8912 * frame.h: Typeo corrections in comments.
8913
9872ad24
JB
89142004-04-07 Jim Blandy <jimb@redhat.com>
8915
8916 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8917 %esp and %ebp
8918
70b216c8
MK
89192004-04-07 Mark Kettenis <kettenis@gnu.org>
8920
11d5789c
MK
8921 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8922 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8923 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8924 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8925 and solib-legacy.o.
8926 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8927 solib-svr4.o.
8928 * config/sparc/tm-sol2.h: Update copyright year. Include
8929 "solib.h".
8930
70b216c8
MK
8931 * sparc-sol2-tdep.c: Update copyright year. Include
8932 "solib-svr4.h".
8933 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8934 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8935 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8936 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8937 dependencies.
8938
6339dc9e
AC
89392004-04-06 Andrew Cagney <cagney@redhat.com>
8940
8941 * infttrace.c: Include "infttrace.h".
8942 * infttrace.h: Include "target.h".
8943 * Makefile.in (infttrace_h): Update.
8944 (infttrace.o): Update.
8718a420 8945
93449403
AC
89462004-04-06 Andrew Cagney <cagney@redhat.com>
8947
6d518969
AC
8948 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8949 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8950 move extern declarations from here ...
8951 * infttrace.h: ... to here.
8952 * Makefile.in (hppah-nat.o): Update dependencies.
8953
85f4f2d8
AC
8954 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8955 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8956 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8957 (hppa_breakpoint_from_pc): Delete.
8958
93449403
AC
8959 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8960
71456ec6
AC
89612004-04-05 Andrew Cagney <cagney@redhat.com>
8962
8963 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8964 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8965 <sys/file.h>.
8718a420 8966
4c02c60c
AC
89672004-04-06 Randolph Chung <tausq@debian.org>
8968
8969 Committed by Andrew Cagney (mechanical change).
8970 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8971 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8972 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8973 child_enable_exception_callback, current_ex_event,
8974 null_symtab_and_line, child_get_current_exception_event,
8975 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8976 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8977 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8978 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8979 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8980 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8981 Move hpux-specific definitions ...
8982 * hppa-hpux-tdep.c: ... to here.
8983
3a515653
AC
89842004-04-05 Andrew Cagney <cagney@redhat.com>
8985
8986 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8987 skip_prologue_using_sal.
8988
c1730d02
AC
89892004-04-05 Andrew Cagney <cagney@redhat.com>
8990
8991 * config/i386/tm-i386.h: Delete file.
8992 * config/i386/tm-vxworks.h: Update copyright, do not include
8993 "tm-i386.h".
8994 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8995 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8996 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8997 * config/i386/ncr3000.mt (TM_FILE): Delete.
8998 * config/i386/interix.mt (TM_FILE): Delete.
8999 * config/i386/i386v.mt (TM_FILE): Delete.
9000 * config/i386/i386nw.mt (TM_FILE): Delete.
9001 * config/i386/i386gnu.mt (TM_FILE): Delete.
9002 * config/i386/i386aout.mt (TM_FILE): Delete.
9003 * config/i386/embed.mt (TM_FILE): Delete.
9004
8b67aa36
KB
90052004-04-05 Kevin Buettner <kevinb@redhat.com>
9006
9007 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9008 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9009 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9010 (accg7_regnum): New constants.
9011 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9012 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9013 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9014 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9015 for accg registers.
9016 (frv_register_sim_regno): Update spr_map[].
9017
3c7012f5
AC
90182004-04-04 Andrew Cagney <cagney@redhat.com>
9019
9020 * config/mips/xm-riscos.h: Delete.
9021 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9022 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9023 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9024 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9025 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9026 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9027 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9028 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9029 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9030 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9031 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9032 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9033 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9034 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9035 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9036 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9037 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9038 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9039 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9040 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9041 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9042 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9043 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9044 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9045 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9046 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9047
3c7012f5
AC
9048 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9049 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9050 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9051 * configure.host: Remove m680[01]0-sun-sunos3*,
9052 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9053 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9054 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9055 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9056 mips-*-riscos*.
9057 * NEWS: Mention removed systems.
9058
99d16a21
AC
90592004-04-04 Andrew Cagney <cagney@redhat.com>
9060
9061 GDB 6.1 release created from 6.1 branch.
9062
6cdf9d98
AC
90632004-04-04 Andrew Cagney <cagney@redhat.com>
9064
98d346c3
AC
9065 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9066 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9067 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9068
6cdf9d98
AC
9069 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9070 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9071 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9072
859a326d
JB
90732004-04-03 Jim Blandy <jimb@redhat.com>
9074
9075 * MAINTAINERS: Chris Faylor has changed employers; add him to
9076 "paper trail" section, and update his E-mail address.
9077
b87178c3
AC
90782004-04-03 Andrew Cagney <cagney@redhat.com>
9079
4ea2acf0
AC
9080 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9081 generic dummy frames.
9082 * dummy-frame.c: Update copyright.
9083 (dummy_frame_sniffer): Delete check for generic dummy frames.
9084
d0bd2d18 9085 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9086 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9087 (REG_PARM_STACK_SPACE): Delete.
9088 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9089 Inline reference to REG_PARM_STACK_SPACE.
9090
b87178c3
AC
9091 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9092 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9093 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9094 (FRAME_BASE_BEFORE_SIGTRAMP)
9095 (hppa32_hpux_frame_base_before_sigtramp)
9096 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9097 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9098 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9099 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9100 (FRAME_BASE_BEFORE_SIGTRAMP)
9101 (hppa64_hpux_frame_base_before_sigtramp)
9102 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9103
43e2e1a0
AC
91042004-04-03 Andrew Cagney <cagney@redhat.com>
9105
9106 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9107
ddc135a4
AC
91082004-04-02 Andrew Cagney <cagney@redhat.com>
9109
9110 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9111 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9112 * dummy-frame.h: Delete out-of-date comments.
9113 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9114 * gdbarch.h, gdbarch.c: Re-generate.
9115
d15bfd3a 91162004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9117
d15bfd3a
AC
9118 Committed by Andrew Cagney <cagney@redhat.com>.
9119 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9120 into account an instruction saving a register if we have already
9121 seen an earlier instruction saving that same register.
9122
f04ceafa
AC
91232004-04-02 Andrew Cagney <cagney@redhat.com>
9124
08be3abd
AC
9125 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9126 * gdbarch.h, gdbarch.c: Re-generate.
9127 * frame.c (legacy_get_prev_frame): Delete references to
9128 DEPRECATED_INIT_FRAME_PC_FIRST.
9129
f04ceafa
AC
9130 * infrun.c (pc_in_sigtramp): Delete function.
9131 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9132 get_frame_type.
9133
08e69816
AC
91342004-04-02 Andrew Cagney <cagney@redhat.com>
9135
9136 * infrun.c (handle_step_into_function): Delete code conditional on
9137 legacy_frame_p.
9138 (handle_inferior_event, step_over_function): Ditto.
9139
adb54772
AC
91402004-04-02 Andrew Cagney <cagney@redhat.com>
9141
9142 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9143 "previous frame inner to this frame" test.
9144
304396fb
AC
91452004-04-02 Andrew Cagney <cagney@redhat.com>
9146
9147 * frame.c (safe_frame_unwind_memory): New function.
9148 * frame.h (safe_frame_unwind_memory): Declare. Update description
9149 of /safe_/ methods.
9150 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9151 "next_frame". Use safe_frame_unwind_memory.
9152 (tramp_frame_sniffer): Update call to tramp_frame_start.
9153
6502dd73
DJ
91542004-04-01 Daniel Jacobowitz <drow@mvista.com>
9155
9156 * dwarf2read.c (dwarf2_objfile_data_key): New.
9157 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9158 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9159 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9160 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9161 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9162 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9163 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9164 Remove variables.
9165 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9166 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9167 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9168 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9169 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9170 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9171 Remove macros.
9172 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9173 data.
9174 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9175 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9176 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9177 (read_partial_die, read_full_die, read_indirect_string)
9178 (dwarf_decode_line_header, dwarf_decode_macros)
9179 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9180 Update uses of removed variables.
9181 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9182 of removed macros.
9183 (_initialize_dwarf2_read): New function.
9184 * symfile.h (dwarf2_has_info): Update prototype.
9185 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9186 * elfread.c (elf_symfile_read): Likewise.
9187
408752b0
JB
91882004-04-01 Jim Blandy <jimb@redhat.com>
9189
9f744501
JB
9190 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9191 function for register numbers on all the rs6000-derived targets.
9192 (rs6000_gdbarch_init): Don't register a separate
9193 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9194 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9195 variants.
9196
408752b0
JB
9197 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9198 numbering.
9199
2de41bce
PH
92002004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9201
9202 * valarith.c: Update copyright notice.
9203 (value_add): Handle range types.
9204 (value_sub): Ditto.
9205 (value_equal): Ditto.
9206 (value_less): Ditto.
9207 (value_neg): Ditto.
9208 (value_complement): Ditto.
8718a420 9209 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9210 eliminiating unnecessary COERCE_ENUMs.
8718a420 9211
5613d8d3
AC
92122004-03-31 Andrew Cagney <cagney@redhat.com>
9213
9214 * frame.h (frame_unwind_id): Declare.
9215 * frame.c (frame_unwind_id): New function.
9216 (get_prev_frame_1): New function.
9217 (frame_debug_got_null_frame): New function.
9218 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9219 code proper to prev_frame, update description.
9220 * infrun.c (step_over_function): Use frame_unwind_id.
9221
c4557624
JB
92222004-04-31 J. Brobecker <brobecker@gnat.com>
9223
9224 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9225 (hppa64_push_dummy_call): Likewise.
9226
3e6bb910
JB
92272004-03-30 Jim Blandy <jimb@redhat.com>
9228
9229 From Ulrich Weigand:
9230 * utils.c (query): Do not use a va_list variable multiple times.
9231
a2f23071
DJ
92322004-03-29 Daniel Jacobowitz <drow@mvista.com>
9233
9234 * Makefile.in (linux_nat_h): Update dependencies.
9235 * configure.in: Check for <gnu/libc-version.h>.
9236 * configure: Regenerate.
9237 * config.in: Regenerate.
9238 * linux-nat.h: Include "target.h". Add waitstatus field to
9239 struct lwp_info.
9240 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9241 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9242 to.
9243 (lin_lwp_handle_extended): New function. Handle clone events.
9244 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9245 thread exit events.
9246 (child_wait): Handle clone events.
9247 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9248 * linux-nat.c (linux_enable_event_reporting): Turn on
9249 PTRACE_O_TRACECLONE.
9250 (linux_handle_extended_wait): Handle clone events.
9251 * thread-db.c: Include <gnu/libc-version.h>.
9252 (struct private_thread_info): Add dying flag.
9253 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9254 higher.
9255 (attach_thread): Update comments. Handle dying threads.
9256 (detach_thread): Set the dying flag.
9257 (check_event): Always call attach_thread.
9258
8d5f9dcb
DJ
92592004-03-29 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * mips-tdep.c (mips_pdr_data): New.
9262 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9263 (_initialize_mips_tdep): Initialize mips_pdr_data.
9264
66337bb1
CV
92652004-03-29 Corinna Vinschen <vinschen@redhat.com>
9266
9267 * minsyms.c (install_minimal_symbols): Move dropping leading
9268 char from linkage name from here...
9269 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9270 test for "__gnu_compiled*" symbols.
9271
e802b915
JB
92722004-03-28 Jim Blandy <jimb@redhat.com>
9273
9274 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9275 registers to temp register r0 and byte stores as prologue
9276 instructions.
9277
72b56458
AC
92782004-03-28 Andrew Cagney <cagney@redhat.com>
9279
9280 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9281 arm*-*-*.
9282
0bfbda3b
SC
92832004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9284
9285 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9286 and switch the layout to force a display of register window.
9287
5a7225ed
JB
92882004-02-26 J. Brobecker <brobecker@gnat.com>
9289
9290 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9291 of the INTEGER class.
9292
81a07a45
JB
92932004-03-26 Jim Blandy <jimb@redhat.com>
9294
9295 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9296 bytes long on PPC GNU/Linux.
9297
8c691c7a
DC
92982004-03-26 David Carlton <carlton@kealia.com>
9299
9300 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9301
103a0089
AC
93022004-03-25 Andrew Cagney <cagney@redhat.com>
9303
9304 * PROBLEMS: Add general section titles, remove references to
9305 specific releases.
9306
7a5ea0d4
DJ
93072004-03-25 Daniel Jacobowitz <drow@mvista.com>
9308
9309 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9310 INT_REGISTER_SIZE.
9311 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9312 FP_REGISTER_VIRTUAL_SIZE.
9313 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9314 of DEPRECATED_REGISTER_RAW_SIZE.
9315 (arm_register_type): Add gdbarch argument.
9316 (arm_register_raw_size, arm_register_virtual_size): Delete.
9317 (arm_register_byte, arm_extract_return_value)
9318 (arm_store_return_value, arm_get_longjmp_target): Update references
9319 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9320 (arm_gdbarch_init): Likewise. Don't set
9321 deprecated_register_raw_size, deprecated_register_virtual_size,
9322 deprecated_max_register_raw_size,
9323 deprecated_max_register_virtual_size, or
9324 deprecated_max_register_virtual_type. Do set register_type.
9325 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9326 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9327 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9328 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9329 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9330 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9331 INT_REGISTER_SIZE.
9332 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9333 (remote_rdp_store_register): Likewise.
9334
5792a79b
DJ
93352004-03-24 Daniel Jacobowitz <drow@mvista.com>
9336
9337 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9338 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9339 to after osabi initialization.
9340 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9341 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9342 functions.
9343 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9344 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9345 variables.
9346 (mips_linux_init_abi): Append signal trampoline unwinders.
9347
1196bfda
AC
93482004-03-24 Andrew Cagney <cagney@redhat.com>
9349
9350 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9351 * tramp-frame.c: Include "gdb_assert.h".
9352 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9353 correct sizeof.
9354 (tramp_frame_append): Validate the tramp frame's instructions.
9355 * Makefile.in (tramp-frame.o): Update dependencies.
9356
4be282b4
AC
93572004-03-23 Andrew Cagney <cagney@redhat.com>
9358
9359 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9360
69aec09b
AC
93612004-03-23 Andrew Cagney <cagney@redhat.com>
9362
9363 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9364 Nasser as past testsuite/lib/ (and other) maintainers.
9365
63ed89b4
DJ
93662004-03-23 Daniel Jacobowitz <drow@mvista.com>
9367
9368 * infcmd.c (attach_command): Reread symbols if we already have
9369 an exec file.
9370
f3b36427
AC
93712004-03-23 Andrew Cagney <cagney@redhat.com>
9372
9373 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9374
aa2a3f87
AC
93752004-03-23 Andrew Cagney <cagney@redhat.com>
9376
9377 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9378 * gdbarch.h, gdbarch.c: Re-generate.
9379 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9380 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9381 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9382 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9383 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9384 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9385 (DEPRECATED_SIGTRAMP_START): Update.
9386 * blockframe.c (find_pc_sect_partial_function): Update.
9387 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9388
00cac895
DJ
93892004-03-23 Daniel Jacobowitz <drow@mvista.com>
9390
9391 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9392 if necessary.
9393
f561f026
AC
93942004-03-23 Andrew Cagney <cagney@redhat.com>
9395
9396 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9397 predicate, deprecate.
9398 * gdbarch.h, gdbarch.c: Re-generate.
9399 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9400 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9401 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9402 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9403 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9404 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9405 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9406 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9407 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9408 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9409 * blockframe.c (find_pc_partial_function): Update.
9410 * breakpoint.c (bpstat_what): Update.
9411 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9412 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9413 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9414 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9415 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9416 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9417 * i386-nto-tdep.c (i386nto_init_abi): Update.
9418 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9419 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9420 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9421 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9422 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9423 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9424 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9425 * infrun.c (pc_in_sigtramp): Update.
9426 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9427 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9428 * mips-tdep.c (mips_gdbarch_init): Update.
9429 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9430 * ppc-linux-tdep.c: Update comment.
9431 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9432 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9433 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9434 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9435 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9436 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9437 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9438 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9439 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9440 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9441
8050c72f
AC
94422004-03-23 Andrew Cagney <cagney@redhat.com>
9443
d2259dd3
AC
9444 * tramp-frame.h, tramp-frame.h: New files.
9445 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9446 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9447
8050c72f
AC
9448 * Makefile.in: Update all dependencies.
9449
0db9b4b7
AC
94502004-03-23 Andrew Cagney <cagney@redhat.com>
9451
9452 * Makefile.in (trad_frame_h): Add $(frame_h).
9453 * trad-frame.h: Update copyright. Include "frame.h".
9454 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9455 (trad_frame_set_id, trad_frame_get_id): Declare.
9456 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9457 * trad-frame.c: Update copyright.
9458 (struct trad_frame_cache): Define.
9459 (trad_frame_cache_zalloc): New function.
9460 (trad_frame_set_id, trad_frame_get_id): New functions.
9461 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9462
8e645ae7
AC
94632004-03-22 Andrew Cagney <cagney@redhat.com>
9464
9465 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9466 s390_pltstub_unwind_cache.
9467 (s390_stub_frame_unwind_cache): Rename
9468 s390_pltstub_frame_unwind_cache.
9469 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9470 (s390_stub_frame_prev_register): Rename
9471 s390_pltstub_frame_prev_register.
9472 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9473 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9474
9475 From Ulrich Weigand:
9476 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9477 pointer calls like PLT calls.
9478
34fcf120
DJ
94792004-03-22 Daniel Jacobowitz <drow@mvista.com>
9480
9481 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9482 PC rather than the partial function start address. Use the start
9483 address to sanity check the found PDR.
9484
5b917078
DJ
94852004-03-22 Daniel Jacobowitz <drow@mvista.com>
9486
9487 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9488 linux_handle_extended_wait.
9489
8adf9e78
AC
94902004-03-22 Andrew Cagney <cagney@redhat.com>
9491
c3122434
AC
9492 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9493 function.
9494
8adf9e78
AC
9495 * frame.h (generic_pop_current_frame): Delete declaration.
9496 (deprecate_pop_dummy_frame): Deprecate
9497 generic_pop_dummy_frame.
9498 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9499 (generic_pop_current_frame): Delete function.
9500 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9501 generic_pop_current_frame.
9502 * v850-tdep.c (v850_pop_frame): Update.
9503 * mcore-tdep.c (mcore_pop_frame): Update.
9504 * sh64-tdep.c (sh64_pop_frame): Update.
9505 * h8300-tdep.c (h8300_pop_frame): Update.
9506
90ba813f
AC
95072004-03-22 Andrew Cagney <cagney@redhat.com>
9508
9509 * frame.h (deprecated_pc_in_call_dummy): Rename
9510 generic_pc_in_call_dummy.
9511 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9512 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9513 generic_pc_in_call_dummy.
9514 (pc_in_dummy_frame): Make static.
9515 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9516 * gdbarch.h, gdbarch.c: Re-generate.
9517 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9518 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9519 (legacy_get_prev_frame): Ditto.
9520 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9521 comment.
8718a420 9522
ca4bb888
AC
95232004-03-21 Andrew Cagney <cagney@redhat.com>
9524
244675f9
AC
9525 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9526 declaration and out-of-date comment.
9527 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9528 Delete function.
9529 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9530 deprecated_pc_in_call_dummy.
9531
ca4bb888
AC
9532 * infrun.c (handle_inferior_event): For non legacy frames, use the
9533 frame ID and frame type to identify a signal trampoline. Update
9534 comments.
9535
1777c7b4
NW
95362004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9537
9538 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9539 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9540
82417da5
AC
95412004-03-21 Andrew Cagney <cagney@redhat.com>
9542
9543 * frame-unwind.h: Update copyright.
9544 (struct frame_data): Add opaque declaration.
9545 (frame_sniffer_ftype): Declare.
9546 (struct frame_unwind): Add "unwind_data" and "sniffer".
9547 (frame_unwind_register_unwinder): Declare.
9548 (frame_unwind_find_by_frame): Add parameter "this_cache".
9549 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9550 (legacy_get_prev_frame, legacy_get_prev_frame)
9551 (get_frame_type): Pass the prologue_cache to
9552 frame_unwind_find_by_frame.
9553 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9554 "unwinder".
9555 (frame_unwind_register_unwinder): New function.
9556 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9557
b2ba182e
PH
95582004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9559
9560 * bcache.c (print_percentage): Use floating point to avoid
9561 incorrect results when portion*100 overflows.
9562
81332287
KB
95632004-03-19 Kevin Buettner <kevinb@redhat.com>
9564
9565 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9566 (ppc_linux_init_extra_frame_info)
9567 (ppc_linux_frameless_function_invocation)
9568 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9569 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9570 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9571 (rs6000_frame_chain): Delete declarations.
9572 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9573 (ppc_linux_init_extra_frame_info)
9574 (ppc_linux_frameless_function_invocation)
9575 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9576 (ppc_linux_init_abi): Remove registration of above deleted functions.
9577 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9578 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9579 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9580 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9581 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9582 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9583 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9584 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9585 frame management for all OSABIs.
9586
61a65099
KB
95872004-03-19 Andrew Cagney <cagney@redhat.com>
9588
9589 Committed by Kevin Buettner <kevinb@redhat.com>.
9590
9591 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9592 Update copyright.
9593 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9594 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9595 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9596 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9597 unwinders. #ifdef legacy frame code.
9598 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9599 "frame-base.h".
9600 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9601 (struct rs6000_frame_cache, rs6000_frame_cache)
9602 (rs6000_frame_this_id, rs6000_frame_prev_register)
9603 (rs6000_frame_sniffer, rs6000_frame_unwind)
9604 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9605 (rs6000_frame_base): Implement a traditional frame unwinder.
9606 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9607 frame unwinder.
9608
88f7da05
KB
96092004-03-19 Kevin Buettner <kevinb@redhat.com>
9610
9611 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9612 breakpoint address for watchpoints or the catch eventpoints.
9613 Add new paramter ``bptype''. Adjust all callers.
9614
f826dce1
AC
96152004-03-19 Andrew Cagney <cagney@redhat.com>
9616
33cb8b0f
AC
9617 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9618
f826dce1
AC
9619 * PROBLEMS: Delete note that ARM does not use frame code, problem
9620 fixed.
9621
43b1ab88
AC
96222004-03-18 Andrew Cagney <cagney@redhat.com>
9623
292ab034
AC
9624 * stack.c (return_command): Delete code wrapped in #ifdef
9625 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9626
43b1ab88
AC
9627 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9628
dbfe4626
AC
96292004-03-18 Andrew Cagney <cagney@redhat.com>
9630
9631 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9632 DEPRECATED_IN_SIGTRAMP.
9633 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9634 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9635 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9636 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9637 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9638 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9639 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9640 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9641 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9642 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9643
0cad6aec
AC
96442004-03-18 Andrew Cagney <cagney@redhat.com>
9645
9646 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9647 (struct frame_base_table_entry): Define.
9648 (struct frame_base_table): Re-implement as a linked list.
9649 (frame_base_init): Re-implement.
9650 (frame_base_table): Delete function.
9651 (append_predicate): Delete function.
9652 (frame_base_append_sniffer): Update.
9653 (frame_base_set_default): Update.
9654 (frame_base_find_by_frame): Update.
9655 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9656 * Makefile.in (frame-base.o): Update dependencies.
9657
9982c2e7
AC
96582004-03-17 Andrew Cagney <cagney@redhat.com>
9659
9660 * frame.c (legacy_get_prev_frame): Pass correct frame to
9661 frame_unwind_find_by_frame.
9662
8dfe8985
DC
96632004-03-17 David Carlton <carlton@kealia.com>
9664
9665 * NEWS: Mention C++ nested types and namespaces
9666
ed47347a
MC
96672004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9668
9669 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9670 and "Regressions since gdb 5.3.". Add known regressions since
9671 gdb 6.0.
9672
90aeadfc
DC
96732004-03-16 David Carlton <carlton@kealia.com>
9674
9675 * dwarf2read.c (process_structure_scope): Process children even
9676 when we're a declaration.
9677
73912b9b
AC
96782004-03-16 Andrew Cagney <cagney@redhat.com>
9679
9680 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9681 * blockframe.c (find_pc_partial_function)
9682 (find_pc_sect_partial_function): Merge into a single
9683 find_pc_partial_function.
9684
283accbc
MK
96852004-03-16 Mark Kettenis <kettenis@gnu.org>
9686
9687 * i386bsd-nat.c: s/regno/regnum/g.
9688 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9689 FP0_REGNUM.
9690 (store_inferior_registers): Likewise.
9691
f5b1afdf
MK
96922004-03-16 Mark Kettenis <kettenis@gnu.org>
9693
9694 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9695 of i387_fill_fsave.
9696 (store_inferior_registers): Call i387_collect_fsave and
9697 i387_collect_fxsave instead of i387_fill_fsave and
9698 i387_fill_fxsave.
9699
41fe5eb3
AC
97002004-03-15 Andrew Cagney <cagney@redhat.com>
9701
9702 * Makefile.in (frame-unwind.o): Update dependencies.
9703 * frame-unwind.c: Include "gdb_obstack.h".
9704 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9705 parameter.
9706 (append_predicate): Delete function.
9707 (struct frame_unwind_table_entry): New structure.
9708 (struct frame_unwind_table): Replace "sniffer" with "head" and
9709 "tail".
9710 (frame_unwind_append_sniffer): Update.
9711 (frame_unwind_find_by_frame): Update.
9712 (_initialize_frame_unwind): Registe frame_unwind_init using
9713 gdbarch_data_register_pre_init.
9714
3f63813d
MK
97152004-03-15 Mark Kettenis <kettenis@gnu.org>
9716
9717 * i386bsd-nat.c: Update copyright year.
9718 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9719 define unconditionally.
9720
3248c325 97212004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9722
9723 * i387-tdep.h (i387_collect_fsave): New prototype.
9724 * i387-tdep.c (i387_collect_fsave): New function containing most
9725 of the code from i387_fill_fsave.
3248c325 9726 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9727
871fbe6a
MK
97282004-03-15 Mark Kettenis <kettenis@gnu.org>
9729
9730 * i386-linux-tdep.c: Update copyright year.
9731 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9732 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9733 svr4_ilp32_link_map_offsets instead of
9734 i386_linux_svr4_fetch_link_map_offsets.
9735
8176b9b8
DC
97362004-03-15 David Carlton <carlton@kealia.com>
9737
9738 Fix for PR c++/1553:
9739 * dwarf2read.c (read_structure_type): Determine type name by
9740 calling determine_class_name.
9741 (determine_class_name): New.
9742 (determine_prefix): Look at TYPE_TAG_NAME and call
9743 determine_class_name when appropriate.
9744 (determine_prefix_aux, class_name): Delete.
9d58e29d 9745 (read_namespace): Set die->type.
8176b9b8 9746
fe8bf7d7
KB
97472004-03-15 Kevin Buettner <kevinb@redhat.com>
9748
9749 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9750 unused macro definition. The definition in target.h (or perhaps
9751 elsewhere) takes precedence.
9752
ed6edd9b
AC
97532004-03-15 Andrew Cagney <cagney@redhat.com>
9754
f9be684a
AC
9755 * ppc-tdep.h: Update copyright.
9756 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9757 function signatures to match "regsets.h".
9758 * ppc-linux-tdep.c: Include "regset.h".
9759 (ELF_GREGSET_SIZE): Delete.
9760 (right_supply_register): New function.
9761 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9762 using right_supply_register.
9763 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9764 functions.
9765 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9766 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9767 (_initialize_ppc_linux_tdep): Do not register
9768 ppc_linux_regset_core_fns.
9769 (ppc_linux_regset_from_core_section): Replace
9770 fetch_core_registers.
9771 (ppc_linux_regset_core_fns): Delete.
9772 * ppc-linux-nat.c: (right_fill_reg): New function.
9773 (supply_gregset): Update call to ppc_linux_supply_gregset.
9774 (fill_gregset): Clear the register set, use right_fill_reg.
9775 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9776 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9777
ed6edd9b
AC
9778 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9779 unsigned.
9780
030f20e1
AC
97812004-03-15 Andrew Cagney <cagney@redhat.com>
9782
9783 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9784 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9785 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9786 and register_gdbarch_data.
9787 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9788 (struct gdbarch_data): Replace "init" by "pre_init" and
9789 "post_init".
9790 * gdbarch.h, gdbarch.c: Re-generate.
9791 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9792 with"obstack", use OBSTACK_ZALLOC.
9793 (dwarf2_frame_ops): Delete.
9794 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9795 (dwarf2_frame_init_reg): Use gdbarch_data.
9796 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9797 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9798 (_initialize_svr4_solib): Update.
9799 * user-regs.c (_initialize_user_regs): Update.
9800 * reggroups.c (_initialize_reggroup): Update.
9801 * regcache.c (_initialize_regcache): Update.
9802 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9803 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9804 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9805 * frame-unwind.c (_initialize_frame_unwind): Update.
9806 * frame-base.c (_initialize_frame_base): Update.
9807 * user-regs.c (user_reg_add): Update.
9808 * reggroups.c (reggroup_add): Update.
9809 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9810 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9811 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9812 * frame-base.c (frame_base_table): Update.
9813 * remote.c (_initialize_remote): Update.
9814 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9815
3111a3fc
AC
98162004-03-15 Andrew Cagney <cagney@redhat.com>
9817
9818 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9819
5ecb7103
KB
98202004-03-15 Kevin Buettner <kevinb@redhat.com>
9821
9822 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9823 * frv-linux-tdep.c: New file.
9824 * frv-tdep.c (struct gdbarch_tdep): Add new field
9825 ``sigcontext_reg_addr''.
9826 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9827 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9828 (frv_sigramp_frame_sniffer): New functions.
9829 (frv_sigtramp_frame_unwind): New static global.
9830 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9831 sniffers.
9832 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9833 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9834
1ccda5e9
KB
98352004-03-15 Kevin Buettner <kevinb@redhat.com>
9836
9837 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9838 but not via a call to error(), when unable to read memory.
9839
b375a0a5
KB
98402004-03-15 Kevin Buettner <kevinb@redhat.com>
9841
9842 * frv-tdep.c (frv_call_dummy_words): Delete.
9843 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9844
4fdf6121
AC
98452004-03-15 Andrew Cagney <cagney@redhat.com>
9846
9847 * infrun.c (handle_step_into_function, step_over_function): Only
9848 update and use STEP_FRAME_ID when the system is using legacy
9849 frames. Update comments.
9850
34021503
MK
98512004-03-14 Mark Kettenis <kettenis@gnu.org>
9852
187e21d1
MK
9853 * amd64-linux-tdep.h: Remove file.
9854 * amd64-linux-tdep.c: Don't include "inferior.h" and
9855 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9856 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9857 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9858 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9859 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9860 macros.
9861 (user_to_gdb_regmap): Remove variable.
9862 (amd64_linux_gregset_reg_offset): New variable.
9863 (amd64_core_fns): Remove variable.
9864 (fetch_core_registers): Remove function.
9865 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9866 functions.
9867 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9868 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9869 * Makefile.in (amd64_linux_tdep_h): Remove.
9870 (amd64-linux-nat.o): Update dependencies.
9871 (amd64-linux-tdep.o): Update dependencies.
9872
99679982
MK
9873 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9874 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9875 functions.
9876 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9877
34021503
MK
9878 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9879 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9880
134d01f1
DJ
98812004-03-14 Daniel Jacobowitz <drow@mvista.com>
9882
9883 * dwarf2read.c (read_structure_type): Rename from
8718a420 9884 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9885 Return immediately if die->type is set. Call read_type_die before
9886 dwarf2_add_member_fn.
9887 (process_structure_scope): New function.
9888 (read_enumeration_type, process_enumeration_scope): New functions,
9889 broken out from read_enumeration. Don't create the enumeration
9890 type if it has already been created.
9891 (read_enumeration): Removed.
9892 (process_die): Call read_structure_type, process_structure_scope,
9893 read_enumeration_type, and process_enumeration_scope. Just call
9894 new_symbol for base and subrange types. Add a comment about other
9895 type dies.
9896 (read_type_die): Call read_enumeration_type.
9897 (add_partial_structure, new_symbol): Update comments.
9898
65760afb
SC
98992004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9900
9901 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9902
10f59415
SC
99032004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9904
9905 * tui/tui-win.h (tui_get_cmd_list): Declare.
9906 * tui/tui-win.c (tui_command): New function.
9907 (tui_get_cmd_list): New function.
9908 (_initialize_tui_win): Moved initialization of tui command in
9909 tui_get_cmd_list.
9910
9911 * tui/tui-data.c (init_content_element): Setup new data members.
9912 (init_win_info): Likewise.
9913 (free_content_elements): Free it.
9914 * tui/tui-data.h (struct tui_data_element): Store the register
9915 content to print.
9916 (struct tui_data_info): Keep the current register group.
9917
9918 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9919
9920 * tui/tui-regs.h (tui_show_registers): Update prototype.
9921 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9922 (tui_resize_all): No need to calculate anything for register window.
9923 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9924 (tui_set_register_element, tui_set_general_regs_content): Remove.
9925 (tui_set_special_regs_content): Remove.
9926 (tui_set_general_and_special_regs_content): Remove.
9927 (tui_set_float_regs_content): Remove.
9928 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9929 (tui_set_regs_content): Remove.
9930 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9931 (tui_v_show_registers_command_support): Remove.
9932 (tui_show_registers): Use a reggroup to specify the registers to show.
9933 (tui_show_register_group): New function.
9934 (tui_display_registers_from): Compute the layout of register window
9935 and refresh with new API; be sure to delete old register windows.
9936 (tui_check_register_values): Update to use tui_get_register and
9937 tui_display_data.
9938 (tui_display_register): Just refresh the register window part.
9939 (tui_register_format): Format registers and save in tui_data_element.
9940 (tui_get_register): New to combine tui_reg_value_has_changed and
9941 tui_get_register_raw_value; fix to use the new gdb API.
9942 (tui_show_float_command): Renamed tui_reg_float_command.
9943 (tui_show_general_command): Renamed tui_reg_general_command.
9944 (tui_show_special_command): Renamed tui_reg_system_command.
9945 (_initialize_tui_regs): Remove unused commands.
9946
c3364ea4
MK
99472004-03-13 Mark Kettenis <kettenis@gnu.org>
9948
27d1e716
MK
9949 * NEWS (New native configurations): Mention OpenBSD/amd64.
9950
c3364ea4
MK
9951 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9952 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9953 Remove defines.
9954 * config/i386/nm-fbsd64.h: Likewise.
9955 * config/i386/nm-obsd.h: Likewise.
9956 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9957 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9958
b2d6d697
KB
99592004-03-12 Kevin Buettner <kevinb@redhat.com>
9960
9961 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9962 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9963 New constants.
9964
76e43199
KB
9965 From Richard Sandiford <rsandifo@redhat.com>:
9966 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9967
34ce532e
KB
99682004-03-12 Kevin Buettner <kevinb@redhat.com>
9969
9970 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9971 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9972 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9973 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9974 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9975 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9976 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9977 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9978 definitions from frv-tdep.c to frv-tdep.h.
9979
c4d10515
KB
99802004-03-12 Kevin Buettner <kevinb@redhat.com>
9981
9982 Add shared library support for FR-V FDPIC ABI:
9983 * Makefile.in (solib-frv.o): Add dependencies.
9984 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9985 New functions.
9986 (frv_push_dummy_call): Add support for FDPIC ABI.
9987 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9988 for FDPIC ABI.
9989 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9990 (frv_fdpic_find_canonical_descriptor): Declare.
9991 * solib-frv.c: New file.
9992 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9993 * config/frv/tm-frv.h (solib.h): Include.
9994
ed1bd989
KB
99952004-03-12 Kevin Buettner <kevinb@redhat.com>
9996
9997 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9998 (frv-tdep.o): Update dependencies.
9999 * frv-tdep.h: New file.
10000 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10001 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10002 constants.
10003 (struct gdbarch_tdep): Add new member ``frv_abi''.
10004 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10005 functions.
10006 (new_variant): Set ``frv_abi'' field.
10007 (gdb_arch_init): Detect FDPIC executables.
10008
82b38f72
MK
100092004-03-12 Mark Kettenis <kettenis@gnu.org>
10010
10011 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10012 wrapper.
10013
db1ea9ba
AC
100142004-03-11 Andrew Cagney <cagney@redhat.com>
10015
10016 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10017
f8766ec1
KB
100182004-03-11 Kevin Buettner <kevinb@redhat.com>
10019
10020 * solist.h (master_so_list): New function.
10021 * solib.c (master_so_list): Likewise.
10022 * solib-svr4.c (enable_break): Iterate over so_list entries
10023 obtained from master list instead of entries obtained directly
10024 via svr4_current_sos().
10025
523f6a27
BE
100262004-03-10 Ben Elliston <bje@gnu.org>
10027
10028 * MAINTAINERS: Update my mail address.
10029
37814c18
KI
100302004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10031
10032 * remote-m32r-sdi.c: Support hardware watchpoint.
10033
8b9740d8
DJ
100342004-03-09 Daniel Jacobowitz <drow@mvista.com>
10035
10036 * user-regs.c: Update copyright years.
10037 (struct user_regs): Rename to gdb_user_regs.
10038 (append_user_reg, builtin_user_regs, user_regs_init)
10039 (user_reg_add, user_reg_map_name_to_regnum)
10040 (usernum_to_user_reg): Update.
10041
4bb7a0a7
DJ
100422004-03-09 Daniel Jacobowitz <drow@mvista.com>
10043
10044 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10045 (skip_children): New functions.
10046 (locate_pdi_sibling): Call skip_children.
10047
44e1a9eb
DJ
100482004-03-09 Daniel Jacobowitz <drow@mvista.com>
10049
10050 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10051 * gdbtypes.c (check_typedef): Update comments.
10052
f3dd6933
DJ
100532004-03-09 Daniel Jacobowitz <drow@mvista.com>
10054
10055 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10056 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10057 pointer. Update comment about comp_unit_head.
10058 (struct abbrev_info): Shorten two int flags.
10059 (dwarf_alloc_abbrev): Take a CU argument.
10060 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10061 each time through the loop. Update cleanup argument.
10062 (psymtab_to_symtab_1): Update cleanup call.
10063 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10064 abbrev_obstack.
10065 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10066 Just call obstack_free and clear the pointer.
10067
b40c7d58
DJ
100682004-03-09 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * infrun.c (handle_inferior_event): Remove short-circuit code for
10071 events in a different thread.
10072
333dabeb
DJ
100732004-03-09 Daniel Jacobowitz <drow@mvista.com>
10074
10075 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10076 print the whole transfer.
10077 (initialize_targets): Update description of "set debug target".
10078
aa17d93e
DJ
100792004-03-09 Daniel Jacobowitz <drow@mvista.com>
10080
10081 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10082
0b71f08f
NW
100832004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10084
10085 * MAINTAINERS (write after approval): Add myself.
10086
3930f270
CV
100872004-03-08 Corinna Vinschen <vinschen@redhat.com>
10088
10089 * sh-tdep.c (sh_print_registers_info): Use for loop.
10090 Don't skip multiple registers when a float register is encountered.
10091
a2b4a96c
CV
100922004-03-08 Corinna Vinschen <vinschen@redhat.com>
10093
10094 Fix PR tdep/1291.
10095 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10096 to official SH documentation.
10097
f15a4bc0
AC
100982004-03-07 Andrew Cagney <cagney@redhat.com>
10099
10100 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10101 unused function.
10102
9498281f
DJ
101032004-03-07 Daniel Jacobowitz <drow@mvista.com>
10104
10105 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10106 (arm_get_next_pc): Handle BX and BLX.
10107
449e1137
AC
101082004-03-07 Andrew Cagney <cagney@redhat.com>
10109
eded0a31
AC
10110 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10111 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10112 HPPA_SP_REGNUM.
10113 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10114 (hppa_target_read_fp): Delete.
10115 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10116 register_virtual_size, max_register_raw_size,
10117 max_register_virtual_size, register_byte, register_size,
10118 target_read_fp, fp_regnum, and register_bytes. Set register_type
10119 instead of register_virtual_type.
10120 (hppa32_register_type, hppa64_register_type): Replace
10121 hppa32_register_virtual_type and hppa64_register_virtual_type.
10122 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10123 (HPPA_FP_REGNUM): Define.
10124
f5f907e2
AC
10125 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10126
69b4bbe4
AC
10127 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10128 (pa_do_registers_info): Delete.
10129 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10130 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10131 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10132
78161e48
AC
10133 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10134 GDB_TARGET_IS_HPPA code.
10135 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10136 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10137 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10138 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10139 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10140 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10141 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10142 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10143 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10144 (hppa_frameless_function_invocation, hppa64_store_return_value)
10145 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10146 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10147 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10148 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10149 (find_proc_framesize, deposit_21, restore_pc_queue)
10150 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10151 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10152
782eae8b
AC
10153 Unconditionally enable 64-bit frame and ABI code.
10154 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10155 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10156 push_dummy_frame, fix_call_dummy, push_arguments,
10157 call_dummy_location, extract_return_value, use_struct_convention,
10158 store_return_value, store_struct_return, saved_pc_after_call,
10159 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10160 frame_chain, frame_chain_valid, frameless_function_invocation,
10161 frame_saved_pc, and pop_frame.
78161e48 10162
449e1137
AC
10163 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10164 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10165 (hppa_gdbarch_init): Do not set PC_REGNUM.
10166
12507572
MK
101672004-03-06 Mark Kettenis <kettenis@gnu.org>
10168
10169 * config/alpha/tm-fbsd.h: Remove file.
10170 * config/alpha/fbsd.mt: Tweak comment.
10171 (TM_FILE): Set to tm-alpha.h.
10172
c107cc1b
AC
101732004-03-05 Andrew Cagney <cagney@redhat.com>
10174
10175 * infrun.c (step_over_function): When non-legacy code, and no
10176 step_frame_id, use the unwinder to get the caller's frame ID.
10177
f2e7c15d
MK
101782004-03-05 Mark Kettenis <kettenis@gnu.org>
10179
8b0c3633
MK
10180 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10181 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10182 bfd_arch_unknown. Adjust comment.
10183
f2e7c15d
MK
10184 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10185 * i386obsd-tdep.c: Correct spelling in comment.
10186 * i386nbsd-tdep.c: Correct spelling in comment.
10187 * sparc-tdep.c: Correct spelling in comments.
10188
1198ecbe
DC
101892004-03-05 David Carlton <carlton@kealia.com>
10190
10191 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10192 bug.
10193
9eb42ed1
MK
101942004-03-05 Mark Kettenis <kettenis@gnu.org>
10195
10196 * sparc-tdep.c: Fix typo in comment.
10197
52b5e991
JB
101982004-03-04 J. Brobecker <brobecker@gnat.com>
10199
10200 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10201
d8151005
DJ
102022004-03-04 Daniel Jacobowitz <drow@mvista.com>
10203
10204 * dwarf2read.c: Add comment describing memory lifetimes.
10205 (struct dwarf2_pinfo): Update comment.
10206 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10207 (read_enumeration, new_symbol): Don't use obsavestring.
10208
cbeae229
MK
102092004-03-04 Mark Kettenis <kettenis@gnu.org>
10210
722d18c2
MK
10211 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10212 instead of amd64_fill_fxsave.
10213 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10214 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10215
cbeae229
MK
10216 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10217 Reorganize code a bit.
10218
b4206d25
OF
102192004-03-04 Orjan Friberg <orjanf@axis.com>
10220
10221 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10222 when the frame pointer is pushed. Don't set the frame pointer's
10223 address on the stack unless it's actually located there.
b4206d25
OF
10224 Set the SRP's address on the stack correctly when the PC is still in
10225 the prologue.
10226 (cris_return_value): New function.
10227 (cris_gdbarch_init): Clear deprecated store_return_value,
10228 extract_return_value.
10229
49b0b195
JB
102302004-03-02 Jim Blandy <jimb@redhat.com>
10231
10232 * stabsread.c (reg_value_complaint): The maximum register number
10233 is one less than the number of registers.
10234
e9ff708b
AC
102352004-03-02 Andrew Cagney <cagney@redhat.com>
10236
10237 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10238 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10239 trailing comma and redundant assignment of I386_ST0_REGNUM.
10240 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10241 32-bit segment registers.
10242
d4715e41
AC
102432004-03-01 Andrew Cagney <cagney@redhat.com>
10244
10245 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10246 use frame_relative_level and get_next_frame.
10247
3ce2bf18
AC
102482004-02-29 Andrew Cagney <cagney@redhat.com>
10249
10250 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10251 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10252 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10253 Delete macro.
10254
2da6aac3
DJ
102552004-02-29 Daniel Jacobowitz <drow@mvista.com>
10256
10257 * inflow.c (terminal_inferior): Don't give up the terminal if we
10258 previously couldn't get the inferior's terminal state.
10259
6ba34a8d
DJ
102602004-02-29 Daniel Jacobowitz <drow@mvista.com>
10261
10262 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10263 PC_REGNUM.
10264
faae5abe
AC
102652004-02-28 Andrew Cagney <cagney@redhat.com>
10266
10267 * NEWS: Refer to GDB 6.1.
10268 * README: Refer to GDB 6.1.
10269 * PROBLEMS: Refer to GDB 6.1.
10270
2227a3c5
DJ
102712004-02-28 Daniel Jacobowitz <drow@mvista.com>
10272
10273 * thread-db.c (disable_thread_signals): Remove unused function.
10274
80571bff
MK
102752004-02-28 Mark Kettenis <kettenis@gnu.org>
10276
041bd74b
MK
10277 * amd64-nat.c: Include "gdb_string.h".
10278 (amd64_collect_native_gregset): Zero-extend the 32-bit
10279 general-purpose registers and %eip.
10280
3c017e40
MK
10281 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10282 * amd64-tdep.c (amd64_collect_fxsave): New function.
10283 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10284
80571bff
MK
10285 * i387-tdep.h: Update copyright year.
10286 (i387_collect_fxsave): New prototype.
10287 * i387-tdep.c: Update copyright year.
10288 (i387_collect_fxsave): New function containing most of the code
10289 from i387_fill_fxsave.
10290 (i387_fill_fxsave): Call i387_collect_fxsave.
10291
50d71875
AC
102922004-02-28 Andrew Cagney <cagney@redhat.com>
10293
10294 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10295 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10296
4a28816e
MK
102972004-02-28 Mark Kettenis <kettenis@gnu.org>
10298
10299 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10300
dbda9972
AC
103012004-02-28 Andrew Cagney <cagney@redhat.com>
10302
10303 * utils.c: Use "", instead of <>, to include readline.
10304 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10305 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10306 * source.c, solib.c, exec.c, event-top.c: Ditto.
10307 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10308 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10309 * Makefile.in: Update all dependencies.
10310 (readline_tilde_h, readline_history_h): Define.
10311 (readline_headers): Delete.
10312
83277a99
MK
103132004-02-28 Mark Kettenis <kettenis@gnu.org>
10314
91ae4303
MK
10315 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10316 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10317 "config/i386/tm-lx64.h".
10318
83277a99
MK
10319 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10320 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10321 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10322
6e1d7d6c
AC
103232004-02-28 Andrew Cagney <cagney@redhat.com>
10324
ecc9ac84
AC
10325 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10326
6e1d7d6c
AC
10327 * breakpoint.c (_initialize_breakpoint): Use
10328 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10329 Add help to show command.
10330
9671aeef
MK
103312004-02-28 Mark Kettenis <kettenis@gnu.org>
10332
7fa2737c
MK
10333 * i386-nat.c: Reformat to be closer to coding standards.
10334 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10335 `retval'. Make variables `align' and `size' local to while-loop.
10336 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10337 (_initialize_i386_nat): New prototype.
10338
9671aeef
MK
10339 * tui/tui.c: Include <readline/readline.h> instead of
10340 "readline/readline.h". Include it after <term.h> and
10341 "gdb_curses.h".
10342
fca7aa43
AC
103432004-02-27 Andrew Cagney <cagney@redhat.com>
10344
412275d5
AC
10345 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10346 the new frame unwind code.
10347 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10348 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10349 PCOQ_HEAD_REGNUM.
10350
fca7aa43
AC
10351 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10352 "return_value" and "push_dummy_call".
10353 (hppa32_use_struct_convention): Delete unused function.
10354 (hppa32_store_return_value): Delete unused function.
10355 (hppa32_extract_return_value): Delete unused function.
10356 (hppa32_stack_align): Delete function.
10357
e6a8a7d2
EZ
103582004-02-27 Eli Zaretskii <eliz@elta.co.il>
10359
10360 * coffread.c (enter_linenos): Don't let rawptr reference memory
10361 outside linetab[]'s limits.
10362
1797a8f6
AC
103632004-02-27 Andrew Cagney <cagney@redhat.com>
10364
10365 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10366 inferior stack space - the stack needs to grow upwards.
10367 (hppa32_frame_align): New function.
10368 (hppa64_frame_align): Replace hppa_frame_align.
10369 (hppa_gdbarch_init): Update.
10370
2e4b5889
OF
103712004-02-26 Orjan Friberg <orjanf@axis.com>
10372
10373 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10374 (dwarf2-frame.h): Include.
10375 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10376 Remove static variables related to ABI setting.
10377 (struct gdbarch_tdep): Remove cris_abi member.
10378 (struct frame_extra_info): Remove.
10379 (cris_unwind_cache, stack_item): New structs.
10380 (cris_frame_unwind, cris_frame_base): New variables.
10381 (push_stack_item, pop_stack_item)
10382 (cris_frame_unwind_cache, cris_frame_this_id)
10383 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10384 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10385 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10386 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10387 (cris_reg_struct_has_addr): New functions.
10388 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10389 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10390 (cris_store_struct_return, cris_frameless_function_invocation)
10391 (cris_pop_frame, cris_skip_prologue_main)
10392 (cris_abi_original_store_return_value)
10393 (cris_abi_v2_store_return_value)
10394 (cris_abi_original_extract_return_value)
10395 (cris_abi_v2_extract_return_value)
10396 (cris_abi_original_reg_struct_has_addr)
10397 (cris_abi_v2_reg_struct_has_addr)
10398 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10399 (cris_push_return_address, cris_abi_update): Remove.
10400 (_initialize_cris_tdep): Remove ABI command.
10401 (cris_dump_tdep): Ditto.
8718a420 10402 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10403 Set store_return_value, extract_return_value, push_dummy_code,
10404 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10405 frame_unwind_append_sniffer, frame_base_set_default.
10406 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10407 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10408 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10409 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10410 init_extra_frame_info, frameless_function_invocation, frame_chain,
10411 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10412 dummy_write_sp.
8718a420 10413
6b9acc27
JJ
104142004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10415
10416 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10417 * valprint.c (print_hex_chars): Change from static to external.
10418 (print_char_chars): New function.
10419 * printcmd.c (print_scalar_formatted): For integer and enum types
10420 that are longer than LONGEST, perform processing via appropriate
10421 print_*_chars routines.
10422
a431654a
AC
104232004-02-26 Andrew Cagney <cagney@redhat.com>
10424
10425 * Makefile.in: Update dependencies.
10426 Changes from Ulrich Weigand,
10427 * s390-tdep.c: Include "dwarf2-frame.h".
10428 (s390_dwarf2_frame_init_reg): New function.
10429 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10430 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10431
fa8d40ab
JJ
104322004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10433
10434 * breakpoint.c (pending_break_support): New setting variable.
10435 (break_command_1): Account for pending_break_support setting
10436 when creating pending breakpoints.
10437 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10438 (_initialize_breakpoint): Add "set breakpoint pending" and
10439 "show breakpoint pending" commands.
10440
0dcd613f
AC
104412004-02-26 Andrew Cagney <cagney@redhat.com>
10442
10443 Fix PR i18n/1570.
10444 * charset.c (backslashable, backslashed, represented): Remove 'e'
10445 from list of escaped characters, not part of ISO-C.
10446
479272a3
JB
104472004-02-25 J. Brobecker <brobecker@gnat.com>
10448
10449 From Peter Schauer <schauer@pdf.de>:
10450 * tui/tui.c: Move system header includes after local includes.
10451 Fixes a build failure on solaris systems.
10452
7613d933
JB
104532004-02-25 J. Brobecker <brobecker@gnat.com>
10454
10455 * configure.in: Refine the previous change.
10456 * configure: Regenerate.
10457
9c1488cb
MK
104582004-02-25 Mark Kettenis <kettenis@gnu.org>
10459
10460 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10461 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10462 "amd64-tdep.h" instead of "x86-64-tdep.h".
10463 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10464 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10465 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10466 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10467 and "x86-64-tdep.c".
10468 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10469 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10470 and "x86-64-tdep.c".
10471 * amd64bsd-nat.c: Update copyright year.
10472 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10473 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10474 "x86-64-tdep.h".
10475 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10476 "x86-64-tdep.h".
10477 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10478 "x86-64-tdep.h".
10479 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10480 "x86-64-tdep.h".
10481 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10482 "x86-64-tdep.h".
10483 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10484 "x86-64-tdep.h".
8718a420 10485 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10486 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10487 * Makefile.in (amd64_linux_tdep_h): Renamed from
10488 x86_64_linux_tdep_h.
10489 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10490 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10491 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10492 (amd64obsd-tdep.o): Update dependencies.
10493 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10494 dependencies.
10495 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10496 dependencies.
10497 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10498 amd64-linux-nat.c amd64-linux-tdep.c.
10499 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10500 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10501 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10502 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10503 amd64-tdep.o and amd64-linux-tdep.o.
10504 (TM_FILE): Set to tm-linux64.h.
10505 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10506 (NAT_FILE): Set to nm-linux64.h.
10507 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10508 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10509 amd64-tdep.o.
10510 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10511 amd64-tdep.o.
10512 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10513 amd64-tdep.o.
10514
4b8dad4a
RM
105152004-02-25 Roland McGrath <roland@redhat.com>
10516
10517 * remote.c (remote_protocol_qPart_auxv): New variable.
10518 (init_all_packet_configs): Initialize it.
10519 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10520 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10521 (show_remote_cmd): Call it.
10522 (_initialize_remote): Initialize commands.
10523 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10524 service TARGET_OBJECT_AUXV requests.
10525
66745969
JB
105262004-02-25 J. Brobecker <brobecker@gnat.com>
10527
10528 * configure.in: Make sure that the wborder function is available.
10529 Otherwise, search for it in the cur_colr library.
10530 * configure: Regenerate.
10531
79508e1e
AC
105322004-02-25 Andrew Cagney <cagney@redhat.com>
10533
10534 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10535
571ee600
MK
105362004-02-25 Mark Kettenis <kettenis@gnu.org>
10537
10538 * config/i386/tm-x86-64linux.h: Tweak comments.
10539
2b1b322f 105402004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10541
10542 * MAINTAINERS: Add self to write-after-approval list.
10543
4d2acc65
AC
105442004-02-25 Andrew Cagney <cagney@redhat.com>
10545
4b8dad4a 10546 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10547 * cli/cli-script.c (execute_control_command): Unconditionally
10548 install a cleanup. Default "ret" to "invalid_control". Use
10549 "break" instead of "return" to escape from the switch.
10550
4cfcaf21
JB
105512004-02-24 J. Brobecker <brobecker@gnat.com>
10552
10553 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10554 with the lines macro defined in term.h on AiX.
10555 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10556 a collision with the label_width macro defined in term.h on AiX.
10557
54a5c8d8
KB
105582004-02-23 David Mosberger <davidm@hpl.hp.com>
10559
10560 Committed by Kevin Buettner <kevinb@redhat.com>.
10561
10562 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10563 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10564 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10565 instead of ia64_write_pc().
10566 * ia64-linux-tdep.c (regcache.h): Include.
10567 (ia64_linux_write_pc): New function.
4b8dad4a 10568
8a1dac83
RM
105692004-02-23 Roland McGrath <roland@redhat.com>
10570
10571 * auxv.c (info_auxv_command): Fix typos in error messages.
10572
90f90721
MK
105732004-02-23 Mark Kettenis <kettenis@gnu.org>
10574
8a1dac83 10575 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10576 (enum amd64_regnum): New.
10577 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10578 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10579 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10580 (X86_64_XMM1_REGNUM): Removed.
10581 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10582 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10583 prototypes for renamed functions.
10584 * x86-64-tdep.c: Fix typo.
10585 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10586 register numbers.
10587 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10588 Use constants from `enum amd64_regnum' for register numbers.
10589 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10590 (amd64_analyze_prologue, amd64_frame_cache,
10591 amd64_sigtramp_frame_cache): Use constants from `enum
10592 amd64_regnum' for register numbers.
10593 (amd64_supply_fpregset): Adjust for renamed functions.
10594 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10595 `enum amd64_regnum' for register numbers.
10596 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10597 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10598 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10599 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10600 (amd64_linux_fill_gregset): Adjust for renamed macros.
10601 (fetch_core_registers): Adjust for renamed functions.
10602 (amd64_linux_init_abi): Adjust for renamed functions.
10603 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10604 renamed functions.
10605 * amd64-nat.c: Adjust for renamed macros.
10606 * amd64bsd-nat.c (fetch_inferior_registers)
10607 (store_inferior_registers): Use constants from `enum amd64_regnum'
10608 for register numbers. Adjust for renamed variables.
10609 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10610 renamed variables.
10611 (_initialize_amd64fbsd_nat): Use constants from `enum
10612 amd64_regnum' for register numbers.
10613 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10614 `enum amd64_regnum' for register numbers.
10615 (amd64fbsd_init_abi): Adjust for renamed functions.
10616 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10617 `enum amd64_regnum' for register numbers.
10618 (amd64nbsd_init_abi): Adjust for renamed functions.
10619 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10620 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10621 `enum amd64_regnum' for register numbers.
10622 (amd64obsd_init_abi): Adjust for renamed functions.
10623 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10624
d5479188
JJ
106252004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10626
10627 * breakpoint.c (print_one_breakpoint): Do not output spaces
10628 after printing <PENDING> for a pending breakpoint.
10629
81cb7cc9
JJ
106302004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10631
10632 * printcmd.c (print_scalar_formatted): Initialize val_long
10633 to remove compiler warning message.
10634
cbdeadca
JJ
106352004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10636
10637 * defs.h (nquery, yquery): New prototypes.
10638 * breakpoint.c (break_command_1): Use new nquery interface.
10639 * utils.c (defaulted_query, nquery, yquery): New functions.
10640
da6bab63
AC
106412004-02-23 Andrew Cagney <cagney@redhat.com>
10642
2f690297
AC
10643 * hppa-tdep.c (hppa_frame_align): New function.
10644 (hppa32_push_dummy_call): New function.
10645 (hppa64_push_dummy_call): New function.
10646 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10647 disabled.
8a1dac83 10648
da6bab63
AC
10649 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10650 FIX_CALL_DUMMY when push_dummy_call is available.
10651 (call_function_by_hand, push_dummy_code): Ditto.
10652
abf9b42d
AC
106532004-02-22 Andrew Cagney <cagney@redhat.com>
10654
10655 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10656 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10657 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10658 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10659 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10660 call_dummy_location to ON_STACK.
10661
10fc94a4
MK
106622004-02-22 Mark Kettenis <kettenis@gnu.org>
10663
51433e4b
MK
10664 * x86-64-linux-tdep.c: Tweak comment.
10665 (amd64_linux_supply_gregset): Renamed from
10666 x86_64_linux_supply_gresget.
10667 (amd64_linux_fill_gregset): Renamed from
10668 x86_64_linux_fill_gregset.
10669 (fetch_core_registers): Adjust for renamed functions.
10670 (amd64_core_fns): Renamed from x86_64_core_fns.
10671 (amd64_linux_sigtramp_start): Renamed from
10672 x86_64_linux_sigtramp_start.
10673 (amd64_linux_pc_in_sigtramp): Renamed from
10674 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10675 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10676 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10677 (amd64_linux_sigcontext_addr): Renamed from
10678 x86_64_linux_sigcontext_addr.
10679 (amd64_linux_sc_reg_offset): Renamed from
10680 x86_64_linux_sc_reg_offset.
10681 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10682 Adjust for renamed functions and variables.
10683 (_initialize_amd64_linux_tdep): Renamed from
10684 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10685 variables.
10686 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10687 Adjust for renamed functions.
10688
430eaf2e
MK
10689 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10690 from x86_64_linux_gregset64_reg_offset.
10691 (amd64_linux_gregset32_reg_offset): Rename from
10692 x86_64_linux_gregset64_reg_offset.
10693 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10694 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10695 (amd64_linux_dr_set_control): Renamed from
10696 x86_64_linux_dr_set_control. Adjust for renamed functions.
10697 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10698 Adjust for renamed functions.
10699 (amd64_linux_dr_reset_addr): Renamed from
10700 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10701 (amd64_linux_dr_get_status): Renamed from
10702 x86_64_linux_dr_get_status. Adjust for renamed functions.
10703 (_initialize_amd64_linux_nat): Renamed from
10704 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10705 functions.
10706 * config/i386/nm-x86-64linux.h: Update copyright year.
10707 Adjust for renamed functions.
10708
10fc94a4
MK
10709 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10710 amd64fbsd_sigtramp_start.
10711 (amd64fbsd_sigtramp_end_addr): Renamed from
10712 amd64fbsd_sigtramp_end.
10713 (amd64fbsd_init_abi): Adjust for renamed variables.
10714 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10715 variables.
10716 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10717 amd64fbsd_sigtramp_start.
10718 (amd64fbsd_sigtramp_end_addr): Renamed from
10719 amd64fbsd_sigtramp_end.
10720
343af405
AC
107212004-02-22 Andrew Cagney <cagney@redhat.com>
10722
537987fc
AC
10723 * hppa-tdep.c (hppa32_return_value): New function.
10724 (hppa64_return_value): New function.
10725 (hppa_gdbarch_init): Set return_value; keep disabled.
10726
fad850b2
AC
10727 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10728 struct-return and inferior function call methods.
10729
26d08f08
AC
10730 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10731 "frame-base.h".
10732 (struct hppa_frame_cache): Define.
10733 (hppa_frame_cache, hppa_frame_this_id): New functions.
10734 (hppa_frame_prev_register): New function.
10735 (hppa_frame_unwind, hppa_frame_base): New variables.
10736 (hppa_frame_unwind_sniffer): New function.
10737 (hppa_frame_base_address, hppa_unwind_pc): New function.
10738 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10739 sniffer, and frame base sniffer; keep disabled.
10740 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10741 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10742
e7d7bd65
AC
10743 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10744 to predicates for "seriously old code".
10745
e963316f
AC
10746 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10747 runtime if(0).
10748
56132691
AC
10749 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10750 unsigned.
10751 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10752
343af405
AC
10753 * config/pa/tm-hppa.h: Update copyright.
10754 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10755 (deprecated_init_frame_pc_default): Delete declaration.
10756 (hppa_frame_init_saved_regs): Delete declaration.
10757 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10758 * hppa-tdep.c: Include "arch-utils.h".
10759 (hppa_gdbarch_init): Set deprecated init_frame_pc
10760 and deprecated frame_init_saved_regs.
10761 (hppa_frame_init_saved_regs): Make static.
10762
f5859b4d
MK
107632004-02-22 Mark Kettenis <kettenis@gnu.org>
10764
86f6f8e7 10765 Remove old 386BSD support.
cf7c5c23 10766 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10767 * configure.host: Remove i[34567]86-*-bsd*.
10768 * configure.tgt: Remove i[34567]86-*-bsd*.
10769 * i386b-nat.c: Removed.
10770 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10771 (i386b-nat.o): Remove dependencies.
10772
86f6f8e7
MK
10773 * config/i386/i386bsd.mh: Removed.
10774 * config/i386/i386bsd.mt: Removed.
10775 * config/i386/nm-i386bsd.h: Removed.
10776 * config/i386/tm-i386bsd.h: Removed.
10777 * config/i386/xm-i386bsd.h: Removed.
10778
971218cd
MK
10779 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10780
7e654c37
MK
10781 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10782 (amd64fbsd_init_abi): Set link map offsets.
10783 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10784 (amd64nbsd_init_abi): Set link map offsets.
10785 * amd64obsd-tdep.c: Include "solib-svr4.h".
10786 (amd64obsd_init_abi): Set link map offsets.
10787 * i386fbsd-tdep.c: Include "solib-svr4.h".
10788 (i386fbsd_init_abi): Set link map offsets.
10789 * i386nbsd-tdep.c: Include "solib-svr4.h".
10790 (i386nbsdelf_init_abi): Set link map offsets.
10791 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10792 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10793 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10794 solib-legacy.o and core-aout.o. Reformat.
10795 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10796 solib-svr4.o, solib-legacy.o. Reformat.
10797 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10798 * config/i386/nbsdelf.mh: Reformat.
10799 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10800 solib-svr4.o, solib-legacy.o and corelow.o.
10801 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10802 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10803 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10804 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10805 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10806 (TM_FILE): Set to tm-fbsd.h.
10807 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10808 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10809 solib-svr4.o.
10810 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10811 solib-svr4.o.
10812 (TM_FILE): Set to nm-nbsd.h.
10813 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10814 Simplify shared library support. Don't include "elf/common.h".
10815 (SVR4_SHARED_LIBS): Don't define.
10816 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10817 "solib.h".
10818 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10819 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10820 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10821 Don't include "i386/tm-i386.h". Include "solib.h".
10822 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10823 Don't include "i386/tm-i386.h".
10824 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10825 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10826 Include "i386/xm-i386.h".
10827 (HOST_LONG_DOUBLE_FORMAT): Remove.
10828
5d93ae8c
MK
10829 Fix OpenBSD/i386 sigtramp recognition.
10830 * i386-tdep.h: Update copyright year.
10831 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10832 (i386bsd_sigtramp_end): New prototypes.
10833 (i386fbsd_sigtramp_start_addr): Renamed from
10834 i386fbsd_sigtramp_start.
10835 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10836 (i386obsd_sigtramp_start_addr): Renamed from
10837 i386obsd_sigtramp_start.
10838 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10839 * i386bsd-tdep.c: Update copyright year.
10840 (i386bsd_pc_in_sigtramp): Make public.
10841 * i386fbsd-nat.c: Update copyright year.
10842 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10843 * i386fbsd-tdep.c: Update copyright year.
10844 (i386fbsd_sigtramp_start_addr): Renamed from
10845 i386fbsd_sigtramp_start.
10846 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10847 (i386fbsdaout_init_abi): Adjust for renamed variables.
10848 * i386obsd-nat.c: Update copyright year.
10849 (_initialize_i386obsd_nat): Adjust for renamed variables.
10850 * i386obsd-tdep.c: Include "target.h".
10851 (i386obsd_page_size): New variable.
10852 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10853 (i386obsd_sigtramp_end): New functions.
10854 (i386obsd_sigtramp_start_addr): Renamed from
10855 i386obsd_sigtramp_start.
10856 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10857 (i386obsd_init_abi): Adjust for renamed variables. Set
10858 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10859 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10860
84d04465
MK
10861 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10862 trampoline change in OpenBSD kernel.
10863
b053aceb
MK
10864 * amd64-nat.c: Update copyright year.
10865 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10866 architecture from REGCACHE.
10867
f5859b4d
MK
10868 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10869 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10870
e4bbbda8
MK
108712004-02-21 Mark Kettenis <kettenis@gnu.org>
10872
ba361932
MK
10873 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10874 i[34567]86-*-openbsd3.[0-3].
10875 * config/i386/obsdaout.mh: New file.
10876
d3e48264
MK
10877 * config/i386/obsd.mh (MH_FLAGS): Remove.
10878
60a6eeb6
MK
10879 Fix PR build/1549.
10880 * i386obsd-tdep.c: Update copyright years. Include
10881 "solib-svr4.h".
10882 (i386obsd_init_abi): Don't set regset_from_core_section here.
10883 (i386obsd_aout_init_abi): New function. Set
10884 regset_from_core_section here.
10885 (i386obsd_elf_init_abi): New function.
10886 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10887 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10888 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10889 (TM_FILE): Set to tm-nbsd.h.
10890
10891 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10892 solib-sunos.o.
10893
e4bbbda8
MK
10894 * solib-svr4.h: Update copyright year.
10895 (svr4_ilp32_fetch_link_map_offsets)
10896 (svr4_lp64_fetch_link_map_offsets): New prototype.
10897 * solib-svr4.c: Update copyright year.
10898 (svr4_ilp32_fetch_link_map_offsets)
10899 (svr4_lp64_fetch_link_map_offsets): New function.
10900
f6fe98ef
DJ
109012004-02-20 Daniel Jacobowitz <drow@mvista.com>
10902
10903 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10904 to the partial symbol table.
10905
589ca796
JB
109062004-02-20 J. brobecker <brobecker@gnat.com>
10907
10908 * PROBLEMS: Add description of problem documented under gdb/1560.
10909
2031c21a
MK
109102004-02-20 Mark Kettenis <kettenis@gnu.org>
10911
30b344b1
MK
10912 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10913 comments.
10914 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10915 functions.
10916 (amd64obsd_init_abi): Reorder initializations. Use
10917 amd64obsd_r_reg_offset to initialize the general-purpose register
10918 set details. Set regset_from_core_section.
10919 (_initialize_amd64obsd_tdep): Rename from
10920 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10921 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10922 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10923
2031c21a
MK
10924 * NEWS (New native configurations): Mention OpenBSD/alpha.
10925 * configure.tgt: Add alpha*-*-openbsd*.
10926 * configure.host: Add alpha*-*-openbsd*.
10927 * alphanbsd-tdep.c: Update copyright year.
10928 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10929
42471775
AC
109302004-02-20 Andrew Cagney <cagney@redhat.com>
10931
10932 Fix PR tdep/1372.
10933 * configure.tgt: Delete target "none-*-*".
10934 * configure.host: Delete host "none-*-*".
10935 * config/none/none.mh: Delete file.
10936 * config/none/none.mt: Delete file.
10937 * config/none/xm-none.h: Delete file.
10938 * config/none/tm-none.h: Delete file.
10939 * config/none/nm-none.h: Delete file.
10940
960ccd7d
FF
109412004-02-19 Fred Fish <fnf@redhat.com>
10942
10943 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10944 cache->uses_fp prior to setting it.
10945
5f883edd
FF
109462004-02-19 Fred Fish <fnf@redhat.com>
10947
10948 Fix for PR breakpoint/1558.
10949 * sh-tdep.c (IS_JSR): New macro.
10950 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10951
f98c22d5
JB
109522004-02-19 Jim Blandy <jimb@redhat.com>
10953
10954 * findvar.c (value_from_register): Doc fix.
10955
95051d27
JJ
109562004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10957
10958 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10959 type being greater than sizeof of host's LONGEST. Always use
10960 unpack_long() unless format 'f' chosen.
10961
ccefbec3
EZ
109622004-02-19 Joel Brobecker <brobecker@gnat.com>
10963
10964 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10965
ccefbec3
EZ
10966 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10967 contains a symbol wich is the best, non-exact match for the given
10968 pc. Update comments.
10969
109702004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10971
2ede629f
EZ
10972 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10973 macro, which was part of the now removed Mach 3 port.
10974 * utils.c (request_quit): Ditto.
10975
567ee972
MK
109762004-02-18 Mark Kettenis <kettenis@gnu.org>
10977
10978 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10979 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10980
50cca7bb
MK
109812004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10982
10983 Committed by Mark Kettenis <kettenis@gnu.org>.
10984
10985 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10986 Define.
10987
226361c4
AC
109882004-02-18 Andrew Cagney <cagney@redhat.com>
10989
10990 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10991 CONFIG_INSTALL and CONFIG_UNINSTALL.
10992 * configure: Re-generate.
10993 * interps.h (INTERP_TUI): Define.
10994 * Makefile.in: Update dependencies.
10995 (TUI): New macro.
10996 (tui-main.o): Specify dependencies.
10997 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10998 * tui/tui-main.c: New file.
10999
49cfa46f
MK
110002004-02-18 Mark Kettenis <kettenis@gnu.org>
11001
e2879ccb
MK
11002 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11003 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11004 dependencies.
11005 * configure.host: Add x86_64-*-openbsd*.
11006 * configure.tgt: Add x86_64-*-openbsd*.
11007 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11008
c43f4bec
MK
11009 * tui/tui.c: Don't include <malloc.h>.
11010
09ae75b6
MK
11011 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11012 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11013 amd64nbsd-tdep.c.
11014
49cfa46f 11015 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11016 static. Remove extraneous whitespace.
49cfa46f
MK
11017 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11018 static.
11019
05957fdb
JB
110202004-02-17 Jim Blandy <jimb@redhat.com>
11021
11022 * findvar.c (value_from_register): Doc fix.
11023
d0f54f9d
JB
110242004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11025
11026 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11027
8a1dac83 11028 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11029 CORE_ADDR as type for selectors. Correct types for GNU run time
11030 message lookup function to use double indirection.
11031 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11032 * objc-lang.h (lookup_child_selector): Adapt prototype.
11033
9cbd5950
JB
11034 * s390-nat.c (SUBOFF): New macro.
11035 (supply_gregset, fill_gregset): Use it to handle debugging
11036 of 32-bit exectuables running under a 64-bit kernel.
11037 * s390-tdep.c: Include "solib-svr4.h".
11038 (s390_svr4_fetch_link_map_offset): New function.
11039 (s390x_svr_fetch_link_map_offset): Likewise.
11040 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11041 * Makefile.in (s390-tdep.o): Update dependencies.
11042
a8c99f38
JB
11043 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11044 "frame-unwind.h".
11045 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11046 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11047 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11048 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11049 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11050 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11051 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11052 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11053 (struct frame_extra_info): Remove.
11054 (s390_memset_extra_info): Remove.
f73b1eff
JB
11055 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11056 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11057 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11058 (is_rse): Renamed to ...
11059 (is_rsy): ... this. Support long displacements.
11060 (is_rxe): Renamed to ...
11061 (is_rxy): ... this. Support long displacements.
11062 (compute_x_addr): Support long displacements.
11063 (struct s390_prologue_data): New data type.
11064 (s390_on_stack): Change API to use struct s390_prologue_data.
11065 (s390_store): Reimplement.
11066 (s390_load): New function.
11067 (s390_get_signal_frame_info): Remove.
11068 (s390_get_frame_info): Remove, replace by ...
11069 (s390_analyze_prolog): ... this new function.
11070 (s390_check_function_end): Remove.
11071 (s390_function_start): Remove.
11072 (s390_frameless_function_invokation): Remove.
11073 (s390_is_sigreturn): Remove.
11074 (s390_init_frame_pc_first): Remove.
11075 (s390_init_frame_extra_info): Remove.
11076 (s390_frame_init_saved_regs): Remove.
11077 (s390_frame_saved_pc_nofix): Remove.
11078 (s390_frame_saved_pc): Remove.
11079 (s390_frame_chain): Remove.
11080 (s390_fp_regnum, s390_read_fp): Remove.
11081 (s390_pop_frame_regular, s390_pop_frame): Remove.
11082 (s390_saved_pc_after_call): Remove.
11083 (s390_skip_prologue): Reimplement.
11084 (s390_in_function_epilogue_p): Support long displacements.
11085 (struct s390_unwind_cache): New data structure.
11086 (s390_frame_unwind_cache): New function.
11087 (s390_prologue_frame_unwind_cache): Likewise.
11088 (s390_backchain_frame_unwind_cache): Likewise.
11089 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11090 (s390_frame_unwind): Define.
11091 (s390_frame_sniffer): New function.
11092 (struct s390_pltstub_unwind_cache): New data structure.
11093 (s390_pltstub_frame_unwind_cache): New function.
11094 (s390_pltstub_frame_this_id): Likewise.
11095 (s390_pltstub_frame_prev_register): Likewise.
11096 (s390_pltstub_frame_unwind): Define.
11097 (s390_pltstub_frame_sniffer): New function.
11098 (struct s390_sigtramp_unwind_cache): New data structure.
11099 (s390_sigtramp_frame_unwind_cache): New function.
11100 (s390_sigtramp_frame_this_id): Likewise.
11101 (s390_sigtramp_frame_prev_register): Likewise.
11102 (s390_sigtramp_frame_unwind): Define.
11103 (s390_sigtramp_frame_sniffer): New function.
11104 (s390_frame_base_address, s390_local_base_address): New functions.
11105 (s390_frame_base): Define.
11106 (s390_unwind_pc, s390_unwind_sp): New function.
11107 (s390_push_dummy_call): Use new frame base location.
11108 (s390_unwind_dummy_id): Likewise.
11109 (s390_gdbarch_init): Remove calls to:
11110 set_gdbarch_frameless_function_invocation,
11111 set_gdbarch_deprecated_init_frame_pc,
11112 set_gdbarch_deprecated_frame_chain,
11113 set_gdbarch_deprecated_frame_init_saved_regs,
11114 set_gdbarch_deprecated_pop_frame,
11115 set_gdbarch_deprecated_init_extra_frame_info,
11116 set_gdbarch_deprecated_init_frame_pc_first,
11117 set_gdbarch_deprecated_target_read_fp,
11118 set_gdbarch_deprecated_frame_saved_pc,
11119 set_gdbarch_deprecated_saved_pc_after_call,
11120 set_gdbarch_deprecated_fp_regnum.
11121 Add calls to:
11122 set_gdbarch_in_solib_call_trampoline,
11123 frame_unwind_append_sniffer,
11124 frame_base_set_default,
11125 set_gdbarch_unwind_pc,
11126 set_gdbarch_unwind_sp.
11127 * Makefile.in (s390-tdep.o): Update dependencies.
11128
b0cf273e
JB
11129 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11130 (S390_STACK_FRAME_OVERHEAD): Remove.
11131 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11132 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11133 (s390_promote_integer_argument): Remove.
11134 (s390_cannot_extract_struct_value_address): Remove.
11135 (s390_use_struct_convention, s390_store_struct_return): Remove.
11136 (s390_extract_return_value, s390_store_return_value): Remove.
11137 (s390_return_value_convention, s390_return_value): New functions.
11138 (is_float_singleton): Handle typedefs.
8a1dac83 11139 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11140 Remove, replace by ...
11141 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11142 s390_function_arg_integer): ... these new functions.
11143 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11144 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11145 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11146 Fill in tdep->abi.
11147 Remove calls to:
11148 set_gdbarch_deprecated_store_struct_return,
11149 set_gdbarch_deprecated_extract_return_value,
11150 set_gdbarch_deprecated_store_return_value,
11151 set_gdbarch_use_struct_convention,
11152 set_gdbarch_extract_struct_value_address,
11153 set_gdbarch_deprecated_pc_in_call_dummy,
11154 set_gdbarch_deprecated_push_arguments,
11155 set_gdbarch_deprecated_save_dummy_frame_tos,
11156 set_gdbarch_deprecated_push_return_address,
11157 set_gdbarch_deprecated_sizeof_call_dummy_words,
11158 set_gdbarch_deprecated_call_dummy_words,
11159 set_gdbarch_deprecated_dummy_write_sp.
11160 Add calls to:
11161 set_gdbarch_push_dummy_call,
11162 set_gdbarch_unwind_dummy_id,
11163 set_gdbarch_return_value.
8a1dac83 11164
e1457d83
JB
11165 * config/s390/nm-linux.h: Update comments.
11166 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11167 (STOPPED_BY_WATCHPOINT): Redefine.
11168 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11169 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11170 (s390_stopped_by_watchpoint): Likewise.
11171 (watch_area_cnt): Remove.
11172 * s390-nat.c: Update comments.
11173 (watch_area): Remove typedef.
11174 Global replace watch_area by struct watch_area.
11175 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11176 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11177 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11178 (s390_fix_watch_points): Remove pid argument,
11179 use s390_inferior_tid. Recompute area spanned by watchpoints.
11180 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11181 argument. Reimplement.
11182
d0f54f9d
JB
11183 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11184 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11185 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11186 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11187 core-regset.o.
11188 * config/s390/s390x.mt: Remove.
11189 * config/s390/tm-s390.h: Remove.
11190 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11191 (TARGET_ELF64): Remove.
11192 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11193 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11194 s390*-*-* case; always set gdb_target to s390.
11195 * regformats/reg-s390.dat: Remove control registers.
11196 * regformats/reg-s390x.dat: Likewise.
11197 * s390-tdep.h: New file.
8a1dac83 11198 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11199 Include "inferior.h" and "s390-tdep.h".
11200 Remove private definition of offsetof.
11201 (s390_register_u_addr): Remove.
11202 (regmap_gregset, regmap_fpregset): Define.
11203 (supply_gregset, fill_gregset): Reimplement.
11204 (supply_fpregset, fill_fpregset): Likewise.
11205 (s390_inferior_tid): New function.
11206 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11207 (fetch_inferior_registers, store_inferior_registers): Likewise.
11208 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11209 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11210 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11211 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11212 (struct gdbarch_tdep): Define.
11213 (struct s390_register_info): Define.
11214 (s390_register_info): New variable.
11215 (s390_register_name): Reimplement.
11216 (s390_register_type): New function.
11217 (s390_register_raw_size, s390x_register_raw_size): Remove.
11218 (s390_cannot_fetch_register): Remove.
11219 (s390_register_byte): Remove.
11220 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11221 (s390_dwarf_regmap): New variable.
11222 (s390_dwarf_reg_to_regnum): New function.
11223 (s390_stab_reg_to_regnum): Remove.
11224 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11225 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11226 (s390_convert_register_p): Likewise.
11227 (s390_register_to_value, s390_value_to_register): Likewise.
11228 (s390_register_reggroup_p): Likewise.
11229 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11230 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11231 (s390_supply_regset, s390_regset_from_core_section): New functions.
11232 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11233 (S390_FPR_SIZE): Likewise.
11234 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11235 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11236 (S390_NUM_GPRS): Move here from tm-s390.h.
11237 (S390_NUM_FPRS): Likewise.
11238 (s390_in_function_epilogue_p): New function.
11239 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11240 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11241 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11242 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11243 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11244 Remove calls to:
11245 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11246 set_gdbarch_deprecated_max_register_virtual_size,
11247 set_gdbarch_deprecated_register_byte,
d0f54f9d 11248 set_gdbarch_cannot_fetch_register,
8a1dac83 11249 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11250 set_gdbarch_deprecated_register_size,
11251 set_gdbarch_deprecated_register_raw_size,
11252 set_gdbarch_deprecated_register_virtual_size,
11253 set_gdbarch_deprecated_register_virtual_type,
11254 set_gdbarch_deprecated_register_bytes.
11255 Add calls to:
11256 set_gdbarch_num_pseudo_regs,
11257 set_gdbarch_register_type,
11258 set_gdbarch_convert_register_p,
11259 set_gdbarch_register_to_value,
11260 set_gdbarch_value_to_register,
11261 set_gdbarch_register_reggroup_p,
11262 set_gdbarch_regset_from_core_section,
11263 set_gdbarch_pseudo_register_read,
11264 set_gdbarch_pseudo_register_write,
11265 set_gdbarch_in_function_epilogue_p.
11266 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11267 (s390_tdep_h): New variable.
11268
8cfe231d
JB
112692004-02-17 Jim Blandy <jimb@redhat.com>
11270
4589a601
JB
11271 * findvar.c (value_from_register): If the type has no length, just
11272 return an acceptable value --- don't report an internal error.
11273
8cfe231d
JB
11274 * stabsread.c (read_type): If we find any type numbers that are
11275 forward references, complain if the references aren't resolved by
11276 the time we're finished reading.
11277 (cleanup_undefined_types): Make error message more appropriate for
11278 a complaint.
11279
5bf0017e
EZ
112802004-02-17 Elena Zannoni <ezannoni@redhat.com>
11281
9d62932d
EZ
11282 * Makefile.in (defs_h): Remove dependency on progress_h.
11283 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11284 progress.h.
11285 * main.c (captured_main): Delete use of START_PROGRESS and
11286 END_PROGRESS.
11287
112882004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11289
5bf0017e
EZ
11290 * objfiles.c (terminate_minimal_symbol_table): Add back
11291 initialization of MSYMBOL_TYPE.
11292
9fc9f5e2
AC
112932004-02-17 David Mosberger <davidm@hpl.hp.com>
11294
11295 Committed by Andrew Cagney.
11296 * Makefile.in (ia64_tdep_h): New macro.
11297 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11298 (ia64-tdep.o): Likewise.
11299 * ia64-tdep.h: New file.
11300 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11301 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11302 (ia64_aix_sigcontext_register_address): Likewise.
11303 (ia64_linux_getunwind_table): Delete declaration.
11304 * ia64-linux-tdep.c: Likewise.
11305
76cd2bd9
CV
113062004-02-17 Corinna Vinschen <vinschen@redhat.com>
11307
11308 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11309 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11310 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11311
634aa483
AC
113122004-02-17 Andrew Cagney <cagney@redhat.com>
11313
11314 * symtab.c (skip_prologue_using_sal): New function.
11315 * symtab.h (skip_prologue_using_sal): Declare.
11316 * frv-tdep.c: Include "symtab.h".
11317 (skip_prologue_using_sal): Delete function.
11318 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11319 * rs6000-tdep.c (refine_prologue_limit): Mention
11320 skip_prologue_using_sal.
11321 * ia64-tdep.c (refine_prologue_limit): Ditto.
11322 * Makefile.in: Update dependencies.
11323
113242004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11325
39ce7b3f
AC
11326 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11327 START_INFERIOR_TRAPS_EXPECTED.
11328 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11329 START_INFERIOR_TRAPS_EXPECTED.
11330 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11331 Delete macro.
11332 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11333 macro, moved to "nm-osf.h". Update copyright.
11334 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11335 update copyright.
11336
19772a2c
AC
11337 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11338 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11339 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11340 frameless_look_for_prologue.
11341 * frame.h (legacy_frameless_look_for_prologue): Rename
11342 frameless_look_for_prologue.
11343 * gdbarch.h, gdbarch.c: Re-generate.
11344 * sh64-tdep.c (sh64_gdbarch_init): Update.
11345 * sh-tdep.c (sh_gdbarch_init): Update.
11346 * s390-tdep.c (s390_gdbarch_init): Update.
11347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11348 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11349 * m68k-tdep.c (m68k_gdbarch_init): Update.
11350 (delta68_frame_args_address): Update.
11351 * m32r-tdep.c (m32r_gdbarch_init): Update.
11352 * hppa-tdep.c (hppa_gdbarch_init): Update.
11353 * h8300-tdep.c (h8300_gdbarch_init): Update.
11354 * frv-tdep.c (frv_gdbarch_init): Update.
11355 (frv_frameless_function_invocation): Update.
11356 * cris-tdep.c (cris_gdbarch_init): Update.
11357 (cris_frameless_function_invocation): Update.
11358 * avr-tdep.c (avr_gdbarch_init): Update.
11359 * arm-tdep.c (arm_gdbarch_init): Update.
11360 * stack.c (frame_info): Update, call predicate.
11361 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11362 * frame.c (legacy_get_prev_frame): Update, call predicate..
11363 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11364 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11365 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11366 invocation.
11367 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11368 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11369 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11370
11371 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11372 function.
11373
7dcaac91
DJ
113742004-02-16 Daniel Jacobowitz <drow@mvista.com>
11375
11376 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11377 initializations.
11378
88289b6e
AC
113792004-02-16 Andrew Cagney <cagney@redhat.com>
11380
11381 * tui/tui-windata.c: Include "gdb_string.h".
11382 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11383 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11384 * Makefile.in: Update dependencies.
11385
9f976b41
DJ
113862004-02-16 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11389 * infrun.c: Include "gdb_assert.h".
11390 (singlestep_ptid, saved_singlestep_ptid)
11391 (stepping_past_singlestep_breakpoint): New variables.
11392 (resume): Set singlestep_ptid. Check for singlestep thread
11393 hop.
11394 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11395 (handle_inferior_event): Handle singlestep thread hop.
11396
c324d747
AC
113972004-02-16 Andrew Cagney <cagney@redhat.com>
11398
f090b9b1
AC
11399 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11400 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11401 (dwarf2_frame_init_reg): Ditto.
11402
fd33e6cb
AC
11403 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11404 suggested by Joshua Neuheisel
11405
c324d747
AC
11406 * configure.in: Always check for curses, including pdcurses.
11407 Warn, instead of error, when no curses are found. Enable TUI when
11408 curses is available.
11409 * configure: Re-generate.
11410
b66ba949
CV
114112004-02-16 Corinna Vinschen <vinschen@redhat.com>
11412
11413 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11414 sh_sh4_register_convert_to_virtual.
11415 (sh_register_convert_to_raw): Rename from
11416 sh_sh4_register_convert_to_raw.
11417 (sh_pseudo_register_read): Accomodate above name change.
11418 (sh_pseudo_register_write): Ditto.
11419
b58cbbf2
CV
114202004-02-16 Corinna Vinschen <vinschen@redhat.com>
11421
11422 * sh-tdep.c (sh_generic_register_name): Remove.
11423 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11424
5929a910
AC
114252004-02-15 Andrew Cagney <cagney@redhat.com>
11426
4566dfcf
AC
11427 * configure.in (build_warnings): Add -Wunused-function.
11428 * configure: Re-generate.
11429
db11ed55
AC
11430 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11431 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11432
46ac7a5d
AC
11433 * procfs.c (procfs_init_inferior): Assume that
11434 START_INFERIOR_TRAPS_EXPECTED is defined.
11435 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11436 * config/ns32k/tm-nbsd.h: Delete file,
11437 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11438
ba801595
AC
11439 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11440 * config/vax/tm-vax.h: Delete file.
11441
5929a910
AC
11442 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11443 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11444 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11445 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11446 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11447 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11448 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11449
8f22cb90
MK
114502004-02-15 Mark Kettenis <kettenis@gnu.org>
11451
11452 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11453 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11454 (struct dwarf2_frame_ops): New.
11455 (dwarf2_frame_default_init_reg): New function, based on
11456 dwarf2_frame_init_reg.
11457 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11458 (dwarf2_frame_init_reg): Call architecture-specific function.
11459 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11460 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11461 instead of dwarf2_frame_data.
11462 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11463 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11464
8132723e
AC
114652004-02-15 Andrew Cagney <cagney@redhat.com>
11466
046a4708
AC
11467 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11468 register_gdbarch_swap.
11469 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11470 * f-lang.c (_initialize_f_language): Update, use
11471 DEPRECATED_REGISTER_GDBARCH_SWAP.
11472 * remote.c (_initialize_remote): Ditto.
11473 * regcache.c (_initialize_regcache): Ditto.
11474 * parse.c (_initialize_parse): Ditto.
11475 * infrun.c (_initialize_infrun): Ditto.
11476 * mi/mi-main.c (_initialize_mi_main): Ditto.
11477 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11478
549c1eea
AC
11479 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11480 poking .cacheable directly.
11481 * symfile.c (symfile_bfd_open): Ditto.
11482
0c0b39de
AC
11483 * Makefile.in: Update all dependencies.
11484
8132723e
AC
11485 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11486 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11487 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11488 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11489 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11490
b9d26eb9
AC
114912004-02-14 Andrew Cagney <cagney@redhat.com>
11492
8e1f669a
AC
11493 * arch-utils.c (legacy_convert_register_p): Check
11494 DEPRECATED_REGISTER_CONVERTIBLE_P.
11495 * findvar.c (value_of_register): Ditto.
11496
cd0bfa36
AC
11497 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11498 * gdbarch.h, gdbarch.c: Re-generate.
11499 * arch-utils.c (deprecated_register_convertible_not): Delete.
11500 * arch-utils.h (deprecated_register_convertible_not): Delete.
11501 * mi/mi-main.c (get_register): Update. Update copyright.
11502 * infcmd.c (default_print_registers_info): Update.
11503
b9d26eb9
AC
11504 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11505 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11506 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11507 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11508 * frame.c (deprecated_get_next_frame_hack): Delete function.
11509 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11510 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11511 Update.
11512 * infcall.c (call_function_by_hand): Update.
11513
9ab9195f
EZ
115142004-02-14 Elena Zannoni <ezannoni@redhat.com>
11515
11516 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11517 from here...
9ab9195f
EZ
11518 * objfiles.c (init_entry_point_info, entry_point_address):..to
11519 here.
11520 * symfile.h (init_entry_point_info, entry_point_address): Remove
11521 prototypes.
11522 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11523 prototypes.
9ab9195f
EZ
11524 * cris-tdep.c: Remove include of symfile.h. Add include of
11525 objfiles.h.
11526 * infcall.c: Ditto.
11527 * mcore-tdep.c: Ditto.
11528 * mn10300-tdep.c: Ditto.
11529 * sh64-tdep.c: Ditto.
11530 * v850-tdep.c: Ditto.
11531 * arm-tdep.c: Remove include of symfile.h.
11532 * blockframe.c: Ditto.
11533 * coffread.c: Ditto.
11534 * dbxread.c: Ditto.
11535 * dwarf2read.c: Ditto.
11536 * dwarfread.c: Ditto.
8a1dac83 11537 * frv-tdep.c: Ditto.
9ab9195f
EZ
11538 * ia64-tdep.c: Ditto.
11539 * mdebugread.c: Ditto.
11540 * mipsread.c: Ditto.
8a1dac83 11541 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11542 * s390-tdep.c: Ditto.
11543 * sh-tdep.c: Ditto.
8a1dac83 11544 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11545 * gdbarch.sh: Remove include of symfile.h.
11546 * gdbarch.c: Regenerate.
11547 * solib-irix.c (enable_break): Use entry_point_address().
11548 Add comment about include file.
11549 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11550 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11551 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11552 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11553 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11554 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11555
c4c5b7ba
AC
115562004-02-13 Andrew Cagney <cagney@redhat.com>
11557
11558 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11559 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11560 copyright.
11561 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11562
3e7879de
FF
115632004-02-12 Fred Fish <fnf@redhat.com>
11564
11565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11566 set_gdbarch_store_return_value.
11567
6a7760b6
AC
115682004-02-12 Andrew Cagney <cagney@redhat.com>
11569
11570 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11571 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11572 (interrupt_query): Ditto.
11573 (ofunc): Delete unused variable.
11574 * cris-tdep.c (cris_abi): Delete unused function.
11575 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11576 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11577 (cris_get_asr_quick_shift_steps): Ditto.
11578 (cris_skip_prologue_frameless_p): Ditto.
11579 * arm-tdep.c (arm_push_return_address): Delete unused function.
11580 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11581 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11582 * s390-tdep.c (s390_function_start): Delete unused function.
11583
31687c3c
AC
115842004-02-12 Andrew Cagney <cagney@redhat.com>
11585
11586 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11587 gdbarch.h, gdbarch.c: Re-generate.
11588 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11589 to generic_prologue_frameless_p.
11590 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11591 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11592
6de918a6
DJ
115932004-02-11 Daniel Jacobowitz <drow@mvista.com>
11594
11595 * mips-linux-tdep.c: Include "frame.h".
11596 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11597 (mips_linux_skip_resolver): New functions.
11598 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11599 and set_gdbarch_in_solib_call_trampoline.
11600 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11601 to after set_gdbarch_in_solib_return_trampoline. Only set the
11602 solib hooks to mips16 functions if the OS ABI is unknown.
11603 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11604 including "config/tm-linux.h".
11605 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11606 * Makefile.in (mips-linux-tdep.o): Update.
11607
87b3ede8
DC
116082004-02-11 David Carlton <carlton@kealia.com>
11609
11610 * linespec.c (decode_compound): Only look for a class symbol when
11611 considering all but the rightmost component.
11612
5979bc46
AC
116132004-02-11 Andrew Cagney <cagney@redhat.com>
11614
11615 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11616 abi code are are separatly grouped.
11617
5867a2fb
AC
116182004-02-11 Andrew Cagney <cagney@redhat.com>
11619
11620 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11621 * gdbarch.h, gdbarch.c: Re-generate.
11622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11623 * v850-tdep.c (v850_gdbarch_init): Update.
11624 * sh64-tdep.c (sh64_gdbarch_init): Update.
11625 * sh-tdep.c (sh_gdbarch_init): Update.
11626 * s390-tdep.c (s390_gdbarch_init): Update.
11627 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11628 * mips-tdep.c (mips_gdbarch_init): Update.
11629 * mcore-tdep.c (mcore_gdbarch_init): Update.
11630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11631 * m32r-tdep.c (m32r_gdbarch_init): Update.
11632 * ia64-tdep.c (ia64_gdbarch_init): Update.
11633 * hppa-tdep.c (hppa_gdbarch_init): Update.
11634 * h8300-tdep.c (h8300_gdbarch_init): Update.
11635 * frv-tdep.c (frv_gdbarch_init): Update.
11636 * d10v-tdep.c (d10v_gdbarch_init): Update.
11637 * cris-tdep.c (cris_gdbarch_init): Update.
11638 * avr-tdep.c (avr_gdbarch_init): Update.
11639 * arm-tdep.c (arm_gdbarch_init): Update.
11640 * alpha-tdep.c (alpha_gdbarch_init): Update.
11641
026a72f8
CV
116422004-02-11 Corinna Vinschen <vinschen@redhat.com>
11643
11644 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11645 comma.
11646 (sh_sh4al_dsp_register_name): Ditto.
11647
3903d437
AC
116482004-02-10 Andrew Cagney <cagney@redhat.com>
11649
11650 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11651 (mips_init_frame_pc_first): Delete function.
11652 (mips_frame_saved_pc): Delete function.
11653 (mips_frame_chain): Delete function.
11654 (mips_init_extra_frame_info): Delete function.
11655 (mips_xfer_register): Delete unused variable "reg".
11656 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11657 (mips_n32n64_return_value): Delete unused variable "reg".
11658 (mips_n32n64_return_value): Delete unused variable "pos".
11659 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11660 (mips_o32_return_value): Delete unused variable "pos".
11661 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11662 (mips_print_fp_register): Delete unused variable "namelen"
11663 (mips_print_fp_register): Delete unused variable "flt2"
11664 (get_frame_pointer): Delete function.
11665 (cached_proc_desc): Delete static variable.
11666 (mips_pop_frame): Delete function.
11667 (mips_find_saved_regs): Delete function.
11668 (mips_get_saved_register): Delete function.
11669 (mips_saved_pc_after_call): Delete function.
11670 (SIGFRAME_BASE): Delete macro.
11671 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11672 (SIGFRAME_PC_OFF): Delete macro.
11673 (SIGFRAME_REGSAVE_OFF): Delete macro.
11674 (mips_dump_tdep): Do not print deleted macro definitions.
11675
b9fb98bd
AC
116762004-02-10 Andrew Cagney <cagney@redhat.com>
11677
11678 * Makefile.in (SFILES): Remove explictly listed tui files.
11679 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11680
78ced177 116812004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11682
78ced177
JJ
11683 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11684 to use paddr functions to format ia64 addresses and long values.
11685 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11686 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11687 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11688 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11689 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11690
6a83354a
AC
116912004-02-10 Andrew Cagney <cagney@redhat.com>
11692
11693 * defs.h: Do not include "tui.h".
11694 * gdb_curses.h: New file.
11695 * tui/tui-hooks.h: New file.
11696 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11697 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11698 (tui_initialize_io): Delete declaration.
11699 (tui_initialize_readline: Delete redundant declaration.
11700 (struct tui_point): Delete definition.
11701 * tui/tui-data.h (struct tui_point): Define.
11702 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11703 * utils.c: Include "tui/tui.h".
11704 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11705 * printcmd.c [TUI]: Include "tui/tui.h".
11706 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11707 * tui/tui-command.c: Include "gdb_curses.h".
11708 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11709 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11710 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11711 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11712 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11713 * Makefile.in: Update all dependencies.
11714 (tui_hooks_h, gdb_curses_h): Define.
11715 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11716
997470ef
EZ
117172004-02-10 Elena Zannoni <ezannoni@redhat.com>
11718
11719 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11720 auxf2. Add comments about some other rarely used fields.
11721
4ff2cc4d
AC
117222004-02-10 Andrew Cagney <cagney@redhat.com>
11723
11724 * Makefile.in (init.c): Fix script removing duplicates. Problem
11725 reported by Peter Schauer.
11726
1ab21617
EZ
117272004-02-09 Elena Zannoni <ezannoni@redhat.com>
11728
11729 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11730 obstack_specify_allocation.
11731 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11732 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11733 (allocate_rt_common_objfile): Ditto.
11734 * symfile.c (reread_symbols): Ditto.
11735 * gdb_obstack.h: Add comment.
11736
17763fd9
EZ
117372004-02-09 Elena Zannoni <ezannoni@redhat.com>
11738
11739 * linespec.c (decode_line_1, locate_first_half)
11740 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11741 commented out code.
11742
ec5cdd75
DJ
117432004-02-09 Daniel Jacobowitz <drow@mvista.com>
11744
11745 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11746 obstack_free.
11747
43b54b88
AC
117482004-02-09 Andrew Cagney <cagney@redhat.com>
11749
11750 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11751 fails, try find_pc_section. Fix PR c++/1267.
11752 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11753 instead of find_pc_mapped_section.
11754 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11755 not default to the section containing PC. Fix PR symtab/1519.
11756
edfae063
AC
117572004-02-09 Andrew Cagney <cagney@redhat.com>
11758
11759 * Makefile.in (mips-tdep.o): Update dependencies.
11760 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11761 "trad-frame.h".
11762 (mips_unwind_pc): Return the pseudo PC register.
11763 (mips_unwind_dummy_id): New function.
11764 (mips16_fetch_instruction): New function.
11765 (mips32_fetch_instruction): New function.
11766 (struct mips_frame_cache): Define.
11767 (mips_mdebug_frame_cache): New function.
11768 (mips_mdebug_frame_this_id): New function.
11769 (mips_mdebug_frame_prev_register): New function.
11770 (mips_mdebug_frame_unwind): Define.
11771 (mips_mdebug_frame_sniffer): New function.
11772 (mips_mdebug_frame_base_address): New function.
11773 (mips_mdebug_frame_base): Define.
11774 (mips_mdebug_frame_base_sniffer): New function.
11775 (mips_gdbarch_init): Append unwind and base sniffers. Set
11776 unwind_dummy_id.
11777
defc864c
AC
117782004-02-08 Andrew Cagney <cagney@redhat.com>
11779
6764ddad
AC
11780 * frame.c: Print both the register number and name.
11781
defc864c
AC
11782 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11783 and a sed into a single sed. Make .c and .o patterns more robust.
11784 (OBS): Delete.
11785 (INIT_FILES): Replace OBS with COMMON_OBS.
11786 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11787
645d6d10
MK
117882004-02-08 Mark Kettenis <kettenis@gnu.org>
11789
11790 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11791 the PT_WCOOKIE request.
11792
23e3c3fc
AC
117932004-02-08 Andrew Cagney <cagney@redhat.com>
11794
58dfe9ff
AC
11795 * mips-tdep.c (mips_unwind_pc): New function.
11796 (mips_gdbarch_init): Set mips_unwind_pc.
11797
1152e35e
AC
11798 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11799 (get_frame_id): Allow the UNKNOWN_FRAME.
11800 (frame_register_unwind, get_frame_type): Ditto.
11801
31b75dbf
AC
11802 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11803 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11804 unwind_dummy_id indicates a legacy frame.
11805
3483b318
AC
11806 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11807 * configure: Re-generate.
11808
23e3c3fc
AC
11809 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11810 methods.
11811
33f8ca73
AC
118122004-02-08 Andrew Cagney <cagney@redhat.com>
11813
11814 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11815 makefile macro.
11816 * configure: Re-generate.
11817 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11818 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11819 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11820 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11821 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11822 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11823 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11824 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11825 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11826 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11827
6ba8e26f 118282004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11829
20d286a5
AC
11830 * Makefile.in: Update all dependencies.
11831
d836ee13
AC
11832 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11833 * configure: Re-generate.
11834 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11835 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11836 (COMMON_OBS): Add "main.o" and "annotate.o".
11837 (ANNOTATE_OBS): Delete.
11838 (OBS): Remove ANNOTATE_OBS.
11839 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11840 CONFIG_INITS.
11841 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11842 against CONFIG_OBS and "main.o".
11843 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11844 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11845
d02c80cd
AC
11846 * tui/tui-command.c: Include "gdb_string.h", delete register
11847 attribute, use ISO-C function signatures.
11848 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11849 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11850 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11851 * tui/tui.c: Ditto.
6ba8e26f
AC
11852
11853 * tui/tui-command.c: Change variable and function names to lower
11854 case.
11855 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11856 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11857 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11858 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11859 * tui/tui-winsource.c, tui/tui.c: Ditto.
11860
4a146b47
EZ
118612004-02-07 Elena Zannoni <ezannoni@redhat.com>
11862
11863 * buildsym.c (free_pending_blocks, finish_block)
11864 (record_pending_block, make_blockvector, end_symtab): Replace
11865 symbol_obstack with objfile_obstack.
8a1dac83 11866 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11867 (coff_read_enum_type): Ditto.
8a1dac83 11868 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11869 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11870 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11871 (dwarf2_symbol_mark_computed): Ditto.
11872 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11873 * elfread.c (elf_symtab_read): Ditto.
11874 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11875 (hpread_read_enum_type, hpread_read_function_type)
11876 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11877 Ditto.
8a1dac83 11878 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11879 (java_link_class_type): Ditto.
8a1dac83 11880 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11881 (new_symbol): Ditto.
11882 * minsyms.c (install_minimal_symbols): Ditto.
11883 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11884 (terminate_minimal_symbol_table): Replace symbol_obstack with
11885 objfile_obstack.
11886 (free_objfile): Remove freeing of symbol_obstack.
11887 * objfiles.h: Remove symbol_obstack field.
11888 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11889 objfile_obstack.
11890 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11891 symbol_obstack.
11892 (solib_add_common_symbols): Replace symbol_obstack with
11893 objfile_obstack.
11894 * somsolib.c (som_solib_add): Ditto.
11895 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11896 (common_block_start, common_block_end): Ditto.
11897 * symfile.c (reread_symbols): Remove freeing and init of
11898 symbol_obstack.
11899 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11900 * symfile.h: Update comment.
11901 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11902 stats printing.
11903 * symtab.c (symbol_set_names): Replace symbol_obstack with
11904 objfile_obstack.
11905 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11906 Update comments.
11907 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11908 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11909 objfile_obstack.
11910
6d012f14
AC
119112004-02-07 Andrew Cagney <cagney@redhat.com>
11912
11913 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11914 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11915 fields and variables.
11916 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11917 (m_beInvisible): Delete macro.
11918 * tui/tui-data.h: Fix case case fields and variables.
11919 (m_genWinPtrIsNull): Delete macro.
11920 (tui_win_list): Rename winList.
11921 (TUI_SRC_WIN): Rename srcWin.
11922 (TUI_DISASM_WIN): Rename disassemWin.
11923 (TUI_DATA_WIN): Rename dataWin.
11924 (TUI_CMD_WIN): Rename cmdWin.
11925 (m_genWinPtrNotNull): Delete macro.
11926 (m_winPtrIsNull): Delete macro.
11927 (m_winPtrNotNull): Delete macro.
11928 (tui_win_is_source_type): Replace m_winIsSourceType
11929 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11930 (tui_win_has_locator): Replace m_hasLocator.
11931 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11932 m_setWinHighlightOff.
11933 * tui/tui-data.c: Update references.
11934 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11935 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11936 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11937 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11938 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11939 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11940 * tui/tui-winsource.c, tui/tui.c: Ditto.
11941
7d34766b
MK
119422004-02-07 Mark Kettenis <kettenis@gnu.org>
11943
1c800673
MK
11944 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11945 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11946 StackGhost.
11947
7d34766b
MK
11948 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11949 variable `i6' to `i7'.
11950 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11951
22940a24
AC
119522004-02-07 Andrew Cagney <cagney@redhat.com>
11953
11954 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11955 (TuiPoint, TuiPointPtr): Ditto.
11956 (TuiStatus, TuiStatusPtr): Ditto.
11957 (TuiWinType, TuiWinTypePtr): Ditto.
11958 (struct tui_point): Rename _TuiPoint.
11959 (tui_get_low_disassembly_address): Rename
11960 tuiGetLowDisassemblyAddress.
11961 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11962 (tuiFree): Delete declaration.
11963 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11964 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11965 * tui/tui.c (tuiFree): Delete function.
11966 * cli/cli-cmds.c (disassemble_command): Update references.
11967 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11968 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11969 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11970 * tui/tui-winsource.c: Ditto.
11971
8b92e4d5
EZ
119722004-02-07 Elena Zannoni <ezannoni@redhat.com>
11973
11974 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11975 coffstab_build_psymtabs, elfstab_build_psymtabs)
11976 (stabsect_build_psymtabs): Replace psymbol_obstack with
11977 objfile_obstack.
11978 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11979 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11980 Ditto.
11981 * dwarfread.c (scan_compilation_units): Ditto.
11982 * elfread.c (elfstab_offset_sections): Ditto.
11983 * hppa-tdep.c (read_unwind_info): Ditto.
11984 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11985 (hpread_end_psymtab): Ditto.
11986 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11987 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11988 Ditto.
11989 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11990 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11991 (build_objfile_section_table): Ditto.
11992 (allocate_objfile): Remove init of psymbol_obstack.
11993 (free_objfile): Remove freeing of psymbol_obstack.
11994 * objfiles.h (struct objfile): Remove field
11995 psymbol_obstack. Update comments.
11996 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11997 psymbol_obstack with objfile_obstack.
11998 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11999 psymbol_obstack.
12000 * somread.c (som_symfile_offsets, init_import_symbols)
12001 (init_export_symbols): Replace psymbol_obstack with
12002 objfile_obstack.
12003 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12004 * symfile.c (default_symfile_offsets, syms_from_objfile)
12005 (reread_symbols): Remove freeing and init of psymbol_obstack.
12006 (cashier_psymtab): Update comment.
12007 * symmisc.c (print_objfile_statistics): Don't report stats for
12008 psymbol obstack.
12009 * symtab.h (struct general_symbol_info, struct partial_symtab):
12010 Update comments.
12011 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12012 (xcoff_symfile_offsets): Replace psymbol_obstack with
12013 objfile_obstack.
12014
b99607ea
EZ
120152004-02-07 Elena Zannoni <ezannoni@redhat.com>
12016
12017 * objfiles.h (struct objfile): Add objfile_obstack field.
12018 Remove type_obstack field.
12019
12020 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12021 read_structure_scope read_enumeration, new_symbol): Replace
12022 type_obstack with objfile_obstack.
12023 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12024 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12025 (lookup_fundamental_type): Ditto.
12026 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12027 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12028 (hpread_read_doc_function_type, hpread_read_struct_type)
12029 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12030 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12031 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12032 (java_link_class_type): Ditto.
12033 * mdebugread.c (parse_type): Ditto.
12034 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12035 * solib-sunos.c (solib_add_common_symbols): Ditto.
12036 * stabsread.c (define_symbol, read_type, read_member_functions,
12037 read_cpp_abbrev, read_one_struct_field): Ditto.
12038 * symfile.c (reread_symbols): Ditto.
12039 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12040
2a8854a7
AC
120412004-02-07 Andrew Cagney <cagney@redhat.com>
12042
12043 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12044 (tui_exec_info_content): Rename TuiExecInfoContent.
12045 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12046 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12047 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12048 (TuiList, TuiListPtr): Ditto.
12049 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12050 (TuiDataType, TuiDataTypePtr): Ditto.
12051 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12052 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12053 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12054 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12055 (TuiDataElement, TuiDataElementPtr): Ditto.
12056 (TuiWinElement, TuiWinElementPtr): Ditto.
12057 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12058 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12059 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12060 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12061 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12062 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12063 * tui/tui-command.c, tui/tui-data.c: Update references.
12064 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12065 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12066 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12067 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12068
05cbe71a
MK
120692004-02-07 Mark Kettenis <kettenis@gnu.org>
12070
12071 * dwarf2-frame.h: Update copyright.
12072 (enum dwarf2_frame_reg_rule): New.
12073 (struct dwarf2_frame_state_reg): New.
12074 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12075 * dwarf2-frame.c: Update copyright.
12076 (enum dwarf2_reg_rule): Remove.
12077 (struct dwarf2_frame_state): Remove defenition of `struct
12078 dwarf2_frame_state_reg'.
12079 (read_reg): Call get_frame_arch to get the architecture instead of
12080 using CURRENT_GDBARCH.
12081 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12082 DWARF2_FRAME_.
12083 (dwarf2_frame_init_reg): New function.
12084 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12085 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12086 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12087 tags with DWARF2_FRAME_.
12088 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12089 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12090 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12091
ec7d9e56
AC
120922004-02-06 Andrew Cagney <cagney@redhat.com>
12093
dd1abb8c
AC
12094 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12095 (enum tui_data_type): Rename _TuiDataType.
12096 (struct tui_layout_def): Rename _TuiLayoutDef.
12097 (struct tui_source_element): Rename _TuiSourceElement.
12098 (struct tui_data_element): Rename _TuiDataElement.
12099 (struct tui_command_element): Rename _TuiCommandElement.
12100 (struct tui_locator_element): Rename _TuiLocatorElement.
12101 (union tui_which_element): Define.
12102 (struct tui_win_element): Rename _TuiWinElement.
12103 (struct tui_data_info): Rename _TuiDataInfo.
12104 (struct tui_source_info): Rename _TuiSourceInfo.
12105 (struct tui_command_info): Rename _TuiCommandInfo.
12106 (tui_initialize_static_data): Rename initializeStaticData.
12107 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12108 (tui_alloc_win_info): Rename allocWinInfo.
12109 (tui_init_generic_part): Rename initGenericPart.
12110 (tui_init_win_info): Rename initWinInfo.
12111 (tui_alloc_content): Rename allocContent.
12112 (tui_add_content_elements): Rename addContentElements.
12113 (tui_init_content_element): Rename initContentElement.
12114 (tui_free_window): Rename freeWindow.
12115 (tui_free_win_content): Rename freeWinContent.
12116 (tui_free_data_content): Rename freeDataContent.
12117 (tui_free_all_source_wins_content): Rename
12118 freeAllSourceWinsContent.
12119 (tui_del_window): Rename tuiDelWindow.
12120 (tui_del_data_windows): Rename tuiDelDataWindows.
12121 (tui_partial_win_by_name): Rename partialWinByName.
12122 (tui_win_name): Rename winName.
12123 (tui_current_layout): Rename currentLayout.
12124 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12125 (tui_term_height): Rename termHeight.
12126 (tui_set_term_height_to): Rename setTermHeightTo.
12127 (tui_term_width): Rename termWidth.
12128 (tui_set_term_width_to): Rename setTermWidthTo.
12129 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12130 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12131 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12132 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12133 (tui_source_windows): Rename sourceWindows.
12134 (tui_clear_source_windows): Rename clearSourceWindows.
12135 (tui_clear_source_windows_detail): Rename
12136 clearSourceWindowsDetail.
12137 (tui_clear_win_detail): Rename clearWinDetail.
12138 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12139 (tui_default_tab_len): Rename tuiDefaultTabLen.
12140 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12141 (tui_win_with_focus): Rename tuiWinWithFocus.
12142 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12143 (tui_layout_def): Rename tuiLayoutDef.
12144 (tui_win_resized): Rename tuiWinResized.
12145 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12146 (tui_next_win): Rename tuiNextWin.
12147 (tui_prev_win): Rename tuiPrevWin.
12148 (tui_add_to_source_windows): Rename addToSourceWindows.
12149 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12150 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12151 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12152 * tui/tui.c, tui/tui-data.c: Ditto.
12153 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12154 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12155
a358af15
AC
12156 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12157 (struct symtab): Declare.
12158 (tui_set_source_content): Rename tuiSetSourceContent.
12159 (tui_show_symtab_source): Rename tuiShowSource.
12160 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12161 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12162 * tui/tui-source.c: Update copyright. Update references.
12163 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12164 * tui/tui-stack.c: Update references.
12165
a21fcd8f
AC
12166 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12167 (struct tui_win_info): Declare.
12168 (tui_scroll_forward): Rename tuiScrollForward.
12169 (tui_scroll_backward): Rename tuiScrollBackward.
12170 (tui_scroll_left): Rename tuiScrollLeft.
12171 (tui_scroll_right): Rename tuiScrollRight.
12172 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12173 (tui_resize_all): Rename tuiResizeAll.
12174 (tui_refresh_all_win): Rename tuiRefreshAll.
12175 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12176 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12177 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12178 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12179
edae1ccf
AC
12180 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12181 (tui_erase_data_content): Rename tuiEraseDataContent.
12182 (tui_display_all_data): Rename tuiDisplayAllData.
12183 (tui_check_data_values): Rename tuiCheckDataValues.
12184 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12185 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12186 (tui_first_data_element_no_in_line): Rename
12187 tuiFirstDataElementNoInLine.
12188 (tui_delete_data_content_windows): Rename
12189 tuiDeleteDataContentWindows.
12190 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12191 (tui_display_data_from): Rename tuiDisplayDataFrom.
12192 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12193 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12194 * tui/tui-win.c, tui/tui-regs.c: Update references.
12195 * tui/tui-layout.c, tui/tui.c: Update references.
12196
ec7d9e56
AC
12197 * tui/tui-wingeneral.h: Update copyright.
12198 (m_allBeVisible): Delete macro.
8a1dac83 12199 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12200 (struct tui_gen_win_info): Declare.
12201 (struct tui_win_info): Declare.
12202 (tui_unhighlight_win): Rename unhighlightWin.
12203 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12204 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12205 (tui_make_window): Rename makeWindow.
12206 (tui_copy_win): Rename copyWin.
12207 (tui_box_win): Rename boxWin.
12208 (tui_highlight_win): Rename highlightWin.
12209 (tui_check_and_display_highlight_if_needed): Rename
12210 checkAndDisplayHighlightIfNeeded.
12211 (tui_refresh_all): Rename refreshAll.
12212 (tui_delete_win): Rename tuiDelwin.
12213 (tui_refresh_win): Rename tuiRefreshWin.
12214 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12215 (tui_make_visible, tui_make_invisible): New functions.
12216 (tui_make_all_visible, tui_make_all_invisible): New functions.
12217 (make_all_visible): Rename makeAllVisible.
12218 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12219 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12220 * tui/tui-windata.c, tui/tui-win.c: Update references.
12221 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12222 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12223
1e52e2eb
MK
122242004-02-06 Mark Kettenis <kettenis@gnu.org>
12225
12226 * proc-api.c (write_with_trace): Initialize local variable to
12227 silence compiler warning.
12228
f80bda8e
AC
122292004-02-06 Andrew Cagney <cagney@redhat.com>
12230
12231 * tui/tui-source.h: Do not include "defs.h".
12232 (struct tui_win_info): Declare.
12233 (tui_set_source_content_nil): Declare.
12234 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12235 (union tui_line_or_address): Rename _TuiLineOrAddress.
12236 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12237 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12238 (tui_update_source_window_as_is): Rename
12239 tuiUpdateSourceWindowAsIs.
12240 (tui_update_source_windows_with_addr): Rename
12241 tuiUpdateSourceWindowsWithAddr.
12242 (tui_update_source_windows_with_line): Rename
12243 tuiUpdateSourceWindowsWithLine.
12244 (tui_clear_source_content): Rename tuiClearSourceContent.
12245 (tui_erase_source_content): Rename tuiEraseSourceContent.
12246 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12247 (tui_show_source_content): Rename tuiShowSourceContent.
12248 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12249 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12250 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12251 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12252 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12253 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12254 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12255 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12256 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12257 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12258 (struct tui_win_info): Declare.
12259 * tui/tui-stack.c: Update references.
12260 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12261 * tui/tui-win.c, tui/tui-source.c: Ditto.
12262 * tui/tui.c, tui/tui-disasm.c: Ditto.
12263
9fbfb822
MK
122642004-02-06 Mark Kettenis <kettenis@gnu.org>
12265
12266 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12267 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12268
03cebad2
MK
122692004-02-05 Mark Kettenis <kettenis@gnu.org>
12270
12271 * infrun.c (handle_inferior_event): Allow for breakpoint
12272 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12273 and SIGEMT. Update comments.
12274 * NEWS (Revised SPARC target): Mention support for non-executable
12275 stack.
12276
290281b1
MK
122772004-02-04 Mark Kettenis <kettenis@gnu.org>
12278
12279 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12280 * inftarg.c: Update copyright year.
12281 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12282 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12283 (sparc_xfer_wcookie): New function.
12284 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12285 * Makefile.in (sparc-nat.o): Update dependencies.
12286 * config/sparc/nm-nbsd.h: Include "target.h".
12287 (NATIVE_XFER_WCOOKIE): New define.
12288 (sparc_xfer_wcookie): New prototype.
12289
212161df
AC
122902004-02-04 Andrew Cagney <cagney@redhat.com>
12291
12292 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12293 SYSCALL_TRAP function.
12294 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12295
6e4c6c91
DJ
122962004-02-04 Andrew Cagney <cagney@redhat.com>
12297 Daniel Jacobowitz <drow@mvista.com>
12298
12299 * objfiles.h: Delete comments refering to inside_entry_func and
12300 DEPRECATED_FRAME_CHAIN_VALID.
12301 * defs.h (inside_entry_func): Update prototype..
12302 * blockframe.c (inside_entry_func): Rename to
12303 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12304 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12305
cae688ec
JJ
123062004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12307
12308 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12309 outside of #ifdef SOLIB_ADD region.
12310 (do_restore_lang_radix_cleanup): Ditto.
12311 (resolve_pending_breakpoint): Ditto.
12312
19217676
AC
123132004-02-03 Andrew Cagney <cagney@redhat.com>
12314
12315 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12316 (process_note_abi_tag_sections): Delete unused function.
12317 (ia64_read_fp): Delete unused function.
12318 (gdbarch_extract_struct_value_address): Delete declaration.
12319
876753be
AC
123202004-02-02 Andrew Cagney <cagney@redhat.com>
12321
12322 * vax-tdep.c (vax_frame_chain): Delete call to
12323 deprecated_inside_entry_file.
12324 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12325
d4f10bf2
MK
123262004-02-02 Mark Kettenis <kettenis@gnu.org>
12327
12328 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12329 column that's "empty" or "same value" when eliminating REG_RA
12330 rules.
12331
cae688ec
JJ
123322004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12333
12334 * NEWS: Add information about new pending breakpoint support.
12335
0101ce28
JJ
123362004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12337
12338 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12339 and pending fields for pending breakpoint support.
12340 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12341 (condition_command): Only parse condition if not a pending
12342 breakpoint.
12343 (print_one_breakpoint): Add support for pending breakpoints.
12344 (describe_other_breakpoints): Add checks to verify we are not
12345 dealing with pending breakpoints.
12346 (check_duplicates): Don't check pending breakpoints.
12347 (set_raw_breakpoint): Initialize pending flag.
12348 (do_restore_lang_radix_cleanup): New cleanup routine.
12349 (resolve_pending_breakpoint): New function.
12350 (re_enable_breakpoints_in_shlibs): Try and resolve any
12351 pending breakpoints via resolve_pending_breakpoint.
12352 (mention): Add pending breakpoint support.
12353 (parse_breakpoint_sals): Add new parameter to pass to
12354 decode_line_1 to indicate silent errors when files or functions
12355 are not found. Change all callers.
12356 (do_captured_parse_breakpoint): New function.
12357 (break_command_1): Change prototype to return an rc value and to
12358 take an optional pending breakpoint pointer. Support creating
12359 a pending breakpoint if a "not found" form of error occurs when
12360 parsing the breakpoint. Also support resolving an existing pending
12361 breakpoint and be silent if the resolution fails.
12362 (create_breakpoints): Change prototype to take pending breakpoint
12363 pointer. When resolving a pending breakpoint, use the new pointer
12364 to provide a conditional or commands added by the end-user.
12365 (delete_breakpoint): Add appropriate check for pending.
12366 (breakpoint_re_set_one): Ditto.
12367 (do_enable_breakpoint): Ditto.
12368
8d577d32
DC
123692004-02-02 David Carlton <carlton@kealia.com>
12370
12371 * valops.c (enum oload_classification): New.
12372 (find_overload_match): Break implementation into separate
12373 functions; delete #if 0'd code; look for symbols within
12374 namespaces.
12375 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12376 (find_oload_champ,oload_method_static,classify_oload_match): New.
12377 * cp-support.h: Add declaration for cp_func_name; update
12378 declaration for make_symbol_overload_list.
12379 * cp-support.c (cp_func_name): New.
12380 (overload_list_add_symbol): Fix comment, use
12381 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12382 (make_symbol_overload_list): Take a function name and a namespace
12383 instead of a symbol; change implementation.
12384 (make_symbol_overload_list_using): New.
12385 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12386
22e8e3c7
FF
123872004-02-02 Fred Fish <fnf@redhat.com>
12388
12389 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12390 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12391 * remote-sim.c (gdb_os_write_stderr): Write output to
12392 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12393 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12394 gdb_stderr stream and update copyright years.
22e8e3c7 12395
6b753f60
DJ
123962004-02-01 Daniel Jacobowitz <drow@mvista.com>
12397
12398 * Makefile.in (mips-linux-nat.o): Update dependencies.
12399 * mips-linux-nat.c: Include mips-tdep.h.
12400
124012004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12402
12403 * sol-thread.c (sol_thread_xfer_partial): New function.
12404 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12405 (init_sol_core_ops): Likewise.
12406
12407 * procfs.c (procfs_xfer_partial): New function.
12408 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12409 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12410
12411 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12412 procfs_xfer_auxv function.
12413
12414 * procfs.c (procfs_make_note_section): If we can read
12415 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12416 * linux-proc.c (linux_make_note_section): Likewise.
12417
12418 * auxv.h: New file.
12419 * auxv.c: New file.
12420 * Makefile.in (auxv_h): New variable.
12421 (COMMON_OBS): Add auxv.o here.
12422 (auxv.o): New target.
12423
12424 * corelow.c (core_xfer_partial): New function.
12425 (init_core_ops): Use it for core_ops.to_xfer_partial.
12426
12427 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12428 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12429 macro if that is defined.
12430
fa5281d0
DJ
124312004-02-01 Daniel Jacobowitz <drow@mvista.com>
12432
12433 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12434 and check the specified thread for each breakpoint.
12435 * breakpoint.h (bpstat_stop_status): Update prototype.
12436 * infrun.c (handle_inferior_event): Update calls to
12437 bpstat_stop_status.
12438
26ee262d
DJ
124392004-02-01 Daniel Jacobowitz <drow@mvista.com>
12440
12441 * Makefile.in (cli-cmds.o): Add $(readline_h).
12442
d9b52655
DJ
124432004-02-01 Daniel Jacobowitz <drow@mvista.com>
12444
12445 * cli/cli-cmds.c: Include readline.h.
12446 (complete_command): Pass the start of the last word to
12447 complete_line.
12448
9709f61c
DJ
124492004-01-31 Daniel Jacobowitz <drow@mvista.com>
12450
12451 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12452 argument, and change first argument to a CORE_ADDR.
12453 * breakpoint.h (bpstat_stop_status): Update prototype.
12454 * infrun.c (adjust_pc_after_break): Add a new comment.
12455 (handle_inferior_event): Update calls to bpstat_stop_status.
12456
4f1280bb
DJ
124572004-01-31 Daniel Jacobowitz <drow@mvista.com>
12458
12459 * breakpoint.h: Update copyright years.
12460
4fa8626c
DJ
124612004-01-31 Daniel Jacobowitz <drow@mvista.com>
12462
12463 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12464 (bpstat_stop_status): Don't decrement PC.
12465 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12466 prototype.
12467 * infrun.c (adjust_pc_after_break): New function.
12468 (handle_inferior_event): Call it, early. Remove later references
12469 to DECR_PC_AFTER_BREAK.
12470 (normal_stop): Add commentary.
12471
fad0733a
DJ
124722004-01-31 Daniel Jacobowitz <drow@mvista.com>
12473
12474 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12475 2004-01-27 double-free fix.
12476
42cdca6c
MK
124772004-01-31 Mark Kettenis <kettenis@gnu.org>
12478
12479 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12480 (sparc32_frame_prev_register): Handle StackGhost.
12481 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12482
932d5416
RM
124832004-01-29 Roland McGrath <roland@redhat.com>
12484
12485 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12486 * configure: Regenerated.
12487
12488 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12489 * Makefile.in (procfs.o): Add dep.
12490
47d3492a
AC
124912004-01-28 Andrew Cagney <cagney@redhat.com>
12492
12493 * tui/tui-stack.h: Update copyright.
12494 (struct frame_info): Add opaque declaration.
12495 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12496 (tui_show_locator_content): Rename tuiShowLocatorContent.
12497 (tui_show_frame_info): Rename tuiShowFrameInfo.
12498 * tui/tui-stack.c: Update copyright. Update references.
12499 * tui/tui-winsource.c: Update references.
12500 * tui/tui-win.c: Update references.
12501 * tui/tui-layout.c: Update references.
12502 * tui/tui-hooks.c: Update copyright, update references.
12503 * tui/tui.c: Update copyright, update references.
12504 * tui/tui-disasm.c: Update references.
12505
5d51ca54
DC
125062004-01-28 David Carlton <carlton@kealia.com>
12507
12508 * dwarf2read.c (add_partial_structure): Use demangled name if
12509 namespace equals "".
12510
086ed43d
JB
125112004-01-27 Jim Blandy <jimb@redhat.com>
12512
12513 Clean up misapplied patch:
12514 * dwarf2read.c (determine_prefix): Change one of the two forward
12515 declarations for 'determine_prefix_aux' to a declaration for this.
12516 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12517 argument to 'die_specification'.
12518
2a35147e
JB
12519 * dwarf2read.c (read_func_scope): Re-indent comment.
12520
a355c7de 125212004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12522
a355c7de
AC
12523 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12524 b->exp to NULL after freeing so that error during re-parsing or
12525 evaluation of expressions associated with breakpoint don't
12526 eventually lead to re-freeing of storage.
12527 Committed by Andrew Cagney.
12528
63ff5125
AC
125292004-01-27 Andrew Cagney <cagney@redhat.com>
12530
12531 * source.c (ambiguous_line_spec): Delete undefined declaration.
12532 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12533 (m32r_set_server_address, m32r_set_download_path): Ditto.
12534 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12535
e142c38c
DJ
125362004-01-27 Daniel Jacobowitz <drow@mvista.com>
12537
12538 * dwarf2read.c: Update calls to changed and renamed functions, and
12539 references to moved variables.
12540
12541 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12542 language, language_defn, list_in_scope, and ftypes members.
12543 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12544 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12545 (baseaddr): Remove globals.
12546
12547 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12548 (set_cu_language, die_is_declaration, die_specification)
12549 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12550 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12551 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12552 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12553
12554 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12555 cu.list_in_scope. Don't initialize cu_header_offset.
12556 (add_partial_symbol): Add local baseaddr.
12557 (psymtab_to_symtab_1): Add local baseaddr. Use
12558 objfile->section_offsets for consistency. Don't initialize
12559 cu_header_offset; do initialize cu.header.offset and
12560 cu.list_in_scope.
12561 (read_file_scope, read_func_scope, read_lexical_block_scope)
12562 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12563
c6e06ede
MC
125642004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12565
fb328ecc 12566 * PROBLEMS: Add gdb/1516.
c6e06ede 12567
48184fd4
AC
125682003-12-29 Robert Millan <robertmh@gnu.org>
12569
12570 Patch committed by Andrw Cagney.
12571 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12572 * configure.tgt: Match knetbsd*-gnu.
12573
c1321b30
AC
125742004-01-26 Andrew Cagney <cagney@redhat.com>
12575
f3699be3
AC
12576 * breakpoint.c (catch_command_1): Delete #ifdef code.
12577 (catch_fork_command_1): Delete #ifdef wrapper.
12578 (catch_exec_command_1): Ditto.
12579 (catch_load_command_1): Ditto.
12580 (catch_unload_command_1): Ditto.
12581
c1321b30
AC
12582 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12583 (catch_breakpoint): Delete #if0ed function.
12584 (disable_catch_breakpoint): Ditto.
12585 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12586 (disable_catch, enable_catch, delete_catch): Ditto.
12587
b4501125
AC
125882004-01-26 Andrew Cagney <cagney@redhat.com>
12589
12590 * remote.c (echo_check, quit_flag): Delete variables.
12591 (cisco_kernel_mode): Delete variable.
12592 (minitelnet_return, tty_input, escape_count): Delete variables.
12593 (remote_cisco_mode): Delete variable.
12594 (remote_cisco_open, remote_cisco_close): Delete function.
12595 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12596 (init_remote_cisco_ops): Delete function.
12597 (_initialize_remote): Do not install "remote cisco" code.
12598 (read_frame): Delete cisco specific code.
12599 (remote_info_process): Delete function.
12600 (remote_wait): Delete cisco specific code.
12601 (remote_cisco_section_offsets): Delete function.
12602 (remote_cisco_objfile_relocate): Delete function.
12603 (remote_async_wait): Delete cisco specific code.
12604 (minitelnet, readtty, readsocket): Delete function.
12605
74055713
AC
126062004-01-26 Andrew Cagney <cagney@redhat.com>
12607
12608 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12609 comments mentioning extract_returned_value_address.
12610 * infcmd.c (print_return_value): Update. Add comments on
12611 extract_returned_value_address.
12612 * stack.c (return_command): Add comments on
12613 extract_returned_value_address.
12614 * values.c: Update comment.
12615 * m32r-tdep.c: Update comment.
12616 * sparc-tdep.c: Update comment.
12617 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12619 * sh64-tdep.c (sh64_gdbarch_init): Update.
12620 * sh-tdep.c (sh_gdbarch_init): Update.
12621 * s390-tdep.c (s390_gdbarch_init): Update.
12622 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12623 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12624 * m68k-tdep.c (m68k_gdbarch_init): Update.
12625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12626 * m32r-tdep.c (m32r_gdbarch_init): Update.
12627 * ia64-tdep.c (ia64_gdbarch_init): Update.
12628 * h8300-tdep.c (h8300_gdbarch_init): Update.
12629 * frv-tdep.c (frv_gdbarch_init): Update.
12630 * arm-tdep.c (arm_gdbarch_init): Update.
12631 * alpha-tdep.c (alpha_gdbarch_init): Update.
12632
a67af2b9
AC
126332004-01-26 Andrew Cagney <cagney@redhat.com>
12634
12635 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12636 SYMBOL_LOCATION_FUNCS
12637 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12638 "struct symbol_ops".
12639 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12640 type to "struct symbol_ops".
12641 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12642 (struct symbol): Replace ".aux_value.loc.funcs" and
12643 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12644 (SYMBOL_OBJFILE): Delete macro.
12645 (SYMBOL_LOCATION_FUNCS): Delete macro.
12646 (SYMBOL_LOCATION_BATON): Update.
12647 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12648 intead of SYMBOL_LOCATION_FUNCS.
12649 * ax-gdb.c (gen_var_ref): Ditto.
12650 * printcmd.c (address_info): Ditto.
12651 * findvar.c (read_var_value): Ditto.
12652 (symbol_read_needs_frame): Ditto.
12653
c034e007
AC
126542004-01-26 Andrew Cagney <cagney@redhat.com>
12655
12656 * dwarf2read.c (read_func_scope): Document frame-base hack.
12657
bb472c1e
MK
126582004-01-25 Mark Kettenis <kettenis@gnu.org>
12659
12660 * infcmd.c (print_return_value): Plug memory leak; delete
12661 ui_stream object. Rename argument `structure_return' to
12662 `struct_return'.
12663
c8e737d5
MK
126642004-01-25 Mark Kettenis <kettenis@gnu.org>
12665
f941662f
MK
12666 * infcmd.c (print_return_value): Wrap long lines.
12667 (finish_command_continuation, finish_command): Remove unused
12668 variable `funcaddr'. Fix some coding-standards problems.
12669
c558d81a 12670 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12671 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12672 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12673 TDEP->fpregset to zero.
12674
bf1e5861 12675 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12676 floating-point registers for traditional NetBSD core files.
12677 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12678 TDEP->sizeof_fpregset here.
12679
4c72d57a
MK
126802004-01-25 Mark Kettenis <kettenis@gnu.org>
12681
566626fa
MK
12682 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12683 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12684 function with code split out from
12685 sparc32nbsd_sigcontext_frame_cache.
12686 (sparc32nbsd_sigcontext_frame_cache): Use
12687 sparc32nbsd_sigcontext_saved_regs.
12688 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12689 OpenBSD.
12690 * sparcobsd-tdep.c: New file.
12691 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12692 (sparcobsd-tdep.o): New dependency.
12693 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12694 * config/sparc/obsd.mt: New file.
12695
4c72d57a
MK
12696 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12697 TDEP->fpregset to be initialized to enable core file register
12698 sets.
12699
7e5e9f88
MK
127002004-01-24 Mark Kettenis <kettenis@gnu.org>
12701
f0f207fd 12702 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12703 Add opaque declarations.
12704 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12705 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12706 function with code split out from
12707 sparc64nbsd_sigcontext_frame_cache.
12708 (sparc64nbsd_sigcontext_frame_cache): Use
12709 sparc64nbsd_sigcontext_saved_regs.
12710 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12711 OpenBSD.
12712 * sparc64obsd-tdep.c: New file.
12713 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12714 (sparc64obsd-tdep.o): New dependency.
12715 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12716 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12717 * config/sparc/obsd64.mt: New file.
12718
690668cc
MK
12719 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12720 read the instruction at PC.
12721
7e5e9f88
MK
12722 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12723 value of GDB_OSABI_DEFAULT.
12724 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12725 instead of GDB_OSABI_NETBSD_AOUT.
12726
68b6dce9
NR
127272004-01-24 Nick Roberts <nick@nick.uklinux.net>
12728
12729 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12730 copyright.
12731
080ce8c0
AC
127322004-01-23 Andrew Cagney <cagney@redhat.com>
12733
12734 * printcmd.c (display_command): Replace tui_set_display call with
12735 tui_set_layout_for_display_command.
12736 * tui/tui.h (enum tui_win_type): Define.
12737 (tui_set_layout): Delete declaration.
12738 (tui_set_layout_for_display_command): Rename set_tui_layout.
12739 * tui/tui-data.h (enum tui_layout_type): Define.
12740 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12741 "tui.h".
12742 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12743 (tui_default_win_height): Rename tuiDefaultWinHeight.
12744 (tui_default_win_viewport_height): Rename
12745 tuiDefaultWinViewportHeight.
12746 (tui_set_layout): RenametuiSetLayout.
12747 * tui/tui-layout.c: Update references.
12748 * tui/tui.c: Update references.
12749 * tui/tui-disasm.c: Update references.
12750
b368761e
DC
127512004-01-23 David Carlton <carlton@kealia.com>
12752
12753 Partial workaround for PR c++/1511:
12754 * cp-namespace.c: Include frame.h.
12755 (cp_lookup_transparent_type): New
12756 (cp_lookup_transparent_type_loop): New.
12757 * cp-support.h: Declare cp_lookup_transparent_type.
12758 * symtab.c (basic_lookup_transparent_type): Renamed from
12759 lookup_transparent_type.
12760 (lookup_transparent_type): Replace old body by a call to
12761 current_language->la_lookup_transparent_type.
12762 * symtab.h: Update copyright. Declare
12763 basic_lookup_transparent_type.
12764 * language.h: Update copyright.
12765 (struct language_defn): Add la_lookup_transparent_type.
12766 * language.c: Update copyright.
12767 (unknown_language_defn): Add basic_lookup_transparent_type.
12768 (auto_language_defn): Add basic_lookup_transparent_type.
12769 (local_language_defn): Add basic_lookup_transparent_type.
12770 * ada-lang.c: Update copyright.
12771 (ada_language_defn): Add basic_lookup_transparent_type.
12772 * c-lang.c: Update copyright.
12773 (c_language_defn): Add basic_lookup_transparent_type.
12774 (cplus_language_defn): Add basic_lookup_transparent_type.
12775 (asm_language_defn): Add basic_lookup_transparent_type.
12776 (minimal_language_defn): Add basic_lookup_transparent_type.
12777 * f-lang.c: Update copyright.
12778 (f_language_defn): Add basic_lookup_transparent_type.
12779 * jv-lang.c: Update copyright.
12780 (java_language_defn): Add basic_lookup_transparent_type.
12781 * m2-lang.c: Update copyright.
12782 (m2_language_defn): Add basic_lookup_transparent_type.
12783 * objc-lang.c: Update copyright.
12784 (objc_language_defn): Add basic_lookup_transparent_type.
12785 * p-lang.c: Update copyright.
12786 (p_language_defn): Add basic_lookup_transparent_type.
12787 * scm-lang.c: Update copyright.
12788 (scm_language_defn): Add basic_lookup_transparent_type.
12789 * Makefile.in (cp-namespace.o): Depend on frame.h.
12790
fdde2d81
DC
127912004-01-23 David Carlton <carlton@kealia.com>
12792
12793 Patch for PR c++/1520:
12794 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12795 properly if we have a specification die.
12796 (determine_prefix_aux): Rename from determine_prefix.
12797 (determine_prefix): Like the old determine_prefix, but never
12798 returns NULL.
12799
5b828b6b
TR
128002004-01-23 Theodore A. Roth <troth@openavr.org>
12801
12802 * avr-tdep.c: Update copyright.
12803 (avr_iaddr_p): Delete unused function.
12804 (avr_saddr_p): Delete unused function.
12805
a1b8c067
DC
128062004-01-23 David Carlton <carlton@kealia.com>
12807
12808 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12809 Fix for PR symtab/1534.
12810
f2cab569
MK
128112004-01-23 Mark Kettenis <kettenis@gnu.org>
12812
12813 * NEWS (New native configurations): Mention OpenBSD/sparc and
12814 OpenBSD/sparc64.
12815 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12816 * configure.host: Likewise.
12817 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12818 handler for OpenBSD.
12819 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12820
642d8300
MK
128212004-01-22 Mark Kettenis <kettenis@gnu.org>
12822
89aac506
MK
12823 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12824 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12825
36662fde
MK
12826 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12827 * cli/cli-cmds.c (shell_escape): Likewise.
12828
642d8300
MK
12829 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12830 OpenBSD .note.openbsd.ident sections.
12831
fae299cd
DC
128322004-01-22 David Carlton <carlton@kealia.com>
12833
12834 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12835 get_scope_pc_bounds.
12836 (read_file_scope): Ditto.
12837 (get_scope_pc_bounds): New function, produced by extracting code
12838 from the above two functions, consolidating it, and adding support
12839 for DW_TAG_namespace.
12840
a49d618c
MK
128412004-01-22 Mark Kettenis <kettenis@gnu.org>
12842
12843 * osabi.c (MAX_NOTESZ): New define.
12844 (check_note): New function.
12845 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12846 check_note.
12847
fe61caab
RM
128482004-01-21 Roland McGrath <roland@redhat.com>
12849
12850 * MAINTAINERS (write after approval): Add myself.
12851
ec145965
EZ
128522004-01-21 Eli Zaretskii <eliz@gnu.org>
12853
12854 * utils.c (init_page_info): Move declarations of `rows' and
12855 `cols' before the __GO32__-specific code. Move the closing brace
12856 outside the #ifdef __GO32__..#endif block.
12857 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12858
877522db
PB
128592004-01-21 Paul Brook <paul@codesourcery.com>
12860
12861 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12862 BPSTAT_WHAT_CHECK_SHLIBS.
12863
dbf5be1c
PB
128642004-01-21 Paul Brook <paul@codesourcery.com>
12865
12866 * MAINTAINERS: Add myself to write-after-approval.
12867
81f08b92
AC
128682004-01-20 Andrew Cagney <cagney@redhat.com>
12869
5a1efed7
AC
12870 * ax-gdb.c (print_axs_value): Delete unused function.
12871 * jv-lang.c (java_lookup_type): Delete unused function.
12872 * cli/cli-dump.c (dump_filetype): Delete unused function.
12873 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12874 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12875 (mips_getstring): Delete unused function.
12876 (pmon_insert_breakpoint): Delete #if0ed function.
12877 (PMON_MAX_BP): Delete #if0ed MACRO.
12878 (mips_pmon_bp_info): Delete #if0ed variable.
12879 (pmon_remove_breakpoint): Delete #if0ed function.
12880 * monitor.c (monitor_write_even_block): Delete unused function.
12881 (monitor_write_memory_block): Delete #if0ed code.
12882 * dink32-rom.c (dink32_load): Delete unused function.
12883 (_initialize_dink32_rom): Delete #if0ed code.
12884 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12885
b0a30fce
AC
12886 * tui/tui-command.c: Update references.
12887 * tui/tui-io.c: Update references.
12888 * tui/tui-command.h: Update copyright.
12889 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12890
81f08b92
AC
12891 * source.c (ambiguous_line_spec): Delete never-defined function.
12892 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12893 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12894 * cli/cli-cmds.c (validate_comname): Ditto.
12895
65f05602
AC
12896 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12897 "tui-data.h".
12898 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12899 (tui_show_disassem): Rename tuiShowDisassem.
12900 (tui_show_disassem_and_update_source): Rename
12901 tuiVerticalDisassemScroll.
12902 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12903 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12904 * tui/tui.h: Update copyright.
12905 (enum tui_status): Define.
12906 * tui/tui-data.h (enum tui_scroll_direction): Define.
12907 * tui/tui-disasm.c: Update copyright. Update references.
12908 * tui/tui-winsource.c: Update copyright. Update references.
12909 * tui/tui-win.c: Update references.
12910 * tui/tui-layout.c: Update references.
12911
6bb0384f
AC
129122004-01-20 Andrew Cagney <cagney@redhat.com>
12913
12914 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12915 sym2 to start of block.
12916
9175c9a3
MC
129172004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12918
12919 * MAINTAINERS: Delete mmalloc.
12920 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12921 * NEWS: Mention removal of --with-malloc.
12922 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12923 * config.in: Regenerate.
12924 * configure: Regenerate.
6bb0384f
AC
12925 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12926 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12927 * gdbinit.in: Remove mmalloc.
12928 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12929 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12930 * config/i386/go32.mh: Likewise.
12931 * config/i386/interix.mh: Likewise.
12932 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12933
4fcef00a
JJ
129342004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12935
12936 * linespec.c (decode_variable, symtab_from_filename): Call
12937 error_silent with error message instead of throwing an exception
12938 directly.
12939 * defs.h (error_silent, error_output_message): Add prototypes.
12940 (catch_exceptions_with_msg): Ditto.
12941 * utils.c (error_silent, error_output_message): New functions.
12942 * top.c (catch_exceptions_with_msg): New function.
12943
8e94b928
NR
129442004-01-20 Nick Roberts <nick@nick.uklinux.net>
12945
12946 * mi/mi-cmds.h (enum print_values): Add definition.
12947
12948 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12949 type and value for simple data types and just the name and type
12950 for complex ones, if required.
12951
12952 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12953 children, if required.
12954
a02d6af8
KB
129552004-01-19 Kevin Buettner <kevinb@redhat.com>
12956
12957 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12958 unused declarations.
12959
78a4a9b9
AC
129602004-01-19 Andrew Cagney <cagney@redhat.com>
12961
12962 * top.h (mapped_symbol_files): Delete declaration.
12963 * main.c (captured_main): Delete option "m" and "mapped".
12964 * objfiles.c (mapped_symbol_files): Delete variable.
12965 * symfile.c (symbol_file_command): Delete mmap code.
12966 (symbol_file_add_with_addrs_or_offsets): Ditto.
12967 (add_symbol_file_command, reread_separate_symbols): Ditto.
12968 * objfiles.h (OBJF_MAPPED): Delete.
12969 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12970 (free_objfile) [USE_MMALLOC]: Ditto.
12971 (open_existing_mapped_file): Delete function.
12972 (open_mapped_file): Delete function.
12973 (map_to_file): Delete function.
12974
2dbd5e30
KB
129752004-01-19 Kevin Buettner <kevinb@redhat.com>
12976
12977 * infrun.c (step_into_function): Account for possible breakpoint
12978 adjustment when computing ``stop_func_start''.
12979
437b434f
KB
129802004-01-19 Kevin Buettner <kevinb@redhat.com>
12981
12982 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12983 the region size against the size of a pointer, not the size of
12984 a register as given by DEPRECATED_REGISTER_SIZE.
12985
55fb0713
AC
129862004-01-19 Andrew Cagney <cagney@redhat.com>
12987
12988 * tui/tui-regs.h: Include "tui-data.h".
12989 (tuiFirstRegElementNoInLine): Delete declaration.
12990 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12991 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12992 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12993 (tui_calculate_regs_column_count): Rename
12994 tuiCalculateRegsColumnCount.
12995 (tui_check_register_values): Rename tuiCheckRegisterValues.
12996 (tui_show_registers): Rename tuiShowRegisters.
12997 (tui_display_registers_from_line): Rename
12998 tuiDisplayRegistersFromLine.
12999 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13000 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13001 (tui_first_reg_element_no_inline): Rename
13002 tuiFirstRegElementNoInLine.
13003 * tui/tui-data.h: Update copyright.
13004 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13005 * tui/tui-windata.c: Update copyright, update references.
13006 * tui/tui-regs.c: Update copyright, update references.
13007 * tui/tui-win.c: Update copyright, update references.
13008 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13009
cebe9500
AC
130102004-01-18 Andrew Cagney <cagney@redhat.com>
13011
bcdf1568
AC
13012 * tui/tui-io.c: Update copyright.
13013 (key_is_end_sequence, key_is_backspace): New functions.
13014 (key_is_command_char, key_is_start_sequence): New function.
13015 (tui_getc): Update references.
13016 * tui/tui-io.h: Update copyright.
13017 (m_tuiStartNewLine): Delete macro.
13018 (m_isBackspace, m_isDeleteChar): Delete macros.
13019 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13020 (m_isNextPage, m_isPrevPage): Delete macros.
13021 (m_isLeftArrow, m_isRightArrow): Delete macros.
13022 (m_isXdbStyleCommandChar): Delete macro.
13023 (key_is_start_sequence): Declare, replace m_isStartSequence.
13024 (key_is_end_sequence): Declare, replace m_isEndSequence.
13025 (key_is_backspace): Declare ,replace m_isBackspace.
13026 (key_is_command_char): Declare, replace m_isCommandChar.
13027 * tui/tui-command.c: Update copyright.
13028 (tuiDispatchCtrlChar): Update references.
13029
130d87e6
AC
13030 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13031 tuiSourceWin.h.
13032
d7b2e967
AC
13033 * tui/tui-command.c: Rename tui/tuiCommand.c.
13034 * tui/tui-command.h: Rename tui/tuiCommand.h.
13035 * tui/tui-data.c: Rename tui/tuiData.c.
13036 * tui/tui-data.h: Rename tui/tuiData.h.
13037 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13038 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13039 * tui/tui-io.c: Rename tui/tuiIO.c.
13040 * tui/tui-io.h: Rename tui/tuiIO.h.
13041 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13042 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13043 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13044 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13045 * tui/tui-source.c: Rename tui/tuiSource.c.
13046 * tui/tui-source.h: Rename tui/tuiSource.h.
13047 * tui/tui-stack.c: Rename tui/tuiStack.c.
13048 * tui/tui-stack.h: Rename tui/tuiStack.h.
13049 * tui/tui-win.c: Rename tui/tuiWin.c.
13050 * tui/tui-win.h: Rename tui/tuiWin.h.
13051 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13052 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13053 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13054 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13055 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13056 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13057 * tui/tui-file.c: Update includes.
13058 * tui/tui-hooks.c: Update includes.
13059 * tui/tui-interp.c: Update includes.
13060 * tui/tui.c: Update includes.
13061 * Makefile.in: Update all tui/ dependencies.
13062 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13063
b2100910
AC
13064 * Makefile.in: Update copyright. Update dependencies.
13065
cebe9500
AC
13066 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13067 problem.
13068
c6f0559b
AC
130692004-01-18 Andrew Cagney <cagney@redhat.com>
13070
43e9390b
AC
13071 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13072 instead of register_gdbarch_init.
13073
c6f0559b
AC
13074 * remote-sds.c (tohex): Delete unused function. Update copyright.
13075 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13076 * v850-tdep.c (v850_register_virtual_size): Ditto.
13077 * target.c (normal_target_post_startup_inferior): Ditto.
13078 * source.c (ambiguous_line_spec): Ditto.
13079 * remote.c (adapt_remote_get_threadinfo): Ditto.
13080 * mi/mi-out.c (out_field_fmt): Ditto.
13081 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13082 (output_control_change_notification): Ditto.
13083 * m68k-tdep.c (m68k_register_byte): Ditto.
13084 (m68k_remote_breakpoint_from_pc): Ditto.
13085 * ui-out.c (init_ui_out_state): Delete unused declaration.
13086 * stabsread.c (search_value): Ditto.
13087 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13088 * maint.c (print_section_table): Ditto.
13089 * infrun.c (set_follow_fork_mode_command): Ditto.
13090
a8504492
MK
130912004-01-18 Mark Kettenis <kettenis@gnu.org>
13092
13093 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13094 DW_CFA_def_cfa_exporession. Add support for
13095 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13096 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13097
0bd8997e
AC
130982004-01-18 Andrew Cagney <cagney@redhat.com>
13099
13100 * ocd.c: Update copyright.
13101 (bdm_read_register_command): Delete unused function.
13102 (_initialize_remote_ocd): Delete commented out reference.
13103 (get_quoted_char, reset_packet): Delete #if0ed function.
13104 (output_packet, put_quoted_char): Delete #if0ed function.
13105 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13106 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13107 (BDM_BREAKPOINT): Delete #if0ed macro.
13108 (remote_timeout): Delete #if0ed variable.
13109
31bb40e4
MK
131102004-01-18 Mark Kettenis <kettenis@gnu.org>
13111
13112 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13113 (core-sol2.o): Remove dependency.
13114 * core-sol2.c: Remove file.
13115
887432a5
AC
131162004-01-17 Andrew Cagney <cagney@redhat.com>
13117
13118 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13119 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13120 enums.
13121
29182b13
DJ
131222004-01-17 Daniel Jacobowitz <drow@mvista.com>
13123
13124 * remote.c: Update copyright years.
13125
2963ee1d
DJ
131262004-01-17 Daniel Jacobowitz <drow@mvista.com>
13127
13128 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13129
79d45cd4
AC
131302004-01-17 Andrew Cagney <cagney@redhat.com>
13131
ee300cd4
AC
13132 * mdebugread.c: Update copyright.
13133 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13134 (parse_type, parse_procedure): Ditto.
13135 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13136
fcacc9c2
AC
13137 * cris-tdep.c (cris_store_struct_return): Put back accidently
13138 deleted function.
13139
79d45cd4
AC
13140 * gdbarch.sh: Update copyright year.
13141 * gdbarch.h, gdbarch.c: Re-generate.
13142
b263358a
DJ
131432004-01-17 Daniel Jacobowitz <drow@mvista.com>
13144
13145 Suggested by George Anzinger.
13146 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13147 correct stack offset. Include unknown opcode numbers in the error
13148 message.
13149
931aecf5
AC
131502004-01-17 Andrew Cagney <cagney@redhat.com>
13151
13152 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13153 extract_struct_value_address, i386 does not set it.
13154 * sparc64-tdep.c (sparc64_init_abi): Do not set
13155 extract_struct_value_address, never called.
13156 (sparc64_extract_struct_value_address): Delete function.
13157 * m68hc11-tdep.c: Update copyright.
13158 (m68hc11_gdbarch_init): Delete redundant assignment of
13159 extract_struct_value_address.
13160 * i386-tdep.c: Update copyright.
13161 (i386_gdbarch_init): Do not set extract_struct_value_address,
13162 never called.
13163 (i386_extract_struct_value_address): Delete function.
13164 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13165 extract_struct_value_address, never called.
13166 (sparc32_extract_struct_value_address): #if 0 function. Add
13167 comments explaining its future.
13168
756fe439
DJ
131692004-01-17 Daniel Jacobowitz <drow@mvista.com>
13170
13171 * arm-tdep.c (arm_write_pc): New function.
13172 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13173
e74f0f02
DJ
131742004-01-17 Daniel Jacobowitz <drow@mvista.com>
13175
13176 * breakpoint.c (must_shift_inst_regs): Delete.
13177 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13178 and SHIFT_INST_REGS.
13179 * infcmd.c (step_1, step_1_continuation): Delete references to
13180 SHIFT_INST_REGS.
13181 * infrun.c (keep_going): Likewise.
13182 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13183 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13184
b6cb9035
AC
131852004-01-17 Andrew Cagney <cagney@redhat.com>
13186
444a1e2e
AC
13187 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13188 * gdbarch.h, gdbarch.c: Re-generate.
13189 * infcmd.c (print_return_value): Delete reference to
13190 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13191
def7e6ed
AC
13192 * cris-tdep.c (cris_gdbarch_init): Do not set
13193 deprecated_extract_struct_value_address.
13194
07be497a
AC
13195 * xstormy16-tdep.c: Update copyright.
13196 (xstormy16_extract_struct_value_address): Update to current
13197 extract struct value address interface.
13198 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13199 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13200 current extract struct value address interface.
13201 (sh64_gdbarch_init): Set extract_struct_value_address.
13202
6b4d5c91
AC
13203 * cris-tdep.c: Update copyright.
13204 (cris_extract_struct_value_address): Delete function.
13205 (struct_return_address): Delete variable.
13206 (cris_store_struct_return): Do not set struct_return_address.
13207
464e0365
AC
13208 * mcore-tdep.c: Update copyright.
13209 (mcore_extract_struct_value_address): Delete function. Update
13210 comments.
13211 (mcore_gdbarch_init): Update.
13212 * mn10300-tdep.c: Update copyright.
13213 (mn10300_extract_struct_value_address): Delete function.
13214 (mn10300_gdbarch_init): Update.
13215 * v850-tdep.c: Update copyright.
13216 (v850_extract_struct_value_address): Delete.
13217 (v850_gdbarch_init): Update.
13218 * ns32k-tdep.c: Update copyright.
13219 (ns32k_extract_struct_value_address): Delete.
13220 (ns32k_gdbarch_init): Update.
13221 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13222 (hppa_gdbarch_init): Update.
13223 * vax-tdep.c: Update copyright.
13224 (vax_extract_struct_value_address): Delete.
13225 (vax_gdbarch_init): Update.
13226
afb18d0f
AC
13227 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13228 * gdbarch.h, gdbarch.c: Re-generate.
13229 * procfs.c (procfs_fetch_registers): Delete reference to
13230 DEPRECATED_NPC_REGNUM.
13231 (procfs_store_registers): Ditto.
13232 * regcache.c (generic_target_write_pc): Simplify.
13233 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13234
a698f53e
AC
13235 * core-sol2.c (fetch_core_registers): Replace
13236 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13237
adc11376
AC
13238 * hppa-tdep.c: Update copyright year.
13239 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13240 NPC_REGNUM.
13241 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13242
b6cb9035
AC
13243 * mips-tdep.c (mips_write_pc): New function.
13244 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13245 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13246 (mips_find_saved_regs, mips_software_single_step: Ditto.
13247 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13248 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13249
6d82d43b
AC
132502004-01-17 Andrew Cagney <cagney@redhat.com>
13251
13252 * mips-tdep.c: Re-indent. Group functions by ABI.
13253
71bd6bd4
AC
132542004-01-17 Andrew Cagney <cagney@redhat.com>
13255
13256 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13257 * gdbarch.c: Re-generate.
13258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13259 DECR_PC_AFTER_BREAK to zero.
13260 * vax-tdep.c (vax_gdbarch_init): Ditto.
13261 * v850-tdep.c (v850_gdbarch_init): Ditto.
13262 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13263 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13264 * sh-tdep.c (sh_gdbarch_init): Ditto.
13265 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13266 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13267 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13268 * mips-tdep.c (mips_gdbarch_init): Ditto.
13269 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13271 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13272 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13273 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13274 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13275 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13276 * frv-tdep.c (frv_gdbarch_init): Ditto.
13277 * cris-tdep.c (cris_gdbarch_init): Ditto.
13278 * avr-tdep.c (avr_gdbarch_init): Ditto.
13279 * arm-tdep.c (arm_gdbarch_init): Ditto.
13280 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13281
a02abb62
JB
132822004-01-17 J. Brobecker <brobecker@gnat.com>
13283
13284 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13285 Delete, no longer used.
13286 (read_subrange_type): New function, mostly extracted from
13287 read_array_type().
13288 (read_array_type): Replace extracted code by call to
13289 read_subrange_type().
13290 (dwarf2_get_attr_constant_value): New function.
13291 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13292 (add_partial_symbol): Likewise.
13293 (process_die): Likewise.
13294 (new_symbol): Likewise.
13295 (read_type_die): Likewise.
13296
cf5b2f1b
AC
132972004-01-16 Andrew Cagney <cagney@redhat.com>
13298
13299 * symfile.c: Update copyright year.
13300 (compare_symbols): Delete unused function.
13301 * stabsread.c: Update copyright year.
13302 (lrs_general_complaint): Delete unused function.
13303 (ref_search_value): Ditto.
13304 (get_substring): Delete declaration.
13305 * sh64-tdep.c: Update copyright year.
13306 (sh64_get_gdb_regnum): Delete unused function.
13307 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13308 Delete unused function.
13309
d33b9831
MK
133102004-01-17 Mark Kettenis <kettenis@gnu.org>
13311
13312 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13313 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13314
7aea86e6
AC
133152004-01-16 Andrew Cagney <cagney@redhat.com>
13316
13317 Changes from Peter Schauer.
13318 * rs6000-tdep.c: Update copyright year.
13319 (rs6000_push_dummy_call): Update the stack pointer before
13320 accessing the corresponding stack region.
13321 * rs6000-nat.c: Update copyright year.
13322 (set_host_arch): Set "info.abfd" to "exec_bfd".
13323
26b0da32
MK
133242004-01-15 Mark Kettenis <kettenis@gnu.org>
13325
13326 * blockframe.c: Update copyright year.
13327 (inside_entry_func): Don't treat a zero PC specially.
13328
86fbe6cc
EZ
133292004-01-14 Elena Zannoni <ezannoni@redhat.com>
13330
13331 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13332 variable.
13333 (gcore_create_callback): Ditto. Skip any memory segment that has
13334 no permissions set.
13335
63d06c5c
DC
133362004-01-14 David Carlton <carlton@kealia.com>
13337
13338 Change symbols for C++ nested types to contain the fully qualified
13339 name, if possible. (At least in the DWARF-2 case.) Partial fix
13340 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13341 c++/895.
13342 * c-exp.y (qualified_type): Handle types nested within classes.
13343 * cp-namespace.c: Update comments.
13344 (cp_set_block_scope): Delete #if 0.
13345 (cp_lookup_nested_type): Handle types nested within classes.
13346 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13347 when appropriate.
13348 (add_partial_symbol): Add the name of the enclosing namespace to
13349 types.
13350 (pdi_needs_namespace): New.
13351 (add_partial_namespace): Tweak comment.
13352 (add_partial_structure): New.
13353 (psymtab_to_symtab_1): Initialize processing_current_prefix
13354 here...
13355 (process_die): instead of here.
13356 (read_structure_scope): Try to figure out the name of the class or
13357 namespace that the structure might be defined within.
13358 (read_enumeration): Generate fully-qualified names, if possible.
13359 (read_namespace): Don't set name to NULL.
13360 (die_specification): New.
13361 (new_symbol): Generate fully-qualified names for types.
13362 (read_type_die): Determine appropriate prefix.
13363 (determine_prefix): New.
13364 (typename_concat): New.
13365 (class_name): New.
13366 * valops.c (value_aggregate_elt): Pass NOSIDE to
13367 value_struct_elt_for_reference.
13368 (value_struct_elt_for_reference): Make static, add NOSIDE
13369 parameter, call value_maybe_namespace_elt as a last resort.
13370 (value_namespace_elt): Break out code into
13371 value_maybe_namespace_elt.
13372 (value_maybe_namespace_elt): New.
13373
87783b8b
AC
133742004-01-12 Andrew Cagney <cagney@redhat.com>
13375
13376 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13377 cooked floating-point registers.
13378 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13379 and value_to_register.
13380
6503b91e
AC
133812004-01-13 Andrew Cagney <cagney@redhat.com>
13382
13383 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13384 * gdbarch.c: Re-generate.
13385 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13386 FUNCTION_START_OFFSET.
13387 * v850-tdep.c (v850_gdbarch_init): Ditto.
13388 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13389 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13390 * sh-tdep.c (sh_gdbarch_init): Ditto.
13391 * s390-tdep.c (s390_gdbarch_init): Ditto.
13392 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13393 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13394 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13395 * mips-tdep.c (mips_gdbarch_init): Ditto.
13396 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13397 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13399 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13400 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13401 * i386-tdep.c (i386_gdbarch_init): Ditto.
13402 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13403 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13404 * frv-tdep.c (frv_gdbarch_init): Ditto.
13405 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13406 * cris-tdep.c (cris_gdbarch_init): Ditto.
13407 * avr-tdep.c (avr_gdbarch_init): Ditto.
13408 * arm-tdep.c (arm_gdbarch_init): Ditto.
13409 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13410
ea1dd7bc
DJ
134112004-01-13 Daniel Jacobowitz <drow@mvista.com>
13412
13413 * infrun.c (follow_fork_mode_ask): Remove.
13414 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13415 (follow_fork): Simplify and remove internal error for
13416 follow_fork_mode_ask.
13417 (_initialize_infrun): Update "set follow-fork-mode" help text.
13418
0f0cffd2
AC
134192004-01-13 Andrew Cagney <cagney@redhat.com>
13420
13421 * configure.in: Update copyright year.
13422 (build_warnings): Add -Wunused-label.
13423 * configure: Re-generate.
13424
de38af99
AC
134252004-01-12 Andrew Cagney <cagney@redhat.com>
13426
954a7fba
AC
13427 * exec.h (exec_ops): Make "extern".
13428
de38af99
AC
13429 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13430 the function is void.
13431 (mips_pseudo_register_write): Ditto.
13432
1a111ce3
AC
134332004-01-12 Andrew Cagney <cagney@redhat.com>
13434
13435 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13436 call. Never defined.
13437 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13438 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13439 (struct sparc_gregset, struct regcache): Ditto.
13440 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13441
48efe704
AC
134422004-01-12 Andrew Cagney <cagney@redhat.com>
13443
13444 * mi/ChangeLog: Delete file. Renamed to ...
13445 * mi/ChangeLog-1999-2003: New file.
13446 * tui/ChangeLog: Delete file. Renamed to ...
13447 * tui/ChangeLog-1998-2003: New file.
fe61caab 13448
a54124c5
MK
134492004-01-11 Mark Kettenis <kettenis@gnu.org>
13450
2ca62865
MK
13451 * sparc64nbsd-tdep.c: Include "regset.h".
13452 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13453 Remove variables.
13454 (fetch_core_registers): Remove function.
13455 (sparc64nbsd_core_fns): Remove variable.
13456 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13457 functions.
13458 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13459 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13460 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13461
ca9d58e9
MK
13462 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13463 sparc_extract_struct_value_address.
13464 (sparc32_gdbarch_init): Set extract_struct_value_address.
13465 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13466 function.
13467 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13468 return_value_on_stack.
13469
3cc87ec0
MK
13470 * NEWS: Mention that %cs and %ss have been added to the AMD64
13471 configurations
13472
5bf00f29
MK
13473 * frame.c: Update copyright year.
13474 (get_prev_frame): Improve comment.
13475
4f7ec84e
MK
13476 * sparc64fbsd-tdep.c: Include "regset.h".
13477 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13478 Remove variables.
13479 (fetch_core_registers): Remove function.
13480 (sparc64fbsd_core_fns): Remove variable.
13481 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13482 functions.
13483 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13484 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13485 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13486
4e7b0cd3
MK
13487 * sparcnbsd-tdep.c: Include "regset.h".
13488 (fetch_core_registers): Remove function.
13489 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13490 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13491 functions.
13492 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13493 TDEP->fpregset.
46b58ce9 13494 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13495
a54124c5
MK
13496 * sparc-tdep.h (struct regset): Provide opaque declaration.
13497 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13498 fpregset and sizeof_fpregset members.
13499 * sparc-tdep.c (struct regset): Provide opaque declaration.
13500 (sparc_regset_from_core_section): New function.
13501 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13502 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13503 Set regset_from_core_section when appropriate.
13504
29ff87c5
MK
135052004-01-10 Mark Kettenis <kettenis@gnu.org>
13506
79b1ab3d
MK
13507 * x86-64-tdep.c (amd64_non_pod_p): New function.
13508 (amd64_classify_aggregate): Return class memory for non-POD
13509 C++ structure types.
13510
6470d250
MK
13511 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13512 argument. Use it to reserve a register if necessary.
13513 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13514 amd64_push_arguments.
13515
562c50c2
MK
13516 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13517
af233647
MK
13518 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13519 register numbers in comments.
13520 * x86-64-tdep.h: Update copyright year.
13521 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13522 Adjust for addition of %cs and %ss.
13523 * amd64fbsd-nat.c: Update copyright year.
13524 (reg_offset): Add register offsets for %cs and %ss.
13525 * amd64fbsd-tdep.c: Update copyright year.
13526 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13527 (amd64fbsd_sc_reg_offset): Likewise.
13528 * x86-64-linux-nat.c: Update copyright year.
13529 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13530 and %ss.
13531 * amd64nbsd-nat.c: Update copyright year.
13532 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13533 * amd64nbsd-tdep.c: Update copyright year.
13534 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13535 * x86-64-linux-tdep.c: Update copyright year.
13536 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13537 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13538 * regformats/reg-x86-64.dat: Add %cs and %ss.
13539
29ff87c5
MK
13540 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13541 variables to prevent long lines. Update comments to reflect
13542 reality.
13543
38d518c9
EZ
135442004-01-09 David Carlton <carlton@kealia.com>
13545
13546 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13547 * dwarf2read.c (read_namespace): Pull out name-generating code
13548 into namespace_name. Rename previous_namespace to previous_prefix
13549 and processing_current_namespace to processing_current_prefix..
13550 (namespace_name): New function.
13551 (add_partial_symbol): Substitute uses of pdi->name with
13552 actual_name.
13553 * cp-support.h: Rename processing_current_namespace to
13554 processing_current_prefix.
13555 Update copyright year.
13556 * cp-namespace.c: Rename processing_current_namespace to
13557 processing_current_prefix.
13558 Update copyright year.
fe61caab 13559
1e4728e7
AC
135602004-01-09 Andrew Cagney <cagney@redhat.com>
13561
13562 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13563
c77c642a
MK
135642004-01-09 Mark Kettenis <kettenis@gnu.org>
13565
13566 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13567 complaining.
13568 (process_one_symbol): Deal with N_PATCH stabs.
13569
b44e9041
EZ
135702004-01-09 Elena Zannoni <ezannoni@redhat.com>
13571
13572 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13573 ifdeffed code.
13574 Update copyright year.
38d518c9 13575
eccfb640
MC
135762004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13577
13578 * config/pa/tm-hppa.h: Update extern declarations for
13579 hppa32_hpux_frame_saved_pc_in_sigtramp,
13580 hppa32_hpux_frame_base_before_sigtramp, and
13581 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13582
848c5feb
MC
135832004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13584
13585 * config/pa/tm-hppah.h: Update copyright years.
13586
3cc5d663
AC
135872004-01-08 Andrew Cagney <cagney@redhat.com>
13588
13589 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13590 (mips_o32_reg_struct_has_addr): Delete function.
13591 (mips_gdbarch_init): Update.
13592 (mips_extract_struct_value_address): Delete function.
13593
bfec0b41
JJ
135942004-01-08 David Mosberger <davidm@hpl.hp.com>
13595
13596 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13597 reality.
13598
16e109ca
AC
135992004-01-07 Andrew Cagney <cagney@redhat.com>
13600
6214a8a1
AC
13601 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13602 architecture's elf flags (when available).
13603
8d5838b5
AC
13604 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13605 FPU to the start, check the MIPS FPU when looking for an old
13606 architecture.
13607 (set_mipsfpu_single_command): Update the architecture.
13608 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13609
480d3dd2
AC
13610 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13611 (mips_mask_address_p): Add "tdep" parameter.
13612 (show_mask_address, mips_addr_bits_remove): Update.
13613 (mips_dump_tdep): Update.
13614 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13615 (MIPS_STACK_ARGSIZE): Delete macro.
13616 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13617 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13618 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13619 (mips_dump_tdep): Update.
13620 (MIPS_SAVED_REGSIZE): Delete macro.
13621 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13622 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13623 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13624 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13625 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13626 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13627 (mips_pop_frame, return_value_location): Update.
13628 (mips_n32n64_return_value, mips_dump_tdep): Update.
13629
ec03c1ac
AC
13630 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13631 MIPS ABI.
13632
16e109ca
AC
13633 * mips-tdep.c: Update copyright.
13634 (mips_gdbarch_init): Merge two code blocks handling the register
13635 name and number layout.
13636
15255275
MS
136372004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13638
13639 * tracepoint.c (validate_actionline): Fix segv at EOF
13640
9f9057da
MC
136412004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13642
13643 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13644 properly for static fields.
13645
0127c0d3 136462004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13647 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13648
13649 * disasm.c: Update copyright to include 2004.
13650 (do_mixed_source_and_assembly): For uiout asm list
13651 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13652 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13653 the tuple/list. Move check for whether to close off the
fe61caab 13654 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13655 on each loop iteration.
13656
5269965e
AC
136572004-01-05 Andrew Cagney <cagney@redhat.com>
13658
54f1137d
AC
13659 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13660 should be a switch case and not a label.
13661 * mips-tdep.c (mips32_next_pc): Delete unused labels
13662 "greater_equal_branch" and "less_zero_branch".
13663 * jv-valprint.c (java_print_value_fields): Delete unused label
13664 "flush_it".
13665
5269965e
AC
13666 * target.c (unpush_target): Only close a target that is in the
13667 target stack.
13668
dbc22fa1
MK
136692004-01-05 Mark Kettenis <kettenis@gnu.org>
13670
9515395e
MK
13671 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13672 address from [sp + 64] instead of %o2.
13673
dbc22fa1
MK
13674 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13675 fixes PR backtrace/1476.
13676
5439edaa
AC
136772004-01-05 Andrew Cagney <cagney@redhat.com>
13678
13679 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13680 move to start of file.
13681 * i386-tdep.h (struct regcache): Add opaque declaration.
13682 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13683 declaration.
13684 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13685 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13686 * win32-nat.c (fake_create_process): Use ISO C style definition.
13687 * stabsread.c (define_symbol): Delete #ifndef
13688 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13689 stabs_argument_has_addr call, macro never defined.
13690
19061abe
MC
136912004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13692
13693 * op50-rom.c: Delete.
13694 * w89k-rom.c: Delete.
13695 * Makefile.in: Remove references.
13696
e53bef9f
MK
136972004-01-04 Mark Kettenis <kettenis@gnu.org>
13698
13699 * x86-64-tdep.c: Update copyright year.
13700 (struct amd64_register_info): Rename from x86_64_register_info.
13701 (amd64_register_info): Rename from x86_64_register_info.
13702 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13703 (amd64_register_name): Rename from x86_64_register_name.
13704 (amd64_register_type): Rename from x86_64_register_type.
13705 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13706 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13707 (amd64_dwarf_reg_to_regnum): Rename from
13708 x86_64_dwarf_reg_to_regnum.
13709 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13710 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13711 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13712 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13713 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13714 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13715 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13716 (amd64_frame_cache): Rename from x86_64_frame_cache.
13717 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13718 (amd64_frame_prev_register): Rename from
13719 x86_64_frame_prev_register.
13720 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13721 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13722 (amd64_sigtramp_frame_cache): Rename from
13723 x86_64_sigtramp_frame_cache.
13724 (amd64_sigtramp_frame_prev_register): Rename from
13725 x86_64_sigtramp_frame_prev_register.
13726 (amd64_sigtramp_frame_unwind): Rename from
13727 x86_64_sigtramp_frame_unwind.
13728 (amd64_sigtramp_frame_sniffer): Rename from
13729 x86_64_sigtramp_frame_sniffer.
13730 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13731 (amd64_frame_base): Rename from x86_64_frame_base.
13732 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13733 (amd64_frame_align): Rename from x86_64_frame_align.
13734 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13735 (amd64_regset_from_core_section): Rename from
13736 x86_64_regset_from_core_section.
13737 (x86_64_init_abi): Update comments.
13738
fca6aa58
NR
137392004-01-04 Nick Roberts <nick@nick.uklinux.net>
13740
13741 * MAINTAINERS (write after approval): Add myself.
13742
8ada74e3
MK
137432004-01-04 Mark Kettenis <kettenis@gnu.org>
13744
13745 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13746 `float' arguments.
13747
5154b0cd
MK
137482004-01-04 Mark Kettenis <kettenis@gnu.org>
13749
13750 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13751 such that it mentions a specific version of GCC that exhibits this
13752 bug.
13753
fb316966
MK
137542004-01-03 Mark Kettenis <kettenis@gnu.org>
13755
200cc553
MK
13756 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13757 structure that has a single `float' member, store it in %f1 in
13758 addition to %f0.
13759
e226a4a0
MK
13760 * sparc-sol2-nat.c: Add missing '\'.
13761
b9d4c5ed
MK
13762 * sparc-tdep.c (sparc32_return_value): New function.
13763 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13764 Remove functions.
13765 (sparc32_gdbarch_init): Set return_value, don't set
13766 extract_return_value, store_return_value, use_struct_convention
13767 and return_value_on_stack.
13768
fb316966
MK
13769 * sparc-sol2-nat.c: Add missing ')'.
13770
1af510a8
JB
137712004-01-03 J. Brobecker <brobecker@gnat.com>
13772
13773 * infrun.c (handle_step_into_function): New function.
13774 (handle_inferior_event): Extract out some code into the new
13775 function above.
13776
5cf4d23a
JB
137772004-01-03 J. Brobecker <brobecker@gnat.com>
13778
13779 * infrun.c (handle_inferior_event): Move the declaration of
13780 real_stop_pc inside the if blocks where it is used.
13781
60af1db2
MK
137822004-01-03 Mark Kettenis <kettenis@gnu.org>
13783
13784 * sparc64-tdep.c (sparc64_16_byte_align_p)
13785 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13786 Use check_typedef to get subtypes of structures and unions.
13787 (sparc64_store_return_value): Fix calculation of the appropriate
13788 offset into VALBUF when storing a structure or union.
13789 (sparc64_return_value): New function.
13790 (sparc64_use_struct_convention): Remove function.
13791 (sparc64_init_abi): Set return_value, don't set
13792 extract_return_value, store_return_value and
13793 use_struct_convention.
13794
1a901d3f
EZ
137952004-01-03 Eli Zaretskii <eliz@elta.co.il>
13796
13797 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13798 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13799 gdb/config/alpha/xm-alphaosf.h,
13800 gdb/config/powerpc/tm-ppcle-eabi.h,
13801 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13802 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13803 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13804 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13805 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13806 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13807 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13808 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13809 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13810 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13811 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13812 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13813 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13814 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13815 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13816 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13817 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13818 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13819 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13820 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13821 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13822 Remove lines for .cvsignore files.
13823
ef52e463
JB
138242004-01-03 J. Brobecker <brobecker@gnat.com>
13825
13826 * infrun.c: Back out the previous change.
13827
cb1bf9dc
MK
138282004-01-03 Mark Kettenis <kettenis@gnu.org>
13829
f0424ef6
MK
13830 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13831 sparc-*-sunos4* to the list of REMOVED configurations.
13832
cb1bf9dc
MK
13833 * configure.tgt: Add back sparc-*-vxworks*.
13834 * remote-vxsparc.c: Remove all includes except for "defs.h",
13835 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13836 Include "sparc-tdep.h".
13837 (SPARC_R_G1): New define.
13838 (vxsparc_gregset): New variable.
13839 (ext_format_sparc): Remove extern declaration.
13840 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13841 sparc32_supply_fpregset.
13842 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13843 sparc_collect_rwindow and sparc32_collect_fpregset.
13844 * config/sparc/tm-vxworks.h: New file, based on recently removed
13845 tm-vxsparc.h.
13846 * config/sparc/vxworks.mt: New file, based on recently removed
13847 vxworks.mt.
fe61caab 13848
5e938f9f
JB
138492004-01-03 J. Brobecker <brobecker@gnat.com>
13850
13851 * infrun.c (handle_step_into_function): New function.
13852 (handle_inferior_event): Extract out some code into the new
13853 function above.
13854
386c036b
MK
138552004-01-02 Mark Kettenis <kettenis@gnu.org>
13856
13857 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13858 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13859 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13860 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13861 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13862 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13863 (sparc_nat_h): New variable.
13864 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13865 (tm-sun4os4.h): Remove dependency.
13866 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13867 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13868 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13869 sparc-tdep.o): Update dependencies.
13870 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13871 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13872 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13873 dependencies.
13874 * configure.host: Remove existing sparc-*-lynxos*,
13875 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13876 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13877 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13878 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13879 triplets.
13880 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13881 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13882 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13883 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13884 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13885 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13886 sparc64-*-solaris2* and sparc64-*-* triplets.
13887 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13888 "symtab.h" and "objfiles.h".
13889 (BIAS): Remove define.
13890 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13891 (X_DISP19): Remove macros.
13892 (sparc_fetch_instruction): Remove function.
13893 (struct gdbarch_tdep): Remove definition.
13894 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13895 (sparc_breakpoint_from_pc): Remove function.
13896 (struct sparc64_frame_cache): Remove definition.
13897 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13898 sparc64_unwind_pc): Remove functions.
13899 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13900 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13901 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13902 (sparc64_frame_cache): Change return type to `struct
13903 sparc_frame_cache *'. Simply call sparc_frame_cache.
13904 (sparc64_frame_this_id, sparc64_frame_prev_register,
13905 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13906 instead of `struct sparc64_frame_cache.
13907 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13908 sparc_analyze_control_transfer, sparc_software_single_step,
13909 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13910 _initialize_sparc64_tdep): Remove functions.
13911 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13912 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13913 macros.
13914 (sparc64_supply_gregset, sparc64_collect_gregset,
13915 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13916 (sparc64_init_abi): New function.
13917 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13918 inclusion guard. Include "sparc-tdep.h".
13919 (BIAS): Define.
13920 (r_tstate_offset, r_fprs_offset): New defines.
13921 (enum sparc_regnum): Remove defenition.
13922 (enum sparc64_regnum): Reformat.
13923 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13924 (sparc64_init_abi, sparc64_supply_gregset,
13925 sparc64_collect_gregset, sparc64_supply_fpregset,
13926 sparc64_collect_fpregset): New prototypes.
13927 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13928 Add extern declarations.
13929 (sparc64_sol2_init_abi): New prototype.
13930 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13931 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13932 prototypes.
13933 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13934 "sparnbsd-nat.h".
13935 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13936 functions.
13937 (_initialize_sparc64fbsd_nat): Remove initialization of
13938 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13939 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13940 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13941 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13942 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13943 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13944 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13945 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13946 (sparc64fbsd_r_y_offset): Remove variables.
13947 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13948 Make static and const.
13949 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13950 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13951 functions.
13952 (sparc64fbsd_gregset): New variable.
13953 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13954 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13955 and sparc64_supply_fpregset.
13956 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13957 (sparc64fbsd_sigtramp_frame_this_id)
13958 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13959 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13960 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13961 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13962 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13963 * sparcnbsd-tdep.c: Update copyright year. Include
13964 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13965 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13966 "value.h" and "sparcnbsd-tdep.h".
13967 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13968 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13969 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13970 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13971 defines.
13972 (sparcnbsd_gregset): New variable.
13973 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13974 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13975 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13976 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13977 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13978 variables.
13979 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13980 (sparc32nbsd_sigcontext_frame_this_id)
13981 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13982 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13983 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13984 (sparcnbsd_get_longjmp_target_32,
13985 sparcnbsd_get_longjmp_target_64): Remove functions.
13986 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13987 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13988 sparcnbsd_init_elf): Remove.
13989 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13990 (sparcnbsd_elf_init_abi): New functions.
13991 (_initialize_sparcnbsd_tdep): New prototype.
13992 (_initialize_sparnbsd_tdep): Update.
13993 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13994 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13995 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13996 * config/sparc/linux.mh: Update comment.
13997 (XM_FILE, HOST_IPC): Remove variables.
13998 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13999 sparc-linux-nat.o.
14000 * config/sparc/linux.mt: Update comment.
14001 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14002 * config/sparc/nbsd.mt: Reformat.
14003 * config/sparc/nbsd64.mh: Update comment.
14004 (NATDEPFILES): Add sparc-nat.o.
14005 * config/sparc/nbsd64.mt: Update comment.
14006 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14007 (TM_FILE): Set to tm-nbsd.h.
14008 * config/sparc/nbsdelf.mh: Update comment.
14009 (NATDEPFILES): Add sparc-nat.o.
14010 (XM_FILE): Delete.
14011 * config/sparc/nbsdaout.mh: Update comment.
14012 (NATDEPFILES): Add sparc-nat.o
14013 (XM_FILE): Delete.
14014 * config/sparc/nm-linux.h: Update copyright year. Don't include
14015 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14016 inclusion.
14017 (KERNEL_U_SIZE): Remove define.
14018 (kernel_u_size): Remove prototype.
14019 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14020 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14021 "regcache.h".
14022 (CHILD_PREPARE_TO_STORE): Remove define.
14023 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14024 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14025 sparcnbsd-nat.c: Rewrite files.
14026 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14027 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14028 sparcnbsd-tdep.h: Remove files.
14029 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14030 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14031 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14032 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14033 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14034 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14035 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14036 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14037 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14038 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14039 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14040 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14041 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14042 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14043 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14044 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14045 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14046 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14047 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14048
ee84457a
AC
140492004-01-02 Andrew Cagney <cagney@redhat.com>
14050
14051 From 2003-12-18 Kazuhiro Inaoka:
14052 * configure.host: Add m32r-linux target.
14053
0bc2134e
MC
140542004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14055
14056 * top.c (print_gdb_version): Update year to 2004.
14057
89a72f9c
MM
140582004-01-02 Mark Mitchell <mark@codesourcery.com>
14059
14060 * MAINTAINERS: Add myself to the write-after-approval category.
14061
86b013ed
DJ
140622004-01-02 Daniel Jacobowitz <drow@mvista.com>
14063
14064 From Bernardo Innocenti <bernie@develer.com>:
14065 * configure.tgt: Add uClinux target.
14066
e42c9534
AC
140672004-01-02 Andrew Cagney <cagney@redhat.com>
14068
14069 * utils.c (do_my_cleanups): Make static, add forward declaration.
14070 * defs.h (do_my_cleanups): Delete declaration.
14071
162467d3
EZ
140722004-01-02 Eli Zaretskii <eliz@elta.co.il>
14073
14074 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14075 bfd/ChangeLog-0203.
14076
78434e59
MK
140772004-01-02 Mark Kettenis <kettenis@gnu.org>
14078
14079 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14080 in <machine/reg.h>.
14081 * configure, config.in: Regenerate.
14082
48efe704
AC
14083For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14084tui/ChangeLog-1998-2003.
c906108c
SS
14085\f
14086Local Variables:
14087mode: change-log
14088left-margin: 8
14089fill-column: 74
14090version-control: never
14091End:
This page took 1.275911 seconds and 4 git commands to generate.