2004-11-09 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
00a4c844
AC
12004-11-09 Andrew Cagney <cagney@gnu.org>
2
3 * value.h (struct value): Delete field bfd_section.
4 (VALUE_BFD_SECTION): Delete macro.
5 (COERCE_REF): Update.
6 (value_at, value_at_lazy): Delete asection parameter.
7 * printcmd.c (print_formatted, x_command): Update.
8 (do_examine): Delete asection parameter.
9 (next_section): Delete variable.
10 * valops.c (value_cast, value_at, value_at_lazy)
11 (value_coerce_function, value_addr, value_ind, value_string)
12 (find_rt_vbase_offset, value_full_object): Update.
13 * hpacc-abi.c (hpacc_virtual_fn_field)
14 (hpacc_value_rtti_type): Update.
15 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
16 (gnuv3_baseclass_offset): Update.
17 * f-valprint.c (f_val_print): Update.
18 * c-valprint.c (c_val_print): Update.
19 * p-valprint.c (pascal_val_print): Update.
20 * jv-valprint.c (java_value_print): Update.
21 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
22 * ada-lang.c (ada_value_primitive_packed_val)
23 (ada_evaluate_subexp): Update.
24 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
25 * expprint.c (print_subexp_standard): Update.
26 * infcall.c (call_function_by_hand): Update.
27 * valarith.c (value_add): Update.
28 * eval.c (evaluate_subexp_standard): Update.
29 * values.c (allocate_value, value_copy, value_static_field): Update.
30 * findvar.c (read_var_value, locate_var_value): Update.
31
5cb2fe25
AC
322004-11-09 Andrew Cagney <cagney@gnu.org>
33
34 * i386-linux-tdep.c: Include "dwarf2-frame.h".
35 * Makefile.in: Update all dependencies.
36
cbafadeb
AC
372004-11-08 Andrew Cagney <cagney@gnu.org>
38
39 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
40 (sentinel_frame_unwinder): Add the prev_pc method.
41 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
42 available. Do not handle the sentinel-frame case.
43 * frame-unwind.h (frame_prev_register_ftype): Define.
44 (struct frame_unwind): Add prev_pc;
45
3b78cdbb
DA
462004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
47
48 * configure.in: Check for ncurses/term.h.
49 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
50 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
51 * tui/tui.c: Don't include term.h.
52 * configure, config.in: Rebuilt.
53
bcfca652
MK
542004-11-08 Mark Kettenis <kettenis@gnu.org>
55
56 * m68kbsd-nat.c: Include "inf-ptrace.h".
57 (_initialize_m68kbsd_nat): Fix pasto.
58 * Makefile.in (m68kbsd-nat.o): Update dependencies.
59
527159b7
RC
602004-11-08 Randolph Chung <tausq@debian.org>
61
62 * infrun.c (debug_infrun): New variable.
63 (resume, proceed, wait_for_inferior): Annotate with debug messages.
64 (handle_inferior_event, keep_going): Likewise.
65 (_initialize_infrun): Register "set debug infrun" command.
66
c874c7fc
AS
672004-11-08 Andreas Schwab <schwab@suse.de>
68
69 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
70 PTRACE_EVENT_VFORKDONE.
71 (child_follow_fork): Adjust.
72
3c8fa307
AC
732004-11-08 Andrew Cagney <cagney@gnu.org>
74
5c26072a
AC
75 * README: Refer to 6.3, not 6.2, update directory listing droppng
76 references to intl/ and mmalloc/.
77 * PROBLEMS: Refer to 6.3 not 6.2.
78
3c8fa307
AC
79 * PROBLEMS: Delete no-longer applicable problems.
80
12b8a2cb
DJ
812004-11-07 Andrew Cagney <cagney@redhat.com>
82 Daniel Jacobowitz <dan@debian.org>
83 Roland McGrath <roland@redhat.com>
84
85 * Makefile.in (symfile-mem.o): Update dependencies.
86 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
87 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
88 * inf-ptrace.c (inf_ptrace_attach): Call
89 observer_notify_inferior_created.
90 * inftarg.c (child_attach): Likewise.
91 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
92 (symbol_file_add_from_memory): Take NAME argument. Use it for
93 the new BFD's filename.
94 (add_symbol_file_from_memory_command): Update call to
95 symbol_file_add_from_memory.
96 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
97 (symbol_file_add_from_memory_wrapper): New.
98 (_initialize_symfile_mem): Register add_vsyscall_page as an
99 inferior_created observer.
100
abbc6945
MK
1012004-11-07 Mark Kettenis <kettenis@gnu.org>
102
103 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
104 fetch_inferior_registers. Make static.
105 (m68kbsd_store_inferior_registers): Rename from
106 store_inferior_registers. Make static.
107 (_initialize_m68kbsd_nat): Construct and add target vector.
108 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
109 inftarg.o. Add inf-ptrace.o.
110 (NAT_FILE): Set to tm-solib.h.
111 (LOADLIBES): New variable.
112 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
113 inftarg.o. Add inf-ptrace.o.
114 (NAT_FILE): Delete variable.
115 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
116 inftarg.o. Add inf-ptrace.o.
117 (NAT_FILE): Set to tm-solib.h.
118 * config/m68k/nm-nbsdaout.h: Remove file.
119
3ed09a32
DJ
1202004-11-07 Daniel Jacobowitz <dan@debian.org>
121
122 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
123 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
124 (dwarf2_signal_frame_unwind): New.
125 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
126 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
127
8e763687
MK
1282004-11-07 Mark Kettenis <kettenis@gnu.org>
129
4fb31ed0
MK
130 * Makefile.in (mips64obsd-tdep.o): Fix typo.
131
fabe86c8
MK
132 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
133 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
134 to only include the structure members we actually need.
135 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
136 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
137 only include the structure members we actually need.
138 (mipsnbsd_init_abi): Update.
139
366e93e8
MK
140 * mips64obsd-nat.c: Include "mips-tdep.h".
141 (MIPS64OBSD_NUM_REGS): Remove define.
142 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
143 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
144 floating-point registers correctly.
145 * Makefile.in (mips64obsd-nat.o): Update dependencies.
146
8e763687
MK
147 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
148 "gdb_assert.h".
149 (mips64obsd_sigframe_init): New function.
150 (mips64obsd_sigframe): New variable.
151 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
152 unwinder.
153 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
154
5f6a2351
JB
1552004-11-06 Joel Brobecker <brobecker@gnat.com>
156
157 * alpha-mdebug-tdep.c: #include mdebugread.h.
158 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
159 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
160
f059bf6f
AC
1612004-11-05 Andrew Cagney <cagney@gnu.org>
162
163 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
164 CFI and the init_reg method leave the register unspecified.
165 Include the register name in the "Incomplete CFI data" complaint.
166 Supress leading zeros in the address.
167
1234d960
MK
1682004-11-05 Mark Kettenis <kettenis@gnu.org>
169
170 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
171 skipping a personality routine in a CIE augmentation.
172
d75e3c94
JJ
1732004-11-05 Jeff Johnston <jjohnstn@redhat.com>
174
175 * defs.h (fatal, vfatal): New function prototypes.
176 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
177 via catch_errors.
178 (backtrace_command): Change to call backtrace_command_stub via
179 catch_errors instead of calling backtrace_command_1 directly.
180 (backtrace_full_command): Ditto.
181 * utils.c (error_stream_1): New static function.
182 (verror): Change to call error_stream_1 instead of error_stream.
183 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
184 (vfatal, fatal): New functions.
185
98f276a0
AC
1862004-11-05 Andrew Cagney <cagney@gnu.org>
187
188 * stack.c (parse_frame_specification_1): Clear selected_frame_p
189 when not using selected frame.
190
f724bf08
MK
1912004-11-05 Mark Kettenis <kettenis@jive.nl>
192
193 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
194 personality routine in a CIE augmentation.
195
c789492a
FL
1962004-11-05 Felix Lee <felix+log1@specifixinc.com>
197
198 * stack.c (set_current_sal_from_frame): New function.
199 (print_args_stub): Use it.
200 (print_frame_info): Don't set sal here.
201
a81b10ae
MK
2022004-11-04 Mark Kettenis <kettenis@gnu.org>
203
204 * dwarf2-frame.c (read_encoded_value): Change type of third
205 argument to `unsigned char *'. Add support for LEB128 encodings.
206
ad766c0a
JB
2072004-11-04 Jim Blandy <jimb@redhat.com>
208
209 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
210 prevent cross-objfile references.
211 (make_cv_type): Doc fix. Don't create cross-objfile references,
212 even for stub types.
213 (replace_type): Add assertion to prevent cross-objfile references.
214 (check_typedef): Never resolve a stub type by copying over a type
215 from another file.
216
c46b0409 2172004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 218
c46b0409
KI
219 * Makefile.in (m32r-tdep.o): Update dependencies.
220 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
221 ABI-specific overrides.
222
9f0b0322 2232004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 224
9f0b0322
KI
225 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
226 unnecessary parallel execution bit.
227 (m32r_memory_remove_breakpoint): Ditto.
228 (m32r_breakpoint_from_pc): Update.
229
d5c27f81
RC
2302004-11-03 Randolph Chung <tausq@debian.org>
231
232 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 233 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
234 (hppa_frame_this_id): Likewise.
235
4577593c
AC
2362004-11-03 Andrew Cagney <cagney@gnu.org>
237
238 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
239 packet, obsolete configurations, end-of-life deprecated_registers.
240
b04de778
MK
2412004-11-02 Mark Kettenis <kettenis@gnu.org>
242
243 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
244 encodings as well as unsigned encodings.
245
9f2feefc
AC
2462004-11-02 Andrew Cagney <cagney@gnu.org>
247
248 * value.h (COERCE_VARYING_ARRAY): Delete.
249 * valops.c (value_cast, value_slice): Delete use.
250 * valarith.c (value_subscript, value_concat): Delete use.
251
117ea3cf
PH
2522004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
253
254 * NEWS: GDB understands GNAT Ada.
255
0bbc026e
JM
2562004-11-01 Joseph S. Myers <joseph@codesourcery.com>
257
258 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
259 (amd64-sol2-tdep.o): Add dependencies.
260 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
261 config/i386/sol2-64.mt: New files.
262 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
263 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
264 (supply_gregset): Correct order of arguments to
265 amd64_supply_native_gregset.
266 (fill_gregset): Correct order of arguments to
267 amd64_collect_native_gregset.
268 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
269 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
270 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
271 for definition of NEW_PROC_API.
272 * configure: Regenerate.
273
3d38a0a5
JM
2742004-11-01 Joseph S. Myers <joseph@codesourcery.com>
275
276 * MAINTAINERS (Write After Approval): Add myself.
277
f81cd1cf
AC
2782004-11-01 Andrew Cagney <cagney@gnu.org>
279
280 * configure.tgt: Mark d10v-*-* as obsolete.
281 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
282
f4e88c8e
PH
2832004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
284
285 * values.c (modify_field): Correct handling of bit-fields that
286 don't fit in 32 bits. Use unsigned operations throughout and
287 simplify the code a bit. Document preconditions.
288
84674fe1
AC
2892004-10-31 Andrew Cagney <cagney@gnu.org>
290
96693b3a
AC
291 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
292 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
293 (in_plt_section): Delete.
294
6f296f8f
AC
295 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
296 (mips_gdbarch_init): Do not set same.
297
618501c0
AC
298 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
299 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
300
b22e8f02
AC
301 * gdbarch.sh (in_solib_call_trampoline): Delete.
302 * gdbarch.h, gdbarch.c: Re-generate.
303
84674fe1
AC
304 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
305 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
306 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
307 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
308 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
309
c6d1029f
MK
3102004-10-31 Mark Kettenis <kettenis@gnu.org>
311
312 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
313 (mipsnbsd_fetch_inferior_registers): Rename from
314 fetch_inferior_registers. Make static.
315 (mipsnbsd_store_inferior_registers): Rename from
316 store_inferior_registers. Make static.
317 (_initialize_mipsnbsd_nat): New function and prototype.
318 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
319 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
320 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
321 inf-ptrace.o.
322
bd9ca83f
AC
3232004-10-31 Andrew Cagney <cagney@gnu.org>
324
19d718a3
AC
325 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
326 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
327 delete corresponding unused function.
328 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
329 in_solib_call_trampoline.
330 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
331 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
332 * config/mips/tm-nbsd.h: Ditto.
333 * config/arm/tm-linux.h: Ditto.
334 * config/mips/tm-linux.h: Ditto.
335
e8ce19c0
AC
336 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
337 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
338 in_solib_call_trampoline, delete corresponding unused function.
339 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
340 (vaxnbsd_aout_init_abi): Ditto.
341 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
342 (sparc32nbsd_aout_init_abi): Ditto.
343 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
344 (ppc_linux_init_abi): Ditto.
345 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
346 (ns32knbsd_init_abi_aout): Ditto.
347 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
348 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
349 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
350 (m68kbsd_aout_init_abi): Ditto.
351 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
352 (i386_cygwin_init_abi): Ditto.
353 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
354 (i386bsd_init_abi): Ditto.
355
af380d61
AC
356 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
357 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
358 isn't used by this architecture.
359 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
360 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
361 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
362 * s390-tdep.c (s390_gdbarch_init): Ditto.
363 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
364 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
365 * i386-tdep.c (i386_svr4_init_abi): Ditto.
366 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
367 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
368 * amd64-tdep.c (amd64_init_abi): Ditto.
369
0528d9f7
AC
370 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
371 in_solib_call_trampoline to its default value of
372 generic_in_solib_call_trampoline.
373 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
374 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
375 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
376 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
377 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
378 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
379
f9f9eacb
AC
380 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
381
a4ffd1e7
AC
382 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
383
82e34d2f
AC
384 * config/mips/tm-mips.h: Delete file.
385 * remote-mips.c: Delete tm-mips.h from comment.
386 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
387 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
388 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
389 * config/mips/tm-linux.h: Don't include tm-mips.h.
390 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
391 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
392 * config/mips/tm-wince.h: Don't include.
393
75dec9cf
AC
394 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
395 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
396 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
397 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
398
bd9ca83f
AC
399 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
400 * mdebugread.c (ecoff_relocate_efi): Delete function.
401 * objfiles.c (objfile_relocate): Delete #ifdef
402 MDEBUG_EFI_SYMBOL_NAME code.
403
3352ef37
AC
4042004-10-31 Orjan Friberg <organ.friberg@axis.com>
405 Andrew Cagney <cagney@gnu.org>
406
407 * gdbarch.sh (single_step_through_delay): Add.
408 * gdbarch.h, gdbarch.c: Re-generate.
409 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
410 (mips_step_skips_delay): Delete.
411 * mips-tdep.c (mips_single_step_through_delay): Replace
412 mips_step_skips_delay.
413 (mips_gdbarch_init): Set single_step_through_delay.
414 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
415
2440b685
MK
4162004-10-31 Mark Kettenis <kettenis@gnu.org>
417
418 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
419 from TRAMP_FRAME frame type.
420
56a2fed5
AC
4212004-10-31 Andrew Cagney <cagney@gnu.org>
422
9b792b1d
AC
423 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
424
0a5e8d98
AC
425 * mips-tdep.c (mips_ignore_helper): Delete.
426 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
427 * infrun.c (handle_inferior_event): Delete #ifdef
428 DEPRECATED_IGNORE_HELPER_CALL code.
429
56a2fed5
AC
430 * config/mips/tm-mips.h (RA_REGNUM): Delete.
431
f69c55b2
MK
4322004-10-31 Mark Kettenis <kettenis@gnu.org>
433
434 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
435 (fill_fpregset): Do not compile for 64-bit systems.
436 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
437 * Makefile.in (i386-sol2-nat.o): Update dependencies.
438 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
439
d37cca3d
AC
4402004-10-30 Andrew Cagney <cagney@gnu.org>
441
36b8628e
AC
442 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
443 (struct mdebug_extra_func_info): Define.
444 * config/alpha/tm-alpha.h: Delete same.
445 * config/mips/tm-mips.h: Delete same.
446 * mdebugread.c: Delete same.
447 * Makefile.in: Update dependencies.
448 * mips-mdebug-tdep.c: Include "mdebugread.h".
449
5b123146
AC
450 * objfiles.c: Include "mdebugread.h".
451 * mdebugread.c: Include "mdebugread.h".
452 (ecoff_relocate_cfi): Delete.
453 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
454 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
455 * mdebugread.h (ecoff_relocate_efi): New file.
456 * Makefile.in: Update dependencies.
457
b9c3a7de
AC
458 * mips-tdep.c (struct frame_extra_info): Delete.
459 (temp_proc_desc): Delete.
460
f92761ec
AC
461 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
462 MIPS_EFI_SYMBOL_NAME.
463 (mips_extra_func_info_t, mips_extra_func_info): Delete.
464 (struct mdebug_extra_func_info): Replace struct
465 alpha_extra_func_info and alpha_extra_func_info_t.
466 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
467 MIPS_EFI_SYMBOL_NAME.
468 (struct mdebug_extra_func_info): Replace struct
469 alpha_extra_func_info and alpha_extra_func_info_t.
470 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
471 * mdebugread.c, alpha-mdebug-tdep.c:
472
0bb57b31
AC
473 Suggested by Mark Kettenis.
474 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
475 fields frame_adjust and high_addr.
476 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
477 (non_heuristic_proc_desc): Delete references.
478
a5c9623c
AC
479 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
480 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
481 * mips-tdep.c: Update.
482
607fc93c
AC
483 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
484 (MIPS_LAST_EMBED_REGNUM): Add.
485 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
486 (LAST_EMBED_REGNUM): Delete.
487 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
488
24e05951
AC
489 * config/mips/tm-mips.h (PS_REGNUM): Delete.
490 * mips-tdep.h (MIPS_PS_REGNUM): Add.
491 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
492 * mips-linux-nat.c: Update.
493
613e114f
AC
494 * mips-tdep.h: Add comments on registers.
495 (MIPS_UNUSED_REGNUM): Define.
496 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
497 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
498 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
499 * mips-linux-nat.c, remote-mips.c: Update.
500
d37cca3d
AC
501 * config/mips/tm-mips.h (t_insn): Delete.
502 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
503 Replace t_insn with ULONGEST.
504
ceb41096
MK
5052004-10-30 Mark Kettenis <kettenis@gnu.org>
506
d1180b0f
MK
507 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
508 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
509 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
510 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
511 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
512 (mipsnbsd_core_osabi_sniffer): New function.
513 (mipsnbsd_init_abi): Set regset_from_core_section.
514 (_initialize_mipsnbsd_tdep): Remove calls to
515 deprecated_add_core_fns.
516 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
517 (mipsnbsd_regset_from_core_section): New functions.
518 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
519 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
520
ceb41096
MK
521 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
522 Remove optimization for DEPRECATED_FP_REGNUM.
523
ec4045ea
AC
5242004-10-30 Andrew Cagney <cagney@gnu.org>
525
cd65c8f6
AC
526 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
527 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
528 (alpha_setup_arbitrary_frame): Delete.
529 * mips-tdep.c (setup_arbitrary_frame): Delete.
530 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
531 (setup_arbitrary_frame): Delete.
532 * stack.c (parse_frame_specification_1): When specified, call
533 create_new_frame with two parameters. Delete #ifdef
534 SETUP_ARBITRARY_FRAME.
535
95ac2dcf
AC
536 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
537 (MIPS_INSTLEN): Delete.
538 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
539 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
540 * remote-mips.c, mips-tdep.c: Update.
541
1a8da44d
AC
542 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
543 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
544 * mips-tdep.c (mips_mdebug_frame_cache)
545 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
546 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
547 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
548 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
549 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
550 (mips_gdbarch_init): Do not append mdebug sniffers.
551 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
552 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
553 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
554 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
555 * Makefile.in: Update dependencies.
556
e6bc2e8a
AC
557 * mips-tdep.h (mips_abi_regsize): Declare.
558 * mips-tdep.c (mips_abi_regsize): Make non-static.
559
ec4045ea
AC
560 * mips-tdep.c (gdb_print_insn_mips): Simplify.
561 (make_mips16_addr): Delete.
e6bc2e8a 562
6b16acab
MK
5632004-10-30 Mark Kettenis <kettenis@gnu.org>
564
565 * i386-sol2-nat.c: New file.
566 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
567 i386-sol2-tdep.c.
568 (i386-sol2-nat.o): Update dependencies.
569 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
570 i386-sol2-nat.o.
571
8b622e6a
AC
5722004-10-30 Andrew Cagney <cagney@gnu.org>
573
574 Total breakage identified by Joel Brobecker.
575 * mips-tdep.c (after_prologue): Delete.
576 (mips_skip_prologue): Use skip_prologue_using_sal.
577 (heuristic_proc_desc): Delete, unused.
578
772cf8be
MK
5792004-10-30 Mark Kettenis <kettenis@gnu.org>
580
581 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
582 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
583 Cleanup coding style.
584
9c8fdbfa
AC
5852004-10-30 Andrew Cagney <cagney@gnu.org>
586
0fe7e7c8
AC
587 * mips-tdep.h (mips_pc_is_mips16): Declare.
588 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
589 non-static. Update calls.
590
1b295c3d
AC
591 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
592 * command.h (add_setshow_enum_cmd): Declare.
593 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
594
6bcadd06
AC
595 * mips-tdep.c (_initialize_mips_tdep): Use
596 add_setshow_zinteger_cmd.
597
9c8fdbfa
AC
598 * mips-tdep.c (mips_eabi_extract_return_value)
599 (mips_o64_extract_return_value, mips_o64_store_return_value)
600 (return_value_location, mips_eabi_reg_struct_has_addr)
601 (mips_eabi_use_struct_convention)
602 (mips_eabi_store_return_value): Delete.
603 (mips_eabi_store_return_value): New function.
604 (mips_eabi_return_value): New function.
605 (mips_gdbarch_init): For O64 and EABI, delete
606 extract_return_value, store_return_value, use_struct_convention
607 and reg_struct_has_addr, add return_value.
608
1d93fe1a
AC
609 * mips-tdep.c (read_signed_register): Use
610 regcache_cooked_read_signed.
611
303d2914
MK
6122004-10-30 Mark Kettenis <kettenis@gnu.org>
613
614 * mipsread.c: Cleanup coding style.
615 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
616 (mipscoff_symfile_finish): Remove prototypes.
617
6182004-10-29 Mark Kettenis <kettenis@gnu.org>
619
620 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
621 (mips_mdebug_frame_cache, mips16_scan_prologue)
622 (mips32_scan_prologue, mips_stub_frame_cache)
623 (heuristic_proc_start, heuristic_proc_desc)
624 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
625 (mips_n32n64_return_value, mips_o32_push_dummy_call)
626 (mips_o32_return_value, mips_o64_push_dummy_call)
627 (mips_step_skips_delay, mips_skip_trampoline_code)
628 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
629 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
630 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
631 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
632 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
633 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
634 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
635 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
636 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
637 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
638 ZERO_REGNUM.
639 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
640 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
641 ZERO_REGNUM.
642 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
643 A0_REGNUM.
644 * mipsnbsd-nat.c: Include "mips-tdep.h".
645 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
646 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
647
1c8831c5
AC
6482004-10-29 Andrew Cagney <cagney@gnu.org>
649
650 * stack.c (parse_frame_specification_1): New function based on
651 parse_frame_specification. Add message and selected_frame_p
652 paramters. Truely always return non-NULL.
653 (parse_frame_specification): Call parse_frame_specification_1.
654 (frame_info): Update. Eliminate target_has_stack check.
655 (select_frame_command): Update.
656
b04f3ab4
AC
6572004-10-29 Andrew Cagney <cagney@gnu.org>
658
659 * frame.h (get_selected_frame): Add message parameter.
660 * frame.c (get_selected_frame): Add and use message parameter.
661 * stack.c (current_frame_command, return_command, locals_info)
662 (catch_info, args_info, up_silently_base, down_silently_base): Use
663 get_selected_frame with an explicit message.
664 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
665 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
666 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
667 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
668 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
669 * breakpoint.c: Update.
670
6712004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
672
673 * trad-frame.c (trad_frame_get_prev_register): Use
674 frame_unwind_register instead of frame_register_unwind, do not
675 recurse the register's location.
676 * xstormy16-tdep.c (xstormy16_frame_prev_register):
677 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
678 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
679 * sh-tdep.c (sh_frame_prev_register): Ditto.
680 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
681 * i386-tdep.c (i386_frame_prev_register): Ditto.
682 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
683 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
684
7a952542
MK
6852004-10-28 Mark Kettenis <kettenis@jive.nl>
686
c18c06be
MK
687 * proc-events.c: Fix several coding-style issues. Consistently
688 use #ifdef instead of #if defined().
689 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
690 ARRAY_SIZE.
691 (_initialize_proc_events): New prototype.
692
7a952542
MK
693 * proc-why.c: Fix several coding-style issues.
694 (proc_prettyfprint_why): Use ARRAY_SIZE.
695
fcad0fa4
JB
6962004-10-27 Jim Blandy <jimb@redhat.com>
697
698 * remote.c (fetch_register_using_p): Construct 'p' packet in a
699 manner independent of the host byte order.
700
c163184f
MK
7012004-10-27 Mark Kettenis <kettenis@gnu.org>
702
703 * mips-tdep.c (id_delayed): Remove prototype.
704
9c46b6f0
MK
7052004-10-26 Mark Kettenis <kettenis@gnu.org>
706
707 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
708 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
709 to enum with register numbers.
710 (enum mips_insn_size): New enum.
711
0d0266c6
AC
7122004-10-26 Andrew Cagney <cagney@gnu.org>
713
e7d6a6d2
AC
714 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
715 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
716 (mips_gdbarch_init): Update.
717 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
718
c5115f39
AC
719 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
720 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
721 IN_SOLIB_RETURN_TRAMPOLINE.
722 * mips-tdep.c (mips_dump_tdep): Do not print
723 IN_SOLIB_RETURN_TRAMPOLINE.
724 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
725 (mips_gdbarch_init): Update.
726
0d0266c6
AC
727 * mips-tdep.h (mips_software_single_step): Move to here ...
728 * config/mips/tm-mips.h: ... from here.
729 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
730 (SOFTWARE_SINGLE_STEP): Delete.
731 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
732
156a53ca
AC
7332004-10-25 Andrew Cagney <cagney@gnu.org>
734
735 * NEWS: Add Changes since GDB 6.3 section.
736
f27cf670
AS
7372004-10-23 Andreas Schwab <schwab@suse.de>
738
156a53ca
AC
739 * ada-lang.c (grow_vect): Return the new array instead of
740 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
741 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
742
121d8485
UW
7432004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
744
745 * s390-tdep.c (enum pv_boolean): Remove.
746 (pv_is_array_ref): Remove.
747 (s390_on_stack): Remove.
748 (S390_NUM_SPILL_SLOTS): Remove.
749 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
750 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
751 (s390_store): Track all stores of orginal incoming registers to the
752 stack constant offsets relative to the CFA, instead of only tracking
753 stores into specific spill slots.
754 (s390_load): Likewise.
755 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
756 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
757 defined as call-saved by the ABI.
758 (s390_push_dummy_call): Use bottom of dummy call argument save area
759 as return value, not the top. Do not store to the called function's
760 register save area.
761 (s390_unwind_dummy_id): Adapt accordingly.
762
0a6ddd08
AC
7632004-10-23 Andrew Cagney <cagney@gnu.org>
764
765 * objfiles.h (struct objfile): Rename obj_private to
766 deprecated_obj_private, sym_private to deprecated_sym_private, and
767 sym_stab_info to deprecated_sym_stab_info.
768 * gdb-stabs.h: Update.
769 * elfread.c: Update.
770 * dbxread.c: Update.
771 * coffread.c: Update.
772 * xcoffread.c: Update.
773 * symfile.c: Update.
774 * somread.c: Update.
775 * nlmread.c: Update.
776 * mdebugread.c: Update.
777 * hpread.c: Update.
778 * coffread.c: Update.
779
abc08782
MK
7802004-10-23 Mark Kettenis <kettenis@gnu.org>
781
782 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
783 * configure.host: Add mips64*-*-openbsd*.
784 * configure.tgt: Add mips64*-*-openbsd*.
785 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
786 mips64obsd-tdep.c.
787 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
788 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
789
fc062ac6
JB
7902004-10-21 Joel Brobecker <brobecker@gnat.com>
791
792 * symtab.c (symbol_search_name): Minor reformatting.
793
5bccb4d1
JB
7942004-10-20 Joel Brobecker <brobecker@gnat.com>
795
796 * symtab.h: Fix typo in comment.
797
a738430d
MK
7982004-10-19 Mark Kettenis <kettenis@gnu.org>
799
800 * dwarf2read.c (struct comp_unit_head): Fix coding style.
801 (dwarf_decode_line_header): Likewise.
802
f2cb65ca
MC
8032004-10-19 Michael Chastain <mec.gnu@mindspring.com>
804
805 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
806
09e55376
AC
8072004-10-19 Andrew Cagney <cagney@gnu.org>
808
809 GDB 6.3 branch created.
810 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
811
bc5f45f8
JB
8122004-10-15 Joel Brobecker <brobecker@gnat.com>
813
814 * dwarf2read.c (set_cu_language): Set language to Ada for
815 DW_LANG_Ada83 and DW_LANG_Ada95.
816
2941da8c
MC
8172004-10-15 Michael Chastain <mec.gnu@mindspring.com>
818
819 From Andreas Schwab <schwab@suse.de>:
820 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
821 for xmalloc and xrealloc.
822
34a17005
AC
8232004-10-15 Andrew Cagney <cagney@gnu.org>
824
825 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
826 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
827 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
828 Update dependencies.
829
714e53ab
PH
8302004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
831
832 * ada-lang.c (ada_lookup_symbol): Correct comment.
833 (ada_evaluate_subexp): Change error message for
834 OP_FUNCALL case so as not to indicate an internal error.
835
8362004-10-15 Joel Brobecker <brobecker@gnat.com>
837
838 Committed by Paul Hilfinger.
839 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
840 type sizes in XVE/XVU types, and emit a warning when that happens,
841 instead of rounding up the size of the resulting type.
842 Some minor reformatting.
843 (ada_is_aligner_type): Do not consider a type as an aligner type
844 if there is a corresponding XVS type as well.
845 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
846 have several levels of pointer indirection to the array.
847
8482004-10-15 Jerome Guitton <guitton@gnat.com>
849
850 Committed by Paul Hilfinger.
851 * ada-lang.c (check_size): New function.
852 (coerce_unspec_val_to_type): call check_size to make sure
853 that the object size is reasonable.
854 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
855 Implements the case when we get a reference when we evaluate
856 the expression of one of the bounds of the slice.
857 (ada_value_struct_elt): when a packed array field is
858 a reference, use ada_coerce_ref to dereference it; use
859 ada_value_ind only if it is a pointer.
860
29639122
JB
8612004-10-15 Joel Brobecker <brobecker@gnat.com>
862
863 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
864 a bit to avoid the necessity of an advance declaration. Remove
865 declaration.
866 (set_reg_offset): Move implemenation up.
867 (mips16_get_imm): Likewise.
868 (mips16_scan_prologue): Likewise.
869 (reset_saved_regs): Likewise.
870 (mips32_scan_prologue): Likewise.
871
a65bbe44
JB
8722004-10-14 Joel Brobecker <brobecker@gnat.com>
873
874 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
875 Remove sp as a parameter, compute it internally instead. Move
876 prologue scanning limit from heuristic_proc_desc to here.
877 (mips16_scan_prologue): Likewise.
878 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
879 by call to mips16_scan_prologue.
880 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
881 by call to mips32_scan_prologue.
882 (heuristic_proc_desc): Remove code that's no longer necessary.
883 Update calls to mips16_scan_prologue and mips32_scan_prologue.
884 (mips_skip_prologue): Update calls to mips16_scan_prologue
885 and mips32_scan_prologue.
886
1c645fec
JB
8872004-10-14 Joel Brobecker <brobecker@gnat.com>
888
889 * mips-tdep.c (mips16_scan_prologue): Merge code from
890 mips16_skip_prologue. Now return the address of the first
891 instruction past the function prologue.
892 (mips16_skip_prologue): Remove, no longer necessary.
893 (mips_skip_prologue): Replace call to mips16_skip_prologue
894 by call to mips16_scan_prologue.
895
98b4dd94
JB
8962004-10-14 Joel Brobecker <brobecker@gnat.com>
897
898 * mips-tdep.c (mips32_scan_prologue): Merge code from
899 mips32_skip_prologue. Now return the address of the first
900 instruction past the function prologue.
901 (mips32_skip_prologue): Remove. No longer necessary.
902 (mips16_skip_prologue): Add parameter end_pc instead of
903 computing it.
904 (mips_skip_prologue): Compute the upper limit for the
905 prologue scanning. Update call to mips16_skip_prologue.
906 Replace call to mips32_skip_prologue by call to
907 mips32_scan_prologue.
908
ad4c72d2
MK
9092004-10-14 Mark Kettenis <kettenis@gnu.org>
910
dfaf8edb
MK
911 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
912 NetBSD system call stubs that store %rp in the ERP slot of the
913 stack frame.
914
3e3a28f1
MK
915 * source.c: Always define O_BINARY to 0 if not defined already.
916 (openp): Unconditionally use O_BINARY.
917
ad4c72d2
MK
918 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
919 * event-top.c (gdb_readline2): Likewise.
920
52bd1401
OF
9212004-10-14 Orjan Friberg <orjanf@axis.com>
922
923 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
924 deprecated_add_core_fns which was removed by mistake.
925
e0e25c6c
KB
9262004-10-13 Kevin Buettner <kevinb@redhat.com>
927
928 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
929 references to deprecated_registers[] with equivalent code.
930
9f335945
KB
9312004-10-13 Kevin Buettner <kevinb@redhat.com>
932
933 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
934 ``deprecated_registers'' with equivalent code. Use gdb_assert()
935 instead of explicit test and print statement.
936
06c2338d
MK
9372004-10-12 Mark Kettenis <kettenis@gnu.org>
938
1b9445c2
MK
939 * sparc-nat.c: Include "inf-ptrace.h".
940 (sparc_target): New function.
941 * sparc-nat.h: Update copyright year.
942 (sparc_target): New prototype.
943 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
944 (_initialize_sparcnbsd_nat): Construct and add target vector.
945 * sparc64nbsd-nat.c: Include "target.h".
946 (_initialize_sparc64nbsd_nat): Construct and add target vector.
947 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
948 Update dependencies.
949 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
950 inftarg.o, add inf-ptrace.o.
951 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
952 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
953 (NAT_FILE): Set to nm-bsd.h.
954 (LOADLIBES): New variable.
955 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
956 infarg.o, add inf-ptrace.o.
957 * config/sparc/nm-nbsdaout.h: Remove file.
958 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
959 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
960 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
961
06c2338d
MK
962 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
963 "fopen-same.h". Update comment.
964
3303a276
MK
9652004-10-11 Mark Kettenis <kettenis@gnu.org>
966
967 * i386gnu-nat.c: Include "gdb_string.h".
968 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
969 registers when the floating-point state isn't initialized.
970 * Makefile.in (i386gnu-nat.o): Update dependencies.
971
04c663e3
DA
9722004-10-11 David Anderson <davea@sgi.com>
973
974 * regcache.c (regcache_raw_read): Comment was missing "to".
975 Extraneous ' removed.
976 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
977 comment now describes use.
978
a5f6c8f5
OF
9792004-10-11 Orjan Friberg <orjanf@axis.com>
980
981 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
982 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
983 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
984 (cris_sigtramp_frame_sniffer): New functions.
985 (cris_gdbarch_init): Hook in signal trampoline unwinder.
986 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
987 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
988 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
989 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
990 command.
991 (cris_version_update): Remove, replace with ...
992 (set_cris_version): New function.
993 (struct gdbarch_tdep, cris_mode, cris_mode_update)
994 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
995 (_initialize_cris_tdep): Remove CRIS mode command.
996 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
997 cris-fpless-backtrace command.
998 (cris_scan_prologue): Fix prologue scanning limit.
999 (cris_register_type): Update to reflect actual registers.
1000 (cris_register_bytes_ok) Remove.
1001 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1002 Remove set_gdbarch_deprecated_register_size,
1003 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1004
77109804
AC
10052004-10-10 Andrew Cagney <cagney@gnu.org>
1006
1007 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1008 comment.
1009
25652d4f
JB
10102004-10-10 Joel Brobecker <brobecker@gnat.com>
1011
1012 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1013
1e05a7bf
JB
10142004-10-10 Joel Brobecker <brobecker@gnat.com>
1015
1016 * mips-tdep.c (mips16_scan_prologue): Renames
1017 mips16_heuristic_proc_desc. Update comment.
1018 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1019 (heuristic_proc_desc): Update calls to the 2 functions above.
1020
c68a4142
JB
10212004-10-10 Joel Brobecker <brobecker@gnat.com>
1022
1023 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1024 Update comments. Also immediately return empty cache when the start
1025 address of our function could not be found.
1026 (mips_insn32_frame_cache): Likewise.
1027
0fce0821
JB
10282004-10-10 Joel Brobecker <brobecker@gnat.com>
1029
1030 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1031 (mips_insn16_frame_cache): Pass frame cache in call to
1032 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1033 Remove code that became redundant as a consequence.
1034 (mips32_heuristic_proc_desc): No longer compute a fake
1035 procedure descriptor. Compute the full frame cache instead.
1036 Some minor comment reformatting.
1037
b672553e
JB
10382004-10-10 Jim Blandy <jimb@redhat.com>
1039
1040 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1041 reader, tracing bytecode stuff): Remove self.
1042
9cc52bde
MK
10432004-10-10 Mark Kettenis <kettenis@gnu.org>
1044
cc9784b6
MK
1045 * sparc64-linux-tdep.c: Update copyright year. Don't include
1046 "solib-svr4.h".
1047 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1048 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1049 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1050
ee8aef23
MK
1051 * sparc-linux-tdep.c: Update copyright year.
1052 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1053 to struct frame_info *. Use safe_frame_unwind_memory instead of
1054 deprecated_read_memory_nobpt.
1055 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1056 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1057 changed signature of sparc_linux_sigtramp_start.
1058 (sparc32_linux_pc_in_sigtramp): Remove function.
1059 (sparc32_linux_sigtramp_p): New function.
1060 (sparc32_linux_sigtramp_frame_sniffer): Use
1061 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1062
bc73f8cc
MK
1063 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1064 Remove function.
1065 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1066
a2249542
MK
1067 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1068 (decode_packed_array_type, value_subscript_packed)
1069 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1070 argument in call to lim_warning.
1071
9cc52bde
MK
1072 * configure.in: Really disable the TUI if an enhanced curses
1073 library isn't found.
1074 * configure: Regenerate.
1075
151fc45b
MK
10762004-10-09 Mark Kettenis <kettenis@gnu.org>
1077
1078 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1079 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1080 * config/i386/nm-nbsdaout.h: Remove file.
1081 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1082 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1083 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1084 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1085 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1086 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1087 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1088 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1089 (ldd, ld_un, ld_2): Remove defines.
1090 * config/i386/nm-obsd.h: Likewise.
1091
375c0479
PH
10922004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1093
1094 * ada-lex.l: Remove useless rule whose right-context clause
1095 causes unreferenced static function warning for yyrealloc.
1096 (ada_flex_use): Remove the artificial reference to yyrealloc.
1097
c8e73a31
AC
10982004-10-08 Andrew Cagney <cagney@gnu.org>
1099
1100 * target.h (struct target_ops): Rename to_xfer_memory to
1101 deprecated_xfer_memory.
1102 * target.c: Update.
1103 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1104 * wince.c: Update.
1105 * win32-nat.c: Update.
1106 * v850ice.c: Update.
1107 * uw-thread.c: Update.
1108 * thread-db.c: Update.
1109 * sol-thread.c: Update.
1110 * remote.c: Update.
1111 * remote-vx.c: Update.
1112 * remote-st.c: Update.
1113 * remote-sim.c: Update.
1114 * remote-sds.c: Update.
1115 * remote-rdp.c: Update.
1116 * remote-rdi.c: Update.
1117 * remote-mips.c: Update.
1118 * remote-m32r-sdi.c: Update.
1119 * remote-e7000.c: Update.
1120 * procfs.c: Update.
1121 * ppc-bdm.c: Update.
1122 * nto-procfs.c: Update.
1123 * monitor.c: Update.
1124 * linux-nat.c: Update.
1125 * inftarg.c: Update.
1126 * hpux-thread.c: Update.
1127 * go32-nat.c: Update.
1128 * gnu-nat.c: Update.
1129 * exec.c: Update.
1130 * corelow.c: Update.
1131 * bsd-kvm.c: Update.
1132 * aix-thread.c: Update.
1133
aa869812
AC
11342004-10-08 Andrew Cagney <cagney@gnu.org>
1135
1136 * target.c (debug_target): Move to near start of file.
1137 (target_stopped_data_address_p): Re-org logic, add casts.
1138
8dcef9cf
MK
11392004-10-02 Mark Kettenis <kettenis@gnu.org>
1140
1141 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1142 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1143 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1144 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1145 New defines.
1146
4aa7a7f5
JJ
11472004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1148
1149 * target.h (to_stopped_data_address): Change prototype to
1150 take a CORE_ADDR pointer and return an int.
1151 * target.c (update_current_target): Change to_stopped_data_address
1152 to match new prototype.
1153 (debug_to_stopped_data_address): Change appropriately.
1154 * breakpoint.c (bpstat_stop_status): Change call to
1155 target_stopped_data_address to use new prototype.
1156 * frv-tdep.c (frv_have_stopped_data_address): New function.
1157 (frv_stopped_data_address): Change to new prototype and
1158 functionality.
1159 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1160 prototype and functionality.
1161 (ia64_stopped_by_watchpoint): New function.
1162 * i386-nat.c (i386_stopped_data_address): Change to new
1163 prototype and functionality.
1164 (i386_stopped_by_watchpoint): New function.
1165 * remote.c (remote_stopped_data_address): Change to new prototype
1166 and functionality.
1167 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1168 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1169 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1170 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1171 new i386_stopped_by_watchpoint function.
1172 (i386_stopped_by_watchpoint): New prototype.
1173 (i386_stoppped_data_address): Change to new prototype.
1174 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1175 new ia64_stopped_by_watchpoint function.
1176 (ia64_stopped_by_watchpoint): New prototype.
1177 (ia64_stopped_data_address): Ditto.
1178
61ee279c
PH
11792004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1180
1181 * ada-typeprint.c (ada_print_type): Use int_string for printing
1182 modulus of modular type.
1183 * ada-lang.h (ada_modulus): Change return type to unsigned.
1184 * ada-lang.c (ada_language_arch_info): Correct type of
1185 string_char_type.
1186 (ada_modulus): Return unsigned result.
1187 (ada_lookup_symbol): Remove user disambiguation and modify comment
1188 accordingly.
1189
11902004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1191
1192 Committed by Paul Hilfinger.
1193 * ada-lang.c (decode_packed_array): On big-endian targets,
1194 left-justify the value if it comes with a modular type.
1195
11962004-10-08 Joel Brobecker <brobecker@gnat.com>
1197
1198 Committed by Paul Hilfinger.
1199 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1200 (is_name_suffix): Add support for "___JM" suffixes.
1201 (ada_check_typedef): Renames ada_completed_type.
1202 Update all users of CHECK_TYPEDEF, check_typedef, and
1203 ada_complete_type to call ada_check_typedef.
1204 * ada-typeprint.c: Likewise.
1205 * ada-valprint.c: Likewise.
1206
b6c25a56
CV
12072004-10-08 Corinna Vinschen <vinschen@redhat.com>
1208
1209 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1210
83ca6a46
NR
12112004-10-08 Nick Roberts <nickrob@snap.net.nz>
1212
1213 * MAINTAINERS: Update e-mail address.
1214
1fd8cd20
DJ
12152004-10-07 Daniel Jacobowitz <dan@debian.org>
1216
1217 From Maciej W. Rozycki <macro@mips.com>:
1218 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1219 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1220
cea15572
KI
12212004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1222
1223 * m32r-tdep.c (decode_prologue): Support functions written
1224 in assembler language. Recognize trap instructions as the
1225 end of prologue.
1226 (m32r_frame_unwind_cache): Ditto.
1227 (m32r_skip_prologue): Extend search limit. Quit analyzing
1228 prologue if pc's location is not readable.
1229
23485554
PH
12302004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1231
1232 * Makefile.in (.l.c): Do conversions of names of alloc and free
1233 functions that are done for .y.c files, plus special one
1234 for yy_flex_realloc. Also, correct missing-file tests here.
1235 * ada-lex.l (malloc, free): Remove macros.
1236 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1237 xrealloc.
1238 (ada_flex_use): Dummy definition to remove warnings about unused
1239 functions.
1240 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1241 to suppress warning.
1242
c0409442
CV
12432004-10-06 Corinna Vinschen <vinschen@redhat.com>
1244
1245 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1246 RETURN_VALUE.
1247 (sh_return_value_fpu): Ditto for CPUs with FPU.
1248 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1249 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1250 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1251 RETURN_VALUE functions.
1252
9bed62d7
CV
12532004-10-06 Corinna Vinschen <vinschen@redhat.com>
1254
1255 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1256 (sh_pseudo_register_write): Ditto.
1257
03131d99
CV
12582004-10-06 Corinna Vinschen <vinschen@redhat.com>
1259
1260 * sh-tdep.c (IS_MACL_STS): New define.
1261 (IS_MOVI20): Ditto.
1262 (IS_MACL_LDS): Ditto.
1263 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1264 instructions in prologue.
1265 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1266 instructions in epilogue.
1267
da962468
CV
12682004-10-06 Corinna Vinschen <vinschen@redhat.com>
1269
1270 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1271 (sh_sh_register_name): Add eight empty register names.
1272 (sh_sh3_register_name): Ditto.
1273 (sh_sh3e_register_name): Ditto.
1274 (sh_sh2e_register_name): Ditto.
1275 (sh_sh2a_register_name): New function, defining SH2A register set.
1276 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1277 in nofpu case.
1278 (sh_sh_dsp_register_name): Add eight empty register names.
1279 (sh_sh3_dsp_register_name): Ditto.
1280 (sh_sh4_register_name): Ditto.
1281 (sh_sh4_nofpu_register_name): Ditto.
1282 (sh_sh4al_dsp_register_name): Ditto.
1283 (sh2a_show_regs): New function.
1284 (sh2a_nofpu_show_regs): New function.
1285 (sh_sh2a_register_type): New function.
1286 (do_bank_register_info): New function.
1287 (sh_print_pseudo_register): Call do_bank_register_info.
1288 Call sh_print_pseudo_register for valid "bank" register.
1289 (sh_sh2a_register_sim_regno): New function.
1290 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1291 Increment pseudo register count by one for all sh variants with
1292 pseudo registers to accomodate pseudo bank register.
1293 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1294 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1295 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1296 Increment pseudo register numbers.
1297
1326e61b
CV
12982004-10-06 Corinna Vinschen <vinschen@redhat.com>
1299
1300 * dwarf2read.c (read_subroutine_type): Call make_function_type
1301 instead of lookup_function_type.
1302
146c42e3
JB
13032004-10-05 Jim Blandy <jimb@redhat.com>
1304
1305 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1306 (Previous change missed some uses.)
1307
1df84f13
AC
13082004-10-05 Andrew Cagney <cagney@gnu.org>
1309
1310 * target.h (deprecated_child_ops): Rename child_ops.
1311 * wince.c: Update copyright. Rename child_ops.
1312 * win32-nat.c: Rename child_ops.
1313 * target.c: Rename child_ops.
1314 * rs6000-nat.c: Rename child_ops.
1315 * linux-nat.c: Rename child_ops.
1316 * infttrace.c: Rename child_ops.
1317 * inftarg.c: Rename child_ops.
1318 * infptrace.c: Rename child_ops.
1319 * hppah-nat.c: Update copyright. Rename child_ops.
1320 * hpux-thread.c: Update copyright. Rename child_ops.
1321
21e3b9b9
DJ
13222004-10-05 Daniel Jacobowitz <dan@debian.org>
1323
1324 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1325
de83afe7
AC
13262004-10-05 Andrew Cagney <cagney@gnu.org>
1327
1328 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1329
10b3939b
DJ
13302004-10-05 Daniel Jacobowitz <dan@debian.org>
1331
1332 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1333 (die_ref_table): Remove.
1334 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1335 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1336 the usage of this type.
1337 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1338 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1339 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1340 (dwarf2_create_include_psymtab): Update comment.
1341 (find_partial_die): Remove third argument. Remove unreachable call
1342 to error ().
1343 (dwarf2_find_containing_comp_unit): Update comments. Change one
1344 assertion to an error. Remove an unreachable error.
1345 (dwarf2_find_comp_unit): Update comments.
1346 (type_at_offset): Remove dead code.
1347 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1348 (store_in_ref_table): Add CU argument.
1349 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1350 inter-compilation-unit references.
1351 (load_full_comp_unit, process_full_comp_unit): New functions, based
1352 on psymtab_to_symtab_1.
1353 (psymtab_to_symtab_1): Use them.
1354 (dwarf2_add_dependence): New function.
1355 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1356 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1357 (partial_die_parent_scope, guess_structure_name): Update for changes
1358 to find_partial_die.
1359 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1360 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1361 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1362 (read_die_and_children): Update call to store_in_ref_table.
1363 (do_free_die_list_cleanup): Remove.
1364 (fixup_partial_die): Update for changes to find_partial_die.
1365 (read_full_die): Handle queueing absolute references.
1366 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1367 (dwarf2_attr, die_specification, die_type)
1368 (die_containing_type, dwarf2_extension): Update calls to
1369 follow_die_ref.
1370 (dump_die): Update DW_FORM_ref* handling.
1371 (dwarf2_get_ref_die_offset): Likewise.
1372 (free_one_comp_unit): Release the dies list.
1373 (dwarf2_mark_helper): New function.
1374 (dwarf2_mark): Use it.
1375
998bdd68
MK
13762004-10-05 Mark Kettenis <kettenis@jive.nl>
1377
1378 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1379 when writing to memory.
1380
14588880
KI
13812004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1382
1383 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1384 (m32r_extract_struct_value_address): Delete function.
1385 (m32r_return_value): New function.
1386 (m32r_gdbarch_init): Instead of store_return_value,
1387 extract_return_value, deprecated_extract_struct_value_address
1388 and deprecated_use_struct_convention, set return_value.
1389
dd5e6932
DJ
13902004-10-03 Daniel Jacobowitz <dan@debian.org>
1391
1392 * dwarf2read.c (read_subrange_type): Add comment for variable
1393 sized arrays.
1394
7dc1ef8d
PH
13952004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1396
1397 * Makefile.in (.l.c): Modify rule for compatibility with recent
1398 versions of flex, and remove most command-line options.
1399 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1400 options.
1401
1f8173e6
PH
14022004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1403
1404 Turn on initial Ada support (mainly expression evaluation).
1405
1406 * Makefile.in (SFILES): Remove ada-tasks.c.
1407 (HFILES_NO_SRCDIR): Add ada-lang.h.
1408 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1409 (YYOBJ): Add ada-exp.o.
1410 (rule .l.c): Generalize to not mention ada.
1411 * symtab.c: Include ada-lang.h.
1412 (symbol_natural_name, symbol_demangled_name)
1413 (symbol_search_name): Add Ada case.
1414
cb85a953
AC
14152004-10-01 Andrew Cagney <cagney@gnu.org>
1416
3f3db248
AC
1417 * Makefile.in (COMMON_OBS): Add inf-child.o.
1418 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1419 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1420 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1421 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1422 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1423 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1424 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1425 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1426 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1427 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1428 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1429 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1430 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1431
cb85a953
AC
1432 * target.c (xfer_using_stratum): Change return type to LONGEST.
1433 On each iteration offset, readbuf and writebuf.
1434 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1435 partial_length, and read/modify/write predicate, update comments.
1436 Pass buffer.word to ptrace write.
1437
963a6417
PH
14382004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1439
1440 * symfile.c (init_filename_language_table): Add extensions for
1441 Ada.
1442 * defs.h (enum language): Add language_ada.
1443 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1444 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1445 (add_symbols_from_enclosing_procs): Make a no-op for now.
1446 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1447 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1448 (find_line_in_linetable, find_next_line_in_linetable)
1449 (read_all_symtabs, is_plausible_func_for_line)
1450 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1451 (is_runtime_sym_defined, check_size): Remove declaration.
1452 (function_name_from_pc, ada_translate_error_message)
1453 (ada_lookup_minimal_symbol): Remove definition.
1454 (ada_add_block_symbols): Remove useless label.
1455 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1456 useless declaration.
1457 (ada_is_exception_sym): Likewise.
1458
9b32d526
KI
14592004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1460
1461 Add m32r-linux support.
1462 * configure.tgt: Add m32r*-*-linux*.
1463 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1464 and m32r-linux-tdep.c.
1465 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1466 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1467 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1468 m32r-linux-tdep.c.
1469 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1470 config/m32r/linux.mh, config/m32r/linux.mt,
1471 config/m32r/nm-linux.h: New files.
1472
2de118d3
JB
14732004-09-30 Joel Brobecker <brobecker@gnat.com>
1474
1475 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1476 (mips32_fetch_instruction): Remove, unused.
1477
a9fe69d1
JB
14782004-09-30 Joel Brobecker <brobecker@gnat.com>
1479
1480 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1481 conditions that will always be true.
1482
bc8ffc12
MK
14832004-09-30 Mark Kettenis <kettenis@gnu.org>
1484
ba0cd111
MK
1485 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1486 (vaxbsd_fetch_inferior_registers): Rename from
1487 fetch_inferior_registers. Make static.
1488 (vaxbsd_store_inferior_registers): Rename from
1489 store_inferior_registers. Make static.
1490 (_initialize_vaxbsd_nat): Construct and add target vector.
1491 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1492 inftarg.o. Add inf-child.o and inf-ptrace.o.
1493 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1494 inftarg.o. Add inf-child.o and inf-ptrace.o.
1495 (NAT_FILE): Remove.
1496 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1497 inftarg.o. Add inf-child.o and inf-ptrace.o.
1498 (NAT_FILE): Remove.
1499 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1500
bc8ffc12
MK
1501 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1502 (m88kbsd_fetch_inferior_registers): Rename from
1503 fetch_inferior_registers. Make static.
1504 (m88kbsd_store_inferior_registers): Rename from
1505 store_inferior_registers. Make static.
1506 (_initialize_m88kbsd_nat): New prototype and function.
1507 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1508 inftarg.o. Add inf-child.o and inf-ptrace.o.
1509 (NAT_FILE): Remove.
1510 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1511
27394598
AC
15122004-09-30 Andrew Cagney <cagney@gnu.org>
1513
1514 * target.c (target_xfer_partial): New function.
1515 (target_read_memory_partial, target_write_memory_partial)
1516 (default_xfer_partial, target_read_partial, target_write_partial)
1517 (xfer_using_stratum): Use.
1518 (debug_to_xfer_partial): Delete function.
1519 (setup_target_debug): Do not override to_xfer_partial.
1520
74a4fe32
MK
15212004-09-30 Mark Kettenis <kettenis@chello.nl>
1522
1523 * fork-child.c: Update copyright year. Fix coding style.
1524
982526a1
MK
15252004-09-29 Mark Kettenis <kettenis@gnu.org>
1526
1527 * defs.h (msavestring, mstrsave): Remove prototypes.
1528 * utils.c (msavestring, mstrsave): Remove functions.
1529 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1530 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1531 of mstrsave.
1532 * source.c (find_and_open_source): Use xstrdup instead of
1533 mstrsave.
1534
b8eb5af0
AC
15352004-09-30 Andrew Cagney <cagney@gnu.org>
1536
0779438d
AC
1537 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1538 (inf_ptrace_xfer_memory): Delete.
1539 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1540 (target_read_memory, target_write_memory): Use xfer_using_stratum
1541 when target_xfer_partial_p.
1542 (debug_target): Move to start of file.
1543 (target_read_memory_partial, target_write_memory_partial): Use
1544 to_xfer_partial when target_xfer_partial_p.
1545
f929a579
AC
1546 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1547 inf_ptrace_xfer_memory with equivalent code.
1548 * inftarg.c (child_xfer_partial): When performing a write, pass
1549 writebuf to child_xfer_memory.
1550
b8eb5af0
AC
1551 * target.c (target_read_string): Use target_read_memory instead of
1552 target_xfer_memory.
1553
ee21b650
AC
15542004-09-29 Andrew Cagney <cagney@gnu.org>
1555
d3e05d0d
AC
1556 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1557 the address of status.
1558
ee21b650
AC
1559 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1560 (kill_inferior): Inline ptrace_wait call.
1561 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1562 * inftarg.c (child_wait): Inline ptrace_wait call.
1563
a182eed6
AC
1564 * target.h (struct target_ops): Delete field to_post_wait.
1565 (target_post_wait): Delete macro.
1566 (child_post_wait): Delete declaration.
1567 * target.c (update_current_target, update_current_target)
1568 (debug_to_post_wait, setup_target_debug): Delete functions and
1569 references.
1570 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1571 * inftarg.c (child_post_wait): Delete.
1572 (init_child_ops): Do not set to_post_wait.
1573 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1574 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1575 * inf-child.c (inf_child_post_wait): Delete.
1576 (inf_child_target): Do not set to_post_wait.
1577 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1578 (inf_ptrace_target): Do not set to_post_wait.
1579
ba0c540b
AC
1580 * wince.c (child_ops): Delete.
1581 * win32-nat.c (child_ops): Delete.
1582
81977402
AC
1583 * inftarg.c (inftarg_set_find_memory_regions)
1584 (inftarg_set_make_corefile_notes): Delete functions.
1585 (_initialize_linux_nat): Inline calls.
1586
5ac10fd1
AC
1587 * target.h (child_ops): Declare.
1588 * inftarg.c (child_ops): Move from here ...
1589 * target.c (child_ops): ... to here.
1590 * wince.c (child_ops): Delete extern declaration.
1591 * win32-nat.c (child_ops): Delete extern declaration.
1592 * linux-nat.c (child_ops): Delete extern declaration.
1593 * hpux-thread.c (child_ops): Delete extern declaration.
1594
663408c2 15952004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1596
1597 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1598
0dad8a66
MK
15992004-09-28 Mark Kettenis <kettenis@gnu.org>
1600
1601 * configure.in: Only set host_makefile_frag when building a native
1602 debugger.
1603 * configure: Regenerate.
e8d74ed3
MK
1604
1605 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1606 for OpenBSD ELF.
1607
dba24537
AC
16082004-09-28 Andrew Cagney <cagney@gnu.org>
1609
e979516b
AC
1610 Problem identified by Paul Hilfinger.
1611 * Makefile.in (ada_lex_c): Define.
1612 (ada-lex.o): Delete rule.
1613
dba24537
AC
1614 * linux-proc.c: Delete file.
1615 * Makefile.in: Update.
1616 * config/sparc/linux64.mh (NATDEPFILES):
1617 * config/sparc/linux.mh (NATDEPFILES): Update.
1618 * config/s390/s390.mh (NATDEPFILES): Update.
1619 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1620 * config/powerpc/linux.mh (NATDEPFILES): Update.
1621 * config/pa/linux.mh (NATDEPFILES): Update.
1622 * config/mips/linux.mh (NATDEPFILES): Update.
1623 * config/m68k/linux.mh (NATDEPFILES): Update.
1624 * config/ia64/linux.mh (NATDEPFILES): Update.
1625 * config/i386/linux64.mh (NATDEPFILES): Update.
1626 * config/i386/linux.mh (NATDEPFILES): Update.
1627 * config/arm/linux.mh (NATDEPFILES): Update.
1628 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1629 * linux-nat.c: Update copyright. Include <sys/param.h>,
1630 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1631 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1632 (O_LARGEFILE): Possibly define.
1633 (_initialize_linux_nat, linux_proc_pending_signals)
1634 (add_line_to_sigset, linux_proc_xfer_memory)
1635 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1636 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1637 (struct linux_corefile_thread_data)
1638 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1639 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1640
d6b0e80f
AC
16412004-09-16 Andrew Cagney <cagney@gnu.org>
1642
1643 * lin-lwp.c: Delete file.
1644 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1645 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1646 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1647 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1648 (linux_nat_attach, detach_callback, linux_nat_detach)
1649 (resume_callback, resume_clear_callback, linux_nat_resume)
1650 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1651 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1652 (status_callback, running_callback, count_events_callback)
1653 (select_singlestep_lwp_callback, select_event_lwp_callback)
1654 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1655 (child_wait, stop_and_resume_callback, linux_nat_wait)
1656 (kill_callback, kill_wait_callback, linux_nat_kill)
1657 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1658 (linux_nat_xfer_memory, linux_nat_thread_alive)
1659 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1660 (_initialize_linux_nat): New functions.
1661 * Makefile.in: Update all dependencies.
1662 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1663 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1664 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1665 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1666 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1667 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1668 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1669 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1670 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1671 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1672 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1673 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1674 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1675
5a174d79
MK
16762004-09-27 Mark Kettenis <kettenis@gnu.org>
1677
2f604c28
MK
1678 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1679 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1680
5a174d79
MK
1681 * configure.in: Don't comment out NATDEPFILES in the generated
1682 Makefile if NAT_FILE is unset.
1683 * configure: Regenerate.
1684
b2ed1746
AC
16852004-09-27 Andrew Cagney <cagney@gnu.org>
1686
44cbf7b5
AC
1687 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1688 (insert_step_resume_breakpoint): Delete.
1689 (insert_step_resume_breakpoint_at_frame): New function.
1690 (insert_step_resume_breakpoint_at_sal): New function.
1691 (handle_inferior_event, step_into_function)
1692 (insert_step_resume_breakpoint): Simplify by using same.
1693
b2ed1746
AC
1694 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1695
3691b3be
MK
16962004-09-26 Mark Kettenis <kettenis@gnu.org>
1697
36f391e8
MK
1698 * fbsd-proc.c: Remove file.
1699 * Makefile.in (fbsd-proc.o): Remove dependency.
1700
771e236c
MK
1701 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1702 code together.
1703
3691b3be
MK
1704 * config/i386/nm-fbsd64.h: Remove file.
1705 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1706
6a5c78a3
MK
17072004-09-26 Mark Kettenis <kettenis@gnu.org>
1708
1709 * amd64-nat.h: Update copyright year.
1710 (amd64bsd_target): New prototype.
1711 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1712 (amd64bsd_target): New function.
1713 (amd64bsd_fetch_inferior_registers): Rename from
1714 fetch_inferior_registers. Make static.
1715 (amd64bsd_store_inferior_registers): Rename from
1716 store_inferior_registers. Make static.
1717 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1718 (_initialize_amd64fbsd_nat): Construct and add target vector.
1719 * amd64nbsd-nat.o: Include "target.h".
1720 (_initialize_amd64nbsd_nat): Construct and add target vector.
1721 * amd64obsd-nat.c: Include "target.h".
1722 (_initialize_amd64obsd_nat): Construct and add target vector.
1723 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1724 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1725 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1726 fbsd-nat.o.
1727 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1728 Remove infptrace.o and inftarg.o. Add inf-child.o and
1729 inf-ptrace.o.
1730 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1731 (amd64obsd-nat.o): Update dependencies.
1732
27acbe61
MK
17332004-09-25 Mark Kettenis <kettenis@gnu.org>
1734
509a5e7d
MK
1735 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1736 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1737 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1738 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1739 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1740
6e1e94ea
MK
1741 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1742 Inline attach call.
1743 (inf_ptrace_detach): Inline detach call.
1744
8b9cf735
MK
1745 * configure.in: Check for waddstr instead of mvwaddstr when
1746 searching for curses library. Check for wborder.
1747 * configure, config.in: Regenerate.
1748 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1749 available.
1750
27acbe61
MK
1751 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1752
b96ec7ac
AC
17532004-09-24 Robert Picco <Robert.Picco@hp.com>
1754
1755 Committed by Andrew Cagney.
1756 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1757 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1758 configuration.
1759 (fetch_register_using_p): Implement 'p' packet. Based on code by
1760 Fernando Nasser.
1761 (remote_fetch_registers): Call fetch_register_using_p.
1762 (init_all_packet_configs, show_remote_cmd)
1763 (_initialize_remote): Add p-packet.
1764
62ece330
MK
17652004-09-24 Mark Kettenis <kettenis@gnu.org>
1766
1767 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1768 instead of call_ptrace. Call wait directly instead of
1769 ptrace_wait.
1770 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1771 (inf_ptrace_wait): Inline ptrace_wait call.
1772
00937274
PH
17732004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1774
1775 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1776 rolled back instead.
1777
3f2c7a45
PH
17782004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1779
1780 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1781 the new argument order.
1782
b6fcb393
CV
17832004-09-23 Corinna Vinschen <vinschen@redhat.com>
1784
1785 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1786 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1787 (struct gdbarch_tdep): Remove.
1788 (struct xstormy16_frame_cache): New frame cache structure.
1789 (xstormy16_register_byte, xstormy16_register_raw_size)
1790 (xstormy16_reg_virtual_type, xstormy16_register_type)
1791 (xstormy16_push_arguments, xstormy16_push_return_address)
1792 (xstormy16_pop_frame, xstormy16_store_struct_return)
1793 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1794 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1795 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1796 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1797 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1798 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1799 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1800 (xstormy16_extract_return_value, xstormy16_store_return_value):
1801 Regcachify. Drop useless struct convention handling.
1802 (xstormy16_register_type, xstormy16_return_value)
1803 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1804 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1805 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1806 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1807 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1808 (xstormy16_unwind_dummy_id) : New functions.
1809 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1810 of xstormy16_scan_prologue.
1811 (xstormy16_frame_unwind): New frame_unwind structure.
1812 (xstormy16_frame_base): New frame_base structure.
1813 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1814 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1815
1285b746
MK
18162004-09-22 Mark Kettenis <kettenis@gnu.org>
1817
1818 * language.c (language_gdbarch_post_init): Fix off-by one error.
1819
1c379e20
DJ
18202004-09-21 Daniel Jacobowitz <dan@debian.org>
1821
1822 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1823 (struct dwarf2_offset_and_type): New.
1824 (set_die_type, reset_die_and_siblings_types, get_die_type)
1825 (offset_and_type_hash, offset_and_type_eq): New functions.
1826 (read_structure_type, read_enumeration_type, read_array_type)
1827 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1828 (read_tag_reference_type, read_tag_const_type)
1829 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1830 (read_typedef, read_base_type, read_subrange_type): Use
1831 set_die_type.
1832
ae038cb0
DJ
18332004-09-20 Daniel Jacobowitz <dan@debian.org>
1834
1835 * Makefile.in (dwarf2read.o): Update dependencies.
1836 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1837 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1838 and read_in_chain.
1839 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1840 mark, and has_form_ref_addr.
1841 (struct dwarf2_per_cu_data): New.
1842 (dwarf2_max_cache_age): New.
1843 (dwarf2_build_psymtabs_hard): Free cached compilation units
1844 after loading. Create and manage the list of compilation units.
1845 Remove unnecessary NULL initialization. Fix indentation.
1846 (psymtab_to_symtab_1): Initialize all of CU.
1847 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1848 (find_partial_die): Use dwarf2_find_containing_comp_unit
1849 and load_comp_unit.
1850 (free_stack_comp_unit): Update comments. Clear the per-cu
1851 pointer. Handle aging.
1852 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1853 (age_cached_comp_units, free_one_cached_comp_unit)
1854 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1855 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1856 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1857 (show_dwarf2_cmd): New.
1858 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1859 and "maint show dwarf2 max-cache-age".
1860 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1861 externs.
1862 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1863 global.
1864
987504bb
JJ
18652004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1866
1867 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1868 and dwarf2_cu struct pointer as arguments. Change function to use
1869 obstack if provided and use dwarf2_cu to determine language-specific
1870 separator.
1871 (partial_die_parent_scope): Change comment to include java. Use
1872 new version of typename_concat instead of obconcat.
1873 (partial_die_full_name): Use typename_concat.
1874 (read_namespace): Ditto.
1875 (read_enumeration_type): Use typename_concat instead of obconcat.
1876 (new_symbol): Ditto.
1877 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1878 (guess_structure_name): Ditto.
1879 (read_subroutine_type): Ditto.
1880 (read_structure_type): Ditto.
1881 (is_vtable_name): Add Java support.
1882 (determine_class_name): Switch to new typename_concat call.
1883 (determine_prefix): Switch to new typename_concat call.
1884 * jv-exp.y (FuncStart): New pattern.
1885 (MethodInvocation): Add support for simple function calls. Change
1886 warning message for other forms of inferior call currently not
1887 supported.
1888 * valarith.c (value_subscript): Treat an array with upper-bound
1889 of -1 as unknown size.
1890
d9c8471e
DJ
18912004-09-20 Daniel Jacobowitz <dan@debian.org>
1892
1893 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1894 (lookup_partial_symtab): Use symtab_to_fullname.
1895
d73f140a
JB
18962004-09-19 Jim Blandy <jimb@redhat.com>
1897
1898 * minsyms.c (lookup_minimal_symbol): Doc fix.
1899
adbef1f0
AC
19002004-09-20 Andrew Cagney <cagney@gnu.org>
1901
1902 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1903 CHILD_RESUME.
1904 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1905 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1906 KILL_INFERIOR.
1907 * infptrace.c: Update.
1908
d092d1a2
DJ
19092004-09-19 Daniel Jacobowitz <dan@debian.org>
1910
1911 * symtab.c (output_source_filename): Mark first argument as const.
1912 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1913 for "info sources" output.
1914
86d9e1d7
MK
19152004-09-20 Mark Kettenis <kettenis@gnu.org>
1916
1917 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1918 <machine/vmparam.h>.
1919 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1920 (register_u_addr): Remove prototype.
1921
9a6c8ef4
MK
19222004-09-19 Mark Kettenis <kettenis@gnu.org>
1923
9692934b
MK
1924 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1925 (i386bsd_fetch_inferior_registers): Rename from
1926 fetch_inferior_registers. Make static.
1927 (i386bsd_store_inferior_registers): Rename from
1928 store_inferior_registers. Make static.
1929 (i386bsd_target): New function.
1930 * i386bsd-nat.h: New file.
1931 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1932 "i386bsd-nat.h".
1933 (i386fbsd_resume): Rename from child_resume. Make static.
1934 (_initialize_i386fbsd_nat): Construct and add target vector.
1935 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1936 (_initialize_i386nbsd_nat): Construct and add target vector.
1937 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1938 Remove defines.
1939 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1940 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1941 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1942 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1943 (LOADLIBES): New variable.
1944 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1945 inf-ptrace.o. Remove inftarg.o.
1946 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1947 inf-ptrace.o. Remove inftarg.o.
1948 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1949 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1950 (LOADLIBES): New variable.
1951 * Makefile.in (i386bsd_nat_h): New variable.
1952 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1953 dependencies.
1954
3510d1f2
MK
1955 * sparc64nbsd-tdep.c: Include "objfiles.h".
1956 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1957 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1958 svr4_lp64_fetch_link_map_offsets.
1959 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1960 "nbsd-tdep.h".
1961 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1962 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1963 svr4_lp64_fetch_link_map_offsets.
1964 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1965 dependencies.
1966
578c1c03
MK
1967 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1968 * fbsd-nat.h: New file.
1969 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1970 (fbsd_nat_h): New variable.
1971 (fbsd-nat.o): New dependency.
1972
7a7b73b7
MK
1973 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1974 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1975
9a6c8ef4
MK
1976 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1977 comment.
1978
72d5681a
PH
19792004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1980
1981 * ada-exp.y (type_int): New function to add layer of abstraction
1982 around references to expression types.
1983 (type_long): Ditto.
1984 (type_long_long): Ditto.
1985 (type_float): Ditto.
1986 (type_double): Ditto.
1987 (type_long_double): Ditto.
1988 (type_char): Ditto.
1989 (type_system_address): Ditto.
1990 (simple_exp): Use type_* functions in place of builtin_*
1991 variables.
1992 (exp): Ditto.
1993 (write_var_from_name): Ditto.
1994 (write_object_renaming): Ditto.
1995 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1996 declaration.
1997 (build_ada_types): Remove, replacing with...
1998 (ada_language_arch_info): New function to initialize primitive
1999 type vector in language_arch_info.
2000 (ada_array_length): Remove use of builtin_type_ada_int.
2001 (value_pos_atr): Ditto.
2002 (ada_evaluate_subexp): Ditto.
2003 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2004 builtin_type_ada_long_long, builtin_type_ada_char,
2005 builtin_type_ada_float, builtin_type_ada_double,
2006 builtin_type_ada_long_double, builtin_type_ada_natural,
2007 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2008 (ada_builtin_types): Remove.
2009 (ada_language_defn): Remove entries for la_builtin_type_vector and
2010 string_char_type and use ada_language_arch_info.
2011 (_initialize_ada_language): Do type-vector initialization along
2012 the lines of c-lang.c.
2013 (ada_create_fundamental_type): Break up line.
2014 (ada_dump_symtab): Remove unused function.
2015 (enum ada_primitive_types): Define.
2016 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2017 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2018 builtin_type_ada_float, builtin_type_ada_double,
2019 builtin_type_ada_long_double, builtin_type_ada_natural,
2020 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2021 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2022 (processInt): Ditto.
2023 (processReal): Ditto.
2024 (name_lookup): Ditto.
2025 * ada-typeprint.c (print_range): Use builtin_type_int, not
2026 builtin_type_ada_int.
2027
4f0be353
MK
20282004-09-18 Mark Kettenis <kettenis@gnu.org>
2029
30b0e2d8
MK
2030 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2031
4f0be353
MK
2032 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2033 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2034 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2035 * configure.in: Improve checks for curses library by checking for
2036 mvwaddstr instead of initscr. Drop HP curses in favour of
2037 standard curses on HP-UX.
2038 * configure: Regenerated.
2039
72d5681a 20402004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2041
2042 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2043 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2044 Minor formatting changes.
2045 (empty_array): Slight rewrite for formatting.
2046 (emit_char,parse,ada_language_defn,build_ada_types,
2047 ada_is_exception_sym, _initialize_ada_language): Move
2048 definitions around.
2049 (ada_dump_symtab): Remove unused definition.
2050 (ada_maybe_exception_partial_symbol): Remove unused definition.
2051
1c8c7407
AC
20522004-09-16 Andrew Cagney <cagney@gnu.org>
2053
7681f339
AC
2054 * inf-child.c: Include "gdb_string.h".
2055 (inf_child_core_file_to_sym_file): Delete.
2056 (inf_child_target): Set to_fetch_registers and to_store_registers.
2057 * inf-ptrace.c: Include "gdb_string.h".
2058 * Makefile.in: Update all dependencies.
2059
1c8c7407
AC
2060 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2061 problem.
2062
65596487
JB
20632004-09-14 Joel Brobecker <brobecker@gnat.com>
2064
2065 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2066 call to heuristic_proc_desc. Remove code that became redundant
2067 as a consequence.
2068 (read_next_frame_reg): Remove special case for SP_REGNUM.
2069 (set_reg_offset): Fix small typo.
2070 (reset_saved_regs): New procedure.
2071 (mips32_heuristic_proc_desc): No longer compute a fake
2072 procedure descriptor. Compute the full frame cache instead.
2073 Some minor comment reformatting.
2074
95575b2e
AC
20752004-09-14 Andrew Cagney <cagney@gnu.org>
2076
f200c492
AC
2077 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2078 maintainer.
2079
95575b2e
AC
2080 * thread-db.c (thread_db_new_objfile): Assume that there is a
2081 child process.
2082
69657671
JB
20832004-09-13 Jim Blandy <jimb@redhat.com>
2084
2085 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2086 so that its storage isn't referenced after its lifetime ends.
2087
6c4182dd
JB
2088 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2089 and never assigned to. Delete it, and the 'if (use_buffer)'
2090 clauses. Delete 'raw_buffer', since it is now unused.
2091
ee31a58d
AC
20922004-09-13 Andrew Cagney <cagney@gnu.org>
2093
2c0fc042
AC
2094 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2095 * configure: Re-generate.
2096 * nlm/Makefile.in (TAGS): Update.
2097 * Makefile.in (TAGS): Update.
2098 * config/vax/nbsd.mt (TM_FILE): Update.
2099 * config/sparc/vxworks.mt (TM_FILE): Update.
2100 * config/sparc/sol2.mt (TM_FILE): Update.
2101 * config/sparc/sol2-64.mt (TM_FILE): Update.
2102 * config/sparc/obsd64.mt (TM_FILE): Update.
2103 * config/sparc/obsd.mt (TM_FILE): Update.
2104 * config/sparc/nbsd64.mt (TM_FILE): Update.
2105 * config/sparc/nbsd.mt (TM_FILE): Update.
2106 * config/sparc/linux64.mt (TM_FILE): Update.
2107 * config/sparc/linux.mt (TM_FILE): Update.
2108 * config/sparc/fbsd.mt (TM_FILE): Update.
2109 * config/sh/wince.mt (TM_FILE): Update.
2110 * config/sh/nbsd.mt (TM_FILE): Update.
2111 * config/sh/linux.mt (TM_FILE): Update.
2112 * config/sh/embed.mt (TM_FILE): Update.
2113 * config/s390/s390.mt (TM_FILE): Update.
2114 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2115 * config/rs6000/rs6000.mt (TM_FILE): Update.
2116 * config/rs6000/aix4.mt (TM_FILE): Update.
2117 * config/powerpc/vxworks.mt (TM_FILE): Update.
2118 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2119 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2120 * config/powerpc/obsd.mt (TM_FILE): Update.
2121 * config/powerpc/nbsd.mt (TM_FILE): Update.
2122 * config/powerpc/linux.mt (TM_FILE): Update.
2123 * config/powerpc/aix.mt (TM_FILE): Update.
2124 * config/pa/obsd.mt (TM_FILE): Update.
2125 * config/pa/linux.mt (TM_FILE): Update.
2126 * config/pa/hppahpux.mt (TM_FILE): Update.
2127 * config/pa/hppa64.mt (TM_FILE): Update.
2128 * config/pa/hppa.mt (TM_FILE): Update.
2129 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2130 * config/mips/wince.mt (TM_FILE): Update.
2131 * config/mips/vxmips.mt (TM_FILE): Update.
2132 * config/mips/nbsd.mt (TM_FILE): Update.
2133 * config/mips/linux.mt (TM_FILE): Update.
2134 * config/mips/irix6.mt (TM_FILE): Update.
2135 * config/mips/irix5.mt (TM_FILE): Update.
2136 * config/mips/embed.mt (TM_FILE): Update.
2137 * config/m68k/vxworks68.mt (TM_FILE): Update.
2138 * config/m68k/st2000.mt (TM_FILE): Update.
2139 * config/m68k/os68k.mt (TM_FILE): Update.
2140 * config/m68k/obsd.mt (TM_FILE): Update.
2141 * config/m68k/nbsd.mt (TM_FILE): Update.
2142 * config/m68k/monitor.mt (TM_FILE): Update.
2143 * config/m68k/linux.mt (TM_FILE): Update.
2144 * config/m68k/cisco.mt (TM_FILE): Update.
2145 * config/ia64/linux.mt (TM_FILE): Update.
2146 * config/ia64/aix.mt (TM_FILE): Update.
2147 * config/ia64/ia64.mt (TM_FILE): Update.
2148 * config/i386/vxworks.mt (TM_FILE): Update.
2149 * config/i386/obsd64.mt (TM_FILE): Update.
2150 * config/i386/obsd.mt (TM_FILE): Update.
2151 * config/i386/nto.mt (TM_FILE): Update.
2152 * config/i386/nbsd64.mt (TM_FILE): Update.
2153 * config/i386/nbsd.mt (TM_FILE): Update.
2154 * config/i386/linux64.mt (TM_FILE): Update.
2155 * config/i386/linux.mt (TM_FILE): Update.
2156 * config/i386/i386sol2.mt (TM_FILE): Update.
2157 * config/i386/i386lynx.mt (TM_FILE): Update.
2158 * config/i386/fbsd64.mt (TM_FILE): Update.
2159 * config/i386/fbsd.mt (TM_FILE): Update.
2160 * config/i386/cygwin.mt (TM_FILE): Update.
2161 * config/h8300/h8300.mt (TM_FILE): Update.
2162 * config/frv/frv.mt (TM_FILE): Update.
2163 * config/cris/cris.mt (TM_FILE): Update.
2164 * config/arm/wince.mt (TM_FILE): Update.
2165 * config/arm/nbsd.mt (TM_FILE): Update.
2166 * config/arm/linux.mt (TM_FILE): Update.
2167 * config/arm/embed.mt (TM_FILE): Update.
2168 * config/alpha/nbsd.mt (TM_FILE): Update.
2169 * config/alpha/fbsd.mt (TM_FILE): Update.
2170 * config/alpha/alpha.mt (TM_FILE): Update.
2171 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2172 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2173
362646f5
AC
2174 Eliminate event_loop_p, always has the value 1.
2175 * defs.h (event_loop_p): Delete macro.
2176 * breakpoint.c (until_break_command): Simplify.
2177 * utils.c (prompt_for_continue): Simplify.
2178 * tracepoint.c (read_actions): Simplify.
2179 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2180 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2181 (set_prompt, init_main): Simplify.
2182 (init_signals, disconnect): Delete, unused.
2183 * remote.c (remote_async_resume)
2184 (extended_remote_async_create_inferior): Simplify.
2185 * mi/mi-interp.c (mi_input): Delete, unused.
2186 (mi_interpreter_resume, mi_command_loop): Simplify.
2187 * interps.c (current_interp_command_loop): Simplify.
2188 * infrun.c (proceed): Simplify.
2189 * infcmd.c (run_command, continue_command, step_1, jump_command)
2190 (until_command, advance_command, finish_command)
2191 (interrupt_target_command): Simplify.
2192 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2193
ee31a58d
AC
2194 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2195 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2196 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2197 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2198 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2199 * mips-tdep.c (mips_dump_tdep): Do not print same.
2200
b7ffc4a8
AC
22012004-09-12 Andrew Cagney <cagney@gnu.org>
2202
2bfb72ee
AC
2203 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2204 const.
2205 * Makefile.in (valprint.o): Delete explict rule.
2206
4f17c3c1
AC
2207 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2208 reported by Dave Anderson.
2209
f810308b
AC
2210 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2211
b7ffc4a8
AC
2212 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2213
28b41c52
AC
22142004-09-12 Salvador E. Tropea <set@users.sf.net>
2215 Andrew Cagney <cagney@gnu.org>
2216
2217 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2218 (mi_cmd_data_list_register_values)
2219 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2220 the register number computation.
2221
5bf970f9
AC
22222004-09-12 Andrew Cagney <cagney@gnu.org>
2223
2224 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2225 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2226 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2227 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2228 target.
2229 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2230 inf-ptrace.o and inf-child.o.
2231 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2232 * Makefile.in: Update dependencies.
2233
0759e0bf
AC
22342004-09-11 Andrew Cagney <cagney@gnu.org>
2235
2236 * language.c (hex_string, hex_string_custom): Move from here ...
2237 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2238 (CELLSIZE): Increase to 50.
2239 * language.h (hex_string, hex_string_custom): Move from here ...
2240 * defs.h: ... to here.
2241 * Makefile.in: Update all dependencies.
2242
bb599908
PH
22432004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2244
2245 * language.c (local_hex_format_custom): Remove.
2246 (local_hex_string): Rename to hex_string, use C format, and move to
2247 utils.c
2248 (local_hex_string_custom): Rename to hex_string_custom and change
2249 interface. Now uses C format. Move to utils.c
2250 (local_octal_format_custom): Remove.
2251 (local_decimal_format_custom): Remove.
2252 (unknown_language_defn): Remove language-specific number
2253 formatting entries.
2254 (auto_language_defn): Ditto.
2255 (local_language_defn): Ditto.
2256 * language.h (struct language_format_info): Delete declaration.
2257 (struct language_defn): Remove language_format_info fields
2258 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2259 (local_binary_format): Remove macro.
2260 (local_binary_format_prefix): Remove macro.
2261 (local_binary_format_specifier): Remove macro.
2262 (local_binary_format_suffix): Remove macro.
2263 (local_octal_format): Remove macro.
2264 (local_octal_format_prefix): Remove macro.
2265 (local_octal_format_specifier): Remove macro.
2266 (local_octal_format_suffix): Remove macro.
2267 (local_decimal_format): Remove macro.
2268 (local_decimal_format_prefix): Remove macro.
2269 (local_decimal_format_specifier): Remove macro.
2270 (local_decimal_format_suffix): Remove macro.
2271 (local_hex_format): Remove macro.
2272 (local_hex_format_prefix): Remove macro.
2273 (local_hex_format_specifier): Remove macro.
2274 (local_hex_format_suffix): Remove macro.
2275 (local_decimal_format_custom): Remove.
2276 (local_octal_format_custom): Remove.
2277 (local_hex_format_custom): Remove.
2278 (local_hex_string): Rename to hex_string and move to defs.h.
2279 (local_hex_string_custom): Rename to hex_string_custom, change
2280 interface, and move to defs.h.
2281 * utils.c: (int_string): New function.
2282 (hex_string): New function (from language.c).
2283 (hex_string_custom): New function (from language.c).
2284 (octal2str): New function.
2285 (decimal2str): Add width parameter.
2286 (paddr_u): Use new decimal2str interface.
2287 (paddr_d): Ditto.
2288 * defs.h (hex_string): Declare.
2289 (hex_string_custom): Declare.
2290 (int_string): Declare.
2291 * printcmd.c (print_scalar_formatted): Remove localized binary
2292 formatting.
2293 * valprint.c (print_longest): Use int_string.
2294 (print_floating): Use C hex format.
2295 (print_hex_chars): Ditto.
2296 (print_binary_chars): Remove language-specific formatting.
2297 (print_octal_chars): Use C octal format.
2298 (print_decimal_chars): Delocalize format.
2299 (print_decimal): Remove.
2300 * ada-lang.c (ada_language_defn): Remove language-specific number
2301 formatting entries.
2302 * p-lang.c (pascal_language_defn): Ditto.
2303 * c-lang.c (c_language_defn): Ditto.
2304 (cplus_language_defn): Ditto.
2305 (asm_language_defn): Ditto.
2306 (minimal_language_defn): Ditto.
2307 * f-lang.c (f_language_defn): Ditto.
2308 * jv-lang.c (java_language_defn): Ditto.
2309 * m2-lang.c (m2_language_defn): Ditto.
2310 * scm-lang.c (scm_language_defn): Ditto.
2311 * objc-lang.c (objc_language_defn): Ditto.
2312 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2313 new interface.
2314 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2315 * ui-out.c (ui_out_field_core_addr): Ditto.
2316 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2317 * exec.c (print_section_info): Ditto.
2318 * i387-tdep.c (print_i387_status_word): Ditto.
2319 (print_i387_control_word): Ditto.
2320 (i387_print_float_info): Ditto.
2321 * maint.c (maint_print_section_info): Ditto.
2322 * solib.c (info_sharedlibrary_command): Ditto.
2323 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2324 * symtab.c (print_msymbol_info): Ditto.
2325 * tracepoint.c (tracepoints_info): Ditto.
2326 * solib-frv.c (lm_base): Ditto.
2327 (frv_current_sos): Ditto.
2328 (enable_break2): Ditto.
2329 (enable_break): Ditto.
2330 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2331 (process_one_symbol): Ditto.
2332 * infcmd.c (program_info): Ditto.
2333 * mdebugread.c (parse_partial_symbols): Ditto.
2334 * symfile.c (add_symbol_file_command): Ditto.
2335 * cli/cli-cmds.c (edit_command): Ditto.
2336 (list_command): Ditto.
2337 * infcall.c (call_function_by_hand): Ditto.
2338 * remote-vx.c (vx_run_files_info): Ditto.
2339 (vx_wait): Ditto.
2340 (vx_attach): Ditto.
2341 (vx_detach): Ditto.
2342 (vx_kill): Ditto.
2343 * aix-thread.c (pdc_symbol_addrs): Ditto.
2344 (pdc_read_regs): Ditto.
2345 (pdc_write_regs): Ditto.
2346 (pdc_read_data): Ditto.
2347 (pdc_write_data): Ditto.
2348 * d10v-tdep.c (display_trace): Ditto.
2349 * rs6000-nat.c (find_toc_address): Ditto.
2350 * aix-thread.c: Don't include language.h.
2351 * buildsym.c: Ditto.
2352 * dbxread.c: Ditto.
2353 * mdebugread.c: Ditto.
2354 * rs6000-nat.c: Ditto.
2355 * buildsym.c (make_blockvector): Use renamed hex_string.
2356
33f2d567
JM
23572004-09-10 Jason Molenda (jmolenda@apple.com)
2358
2359 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2360 chars after 'if' or 'while' commands in user-defined commands.
2361
7b90c3f9
JB
23622004-09-08 Jim Blandy <jimb@redhat.com>
2363
2364 Fix bug reported and analyzed by Olivier Crete:
2365 * symfile.c (copy_section_addr_info): New function.
2366 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2367 original set of address arguments, instead of handwritten code
2368 that uses one length to allocate and a different length to
2369 initialize. Use make_cleanup_free_section_addr_info.
2370 * symfile.h (copy_section_addr_info): New declaration.
2371 * utils.c: #include "symfile.h".
2372 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2373 New functions.
2374 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2375 * Makefile.in (utils.o): Update dependencies.
2376
b26a6851
AC
23772004-09-08 Andrew Cagney <cagney@gnu.org>
2378
2379 * thread-db.c (keep_thread_db): Delete.
2380 (thread_db_new_objfile, thread_db_create_inferior)
2381 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2382
be24b061
MK
23832004-09-08 Mark Kettenis <kettenis@gnu.org>
2384
f6792ef4
MK
2385 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2386 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2387 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2388 (i386_frameless_signal_p): Remove prototype.
2389 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2390 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2391 I386_SSE_NUM_REGS.
2392 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2393 instead of FP0_REGNUM.
2394 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2395 of FP0_REGNUM and FPC_REGNUM.
2396
eeefdaa7
MK
2397 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2398 (sunos_solib_create_inferior_hook): Don't call
2399 sunos_relocate_main_executable.
2400
be24b061
MK
2401 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2402 solib_svr4_fetch_link_map_offsets to
2403 svr4_ilp32_fetch_link_map_offsets.
2404 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2405 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2406 svr4_ilp32_fetch_link_map_offsets.
2407 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2408
7c679d16
JB
24092004-09-07 Jim Blandy <jimb@redhat.com>
2410
2411 * frame.h (frame_register): Doc fix.
2412
1f04aa62
AC
24132004-09-07 Andrew Cagney <cagney@gnu.org>
2414
2415 * vx-share/wait.h: Delete #ifdef USG.
2416 * utils.c (request_quit): Ditto.
2417 * tui/tui.c (tui_reset): Ditto.
2418 * remote.c: Ditto.
2419 * remote-sds.c: Ditto.
2420 * remote-rdi.c: Ditto.
2421 * mdebugread.c: Ditto.
2422 * m68klinux-nat.c: Ditto.
2423 * infttrace.c: Ditto.
2424 * infptrace.c: Ditto.
2425 * i386v-nat.c: Ditto.
2426 * exec.c: Ditto.
2427 * dbxread.c: Ditto.
2428 * core-aout.c: Ditto.
2429
90edbfbc
JB
24302004-09-05 Joel Brobecker <brobecker@gnat.com>
2431
2432 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2433 heuristic_proc_desc.
2434 (mips_insn32_frame_cache): Likewise.
2435
01f4bf2b
JB
24362004-09-04 Joel Brobecker <brobecker@gnat.com>
2437
2438 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2439 left behind by error.
2440
8511a048
JB
24412004-09-04 Joel Brobecker <brobecker@gnat.com>
2442
2443 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2444 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2445
649dfe9f
JB
24462004-09-04 Joel Brobecker <brobecker@gnat.com>
2447
2448 * config/rs6000/xm-aix4.h: Remove this file.
2449 * config/rs6000/aix4.mh (XM_FILE): Delete.
2450
6e50f889
JB
24512004-09-04 Joel Brobecker <brobecker@gnat.com>
2452
2453 * config/rs6000/xm-rs6000.h: Remove this file.
2454 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2455
b8c4aece
AC
24562004-09-03 Andrew Cagney <cagney@gnu.org>
2457
fb603883
AC
2458 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2459 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2460 only use.
2461
c9343fd1
AC
2462 * mips-tdep.c (temp_saved_regs): Delete.
2463 (set_reg_offset): Replace saved_regs parameter with this_cache.
2464 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2465 (mips32_heuristic_proc_desc): Add this_cache parameter.
2466 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2467 (after_prologue): Pass a NULL this_cache.
2468
9733cfe1
AC
2469 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2470 non-kernel trap prologues.
2471
0d5febcc
AC
2472 * mips-tdep.c (find_proc_desc): Delete function.
2473 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2474 simplify.
2475 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2476 mips_insn32_frame_cache.
2477
9733cfe1 2478 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2479 Simplify as NEXT_FRAME is NULL.
2480 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2481
177f84a3
AC
2482 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2483 local variable.
2484 (mips_skip_prologue): Update.
2485
465f7520
AC
2486 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2487 "cur_frame" parameter.
177f84a3
AC
2488 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2489 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2490
e38b8658
AC
2491 * config/vax/nm-obsd.h: Delete file.
2492 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2493 * config/vax/nm-nbsd.h: Delete file.
2494 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2495 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2496 * config/sh/nm-nbsd.h: Delete file.
2497 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2498 * config/rs6000/nm-rs6000ly.h: Delete file.
2499 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2500 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2501 * config/powerpc/nm-obsd.h: Delete file.
2502 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2503 * config/powerpc/nm-nbsd.h: Delete file.
2504 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2505 * config/pa/nm-obsd.h: Delete file.
2506 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2507 * config/mips/nm-nbsd.h: Delete file.
2508 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2509 * config/m88k/nm-obsd.h: Delete file.
2510 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2511 * config/m68k/nm-nbsd.h: Delete file.
2512 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2513 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2514 * config/i386/nm-nbsd.h: Delete file.
2515 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2516 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2517 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2518 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2519 * config/i386/nm-i386lynx.h: Delete file.
2520 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2521 * config/arm/nm-nbsd.h: Delete file.
2522 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2523 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2524
be1ed680
AC
2525 * config/i386/tm-fbsd.h: Delete file.
2526 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2527 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2528
4b392b26
AC
2529 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2530 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2531 * config/rs6000/aix4.mt (TM_FILE): Set to
2532 config/rs6000/tm-rs6000.h.
2533 * config/powerpc/tm-ppc-aix.h: Delete file.
2534 * config/powerpc/aix.mt (TM_FILE): Set to
2535 config/rs6000/tm-rs6000.h.
2536 * config/m68k/tm-linux.h: Delete file.
2537 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2538 * config/i386/tm-linux64.h: Delete file.
2539 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2540 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2541
f3219c75
AC
2542 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2543 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2544 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2545 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2546 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2547 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2548 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2549 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2550 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2551
b8c4aece
AC
2552 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2553 gdb_host_cpu.
2554
8ac2e020
JB
25552004-09-02 Joel Brobecker <brobecker@gnat.com>
2556
2557 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2558 Minor reformatting. Some code factoring.
2559
c185a355
AC
25602004-09-02 Andrew Cagney <cagney@gnu.org>
2561
63f22f0d
AC
2562 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2563 * config/vax/tm-nbsd.h: Delete file.
2564 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2565 * config/sparc/tm-vxworks.h: Delete file.
2566 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2567 * config/sparc/tm-nbsd.h: Delete file.
2568 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2569 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2570 * config/sparc/tm-linux.h: Delete file.
2571 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2572 * config/s390/tm-linux.h: Delete file.
2573 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2574 * config/pa/tm-bsd.h: Delete file.
2575 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2576 * config/m68k/tm-obsd.h: Delete file.
2577 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2578 * config/m68k/tm-nbsd.h: Delete file.
2579 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2580 * config/i386/tm-vxworks.h: Delete file.
2581 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2582 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2583 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2584 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2585 * config/i386/tm-nbsd.h: Delete file.
2586 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2587 * config/i386/tm-i386lynx.h: Delete file.
2588 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2589 * config/cris/tm-cris.h: Delete file.
2590
0f475e27
AC
2591 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2592 * configure: Re-generate.
2593 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2594 * config/arm/tm-nbsd.h: Delete file.
2595
458ed000
AC
2596 * config/powerpc/tm-ppcle-sim.h: Delete.
2597 * config/powerpc/tm-ppcle-eabi.h: Delete.
2598 * config/powerpc/tm-nbsd.h: Delete.
2599 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2600 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2601 tm-ppcle-eabi.h.
2602
f14375f3
AC
2603 * config/i386/nto.mh (NAT_FILE): Delete.
2604 * config/i386/nm-nto.h: Delete.
2605
c34d127c
AC
2606 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2607 * config/m68k/tm-os68k.h: Ditto.
2608 * config/m68k/tm-monitor.h: Ditto.
2609 * config/m68k/tm-cisco.h: Ditto.
2610 * config/m68k/st2000.mt (TM_FILE): Delete.
2611 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2612 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2613 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2614 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2615
f7f0fe03
AC
2616 * config/m68k/tm-st2000.h: Delete.
2617 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2618 * config/sparc/fbsd.mt (TM_FILE): Delete.
2619 * config/sparc/tm-fbsd.h: Delete.
2620
a2558533
AC
2621 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2622 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2623 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2624
b78960be
AC
2625 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2626 GDB_TM_FILE and GDB_XM_FILE.
2627 * gdbarch.c: Re-generate.
2628 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2629 quotes in macro definition.
2630 * configure.in: Re-generate.
2631
4d60522e
AC
2632 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2633 validating architecture methods.
2634 * gdbarch.c: Re-generate.
2635
5010d38b
AC
2636 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2637 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2638 GDB_MULTI_ARCH_PARTIAL.
2639 * gdbarch.h: Re-generate.
2640
c185a355
AC
2641 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2642 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2643 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2644 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2645 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2646 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2647 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2648 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2649 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2650 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2651 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2652 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2653
14aaa6ab
AC
26542004-09-01 Andrew Cagney <cagney@gnu.org>
2655
2656 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2657 and main_func_highpc.
2658 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2659 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2660 * nlmread.c (nlm_symfile_read): Update.
2661
a343eb3c
JB
26622004-09-01 Joel Brobecker <brobecker@gnat.com>
2663
2664 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2665 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2666 (find_proc_desc): Remove dead code.
2667
4fbbbd07
JB
26682004-09-01 Joel Brobecker <brobecker@gnat.com>
2669
2670 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2671
84acb35a
JJ
26722004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2673
2674 * observer.sh: Add struct so_list declaration.
2675 * Makefile.in: Add dependencies on observer.h for solib.c and
2676 breakpoint.c.
2677 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2678 function.
2679 (_initialize_breakpoint): Register
2680 disable_breakpoints_in_unloaded_shlib as an observer of the
2681 "solib unloaded" observation event.
2682 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2683 call decode_line_1 so unfound breakpoint errors are silent.
2684 * solib.c (update_solib_list): When a solib is discovered to have
2685 been unloaded by the program, notify all observers of the
2686 "solib unloaded" observation event.
2687
c8cd9f6c
AC
26882004-09-01 Andrew Cagney <cagney@gnu.org>
2689
2690 * frame.c: Include "objfiles.h".
2691 (inside_main_func): New function.
2692 (get_prev_frame): Use new inside_main_func.
2693 * Makefile.in (frame.o): Update dependencies.
2694 * defs.h (inside_main_func): Delete declaration.
2695 * blockframe.c (inside_main_func): Delete function.
2696
1168df01
JB
26972004-08-31 Jim Blandy <jimb@redhat.com>
2698
2699 * dwarf2read.c (is_vtable_name): New function, based on logic from
2700 read_structure_type, but passing the correct length to strncmp,
2701 and using 'sizeof' instead of 'strlen'.
2702 (read_structure_type): Call it.
2703
f14f9744
JB
27042004-08-31 Joel Brobecker <brobecker@gnat.com>
2705
2706 * config/powerpc/aix.mh: Add comment.
2707
386d4518
PG
27082004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2709
2710 * MAINTAINERS: Add self to Write-After-Approval.
2711
7d97d5e2
MI
27122004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2713
2714 * MAINTAINERS: Add self to Write-After-Approval.
2715
68f53502
AC
27162004-08-30 Andrew Cagney <cagney@gnu.org>
2717
2718 Fix PR breakpoints/1757.
2719 * infrun.c (struct execution_control_state): Replace
2720 remove_breakpoints_on_following_step with
2721 step_after_step_resume_breakpoint.
2722 (init_execution_control_state): Update.
2723 (handle_inferior_event): For signals, when stepping off a
2724 breakpoint, set step_after_step_resume_breakpoint. When
2725 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2726 (keep_going): Delete code handling
2727 remove_breakpoints_on_following_step.
2728
7ca2d3a3
DL
27292004-08-29 David Lecomber <david@streamline-computing.com>
2730
2731 Fix PR gdb/648
2732 * language.h (enum array_ordering): New enum.
2733 * language.h (struct language_defn): New la_array_ordering
2734 attribute.
2735 * language.c (unknown_language_defn, auto_language_defn)
2736 (local_language_defn): Ditto.
2737 * ada-lang.c (ada_language_defn): Ditto.
2738 * c-lang.c (c_language_defn, cplus_language_defn)
2739 (asm_language_defn, minimal_language_defn): Ditto.
2740 * f-lang.c (f_language_defn): Ditto.
2741 * jv-lang.c (java_language_defn): Ditto.
2742 * m2-lang.c (f_language_defn): Ditto.
2743 * objc-lang.c (objc_language_defn): Ditto.
2744 * p-lang.c (pascal_language_defn): Ditto.
2745 * scm-lang.c (scm_language_defn): Ditto.
2746 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2747 oriented large to small in type structure.
2748 * dwarf2read.c (read_array_order): New function.
2749 (read_array_type): Use read_array_order to check row/column
2750 major ordering.
2751
e354df01
NW
27522004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2753
2754 * target.c (target_resize_to_sections): Check
2755 current_target.to_sections for an old value when updating.
2756
9185ddce
JB
27572004-08-27 Joel Brobecker <brobecker@gnat.com>
2758
2759 * procfs.c (dbx_link_bpt_addr): New static global variable.
2760 (dbx_link_shadow_contents): New static global variable.
2761 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2762 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2763 if we just hit it.
2764 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2765 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2766 from run to run.
2767 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2768 after the inferior has been forked.
2769 (remove_dbx_link_breakpoint): New function.
2770 (dbx_link_addr): New function.
2771 (insert_dbx_link_bpt_in_file): New function.
2772 (insert_dbx_link_bpt_in_region): New function.
2773 (insert_dbx_link_breakpoint): New function.
2774 (proc_trace_syscalls_1): New function, extracted from
2775 proc_trace_syscalls.
2776 (proc_trace_syscalls): Replace extract code by call to
2777 proc_trace_syscalls_1.
2778 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2779 is no longer valid.
2780
e6742ace
JB
27812004-08-25 Jim Blandy <jimb@redhat.com>
2782
2783 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2784
8fb3e588
AC
27852004-08-25 Andrew Cagney <cagney@gnu.org>
2786
629a41ee
AC
2787 * infrun.c (struct execution_control_state): Delete field
2788 "stepping_through_sigtramp".
2789 (init_execution_control_state): Do not set same.
2790 (context_switch): Do not pass same to save_infrun_state and
2791 load_infrun_state.
2792 * gdbthread.h (struct thread_info): Delete field
2793 stepping_through_sigtramp.
2794 (save_infrun_state, load_infrun_state): Delete parameter
2795 stepping_through_sigtramp.
2796 * thread.c (load_infrun_state, save_infrun_state): Update.
2797
8fb3e588
AC
2798 * infrun.c: Re-indent. Move expression operators to the beginning
2799 of the line. Remove long disabled #if 0 code.
2800
49c54768
AC
28012004-08-24 Andrew Cagney <cagney@gnu.org>
2802
2803 * doublest.h (floatformat_ieee_quad): Rename
2804 floatformat_ia64_quad.
2805 * doublest.c (floatformat_ieee_quad): Rename
2806 floatformat_ia64_quad.
2807 (_initialize_doublest): Update.
2808
5ca2e327
JB
28092004-08-24 Jim Blandy <jimb@redhat.com>
2810
87808bd6
JB
2811 * dwarf2expr.h (struct dwarf_expr_context): New members
2812 'num_pieces' and 'pieces', for returning the result of an
2813 expression that uses DW_OP_piece.
2814 (struct dwarf_expr_piece): New struct type.
2815 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2816 pieces.
2817 (free_dwarf_expr_context): Free pieces, if any.
2818 (add_piece): New function.
2819 (execute_stack_op): Implement DW_OP_piece.
2820 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2821 expression is a list of pieces, print an error message.
2822 (dwarf2_loc_desc_needs_frame): If the expression yields
2823 pieces, and any piece is in a register, then we need a frame.
2824
5ca2e327
JB
2825 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2826 the stack until we've decided what sort of result the evaluation
2827 has produced. Use separate variables, with more specific names.
2828
2afeb6b8
RE
28292004-08-23 Richard Earnshaw <rearnsha@arm.com>
2830
2831 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2832 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2833 (arm_netbsd_init_abi_common): Register them.
2834
5885ab49
MK
28352004-08-22 Mark Kettenis <kettenis@gnu.org>
2836
fda820a6
MK
2837 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2838
1c5bf419
MK
2839 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2840 safe_frame_unwind_memory instead of target_read_memory.
2841
8cbba7c8
MK
2842 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2843 Reorder includes.
2844 (fetch_register, store_register): Remove prototypes.
2845 (child_resume): Reorganize code and comments such that it is
2846 grouped a bit more logically.
2847 (attach): Explicitly compare errno against 0.
2848 (detach): Likewise. Use perror_with_name instead of
2849 print_sys_errmsg.
2850 * Makefile.in (infptrace.o): Update dependencies.
2851
c5fa4245
MK
2852 * ia64-linux-nat.c: Update copyright year.
2853 (fetch_debug_register, store_debug_register)
2854 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2855 PTRACE_TYPE_ARG3.
2856 * config/ia64/nm-linux.h: Update copyright year.
2857 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2858
387c058c
MK
2859 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2860 from CORE_ADDR to struct frame_info *. Use
2861 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2862 (amd64_linux_sigtramp_p): Adjust for changed signature of
2863 and64_linux_sigtramp_start
2864
277215a6
MK
2865 * gdb_ptrace.h: GNU/Linux.
2866
25f6178e
MK
2867 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2868 Remove defines.
2869
652fc137
MK
2870 * infptrace.c: Include "gdb_assert.h".
2871 (PTRACE_XFER_TYPE): Remove define.
2872 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2873 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2874 Tweak comment.
2875 (fetch_inferior_registers, store_inferior_registers): Remove
2876 redundant culry braces. Tweak comment. s/regno/regnum.
2877 * Makefile.in (infptrace.o): Update dependencies.
2878
5885ab49
MK
2879 * configure.in: Change test for return type of ptrace to default
2880 to `long' instead of `int'.
2881 * configure: Regenerate.
2882
11003ae3
MK
28832004-08-21 Mark Kettenis <kettenis@gnu.org>
2884
6b95110c
MK
2885 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2886
bcb3dc3d
MK
2887 * configure.in: Check for ttrace function.
2888 * configure, config.in: Regenerate.
2889
11003ae3
MK
2890 * gdb_ptrace.h: New file.
2891 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2892 <sys/ptrace.h>.
2893 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2894 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2895 (attach): Don't define PT_ATTACH.
2896 (detach): Don't define PT_DETACH.
2897 * Makefile.in (gdb_ptrace_h): New variable.
2898 (infptrace.o): Update dependencies.
2899
f8707cac
MK
29002004-08-16 Mark Kettenis <kettenis@gnu.org>
2901
2902 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2903 instead of `int' if not already defined.
2904 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2905 PTRACE_TYPE_ARG3.
2906 * infptrace.c (call_ptrace): Revert change that replaced
2907 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2908
655c5466
MK
29092004-08-15 Mark Kettenis <kettenis@gnu.org>
2910
156e5ba7
MK
2911 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2912 Remove defines.
2913
de9a9e51
MK
2914 * linux-nat.c (kill_inferior): Add missing third and fourth
2915 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2916
88800403
MK
2917 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2918 PTRACE_TYPE_RET.
2919
849a1d7c
MK
2920 * proc-why.c (proc_prettyfprint_why): Fix format string.
2921
61ad16d1
MK
2922 * solib-osf.c (osf_current_sos): Remove unsused label.
2923
a6ed5501
MK
2924 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2925 curses headers.
2926 * configure, config.in: Regenerate.
2927 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2928 <ncurses/ncurses.h>.
2929
016ddeca
MK
2930 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2931 * config/nm-nbsd.h: Update copyright year.
2932 (PTRACE_ARG3_TYPE): Remove define.
2933
49ec097f
MK
2934 * sparc-nat.c (fetch_inferior_registers)
2935 (store_inferior_registers, sparc_xfer_wcookie):
2936 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2937
9f8e0089
MK
2938 * alphabsd-nat.c (fetch_inferior_registers):
2939 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2940 PTRACE_TYPE_ARG3.
2941 * amd64bsd-nat.c (fetch_inferior_registers)
2942 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2943 PTRACE_TYPE_ARG3.
2944 * armnbsd-nat.c: Update copyright year.
2945 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2946 (store_register, store_regs, store_fp_register, store_fp_regs):
2947 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2948 * hppabsd-nat.c (fetch_inferior_registers)
2949 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2950 PTRACE_TYPE_ARG3.
2951 * i386bsd-nat.c (fetch_inferior_registers)
2952 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2953 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2954 * m68kbsd-nat.c (fetch_inferior_registers)
2955 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2956 PTRACE_TYPE_ARG3.
2957 * m88kbsd-nat.c (fetch_inferior_registers)
2958 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2959 PTRACE_TYPE_ARG3.
2960 * mipsnbsd-nat.c: Update copyright year.
2961 (fetch_inferior_registers, store_inferior_registers):
2962 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2963 * ns32knbsd-nat.c: Update copyright year.
2964 (fetch_inferior_registers, store_inferior_registers):
2965 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2966 * ppcnbsd-nat.c (fetch_inferior_registers):
2967 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2968 PTRACE_TYPE_ARG3.
2969 * ppcobsd-nat.c (fetch_inferior_registers):
2970 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2971 PTRACE_TYPE_ARG3.
2972 * shnbsd-nat.c: Update copyright year.
2973 (fetch_inferior_registers, store_inferior_registers):
2974 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2975 * vaxbsd-nat.c (fetch_inferior_registers)
2976 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2977 PTRACE_TYPE_ARG3.
2978
655c5466
MK
2979 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2980 PTRACE_TYPE_ARG3.
2981 * infptrace.c (call_ptrace, child_resume, attach, detach)
2982 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2983 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2984 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2985 PTRACE_TYPE_ARG3.
2986
c40d0d10
MK
29872004-08-14 Mark Kettenis <kettenis@gnu.org>
2988
5cb0ff31
MK
2989 * defs.h: Remove out-of-date comment.
2990 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2991 [!GETENV_PROVIDED] (getenv): Remove prototype.
2992
5f0f34cb
MK
2993 * standalone.c: Remove file.
2994 * Makefile.in (standalone.o): Remove dependency.
2995
7532965f
MK
2996 * i386-linux-nat.c (dummy_sse_values): Remove function and
2997 prototype.
2998 (i386_linux_dr_get): Fix typo in comment.
2999 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3000
1bdc6c53
MK
3001 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3002
c40d0d10
MK
3003 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3004 from declaration.
3005 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3006 from definition.
3007
64218d3e
MK
30082004-08-13 Mark Kettenis <kettenis@gnu.org>
3009
3010 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3011 parenthesis in definition.
3012 * configure: Regenerated.
3013
926c94e7
MC
30142004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3015
3016 * PROBLEMS: Mention build/1411.
3017
69489883
NN
30182004-08-09 Robert Millan <robertmh@gnu.org>
3019
3020 Committed by Nathanael Nerode.
3021 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3022 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3023
ebb7c577
AC
30242004-08-12 Andrew Cagney <cagney@gnu.org>
3025
3026 * NEWS: Mention fixes in GDB 6.2.1.
3027 * PROBLEMS: Remove mention of mips-irix.
3028
232d697c
JB
30292004-08-11 Joel Brobecker <brobecker@gnat.com>
3030
3031 * config/powerpc/xm-aix.h: Delete.
3032 * config/powerpc/aix.mh (MH_FILE): Remove.
3033 * config/powerpc/aix432.mh (MH_FILE): Remove.
3034
72f4e82b
JB
30352004-08-11 Joel Brobecker <brobecker@gnat.com>
3036
3037 * config/powerpc/aix.mh: Remove obsolete comment.
3038 * config/powerpc/aix432.mh: Likewise.
3039
0687ccb2
JB
30402004-08-11 Joel Brobecker <brobecker@gnat.com>
3041
3042 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3043
dbf3ada7
JB
30442004-08-11 Joel Brobecker <brobecker@gnat.com>
3045
e08e1886
JB
3046 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3047 this file is now empty.
3048 * config/xm-aix4.h: Remove, this file is no longer included
3049 anywhere.
3050
30512004-08-11 Joel Brobecker <brobecker@gnat.com>
3052
3053 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3054 that file is now empty.
dbf3ada7
JB
3055 (termdef): Remove prototype, function no longer used.
3056
4c525ef6
JB
30572004-08-11 Joel Brobecker <brobecker@gnat.com>
3058
3059 * doc/gdbint.texinfo (Host Definition): Remove documentation
3060 for USE_O_NOCTTY, no longer used.
3061 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3062 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3063
82e0b968
JB
30642004-08-11 Joel Brobecker <brobecker@gnat.com>
3065
3066 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3067 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3068 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3069
f2acbe1c
MK
30702004-08-11 Mark Kettenis <kettenis@gnu.org>
3071
daa98270
MK
3072 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3073 instead of FIVE_ARG_PTRACE.
3074
f2acbe1c
MK
3075 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3076 (new_tty): Use O_NOCTTY unconditionally.
3077
cc377e6b
MK
30782004-08-10 Mark Kettenis <kettenis@gnu.org>
3079
3080 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3081 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3082 fflush on stdout.
3083
3bcc18fa
JB
30842004-08-10 Joel Brobecker <brobecker@gnat.com>
3085
3086 * xcoff_symfile_finish: Replace last call to xmfree by call
3087 to xfree.
3088
7936743b
AC
30892004-08-10 Andrew Cagney <cagney@gnu.org>
3090
cc503c8a
AC
3091 * main.c (captured_main): Delete call to init_malloc.
3092 * defs.h (init_malloc): Delete declaration.
3093 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3094 (init_malloc): Delete functions.
3095
2dc74dc1
AC
3096 * defs.h (xmfree): Delete.
3097 * utils.c (xmfree): Delete function.
3098 (xfree): Inline calls to xmfree and mfree.
3099 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3100 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3101 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3102 * somread.c (som_symfile_finish): Ditto.
3103 * objfiles.c (allocate_objfile, free_objfile):
3104 * nlmread.c (nlm_symfile_finish): Ditto.
3105 * hpread.c (hpread_symfile_finish): Ditto.
3106 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3107 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3108 * coffread.c (coff_symfile_finish): Ditto.
3109
aa2ee5f6
AC
3110 * defs.h (xmcalloc): Delete declaration.
3111 * utils.c (xmcalloc): Delete.
3112 (xcalloc): Inline calls to xmcalloc and mcalloc.
3113 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3114 xcalloc and xfree.
3115 * symtab.c (create_demangled_names_hash): Ditto.
3116
0efffb96
AC
3117 * defs.h (xmrealloc): Delete.
3118 * utils.c (xmrealloc): Delete.
3119 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3120 * symmisc.c (extend_psymbol_list): Use xrealloc.
3121 * source.c (find_source_lines): Ditto.
3122 * hpread.c (hpread_lookup_type): Ditto.
3123 * dbxread.c (add_bincl_to_list): Ditto.
3124
7936743b
AC
3125 * utils.c (xmmalloc): Delete.
3126 (xmalloc): Inline xmmalloc and mmalloc calls.
3127 (msavestring): Use xmalloc.
3128 * defs.h (xmmalloc): Delete declaration.
3129 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3130 xmmalloc.
3131 * symmisc.c (extend_psymbol_list): Ditto.
3132 * symfile.c (init_psymbol_list): Ditto.
3133 * source.c (find_source_lines): Ditto.
3134 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3135 * elfread.c (elf_symtab_read): Ditto.
3136 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3137 * coffread.c (coff_symfile_init): Ditto.
3138
252ab814
DC
31392004-08-10 David Carlton <carlton@bactrian.org>
3140
3141 * MAINTAINERS: Remove David Carlton from c++ testsuite
3142 maintainers.
3143
8f5ba92b
JG
31442004-08-10 Jerome Guitton <guitton@gnat.com>
3145
3146 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3147 print a line feed before the prompt.
3148
21749010
MK
31492004-08-10 Mark Kettenis <kettenis@gnu.org>
3150
3151 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3152
1f011ce2
JB
31532004-08-09 Joel Brobecker <brobecker@gnat.com>
3154
3155 General cleanup of the AIX xm include file:
3156 * config/xm-aix4.h (fd_set): Remove undefine.
3157 Remove include of <sys/select.h>.
3158 (HAVE_TERMIO): Remove define.
3159 (USG): Likewise.
3160 (NULL): Remove redefine.
3161 (alloca): Remove #pragma.
3162 (vfork): Remove define.
3163 (termdef): Remove.
3164 (SIGWINCH_HANDLER): Remove.
3165 (SIGWINCH_HANDLER_BODY): Remove.
3166
cf4e7692
MK
31672004-08-09 Mark Kettenis <kettenis@gnu.org>
3168
3169 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3170 GDB_OSABI_OPENBSD_ELF.
3171
ac5754fa
MK
31722004-08-07 Robert Millan <robertmh@gnu.org>
3173
3174 * bsd-kvm.c: Check for nlist.h before including it.
3175
086ec9eb
MK
31762004-08-09 Mark Kettenis <kettenis@gnu.org>
3177
bbe06c74
MK
3178 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3179 sigcontext' offset consistency checks for ancient BSD.
3180
3aa7b3b3
MK
3181 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3182
086ec9eb
MK
3183 * configure.in: Check for <sys/types.h>. Check return and
3184 argument types of ptrace.
3185 * configure, config.in: Regenerate.
3186
09991fa0
JB
31872004-08-09 Jim Blandy <jimb@redhat.com>
3188
3189 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3190 rs6000_register_sim_regno): Doc fixes.
3191
fed7ba43
JB
31922004-08-08 Joel Brobecker <brobecker@gnat.com>
3193
3194 * mips-tdep.c: Include "floatformat.h".
3195 (n32n64_floatformat_always_valid): New function.
3196 (floatformat_n32n64_long_double_big): New constant.
3197 (mips_gdbarch_init): Set size and format of long double
3198 for N32 and N64 ABIs.
3199 * Makefile.in (mips-tdep.o): Update dependencies.
3200
456fcf94
AC
32012004-08-08 Andrew Cagney <cagney@gnu.org>
3202
2f9b146e
AC
3203 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3204 print. Improve script's error messages.
3205 * gdbarch.h: Re-generate.
3206
456fcf94
AC
3207 * gdbarch.sh (pformat): New function.
3208 (float_format, double_format, long_double_format): List with bit
3209 members. Use pformat when printing.
3210 * gdbarch.c, gdbarch.h: Re-generate.
3211
69e9e646
NW
32122004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3213
3214 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3215 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3216 (ppcnbsd_supply_pcb): New function.
3217 (_initialize_ppcnbsd_nat): New prototype and function.
3218 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3219 (LOADLIBES): New variable.
3220 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3221
5ef2d0aa
AC
32222004-08-08 Andrew Cagney <cagney@gnu.org>
3223
3224 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3225 (builtin_type_ieee_double, builtin_type_ia64_quad)
3226 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3227 BE/LE floating-point types.
3228 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3229 (builtin_type_ieee_double, builtin_type_ia64_quad)
3230 (builtin_type_ia64_spill): Declare.
3231 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3232 (floatformat_ieee_double, floatformat_arm_ext)
3233 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3234 of LE/BE floatformats.
3235 * doublest.h: (struct floatformat, floatformat_ieee_single)
3236 (floatformat_ieee_double, floatformat_arm_ext)
3237 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3238
5c7f2947
MK
32392004-08-08 Mark Kettenis <kettenis@gnu.org>
3240
ecac404d
MK
3241 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3242
9b8607ce
MK
3243 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3244 instead of regcache_raw_supply when storing the registers.
3245
f6052080
MK
3246 * i386gnu-nat.c: Update copyright year.
3247 (gnu_store_registers): Don't use deprecated_registers and
3248 deprecated_registers_valid. Use regcache_valid_p and
3249 regcache_raw_supply instead.
3250
17777823
MK
3251 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3252 frame_pc_unwind.
3253
5240ceac
MK
3254 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3255 variables. Incapitalized "process".
3256
5c7f2947
MK
3257 * configure.in: Add cursesX to the list of possible curses libs.
3258 Add cursesX.h to the list of possible curses headers.
3259 * configure, config.in: Regenerate.
3260
da7d81e3
NW
32612004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3262
3263 * configure.in: Test for struct lwp in <sys/lwp.h>.
3264 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3265 the offset of l_addr in struct lwp.
3266
7f245d65
NW
32672004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3268
3269 * bsd-kvm.c: Include "gdbcore.h"
3270 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3271
47b3f456
AC
32722004-08-07 Andrew Cagney <cagney@gnu.org>
3273
70bd8e24
AC
3274 * gdbtypes.c (build_flt, build_complex): New functions.
3275 (gdbtypes_post_init): Use.
3276
9b0dea39
AC
3277 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3278
5cf7abac
AC
3279 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3280 through to builtin_type_uint128.
3281
64d2b26d
AC
3282 * c-exp.y: Use builtin_type function to obtain builtin types.
3283
7ad6570d
AC
3284 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3285 builtin_uint128.
3286 * gdbtypes.c (gdbtypes_post_init): Update.
3287 (build_gdbtypes): Move initialization of builtin_type_int0
3288 through to builtin_type_uint128 from here ...
3289 (_initialize_gdbtypes): ... to here.
3290 * d10v-tdep.c (d10v_register_type): Update.
3291
47b3f456
AC
3292 * doublest.c: Update copyright.
3293 (floatformat_from_length): Call error when floatformat is NULL.
3294 (extract_floating_by_length): Remove NULL fmt check.
3295 (store_floating_by_length): Ditto.
3296
0a8146bf
AC
32972004-08-07 Andrew Cagney <cagney@gnu.org>
3298
3299 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3300 that the register is valid.
3301
c0ccb908
MK
33022004-08-05 Mark Kettenis <kettenis@chello.nl>
3303
8e6bed05
MK
3304 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3305 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3306 struct frame_info *. Use safe_frame_unwind_memory instead of
3307 deprecated_read_memory_nobpt.
3308 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3309 changed signature of i386_linux_sigtramp_start and
3310 i386_linux_rt_sigtramp_start.
3311
24f9f5e3
MK
3312 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3313 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3314 instead of deprecated_read_memory_nobpt.
3315 (i386nbsd_sigtramp_p): Adjust for changed signature of
3316 i386nbsd_sigtramp_offset.
3317
c822af0c
MK
3318 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3319 safe_frame_unwind_memory instead of target_read_memory.
3320
c0ccb908
MK
3321 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3322 !NO_SYS_FILE.
3323 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3324 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3325 (_initialize_kernel_u_addr): Remove prototype and function.
3326 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3327 !NO_SYS_FILE.
3328 * xcoffread.c: Likewise.
3329
b9e1c0d6
MK
33302004-08-06 Mark Kettenis <kettenis@gnu.org>
3331
3332 * vax-nat.c: New file.
3333 * vaxbsd-nat.c: Tweak comment.
3334 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3335 vaxnbsd-tdep.c.
3336 (vax-nat.o): New dependency.
3337 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3338 (vax-*-ultrix2*): Remove.
3339 * config/vax/vax.mh: New file.
3340 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3341 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3342 (vax_register_u_addr): New prototype.
3343 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3344 * config/vax/vaxult2.mh: Remove file.
3345 * config/vax/vaxult.mh: Remove file.
3346 * config/vax/vaxbsd.mh: Remove file.
3347 * config/vax/vax.mt (TM_FILE): Remove.
3348 * config/vax/tm-vaxbsd.h: Remove file.
3349
9ad7bec7
JB
33502004-08-06 Joel Brobecker <brobecker@gnat.com>
3351
3352 * aix-thread.c (get_signaled_thread): New function.
3353 (iter_trap): Delete, no longer used.
3354 (iter_tid): New function.
3355 (pd_update): Find the thread that received the SIGTRAP signal
3356 by first locating the kernel thread, and then finding its
3357 associated thread.
3358
bf0d233d
UW
33592004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3360
3361 * lin-lwp.c (child_wait): Continue inferior after processing
3362 PTRACE_EVENT_CLONE event.
3363
d0f853e1
NN
33642004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3365
3366 * MAINTAINERS: Add self to Write-After-Approval.
3367
ab14aeb0
JJ
33682004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3369
3370 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3371 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3372
9c8dbfa9
AC
33732004-08-05 Andrew Cagney <cagney@gnu.org>
3374
c8f3ca46
AC
3375 * config/xm-sysv4.h: Delete file.
3376 * config/mips/xm-irix5.h: Delete file.
3377 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3378 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3379 * config/ia64/xm-aix.h: Delete file.
3380 * config/ia64/aix.mh (XM_FILE): Delete.
3381 * config/pa/xm-hppah.h: Delete file.
3382 * config/pa/hpux11w.mh (XM_FILE): Delete.
3383 * config/pa/hpux11.mh (XM_FILE): Delete.
3384 * config/pa/hpux1020.mh (XM_FILE): Delete.
3385 * config/pa/hppahpux.mh (XM_FILE): Delete.
3386
5f7daaff
AC
3387 * config/alpha/xm-alphalinux.h: Delete file.
3388 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3389 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3390 * config/alpha/xm-alphaosf.h: Delete file.
3391 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3392 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3393 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3394 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3395
69babf95
AC
3396 * config/i386/xm-i386v.h: Delete file.
3397 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3398 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3399 * config/i386/xm-i386sco.h: Delete file.
3400 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3401 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3402 * config/i386/xm-i386v4.h: Delete file.
3403 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3404 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3405 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3406 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3407
6f009c8a
AC
3408 * config/vax/xm-vax.h: Delete file.
3409 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3410 * config/vax/xm-vaxult2.h: Delete file.
3411 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3412 * config/vax/vaxult2.mh (XM_FILE): Delete.
3413 * config/vax/xm-vaxult.h: Delete file.
3414 * config/vax/vaxult.mh (XM_FILE): Delete.
3415 * config/vax/xm-vaxbsd.h: Delete file.
3416 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3417
9c8dbfa9
AC
3418 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3419 * gdbarch.h, gdbarch.c: Re-generate.
3420 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3421 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3422 * frame.h: Delete deprecated_read_fp from comments.
3423 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3424 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3425
84367a3e
MK
34262004-08-04 Mark Kettenis <kettenis@gnu.org>
3427
9c8e3411
MK
3428 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3429 trampoline in OpenBSD 3.5-current.
3430
b87bc0d8
MK
3431 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3432 SSE registers.
3433
84367a3e
MK
3434 * Makefile.in: Remove embedded page breaks.
3435
a44bddec
JB
34362004-08-04 Jim Blandy <jimb@redhat.com>
3437
7ab3286f
JB
3438 * regcache.c (regcache_raw_read): Assert that, after calling
3439 target_fetch_registers, the register we're reading is cached.
3440
a44bddec
JB
3441 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3442 a call to 'internal_error', with a more helpful error message.
3443 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3444 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3445
35124113
AC
34462004-08-04 Andrew Cagney <cagney@gnu.org>
3447
3448 * Makefile.in: Update dependencies.
3449
9f643768
JB
34502004-08-04 Jim Blandy <jimb@redhat.com>
3451
6ced10dd
JB
3452 Change the layout of the PowerPC E500 raw register cache to allow
3453 the lower 32-bit halves of the GPRS to be their own raw registers,
3454 not pseudoregisters.
3455 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3456 add ppc_ev0_upper_regnum flag.
3457 * rs6000-tdep.c: #include "reggroups.h".
3458 (spe_register_p): Recognize the ev upper half registers as SPE
3459 registers.
3460 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3461 registers.
3462 (e500_move_ev_register): New function.
3463 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3464 vector registers are the pseudo-registers now, formed by splicing
3465 together the gprs and the upper-half registers.
3466 (e500_register_reggroup_p): New function.
3467 (P): Macro deleted.
3468 (P8, A4): New macro.
3469 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3470 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3471 macros.
3472 (registers_e500): Rearrange register set so that the raw register
3473 set contains 32-bit GPRs and upper-half registers, and the SPE
3474 vector registers become pseudo-registers.
3475 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3476 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3477 register numbers are now the same for the E500 as they are for
3478 other PowerPC variants. Register e500_register_reggroup_p as the
3479 register group function for the E500.
3480 * Makefile.in (rs6000-tdep.o): Update dependencies.
3481
3482 Adapt PPC E500 native support to the new raw regcache layout.
3483 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3484 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3485 (fetch_spe_register, store_spe_register): Handle fetching/storing
3486 all the SPE registers at once, if regno == -1. These now take
3487 over the job of fetch_spe_registers and store_spe_registers.
3488 (fetch_spe_registers, store_spe_registers): Deleted.
3489 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3490 unconditionally; they're always raw. Fetch/store SPE upper half
3491 registers, if present, instead of ev registers.
3492 (fetch_register, store_register): Remove sanity checks: gprs are
3493 never pseudo-registers now, so we never need to even mention any
3494 registers that are ever pseudoregisters.
3495
9f643768
JB
3496 Use a fixed register numbering when communicating with the PowerPC
3497 simulator.
3498 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3499 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3500 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3501 New functions.
3502 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3503 init_sim_regno_table.
3504 * Makefile.in (gdb_sim_ppc_h): New variable.
3505 (rs6000-tdep.o): Update dependencies.
3506
1e2279c8
AC
35072004-08-02 Andrew Cagney <cagney@gnu.org>
3508
1d94326f
AC
3509 * cris-tdep.c (cris_register_size): Restore function, still used
3510 locally.
3511
331ae7ed
AC
3512 * gdbarch.sh (deprecated_target_read_fp)
3513 (deprecated_frame_locals_address, deprecated_frame_args_address)
3514 (deprecated_frame_chain_valid, deprecated_frame_chain)
3515 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3516 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3517 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3518 * gdbarch.h, gdbarch.c: Re-generate.
3519 * regcache.c (deprecated_read_fp): Do not call
3520 DEPRECATED_TARGET_READ_FP_P.
3521 * infcmd.c (default_print_registers_info): Do not call
3522 DEPRECATED_DO_REGISTERS_INFO.
3523 * frame-base.c (default_frame_locals_address): Do not call
3524 DEPRECATED_FRAME_LOCALS_ADDRESS.
3525 (default_frame_args_address): Do not call
3526 DEPRECATED_FRAME_ARGS_ADDRESS.
3527
1e2279c8
AC
3528 * gdbarch.sh (deprecated_register_raw_size)
3529 (deprecated_register_virtual_size:int): Delete.
3530 * gdbarch.h, gdbarch.c: Re-generate.
3531 * cris-tdep.c (cris_register_size): Delete.
3532 (cris_gdbarch_init): Update.
3533 * alpha-tdep.c (alpha_register_raw_size)
3534 (alpha_register_virtual_size): Delete.
3535 (alpha_gdbarch_init): Update.
3536
a90c06b4
AC
3537 * gdbarch.sh (deprecated_register_virtual_type)
3538 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3539 (deprecated_dummy_write_sp): Delete.
3540 * gdbarch.h, gdbarch.c: Re-generate.
3541
f42accbe
AC
3542 * gdbarch.sh (deprecated_register_bytes): Delete.
3543 * gdbarch.h, gdbarch.c: Re-generate.
3544 * regcache.c (deprecated_register_bytes): New function.
3545 * regcache.h (deprecated_register_bytes): Declare.
3546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3547 * v850-tdep.c (v850_gdbarch_init): Update.
3548 * sh64-tdep.c (sh64_gdbarch_init): Update.
3549 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3550 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3551 * mcore-tdep.c (mcore_gdbarch_init): Update.
3552 * cris-tdep.c (cris_gdbarch_init): Update.
3553 * arm-tdep.c (arm_gdbarch_init): Update.
3554 * remote.c (init_remote_state): Update.
3555 * remote-vx.c (vx_prepare_to_store): Update.
3556 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3557 * irix5-nat.c (fetch_core_registers): Update.
3558 * cris-tdep.c (cris_register_bytes_ok): Update.
3559 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3560
45c9dd44
AC
3561 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3562 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3563 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3564 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3565 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3566 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3567 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3568 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3569 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3570 with mips_insn16 and mips_insn32.
3571
3acba339
AC
3572 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3573 * rs6000-tdep.c (rs6000_push_dummy_call)
3574 (rs6000_extract_return_value): Use register_size.
3575 * xstormy16-tdep.c (xstormy16_get_saved_register)
3576 (xstormy16_extract_return_value): Ditto.
3577 * valops.c (value_assign): Ditto.
3578 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3579 * v850-tdep.c (v850_extract_return_value): Ditto.
3580 * tracepoint.c (collect_symbol): Ditto.
3581 * target.c (debug_print_register): Ditto.
3582 * stack.c (frame_info): Ditto.
3583 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3584 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3585 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3586 (store_register_using_P): Ditto.
3587 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3588 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3589 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3590 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3591 * regcache.c (deprecated_read_register_bytes)
3592 (deprecated_write_register_bytes, read_register)
3593 (write_register): Ditto.
3594 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3595 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3596 * monitor.c (monitor_supply_register, monitor_fetch_register)
3597 (monitor_store_register): Ditto.
3598 * mn10300-tdep.c (mn10300_pop_frame_regular)
3599 (mn10300_print_register): Ditto.
3600 * mipsv4-nat.c (fill_fpregset): Ditto.
3601 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3602 (mips64_fill_fpregset): Ditto.
3603 * mi/mi-main.c (register_changed_p, get_register)
3604 (mi_cmd_data_write_register_values): Ditto.
3605 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3606 * irix5-nat.c (fill_gregset, fetch_core_registers):
3607 * infrun.c (write_inferior_status_register): Ditto.
3608 * infptrace.c (fetch_register, store_register): Ditto.
3609 * infcmd.c (default_print_registers_info): Ditto.
3610 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3611 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3612 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3613 * hpux-thread.c (hpux_thread_fetch_registers)
3614 (hpux_thread_store_registers): Ditto.
3615 * hppah-nat.c (store_inferior_registers, fetch_register):
3616 * findvar.c (value_from_register): Ditto.
3617 * dve3900-rom.c (fetch_bitmapped_register):
3618 * cris-tdep.c (cris_gdbarch_init): Ditto.
3619 * alpha-tdep.h: Ditto.
3620 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3621
01e1877c
AC
3622 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3623 DEPRECATED_REGISTER_RAW_SIZE from comments.
3624 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3625 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3626 DEPRECATED_REGISTER_RAW_SIZE.
3627 * findvar.c (value_of_register): Simplify by assuming that the
3628 registers raw and virtual sizes are identical.
3629 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3630 comment.
3631 * arch-utils.c (generic_register_size): Simplify by assuming
3632 register_type.
3633
73f458fb
AC
3634 * regcache.c (legacy_read_register_gen, real_register)
3635 (legacy_write_register_gen): Delete, not used.
3636
336a3131
AC
3637 * regcache.c (struct regcache_descr): Delete legacy_p.
3638 (init_legacy_regcache_descr): Delete function.
3639 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3640 Do not use deprecated register functions.
3641 (regcache_raw_read, deprecated_write_register_gen):
3642 (deprecated_read_register_gen, regcache_raw_write): Delete code
3643 predicated on legacy_p.
3644 (register_size): Delete check against register raw size.
3645
c1d546cd
AC
3646 * cris-tdep.c (cris_register_type): Replace
3647 cris_register_virtual_type.
3648 (cris_gdbarch_init): Update, set register_type.
3649
48c2c0a6
AC
3650 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3651 * gdbarch.h, gdbarch.c: Re-generate.
3652 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3653 (arm_gdbarch_init) Do not set frameless function invocation.
3654 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3655 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3656 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3657 (frv_gdbarch_init): Do not set frameless function invocation.
3658 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3659 * sh-tdep.c (sh_gdbarch_init): Ditto.
3660 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3661 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3662 * avr-tdep.c (avr_gdbarch_init): Ditto.
3663
474093a6
AC
3664 * blockframe.c (legacy_frame_chain_valid): Delete function.
3665
3c109c8b
AC
3666 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3667 and pc. Update comments.
3668 (pc_in_dummy_frame): Delete function.
3669 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3670 use the "id".
3671 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3672 call_hi, top and pc, use the id.
3673 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3674
96860204
AC
3675 * dummy-frame.c: Include "gdb_string.h".
3676 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3677 (generic_save_dummy_frame_tos): Delete.
3678 (dummy_frame_push): New function, replaces above.
3679 * dummy-frame.h: Update copyright.
3680 (dummy_frame_push): Declare.
3681 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3682 (generic_save_call_dummy_addr): Delete declarations.
3683 * infcall.c: Include "dummy-frame.h".
3684 (call_function_by_hand): Add locals caller_regcache,
3685 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3686 with call to frame_save_as_regcache plus cleanup. Delete calls to
3687 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3688 Move clear_proceed_status to just before the resume, add call to
3689 dummy_frame_push (discard cleanup).
3690 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3691 (dummy-frame.o): Add $(gdb_string_h).
3692
d67ec5db
AC
36932004-08-01 Andrew Cagney <cagney@gnu.org>
3694
3695 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3696 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3697 * dummy-frame.c (find_dummy_frame): Delete.
3698 (struct dummy_frame_cache, dummy_frame_sniffer)
3699 (dummy_frame_prev_register, dummy_frame_this_id)
3700 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3701 frame unwinder using a dummy_frame_cache.
3702
a81dcb05
AC
37032004-08-01 Andrew Cagney <cagney@gnu.org>
3704
3705 * frame.h (frame_save_as_regcache): Declare.
3706 * frame.c (frame_save_as_regcache): New function.
3707 (do_frame_read_register): Replace do_frame_unwind_register.
3708 (frame_pop): Use frame_save_as_regcache.
3709 * dummy-frame.c (generic_push_dummy_frame): Use
3710 frame_save_as_regcache.
3711
aa495d11
JB
37122004-08-01 Joel Brobecker <brobecker@gnat.com>
3713
3714 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3715 file as included until we record the first line in the linetable.
3716
ff65ac78
AC
37172004-08-01 Andrew Cagney <cagney@gnu.org>
3718
3719 * frame.h (deprecated_pop_dummy_frame)
3720 (deprecated_read_register_dummy)
3721 (deprecated_generic_find_dummy_frame): Delete.
3722 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3723 (deprecated_read_register_dummy)
3724 (deprecated_find_dummy_frame_regcache)
3725 (discard_innermost_dummy)
3726 (deprecated_pop_dummy_frame): Delete.
3727 (dummy_frame_this_id): Simplify.
3728 (struct dummy_frame): Delete "fp" and "sp".
3729 (find_dummy_frame): Simplify.
3730 (generic_push_dummy_frame): Do not set "fp" or "sp".
3731 (fprint_dummy_frames): Do not print "fp" and "sp"
3732
37bdc87e
MK
37332004-08-01 Mark Kettenis <kettenis@gnu.org>
3734
3735 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3736 (struct i386_insn): New structure.
3737 (i386_match_insn): New function.
3738 (i386_frame_setup_skip_insns): New variable.
3739 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3740 array i386_frame_setup_insns of instructions that should be
3741 skipped inside the frame setup sequence.
3742
8241eaa6
AC
37432004-08-01 Andrew Cagney <cagney@gnu.org>
3744
5bc602c7
AC
3745 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3746 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3747 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3748 * stack.c (frame_info): Delete references to
3749 DEPRECATED_FRAME_INIT_SAVED_REGS and
3750 deprecated_get_frame_saved_regs.
3751 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3752 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3753 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3754 (frame_unwind_register_signed)
3755 (frame_unwind_register_unsigned)
3756 (frame_unwind_unsigned_register): Use register_size.
3757 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3758 (deprecated_frame_xmalloc_with_cleanup)
3759 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3760 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3761
03d363a1
AC
3762 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3763 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3764 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3765 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3766
8241eaa6
AC
3767 * infcall.c (call_function_by_hand): Do not use
3768 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3769 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3770 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3771 DEPRECATED_STACK_ALIGN.
3772
f00df8b7
AC
37732004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3774
3775 Committed by Andrew Cagney.
3776 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3777
eec63939
AC
37782004-08-01 Andrew Cagney <cagney@gnu.org>
3779
3780 * mips-tdep.c (mips16_frame_cache)
3781 (mips16_frame_this_id, mips16_frame_prev_register)
3782 (mips16_frame_unwind, mips16_frame_sniffer)
3783 (mips16_frame_base_address, mips16_frame_base)
3784 (mips16_frame_base_sniffer, mips32_frame_cache)
3785 (mips32_frame_this_id, mips32_frame_prev_register)
3786 (mips32_frame_unwind, mips32_frame_sniffer)
3787 (mips32_frame_base_address, mips32_frame_base)
3788 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3789 separate heuristic mips16 and mips32 unwinders.
3790 (mips_stub_frame_cache, mips_stub_frame_this_id)
3791 (mips_stub_frame_prev_register)
3792 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3793 (mips_stub_frame_base_address, mips_stub_frame_base)
3794 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3795 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3796 match true mdebug frames.
3797 (non_heuristic_proc_desc): Add forward declaration.
3798
e66299b3
AC
37992004-08-01 Andrew Cagney <cagney@gnu.org>
3800
83cbbf3e
AC
3801 * config/mips/tm-irix6.h: Delete file.
3802 * config/mips/tm-irix5.h: Delete file.
3803 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3804 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3805
22d41b37
AC
3806 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3807 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3808 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3809 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3810 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3811 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3812 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3813 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3814 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3815 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3816 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3817 (TARGET_SIGNAL_RAW_VALUES): Delete.
3818 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3819 Delete.
3820 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3821 (TARGET_HW_WATCH_LIMIT): Delete.
3822 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3823 * minimon.h: Delete file.
3824
e66299b3
AC
3825 * trad-frame.c (trad_frame_get_this_base)
3826 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3827 functions.
3828 * trad-frame.h (trad_frame_set_this_base)
3829 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3830
1f67027d
AC
38312004-07-31 Andrew Cagney <cagney@gnu.org>
3832
3833 * trad-frame.c (trad_frame_get_prev_register): Rename
3834 trad_frame_get_prev_register.
3835 * vax-tdep.c (vax_frame_prev_register): Update.
3836 * trad-frame.h: Update.
3837 * trad-frame.c (trad_frame_get_register): Update.
3838 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3839 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3840 Update.
3841 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3842 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3843 Update.
3844 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3845 Update.
3846 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3847 Update.
3848 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3849 Update.
3850 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3851 Update.
3852 * s390-tdep.c (s390_frame_prev_register)
3853 (s390_stub_frame_prev_register)
3854 (s390_sigtramp_frame_prev_register): Update.
3855 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3856 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3857 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3858 * m88k-tdep.c (m88k_frame_prev_register)
3859 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3860 * m32r-tdep.c (m32r_frame_prev_register): Update.
3861 * hppa-tdep.c (hppa_frame_prev_register_helper)
3862 * frv-tdep.c (frv_frame_prev_register): Update.
3863 * d10v-tdep.c (d10v_frame_prev_register): Update.
3864 * cris-tdep.c (cris_frame_prev_register): Update.
3865 * avr-tdep.c (avr_frame_prev_register): Update.
3866 * arm-tdep.c (arm_prologue_prev_register)
3867 (arm_sigtramp_prev_register): Update.
3868
c1bf6f65
AC
38692004-07-31 Andrew Cagney <cagney@gnu.org>
3870
3871 * frame.h (legacy_saved_regs_unwind)
3872 (legacy_frame_chain_valid, legacy_frame_p)
3873 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3874 * dummy-frame.c (dummy_frame_this_id): Simplify.
3875 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3876 * frame.c (struct frame_info): Delete the field "type".
3877 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3878 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3879 (legacy_saved_regs_unwind, legacy_frame_p)
3880 (frame_type_from_pc): Delete.
3881 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3882 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3883
dc856692
MK
38842004-07-31 Mark Kettenis <kettenis@gnu.org>
3885
5a5effe1
MK
3886 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3887 indentation.
3888
d4fd50a6
MK
3889 * mips-nat.c: Remove file.
3890 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3891 (mips-nat.o): Remove dependency.
3892
2689df5a
MK
3893 * infptrace.c: Update copyright year.
3894 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3895 explicitly setting the buffer to all zeroes.
3896
dc856692
MK
3897 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3898 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3899
763910e0
AC
39002004-07-30 Andrew Cagney <cagney@gnu.org>
3901
3902 * GDB 6.2 released from gdb_6_2-branch.
3903
0b66e38c
EZ
39042004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3905
3906 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3907
3908 * exec.c (exec_file_attach):
3909 * nto-tdep.c (nto_find_and_open_solib):
3910 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3911 * solib.c (solib_open):
3912 * somsolib.c (som_solib_sizeof_symbol_table):
3913 * source.c (is_regular_file, openp, open_source_file):
3914 * symfile.c (symfile_bfd_open):
3915 * wince.c (upload_to_device): Differentiate between the search for
3916 binary and source files.
3917
be7d7357
AC
39182004-07-30 Andrew Cagney <cagney@gnu.org>
3919
3920 * complaints.c (_initialize_complaints): Pass NULL to
3921 add_setshow_zinteger_cmd for help_doc.
3922 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3923
ddc9cd0f
AC
39242004-07-30 Andrew Cagney <cagney@gnu.org>
3925
3926 Fix PR i18n/761.
3927 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3928 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3929 $(PACKAGE).pot and update-po.
3930 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3931 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3932 (update-po): New rules.
3933 (localedir): Define using autoconf.
3934 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3935 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3936 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3937 * configure.in: Generate CATALOGS and LINGUAS from contents of
3938 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3939 * configure: Re-generate.
3940 * po/gdbtext: New file
3941
e92f3704
JG
39422004-07-30 Jerome Guitton <guitton@gnat.com>
3943
3944 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3945 order.
3946
b0f35d58
DL
39472004-07-30 David Lecomber <dsl@sources.redhat.com>
3948
3949 * dwarf2read.c (read_file_scope): Set producer if attribute
3950 present.
3951 (struct dwarf2_cu): Added new member producer.
3952
ce7d4522
JG
39532004-07-30 Jerome Guitton <guitton@gnat.com>
3954
3955 * inflow.c (kill_command): release file handles in BFD.
3956 * exec.c (exec_file_attach): Ditto.
3957 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3958
05ee07c7
AC
39592004-07-29 Andrew Cagney <cagney@gnu.org>
3960
3961 * PROBLEMS (mips-irix): Note that it is broken.
3962
62eceb47
AC
39632004-07-29 Andrew Cagney <cagney@gnu.org>
3964
e57b8d41
AC
3965 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3966 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3967
d334389b
AC
3968 * config/xm-nbsd.h: Delete file.
3969 * config/arm/xm-nbsd.h: Delete file.
3970 * config/i386/xm-nbsd.h: Delete file.
3971 * config/ns32k/xm-nbsd.h: Delete file.
3972 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3973 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3974 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3975 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3976 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3977
e910f676
AC
3978 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3979 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3980 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3981 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3982 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3983 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3984
6fa856b9
AC
3985 * config/powerpc/xm-linux.h: Delete empty file.
3986 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3987 * config/powerpc/linux.mh (XM_FILE): Delete.
3988 * config/m68k/xm-linux.h: Delete empty file.
3989 * config/m68k/linux.mh (XM_FILE): Delete.
3990 * config/ia64/xm-linux.h: Delete empty file.
3991 * config/ia64/linux.mh (XM_FILE): Delete.
3992 * config/arm/xm-linux.h: Delete empty file.
3993 * config/arm/linux.mh (XM_FILE): Delete.
3994
471ae5ae
AC
3995 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3996 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3997 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3998 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3999 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4000 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4001 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4002 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4003
62eceb47
AC
4004 * config/m68k/xm-m68k.h: Delete file.
4005 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4006 copyright.
4007 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4008 * config/pa/xm-linux.h: Delete empty file.
4009 * config/pa/linux.mh (XM_FILE): Delete.
4010 * config/i386/xm-i386.h: Delete empty file.
4011 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4012 "i386/xm-i386.h".
4013 * config/i386/obsdaout.mh (XM_FILE): Delete.
4014 * config/i386/obsd64.mh (XM_FILE): Delete.
4015 * config/i386/fbsd64.mh (XM_FILE): Delete.
4016 * config/i386/nto.mh (XM_FILE): Delete.
4017 * config/i386/obsd.mh (XM_FILE): Delete.
4018 * config/i386/linux64.mh (XM_FILE): Delete.
4019 * config/i386/linux.mh (XM_FILE): Delete.
4020 * config/i386/i386sol2.mh (XM_FILE): Delete.
4021 * config/i386/i386gnu.mh (XM_FILE): Delete.
4022 * config/i386/fbsd.mh (XM_FILE): Delete.
4023 * config/i386/nbsd64.mh (XM_FILE): Delete.
4024
c35f4ffc
AC
40252004-07-29 Andrew Cagney <cagney@gnu.org>
4026
4027 * config/pa/xm-linux.h: Do not include "floatformat.h".
4028 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4029 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4030 * config/i386/xm-i386.h: Do not include "floatformat.h".
4031 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4032 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4033 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4034 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4035 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4036 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4037 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4038 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4039 * configure, config.in: Regenerate.
4040 * configure.host (gdb_host_float_format, gdb_host_double_format)
4041 (gdb_host_long_double_format): Set according to the host.
4042
624a44a3
AC
40432004-07-29 Andrew Cagney <cagney@gnu.org>
4044
4045 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4046
0dea2468
AC
40472004-07-28 Andrew Cagney <cagney@gnu.org>
4048
4049 * PROBLEMS: Mention threads/1650.
4050 * NEWS: Mention the NPTL fix.
4051
b3f42336
AC
40522004-07-28 Andrew Cagney <cagney@gnu.org>
4053
4054 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4055 (add_setshow_cmd_full): Make static.
4056 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4057 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4058 * cli/cli-decode.c (add_setshow_filename_cmd)
4059 (add_setshow_string_cmd): New functions.
4060 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4061 * mips-tdep.c (_initialize_mips_tdep): Update.
4062 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4063 * cli/cli-logging.c (_initialize_cli_logging): Update.
4064 * complaints.c (_initialize_complaints): Update.
4065 * remote.c (_initialize_remote): Update.
4066
3b64bf98
AC
40672004-07-28 Andrew Cagney <cagney@gnu.org>
4068
4069 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4070 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4071 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4072 print parameters. Make string parameters constant.
4073 * command.h: Update. Update copyright.
4074 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4075 * observer.c (_initialize_observer): Ditto.
4076 * frame.c (_initialize_frame): Ditto.
4077 * complaints.c (_initialize_complaints): Ditto.
4078 * maint.c (_initialize_maint_cmds): Ditto.
4079 * target.c (initialize_targets): Ditto.
4080 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4081 * infcall.c (_initialize_infcall): Ditto.
4082 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4083 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4084 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4085 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4086 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4087
e9667a65
AC
40882004-07-28 Andrew Cagney <cagney@gnu.org>
4089
54a5b07d
AC
4090 * gdbtypes.c (lookup_primitive_typename): Delete function.
4091 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4092 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4093 * gdbtypes.c (lookup_typename): Ditto.
4094 * f-exp.y (yylex): Ditto.
4095 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4096
e9667a65
AC
4097 * scm-lang.c (c_builtin_types): Delete extern declaration.
4098 (scm_language_defn): Replace
4099 string_char_type and primitive_type_vector with
4100 la_language_arch_info.
4101 * jv-lang.c (java_language_defn): Replace
4102 string_char_type and primitive_type_vector with
4103 la_language_arch_info.
4104 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4105 c_builtin_types in comment.
4106 * c-lang.h (struct language_arch_info): Declare opaque.
4107 (c_language_arch_info): Declare.
4108 (c_builtin_types): Delete declaration.
4109 * c-lang.c (c_language_arch_info): Set string_char_type to
4110 builtin_char, not builtin_true_char. Make global.
4111 (c_builtin_types): Delete array.
4112 (asm_language_defn, minimal_language_defn): Replace
4113 string_char_type and primitive_type_vector with
4114 la_language_arch_info.
4115
685419e2
AC
41162004-07-28 Andrew Cagney <cagney@gnu.org>
4117
4118 * gdbtypes.h (struct builtin_type): Rename true_char to
4119 builtin_true_char.
4120 * gdbtypes.c (gdbtypes_post_init): Update.
4121 * c-lang.c (arch_info): New function.
4122 (enum c_primitive_types): New enum.
4123 (c_language_defn): Instead of string_char_type and
4124 primitive_type_vector set la_language_arch_info.
4125
5a44ea29
AC
41262004-07-28 Andrew Cagney <cagney@gnu.org>
4127
4128 * language.h (struct language_arch_info): Fix typo
4129 s/primative/primitive/.
4130 * gdbtypes.c (lookup_primitive_typename): Ditto.
4131 * language.c (language_lookup_primitive_type_by_name)
4132 (unknown_language_arch_info): Ditto.
4133
f290d38e
AC
41342004-07-27 Andrew Cagney <cagney@gnu.org>
4135
4136 * defs.h (enum language): Add nr_languages.
4137 * language.h (struct language_arch_info): Define.
4138 (struct language_defn): Add la_language_arch_info.
4139 (language_lookup_primative_type_by_name): Declare.
4140 (language_string_char_type): Declare.
4141 * language.c (_initialize_language, language_gdbarch_post_init)
4142 (struct language_gdbarch, language_gdbarch_data): Implement
4143 per-architecture language information.
4144 (unknown_language_arch_info, language_string_char_type)
4145 (language_lookup_primative_type_by_name): New functions.
4146 (unknown_language_defn, auto_language_defn)
4147 (local_language_defn): Set la_language_arch_info to
4148 unknown_language_arch_info.
4149 (unknown_builtin_types): Delete.
4150 * gdbtypes.c (lookup_primitive_typename): Use
4151 language_lookup_primative_type_by_name.
4152 (create_string_type): Use language_string_char_type.
4153 * values.c (value_from_string): Use language_string_char_type.
4154 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4155 * p-lang.c (pascal_language_defn): Ditto.
4156 * m2-lang.c (m2_language_defn): Ditto.
4157 * jv-lang.c (java_language_defn): Ditto.
4158 * objc-lang.c (objc_language_defn): Ditto.
4159 * f-lang.c (f_language_defn): Ditto.
4160 * c-lang.c (c_language_defn, cplus_language_defn)
4161 (asm_language_defn, minimal_language_defn): Ditto.
4162
000177f0
AC
41632004-07-27 Andrew Cagney <cagney@gnu.org>
4164
4165 * gdbtypes.h (struct builtin_type): Declare.
4166 (builtin_type): Declare.
4167 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4168 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4169 (gdbtypes_post_init): New function.
4170 (builtin_type): New function.
4171
e22f895c
KI
41722004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4173
4174 * remote-m32r-sdi.c: Fix breakpoint bug.
4175 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4176 recv_char_data, recv_long_data): New functions to replace communication
4177 sequences.
4178
536517dd
MC
41792004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4180
4181 Document PR threads/1650.
4182 * PROBLEMS (Threads): Document problem with many threads
4183
a0a44d18
AC
41842004-07-26 Andrew Cagney <cagney@gnu.org>
4185
4186 * gdb-mi.el: Move from here ...
4187 * mi/gdb-mi.el: ... to here.
4188
7ac4ac06
AC
41892004-07-26 Andrew Cagney <cagney@gnu.org>
4190
4191 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4192 * main.c (captured_main): When in batch mode always detach.
4193
a1b461bf
AC
41942004-07-26 Andrew Cagney <cagney@gnu.org>
4195
4196 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4197 and h8300 as broken.
4198 * NEWS: END-OF-LIFE frame compatibility module.
4199 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4200 specific comments.
4201
cb1a6d5f
AC
42022004-07-26 Andrew Cagney <cagney@gnu.org>
4203
4204 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4205 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4206 * wince.c (_initialize_wince): Update.
4207 * win32-nat.c (_initialize_win32_nat): Update.
4208 * varobj.c (_initialize_varobj): Update.
4209 * valops.c (_initialize_valops): Update.
4210 * utils.c (initialize_utils, initialize_utils): Update.
4211 * tui/tui-win.c (_initialize_tui_win): Update.
4212 * top.c (init_main): Update.
4213 * symfile.c (_initialize_symfile): Update.
4214 * source.c (_initialize_source): Update.
4215 * somsolib.c (_initialize_som_solib): Update.
4216 * solib.c (_initialize_solib): Update.
4217 * solib-frv.c (_initialize_frv_solib): Update.
4218 * serial.c (_initialize_serial): Update.
4219 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4220 * remote.c (_initialize_remote, _initialize_remote): Update.
4221 * remote-vx.c (_initialize_vx): Update.
4222 * remote-utils.c (_initialize_sr_support): Update.
4223 * remote-sds.c (_initialize_remote_sds): Update.
4224 * remote-mips.c (_initialize_remote_mips): Update.
4225 * remote-e7000.c (_initialize_remote_e7000): Update.
4226 * proc-api.c (_initialize_proc_api): Update.
4227 * printcmd.c: Update.
4228 * parse.c (_initialize_parse): Update.
4229 * pa64solib.c (_initialize_pa64_solib): Update.
4230 * p-valprint.c (_initialize_pascal_valprint): Update.
4231 * monitor.c (_initialize_remote_monitors): Update.
4232 * mips-tdep.c (_initialize_mips_tdep): Update.
4233 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4234 * maint.c (_initialize_maint_cmds): Update.
4235 * lin-lwp.c (_initialize_lin_lwp): Update.
4236 * language.c (_initialize_language): Update.
4237 * kod.c (_initialize_kod): Update.
4238 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4239 * i386-tdep.c (_initialize_i386_tdep): Update.
4240 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4241 * gdbarch.sh: Update.
4242 * gdbarch.c: Re-generate.
4243 * gdb-events.sh: Update.
4244 * gdb-events.c: Re-generate.
4245 * frame.c (_initialize_frame): Update.
4246 * exec.c: Update.
4247 * demangle.c (_initialize_demangler): Update.
4248 * dcache.c (_initialize_dcache): Update.
4249 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4250 * cp-valprint.c (_initialize_cp_valprint): Update.
4251 * corefile.c (_initialize_core): Update.
4252 * command.h: Update.
4253 * cli/cli-decode.h: Update.
4254 * cli/cli-cmds.c (init_cli_cmds): Update.
4255 * charset.c (_initialize_charset): Update.
4256 * breakpoint.c (_initialize_breakpoint): Update.
4257 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4258 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4259 * aix-thread.c (_initialize_aix_thread): Update.
4260
b4632131
MK
42612004-07-24 Mark Kettenis <kettenis@gnu.org>
4262
4263 Partial fix for PR backtrace/1718.
4264 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4265 that GCC migrates into the prolugue. Don't handle any
4266 instructions that clobber %ebx.
4267
822c9732
AC
42682004-07-23 Andrew Cagney <cagney@gnu.org>
4269
4270 Use regcache_raw_collect instead of regcache_collect.
4271 * regcache.h (regcache_collect): Delete declaration.
4272 * regcache.c (regcache_colect): Delete function.
4273 * win32-nat.c (do_child_store_inferior_registers): Update.
4274 * sol-thread.c (sol_thread_store_registers): Update.
4275 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4276 * rs6000-nat.c (store_register): Update.
4277 * remote.c (store_register_using_P, remote_store_registers): Update.
4278 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4279 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4280 (fill_vrregset, store_spe_registers, fill_gregset)
4281 (fill_gregset): Update.
4282 * nto-procfs.c (procfs_store_registers): Update.
4283 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4284 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4285 * m68klinux-nat.c (store_register, fill_gregset): Update.
4286 * m68k-tdep.c (fill_gregset): Update.
4287 * infptrace.c (store_register): Update.
4288 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4289 * i386-linux-nat.c (store_register, fill_gregset): Update.
4290 * hppa-linux-nat.c (fill_gregset): Update.
4291 * go32-nat.c (store_register): Update.
4292 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4293 (store_fp_regs): Update.
4294 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4295 (store_nwfpe_extended, store_fpregister, store_fpregs)
4296 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4297 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4298 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4299 (store_regs_user_thread, store_regs_kernel_thread): Update.
4300
32b05c07
MK
43012004-07-24 Mark Kettenis <kettenis@gnu.org>
4302
4303 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4304 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4305 encoding.
4306 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4307 member of `struct comp_unit'.
4308
8567c30f
AC
43092004-07-23 Andrew Cagney <cagney@gnu.org>
4310
4311 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4312 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4313
f6da8dd8
MH
43142004-07-23 Martin Hunt <hunt@redhat.com>
4315 Kevin Buettner <kevinb@redhat.com>
4316
4317 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4318 alignment was being added to the offset instead of multiplied.
4319
bd921882
MK
43202004-07-23 Mark Kettenis <kettenis@gnu.org>
4321
24f033e8
MK
4322 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4323 changed signal trampoline in OpenBSD 3.5-current.
4324
90f3cecd
MK
4325 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4326 <machine/pcb.h> and "bsd-kvm.h".
4327 (sparc64nbsd_supply_pcb): New function.
4328 (_initialize_sparc64nbsd_nat): Renamed from
4329 _initialize_sparcnbsd_nat. Enable libkvm interface.
4330 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4331 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4332 (LOADLIBES): New variable.
4333
a4954a62
MK
4334 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4335
bd921882
MK
4336 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4337
23a6d369
AC
43382004-07-21 Andrew Cagney <cagney@gnu.org>
4339
4340 Use regcache_raw_supply instead of supply_register.
4341 * regcache.h (supply_register): Delete declaration.
4342 * regcache.c (supply_register): Delete function.
4343 * wince.c (do_child_fetch_inferior_registers): Update.
4344 * win32-nat.c (do_child_fetch_inferior_registers)
4345 (fetch_elf_core_registers): Update.
4346 * v850ice.c (v850ice_fetch_registers): Update.
4347 * thread-db.c (thread_db_store_registers): Update.
4348 * sol-thread.c (sol_thread_store_registers): Update.
4349 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4350 * rs6000-nat.c (fetch_register): Update.
4351 * rom68k-rom.c (rom68k_supply_one_register): Update.
4352 * remote.c (remote_wait, remote_async_wait): Update.
4353 * remote-st.c (get_hex_regs): Update.
4354 * remote-sim.c (gdbsim_fetch_register): Update.
4355 * remote-sds.c (sds_fetch_registers): Update.
4356 * remote-rdp.c (remote_rdp_fetch_register): Update.
4357 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4358 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4359 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4360 * remote-hms.c (init_hms_cmds): Update.
4361 * remote-est.c (init_est_cmds): Update.
4362 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4363 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4364 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4365 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4366 (fetch_register, supply_vrregset, supply_vrregset)
4367 (fetch_spe_registers): Update.
4368 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4369 * monitor.c (monitor_supply_register): Update.
4370 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4371 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4372 (mipsnbsd_supply_fpreg): Update.
4373 * mips-nat.c (fetch_inferior_registers)
4374 (fetch_core_registers): Update.
4375 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4376 (supply_fpregset, mips64_supply_gregset)
4377 (mips64_supply_fpregset): Update.
4378 * m68klinux-nat.c (fetch_register, supply_gregset)
4379 (supply_fpregset): Update.
4380 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4381 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4382 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4383 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4384 * infptrace.c (fetch_register): Update.
4385 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4386 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4387 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4388 (gnu_fetch_registers, gnu_store_registers): Update.
4389 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4390 * i386-linux-nat.c (fetch_register, supply_gregset)
4391 (dummy_sse_values): Update.
4392 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4393 * hppah-nat.c (fetch_register): Update.
4394 * hppa-linux-nat.c (fetch_register, supply_gregset)
4395 (supply_fpregset): Update.
4396 * go32-nat.c (fetch_register): Update.
4397 * dve3900-rom.c (fetch_bitmapped_register)
4398 (_initialize_r3900_rom): Update.
4399 * cris-tdep.c (supply_gregset): Update.
4400 * abug-rom.c (init_abug_cmds): Update.
4401 * core-aout.c (fetch_core_registers): Update.
4402 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4403 (fetch_register, fetch_fp_register): Update.
4404 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4405 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4406 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4407 * alphanbsd-tdep.c (fetch_core_registers): Update.
4408 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4409 * alpha-nat.c (fetch_osf_core_registers)
4410 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4411 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4412 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4413
73cc75f3
AC
44142004-07-21 Andrew Cagney <cagney@gnu.org>
4415
4416 * PROBLEMS: Mention breakpoints/1702.
4417 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4418 that is known to work.
4419
a53c66de
AC
44202004-07-21 Andrew Cagney <cagney@gnu.org>
4421
4422 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4423 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4424 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4425 (handle_inferior_event): Wrap call to deprecated
4426 IGNORE_HELPER_CALL in #ifdef.
4427 * config/mips/tm-nbsd.h: Update.
4428
708ff411
JB
44292004-07-20 Jim Blandy <jimb@redhat.com>
4430
412b3060
JB
4431 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4432 bfd_mach_ppc has no segment registers.
4433
13ac140c
JB
4434 Include PowerPC SPR numbers for special-purpose registers.
4435 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4436 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4437 new member in initializer.
4438 (S, S4, SN4, S64): New macros for defining special-purpose
4439 registers.
4440 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4441 registers_403, registers_403GC, registers_505, registers_860,
4442 registers_601, registers_602, registers_603, registers_604,
4443 registers_750, registers_e500): Use them.
4444
708ff411
JB
4445 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4446 replace references with expression used to initialize variable.
4447
1f602b35
AC
44482004-07-20 Andrew Cagney <cagney@gnu.org>
4449
4450 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4451 read_memory_nobpt.
4452 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4453 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4454 (s390_sigtramp_frame_sniffer): Update.
4455 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4456 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4457 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4458 (mips32_fetch_instruction): Update.
4459 * mcore-tdep.c (get_insn): Update.
4460 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4461 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4462 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4463 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4464 (i386_linux_rt_sigtramp_start): Update.
4465 * i386-linux-nat.c (child_resume): Update.
4466 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4467 * hppa-linux-tdep.c (insns_match_pattern): Update.
4468 * gdbcore.h: Update.
4469 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4470 * frame.c (safe_frame_unwind_memory): Update.
4471 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4472 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4473 * alpha-tdep.c (alpha_read_insn): Update.
4474
2cd8546d
AC
44752004-07-20 Andrew Cagney <cagney@gnu.org>
4476
4477 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4478 containing both bytes and mask. Add "frame_type".
4479 * tramp-frame.c (tramp_frame_start): Update.
4480 (tramp_frame_prepend_unwinder): Update.
4481 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4482 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4483 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4484 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4485
f928dd62
EZ
44862004-07-19 Eli Zaretskii <eliz@gnu.org>
4487
4488 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4489 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4490 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4491 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4492
d5c560f7
AC
44932004-07-17 Andrew Cagney <cagney@gnu.org>
4494
860660cb
AC
4495 * NEWS, PROBLEMS: Update for 6.2.
4496
8c266f54
AC
4497 * README: Update to 6.2.
4498
a552edd9
AC
4499 * utils.c (xvasprintf): Call xstrvprintf.
4500
c4a172b5
AC
4501 * parse.c: Update copyright.
4502 (null_post_parser): Eliminate ARGSUSED.
4503
da745b36
AC
4504 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4505 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4506 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4507
9cbc6ef0
AC
4508 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4509 * ppc-linux-nat.c: Use "Linux kernel".
4510 * hppa-linux-tdep.c: Use GNU/Linux.
4511 * hppa-linux-nat.c: Use GNU/Linux.
4512 * dwarfread.c: Add [sic] to use of Linux.
4513
1b89295f
AC
4514 * hppa-linux-nat.c: Do not include <string.h>.
4515 (supply_fpregset): Remove "register" attribute.
4516
d5c560f7
AC
4517 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4518
7ddd7709
MK
45192004-07-17 Mark Kettenis <kettenis@gnu.org>
4520
b1d19a62
MK
4521 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4522 * configure, config.in: Regenerated.
4523
7ddd7709
MK
4524 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4525 "bsd-kvm.h".
4526 (vaxbsd_supply_pcb): New function.
4527 (_initialize_vaxbsd_nat): New prototype and function.
4528 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4529 solib-sunos.o.
4530 (LOADLIBES): New variable.
4531 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4532 (LOADLIBES): New variable.
4533 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4534 (LOADLIBES): New variable.
4535 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4536
2c07db7a
AC
45372004-07-16 Andrew Cagney <cagney@gnu.org>
4538
4539 * defs.h (event_loop_p): Replace variable declaration with macro,
4540 always 1.
4541 * main.c (captured_main): Delete options "-async" and "-noasync".
4542 (event_loop_p): Delete variable.
4543 * NEWS: Mention that "-async" and "-noasync" were removed.
4544
717eb1cf
AC
45452004-07-16 Andrew Cagney <cagney@gnu.org>
4546
4547 * remote-m32r-sdi.c: Re-indent.
4548
c101bc14
JB
45492004-07-16 Jim Blandy <jimb@redhat.com>
4550
5109a438
JB
4551 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4552 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4553 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4554 missing MPC823 SPRs.
4555 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4556 incorrect. (This was corrected in GDB's register name tables on
4557 2004-07-14.)
4558
c101bc14
JB
4559 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4560 should be "esasrr" ("ESA Save and Restore Register").
4561
7ce450bd
AC
45622004-07-16 Andrew Cagney <cagney@gnu.org>
4563
4564 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4565 calls, no longer applicable. Update comments and rename parameter
4566 "step_frame" to "return_frame".
4567
ca73dd9d
AC
45682004-07-16 Andrew Cagney <cagney@gnu.org>
4569
4570 * frame.c (fprint_field): New function.
4571 (fprint_frame_id): Use fprint_field.
4572
31941f6d
JB
45732004-07-15 Joel Brobecker <brobecker@gnat.com>
4574
4575 * ada-lang.c (ada_language_defn): Remove commented out code.
4576
f86a7158
JB
45772004-07-15 Jim Blandy <jimb@redhat.com>
4578
4579 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4580 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4581
c24791ec
JB
45822004-07-14 Jim Blandy <jimb@redhat.com>
4583
29bb1356
JB
4584 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4585
cc98b5cc
JB
4586 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4587
8f088af7
JB
4588 * ppc-tdep.h (ppc_num_srs): New enum constant.
4589
0ea0ec5f
JB
4590 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4591 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4592 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4593 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4594 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4595 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4596 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4597 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4598 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4599 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4600 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4601 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4602 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4603 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4604 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4605 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4606 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4607 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4608 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4609 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4610 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4611 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4612 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4613 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4614 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4615 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4616 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4617 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4618 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4619 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4620 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4621 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4622 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4623 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4624 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4625 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4626 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4627 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4628 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4629 special-purpose register numbers.
4630
c24791ec
JB
4631 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4632 manual mentions 'md_twb', but many mention 'm_twb', and at that
4633 point in the register list.)
4634
d833db3b
AC
46352004-07-14 Andrew Cagney <cagney@gnu.org>
4636
4637 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4638 instead of "internal-error".
4639
080228b2
JB
46402004-07-10 Joel Brobecker <brobecker@gnat.com>
4641
4642 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4643 that was inserted inside a comment.
4644
c268433a
RC
46452004-07-10 Randolph Chung <tausq@debian.org>
4646
4647 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4648 function.
4649 (hppa_hpux_push_dummy_code): New function.
4650 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4651 Set find_global_pointer method.
4652
71009278
MK
46532004-07-10 Mark Kettenis <kettenis@gnu.org>
4654
4655 * NEWS: Mention BSD libkvm interface.
4656
b2fa5097
MS
46572004-07-10 Michael Snyder <msnyder@redhat.com>
4658
4659 * symfile.c (generic_load): Comment typo.
4660 * stack.c (get_selected_block): Ditto.
4661 * regcache.c (regcache_cooked_read): Ditto.
4662 * monitor.c (monitor_debug): Ditto.
4663 * mips-tdep.c (mips_read_pc): Ditto.
4664 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4665 * gdb_mbuild.sh: Ditto.
4666 * gdbarch.sh: Ditto.
4667 * gdbarch.h: Ditto.
4668
c3e5cd34
PH
46692004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4670
8a2225b2
PH
4671 * ada-tasks.c: Remove file.
4672
c3e5cd34
PH
4673 Remove ARI problems:
4674
4675 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4676 beginning of line.
4677
4678 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4679 Add comment.
4680 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4681 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4682 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4683 (UMIN_OF_SIZE): Remove.
4684 (max_of_type): New function to replace orphan macro in gdbtypes.h
4685 (min_of_type): Ditto.
4686 (discrete_type_high_bound): Use max_of_type.
4687 (discrete_type_low_bound): Use min_of_type.
4688 (possible_user_operator_p): Move operator to beginning of line.
4689 (ada_is_variant_part): Ditto.
4690 (ensure_lval): Rewrite to avoid deprecated operations.
4691 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4692 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4693 (ada_enum_name): Remove assignments in 'if' statements.
4694 (build_ada_types): Add gdbarch parameter.
4695 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4696 with gdbarch_data_register_post_init.
4697 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4698 add_show_from_set.
4699
4700 * ada-valprint.c (inspect_it): Remove declaration.
4701 (repeat_count_threshold): Remove declaration.
4702 (ada_print_floating): Remove assignments in 'if' statements.
4703 (print_str): Move operator to beginning of line.
4704
61ce229a
JB
47052004-07-08 Jim Blandy <jimb@redhat.com>
4706
4707 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4708
09bcec80
BR
47092004-07-08 Bob Rossi <bob@brasko.net>
4710
4711 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4712
31c27f77
JJ
47132004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4714
4715 * language.h (struct_language_defn): Add new function pointer:
4716 la_class_name_from_physname. Also add new prototype for
4717 language_class_name_from_physname.
4718 * language.c (language_class_name_from_physname): New function.
4719 (unk_lang_class_name): Ditto.
4720 (unknown_language_defn, auto_language_defn): Change
4721 to add unk_lang_class_name function pointer for
4722 la_class_name_from_physname.
4723 (local_language_defn): Ditto.
4724 * dwarf2read.c (guess_structure_name): Change to call
4725 language_class_name_from_physname.
4726 (determine_class_name): Ditto.
4727 * cp-support.c (class_name_from_physname): Renamed.
4728 (cp_class_name_from_physname): New name of function.
4729 * cp-support.h: Ditto.
4730 * c-lang.c (c_language_defn): Change to add NULL
4731 for class_name_from_physname function pointer.
4732 (cplus_language_defn): Change to add cp_class_name_from_physname.
4733 * jv-lang.c (java_class_name_physname): New function.
4734 (java_find_last_component): New static routine.
4735 (java_language_defn): Add java_class_name_from_physname pointer.
4736 * ada-lang.c (ada_language_defn): Change to add NULL
4737 for class_name_from_physname function pointer.
4738 * f-lang.c (f_language_defn): Ditto.
4739 * m2-lang.c (m2_language_defn): Ditto.
4740 * objc-lang.c (objc_language_defn): Ditto.
4741 * p-lang.c (pascal_language_defn): Ditto.
4742 * scm-lang.c (scm_language_defn): Ditto.
4743
ee28ca0f
AC
47442004-07-06 Andrew Cagney <cagney@gnu.org>
4745
4746 Patch from Bart Robinson.
4747 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4748 (O_LARGEFILE): Define to 0, if not defined.
4749
fdb1bf9d
MK
47502004-07-03 Mark Kettenis <kettenis@gnu.org>
4751
cb162ff6
MK
4752 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4753 <machine/pcb.h> and "bsd-kvm.h".
4754 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4755 (m68kbsd_supply_pcb): New function.
4756 (_initialize_m68kbsd_nat): New prototype and function.
4757 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4758 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4759 (LOADLIBES): New variable.
4760 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4761 (LOADLIBES): New variable.
4762
fdb1bf9d
MK
4763 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4764
963c4174
MK
47652004-07-03 Mark Kettenis <kettenis@gnu.org>
4766
4767 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4768 <sys/proc.h>.
4769 (bsd_kvm_cmdlist): New variable.
4770 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4771 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4772 command and "kvm proc" command.
4773 * Makefile.in (bsd-kvm.o): Update dependencies.
4774
533f1d8f
MK
47752004-07-02 Mark Kettenis <kettenis@gnu.org>
4776
4777 * osabi.c: Update copyright year.
4778 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4779 notes if EI_OSABI is set to ELFOSABI_HPUX.
4780
6780dcde
MS
47812004-07-01 Michael Snyder <msnyder@redhat.com>
4782
4783 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4784 that seems to have gotten whacked out of line.
4785
67bebe79
MK
47862004-07-01 Mark Kettenis <kettenis@gnu.org>
4787
4788 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4789 code.
4790
0b5d8877
PH
47912004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4792
4793 * ada-lang.c (decode_packed_array): Minor change to comment.
4794 (ada_value_slice_ptr): New function.
4795 (ada_value_slice): New function.
4796 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4797 test. Don't know why it is there.
4798 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4799 to avoid dereferencing huge arrays from which one is slicing.
4800 (empty_array): Correct to return an array rather than
4801 a subrange value.
4802 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4803 on empty arrays (let'em use 'FIRST instead).
4804
19c1ef65
PH
48052004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4806
4807 Address complaints from gdb_ari.sh:
4808
4809 * ada-exp.y: Include gdb_string.h rather than string.h.
4810 (convert_char_literal): Reformat declaration.
4811 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4812 * ada-lex.l: Change use of free to xfree (the macro would do so
4813 anyway, but this is harmless).
4814 Include gdb_string.h rather than string.h.
4815 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4816
4817 * ada-lang.c (parse): Remove K&Rism in parameter list.
4818 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4819
d81cbc94
MK
48202004-06-30 Mark Kettenis <kettenis@gnu.org>
4821
4822 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4823 dead code.
4824
07681759
MK
48252004-06-30 Mark Kettenis <kettenis@gnu.org>
4826
4827 * alphabsd-nat.c: Update copyright year.
4828 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4829
f7948b5f
JB
48302004-06-29 Joel Brobecker <brobecker@gnat.com>
4831
6e0cdd28 4832 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4833 (i386_cygwin_in_solib_call_trampoline): New function.
4834 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4835 and skip_trampoline_code gdbarch methods.
4836
8f113c9a
JB
48372004-06-29 Jim Blandy <jimb@redhat.com>
4838
4839 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4840 name actually used in the dependency lists.
4841
97dc871c
RC
48422004-06-29 Randolph Chung <tausq@debian.org>
4843
4844 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4845
47216e51
CV
48462004-06-29 Corinna Vinschen <vinschen@redhat.com>
4847
4848 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4849 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4850 functionality.
4851
e623b504
AC
48522004-06-28 Andrew Cagney <cagney@gnu.org>
4853
4854 * defs.h (xstrvprintf): Declare.
4855 * utils.c (xstrvprintf): New function.
4856 (internal_vproblem, xstrprintf, xasprintf)
4857 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4858 * serial.c (serial_printf): Ditto.
4859 * complaints.c (vcomplaint): Ditto.
4860
79acc9b3
CV
48612004-06-29 Corinna Vinschen <vinschen@redhat.com>
4862
4863 * infcmd.c (attach_command): Move call to target_terminal_inferior
4864 behind loading symbol table.
4865
1daf35d9
AC
48662004-06-28 Andrew Cagney <cagney@gnu.org>
4867
4868 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4869 change - add back extern deprecated_ui_loop_hook declaration.
4870
b435e160
AC
48712004-06-28 Andrew Cagney <cagney@gnu.org>
4872
4873 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4874 xstrprintf.
4875 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4876 (c_value_of_variable): Ditto.
4877 * utils.c (internal_vproblem): Ditto.
4878 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4879 * remote.c (add_packet_config_cmd): Ditto.
4880 * remote-rdp.c (rdp_set_command_line): Ditto.
4881 * regcache.c (regcache_dump): Ditto.
4882 * frv-tdep.c (new_variant, new_variant): Ditto.
4883 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4884 (fbsd_find_memory_regions): Ditto.
4885 * breakpoint.c (create_thread_event_breakpoint)
4886 (create_breakpoints): Ditto.
4887 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4888 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4889
06d5cf63
JB
48902004-06-28 Joel Brobecker <brobecker@gnat.com>
4891
4892 * ada-lang.c: Re-indent file, with some massaging to help indent
4893 a bit when the result is otherwise really too ugly.
4894
35809fad
UW
48952004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4896
4897 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4898 code_addr_p and special_addr_p to 'unsigned int'.
4899
40e20472
MK
49002004-06-27 Mark Kettenis <kettenis@gnu.org>
4901
4902 * i386v4-nat.c: Update copyright year and tweak comment.
4903 (regmap): Remove trailing comma.
4904 (supply_gregset): Rename local variable i to regnum. Call
4905 regcache_raw_supply instead of supply_register.
4906 (fill_gregset): Rename argument regno to regnum. Call
4907 regcache_raw_collect instead of regcache_collect.
4908
12b0b6de
UW
49092004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4910
4911 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4912 and special_addr_p.
4913 (frame_id_build, frame_id_build_special): Update comments.
4914 (frame_id_build_wild): New prototype.
4915 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4916 struct frame_id fields.
4917 (frame_id_build_wild): New function.
4918 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4919
47b42a3e
MK
49202004-06-27 Mark Kettenis <kettenis@gnu.org>
4921
4922 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4923 hppabsd-tdep.c.
4924
1265e4aa
JB
49252004-06-27 Joel Brobecker <brobecker@gnat.com>
4926
4927 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4928
76a01679
JB
49292004-06-27 Joel Brobecker <brobecker@gnat.com>
4930
4931 * ada-lang.c: Re-indent file.
4932
7aca490a
JB
49332004-06-27 Joel Brobecker <brobecker@gnat.com>
4934
4935 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4936 (no_symtab_msg): Likewise.
4937
5e987968
AS
49382004-06-27 Andreas Schwab <schwab@suse.de>
4939
4940 * source.c: Fix whitespace.
4941
315c4276
MK
49422004-06-27 Mark Kettenis <kettenis@gnu.org>
4943
d15be926
MK
4944 * configure.in: Include <sys/param.h> for td_pcb test.
4945 * configure: Regenerated.
4946
9062529b
MK
4947 * i386nbsd-nat.c: New file.
4948 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4949 i386obsd-nat.c and i386obsd-tdep.c.
4950 (i386nbsd-nat.o): New dependency.
4951 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4952 bsd-kvm.o.
4953 (LOADLIBES): New variable.
4954 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4955 bsd-kvm.o.
4956 (LOADLIBES): New variable.
4957
8010310e
MK
4958 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4959 (LOADLIBES): New variable.
4960
efe1d7b9
MK
4961 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4962 fetching from BSD_KVM_PADDR. Correctly lookup address for
4963 "_thread0".
4964
315c4276
MK
4965 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4966 "bsd-kvm.h".
4967 (amd64fbsd_supply_pcb): New funcion.
4968 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4969
399cfac6
DL
49702004-06-27 <david@streamline-computing.com>
4971
4972 Partial fix for PR cli/1056.
4973 * valarith.c: Check for zero in division and remainder
4974 evaluation.
4975
6235f9c8
MK
49762004-06-27 Mark Kettenis <kettenis@gnu.org>
4977
4978 * i387-tdep.c: Remove excessive whitespace.
4979
2726dafc
AC
49802004-06-26 Andrew Cagney <cagney@gnu.org>
4981
4982 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4983 * gdb-events.h, gdb-events.c: Re-generate.
4984 * tui/tui-hooks.c (tui_install_hooks): Update.
4985 (tui_remove_hooks): Update.
4986 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4987
0e56aeaf
MK
49882004-06-26 Mark Kettenis <kettenis@gnu.org>
4989
cb461069
MK
4990 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4991 (gregset_t, fpregset_t): Remove typedefs.
4992 (REG_OFFSET): Rename argument.
4993 (amd64bsd_r_reg_offset): Rename from reg_offset.
4994 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4995 Remove functions.
4996 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4997 of reg_offset.
4998 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4999
ecba89de
MK
5000 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5001
4cd80476
MK
5002 * vax-tdep.c: Tweak comment.
5003
0e56aeaf
MK
5004 Add OpenBSD/hppa support.
5005 * NEWS (New native configurations): Mention OpenBSD/hppa.
5006 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5007 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5008 files.
5009 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5010 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5011 * configure.host: Add hppa*-*-openbsd*.
5012 * configure.tgt: Add hppa*-*-openbsd*.
5013
98bbd631
AC
50142004-06-25 Andrew Cagney <cagney@gnu.org>
5015
5016 * defs.h (deprecated_ui_loop_hook): Deprecated.
5017 * wince.c (child_wait): Update.
5018 * win32-nat.c (child_wait): Update.
5019 * v850ice.c (v850ice_wait): Update.
5020 * top.c (deprecated_ui_loop_hook): Update.
5021 * serial.h: Update.
5022 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5023 (do_unix_readchar): Update.
5024 * ser-tcp.c (net_open): Update.
5025 * remote-sim.c (gdb_os_poll_quit): Update.
5026 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5027
769d7dc4
AC
50282004-06-24 Andrew Cagney <cagney@gnu.org>
5029
5030 * defs.h (deprecated_pre_add_symbol_hook)
5031 (deprecated_post_add_symbol_hook): Deprecated.
5032 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5033 (symbol_file_add_with_addrs_or_offsets): Update references.
5034
11c949aa
AC
50352004-06-24 Andrew Cagney <cagney@gnu.org>
5036
5037 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5038 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5039 * wince.c (ui_loop_hook): Delete extern declaration.
5040 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5041 * v850ice.c (ui_loop_hook): Delete extern declaration..
5042 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5043 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5044 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5045 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5046 ui_loop_hook declaration.
5047
eedc19af
AC
50482004-06-24 Andrew Cagney <cagney@gnu.org>
5049
5050 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5051 entry_func_highpc fields.
5052 * objfiles.c (init_entry_point_info): Do not clear
5053 entry_func_lowpc and entry_func_highpc.
5054 (objfile_relocate): Do not relocate entry_func_lowpc and
5055 entry_func_highpc.
5056 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5057 entry_func_highpc.
5058 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5059 entry_func_highpc.
5060 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5061 entry_func_lowpc and entry_func_highpc with call to
5062 inside_entry_func.
5063
d47079be
MK
50642004-06-24 Mark Kettenis <kettenis@gnu.org>
5065
5066 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5067 quad-precision floating point arguments in registers.
5068
2107e348
MK
50692004-06-24 Mark Kettenis <kettenis@gnu.org>
5070
5071 From Michael Mueller <m.mueller99@kay-mueller.de>:
5072 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5073 account.
5074
46587c42
JJ
50752004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5076
5077 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5078 to -1.
5079 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5080 untriggered watchpoints to a separate if clause. Update function
5081 comment regarding STOPPED_BY_WATCHPOINT argument.
5082
226f5cf4
JB
50832004-06-22 Jim Blandy <jimb@redhat.com>
5084
5085 * gdbarch.sh: Doc fix.
5086
f10683bb
MH
50872004-06-21 Martin Hunt <hunt@redhat.com>
5088 Kevin Buettner <kevinb@redhat.com>
5089
5090 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5091 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5092 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5093 to set_gdbarch_sp_regnum(). Use cooked register number.
5094 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5095
412d5987
AC
50962004-06-21 Andrew Cagney <cagney@gnu.org>
5097
5098 * gdbarch.sh: When the macro field is empty, do not generate a
5099 macro definition. When the macro field is "=", generate the macro
5100 name from the upper-case function name.
5101 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5102 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5103 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5104 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5105 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5106 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5107 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5108 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5109 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5110 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5111 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5112 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5113 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5114 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5115 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5116 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5117 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5118 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5119 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5120 (DEPRECATED_USE_STRUCT_CONVENTION)
5121 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5122 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5123 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5124 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5125 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5126 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5127 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5128 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5129 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5130 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5131 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5132 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5133 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5134 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5135 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5136 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5137 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5138 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5139
68908a3e
AC
51402004-06-21 Andrew Cagney <cagney@gnu.org>
5141
48f7351b
AC
5142 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5143 macro name, and the function rather than macro value. Only wrap
5144 macro print statements in #ifdef. Move format logic to where it
5145 is needed.
5146 * gdbarch.c: Re-generate.
5147
283354d8
AC
5148 * gdbarch.sh (read): Delete "print_p" and "description", add
5149 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5150 Delete references to print_p.
5151 (TARGET_ARCHITECTURE): Delete print predicate.
5152 * gdbarch.c: Re-generate.
5153
68908a3e
AC
5154 * gdbarch.sh: Check that multi-arch methods do not provide a
5155 macro.
5156 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5157 (print_registers_info, print_float_info, print_vector_info)
5158 (adjust_breakpoint_address, remote_translate_xfer_address)
5159 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5160 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5161 name from the multi-arch definition.
5162
a2428dbe
AC
51632004-06-20 Andrew Cagney <cagney@gnu.org>
5164
5165 * gdbarch.sh: Sort by the function, instead of macro name.
5166 * gdbarch.c: Re-generate.
5167
750eb019
AC
51682004-06-20 Andrew Cagney <cagney@gnu.org>
5169
66d659b1
AC
5170 * gdbarch.sh: Use the function, instead of macro name in
5171 errors and the log file.
5172 (return_value): Remove stray ":" in spec.
5173
750eb019
AC
5174 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5175 * gdbarch.h, gdbarch.c: Re-generate.
5176 * Makefile.in (arch-utils.o): Update dependencies.
5177 * values.c (using_struct_return): Move code calling
5178 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5179 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5180 to legacy_return_value, simplify.
5181 * infcmd.c (print_return_value): Move code calling
5182 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5183 to legacy_return_value, simplify.
5184 * infcall.c (call_function_by_hand): Move code calling
5185 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5186 * arch-utils.c: Update copyright. Include "gdbcore.h".
5187 (legacy_return_value): New function.
5188 * arch-utils.h: Update copyright.
5189 (legacy_return_value): Declare.
5190
b5622e8d
AC
51912004-06-20 Andrew Cagney <cagney@gnu.org>
5192
5193 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5194 * gdbarch.h, gdbarch.c: Re-generate.
5195 * values.c (using_struct_return): Update call.
5196 * mcore-tdep.c: Update comment.
5197 * infcall.c (call_function_by_hand): Update comment.
5198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5199 * arch-utils.h (always_use_struct_convention): Update.
5200 * v850-tdep.c (v850_gdbarch_init): Update.
5201 * sh64-tdep.c (sh64_gdbarch_init): Update.
5202 * sh-tdep.c (sh_gdbarch_init): Update.
5203 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5204 * mips-tdep.c (mips_gdbarch_init): Update.
5205 * mcore-tdep.c (mcore_gdbarch_init): Update.
5206 * m32r-tdep.c (m32r_gdbarch_init): Update.
5207 * ia64-tdep.c (ia64_gdbarch_init): Update.
5208 * h8300-tdep.c (h8300_gdbarch_init): Update.
5209 * frv-tdep.c (frv_gdbarch_init): Update.
5210 * cris-tdep.c (cris_gdbarch_init): Update.
5211 * arm-tdep.c (arm_gdbarch_init): Update.
5212 * alpha-tdep.c (alpha_gdbarch_init): Update.
5213
5191de37
MC
52142004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5215
5216 * PROBLEMS: Add more specific information, and a work-around,
5217 for PR gdb/1458.
5218
782263ab
AC
52192004-06-18 Andrew Cagney <cagney@gnu.org>
5220
5221 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5222 * gdbarch.h, gdbarch.c: Re-generate.
5223 * ada-lang.c (ada_finish_decode_line_1): Update.
5224 * infrun.c (handle_inferior_event): Update.
5225 * infcall.c (find_function_addr): Update.
5226 * linespec.c (minsym_found): Update.
5227 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5228 Update.
5229 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5230 * cli/cli-cmds.c (disassemble_command): Update.
5231 * vax-tdep.c (vax_gdbarch_init): Update.
5232
2f305df1
MK
52332004-06-18 Mark Kettenis <kettenis@gnu.org>
5234
5235 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5236
e5fe55f7
AC
52372004-06-17 Andrew Cagney <cagney@gnu.org>
5238
5239 GDB 6.1.1 released from the GDB 6.1 branch.
5240 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5241 * PROBLEMS: Ditto.
5242
473b7be6
DJ
52432004-06-16 Daniel Jacobowitz <dan@debian.org>
5244
5245 PR gdb/1658
5246 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5247 operation as a uleb128. Found by Michael Coulter.
5248
96d887e8
PH
52492004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5250
5251 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5252 make it non-static.
5253 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5254 to ada-lang.h; this is needed to be able to implement the kill command
5255 in multi-task mode.
5256 (task_ptid): Ditto.
5257 (task_entry): Ditto.
5258 (task_list): Ditto.
5259 (ada_build_task_list): Ditto.
5260
5261 * ada-lang.c: Conditionalize routines and data structures related
5262 to breakpoints, exceptions, completion, and symbol caching on
5263 GNAT_GDB, since these are not yet used in the submitted public sources.
5264 (ada_main_name): Editorial: Move definition out of exception-related
5265 code.
5266
31eef181
AC
52672004-06-15 Andrew Cagney <cagney@gnu.org>
5268
5269 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5270 deprecated_pc_in_call_dummy.
5271
2c500098
AM
52722004-06-15 Alan Modra <amodra@bigpond.net.au>
5273
5274 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5275 bfd_get_section_size_before_reloc or _raw_size.
5276 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5277 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5278 (dwarf2_read_section): Likewise.
5279 * elfread.c (elf_locate_sections): Likewise.
5280 * gcore.c (derive_heap_segment): Likewise.
5281 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5282 * remote-e7000.c (e7000_load): Likewise.
5283 * remote-m32r-sdi.c (m32r_load): Likewise.
5284 * remote-mips.c (mips_load_srec): Likewise.
5285 (pmon_load_fast): Likewise.
5286 * remote.c (compare_sections_command): Likewise.
5287 * symfile.c (add_section_size_callback): Likewise.
5288 (load_section_callback): Likewise.
5289 (pc_in_unmapped_range): Likewise.
5290 (pc_in_mapped_range): Likewise.
5291 (sections_overlap): Likewise.
5292 (list_overlays_command): Likewise.
5293 (simple_overlay_update_1): Likewise.
5294 (simple_overlay_update): Likewise.
5295 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5296 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5297
90f943f1
RC
52982004-06-14 Randolph Chung <tausq@debian.org>
5299
5300 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5301 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5302 static.
5303 (hppa_hpux_inferior_created): New function.
5304 (hppa_hpux_init_abi): Register observer.
5305 * symfile.c (hp_cxx_exception_support_initialized)
5306 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5307 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5308
700c15aa
RC
53092004-06-14 Randolph Chung <tausq@debian.org>
5310
3973a7d3
AC
5311 * MAINTAINERS (Write After Approval): Alphabetize my entry
5312 correctly.
700c15aa 5313
cea4838c
AC
53142004-06-14 Andrew Cagney <cagney@gnu.org>
5315
5316 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5317 testsuite maintainer.
5318
97092415
AC
53192004-06-13 Andrew Cagney <cagney@gnu.org>
5320
e8c3165b
AC
5321 * infcmd.c (print_return_value): Fix logic, allow
5322 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5323
bceabdd8
AC
5324 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5325 defining any macros.
5326 * gdbarch.h: Re-generate.
5327
57010b1c
AC
5328 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5329 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5330 * gdbarch.h: Re-generate.
5331
bc87dfa0
AC
5332 * values.c (generic_use_struct_convention): Don't check gcc_p.
5333
15ac804d
AC
5334 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5335 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5336 * gdbarch.h, gdbarch.c: Regenerate.
5337 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5338 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5340 deprecated_max_register_raw_size and
5341 deprecated_max_register_virtual_size.
5342 * v850-tdep.c (v850_gdbarch_init): Ditto.
5343 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5344 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5345 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5346 * cris-tdep.c (cris_gdbarch_init): Ditto.
5347
97092415
AC
5348 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5349 * gdbarch.h, gdbarch.c: Re-generate.
5350 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5351 (m68hc11_use_struct_convention): Delete function.
5352 (m68hc11_extract_struct_value_address): Delete function.
5353 (m68hc11_return_value): New function.
5354 (m68hc11_gdbarch_init): Instead of store_return_value,
5355 extract_return_value, return_value_on_stack,
5356 deprecated_extract_struct_value_address and use_struct_convention,
5357 set return_value.
5358 * values.c (using_struct_return): Do not call
5359 RETURN_VALUE_ON_STACK.
5360 * arch-utils.h (generic_return_value_on_stack_not): Delete
5361 declaration.
5362 * arch-utils.c (generic_return_value_on_stack_not): Delete
5363 function.
5364
44e5158b
AC
53652004-06-12 Andrew Cagney <cagney@gnu.org>
5366
5367 * values.c (register_value_being_returned): Delete function.
5368 * infcmd.c (legacy_return_value): Delete function.
5369 * infcall.c (call_function_by_hand): Inline
5370 "register_value_being_returned", simplify.
5371 * values.c (using_struct_return): Update comment, refer to
5372 print_return_value instead of register_value_being_returned.
5373 * infcmd.c (print_return_value): Inline calls to
5374 register_value_being_returned and legacy_return_value. Simplify.
5375
b887c273
RC
53762004-06-11 Randolph Chung <tausq@debian.org>
5377
5378 * somread.c (som_symtab_read): Exclude gcc local symbols.
5379
1b2bfbb9
RC
53802004-06-11 Randolph Chung <tausq@debian.org>
5381
3973a7d3
AC
5382 * infrun.c (handle_inferior_event): Handle the case when a
5383 trampoline ends up in the runtime resolver, and if the trampoline
5384 has no name. Rearrange the code so that all the trampoline
5385 processing happens before other step-out-of-range handling.
1b2bfbb9 5386
a9d61c86
MH
53872004-06-11 Martin Hunt <hunt@redhat.com>
5388
5389 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5390 has no fpu.
5391
2c87cf5a
AC
53922004-06-10 Andrew Cagney <cagney@gnu.org>
5393
5394 * blockframe.c (legacy_inside_entry_func): Delete.
5395 (legacy_frame_chain_valid): Inline call to
5396 legacy_inside_entry_func, simplify.
5397
0b67b468 53982004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5399
5400 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5401 * dwarf2read.c (partial_die_info): Add dirname field.
5402 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5403 (read_partial_die): Save away DW_AT_comp_dir.
5404 * defs.h (symtab_to_filename): Removed.
5405 * source.c (find_and_open_source): Added.
57c22c6c 5406 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5407 (symtab_to_filename): Removed.
5408 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5409 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5410 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5411 symtab_to_filename.
5412 * symtab.h (partial_symtab): Add dirname field.
5413 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5414 (mi_cmd_file_list_exec_source_file): Call new function
5415 symtab_to_fullname to find fullname.
57c22c6c 5416 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5417 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5418 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5419
9a1dd1ad
AC
54202004-06-10 Andrew Cagney <cagney@gnu.org>
5421
239ae8c7
AC
5422 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5423 to generic_use_struct_convention, the default value.
5424
fc720350
AC
5425 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5426 of abort.
5427
9a1dd1ad
AC
5428 * ns32k-tdep.c (ns32k_push_arguments): New function.
5429 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5430 * infcall.c (call_function_by_hand): Call error instead of
5431 legacy_push_arguments.
5432 * value.h (legacy_push_arguments): Delete declaration.
5433 * valops.c (legacy_push_arguments): Delete function.
5434 (value_push): Delete function.
5435
fea25152
BF
54362004-06-10 Brian Ford <ford@vss.fsi.com>
5437
5438 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5439 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5440 info.
5441 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5442
30a4a8e0
AC
54432004-06-10 Andrew Cagney <cagney@gnu.org>
5444
5445 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5446 * gdbarch.h, gdbarch.c: Re-generate.
5447 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5448 parameters.
5449 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5450 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5451 deprecated_pc_in_call_dummy instead of
5452 DEPRECATED_PC_IN_CALL_DUMMY.
5453 (arm_skip_prologue): Ditto.
5454 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5455 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5456 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5457 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5458 Ditto.
5459 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5460 (sh64_init_extra_frame_info, sh64_get_saved_register)
5461 (sh64_pop_frame): Ditto.
5462 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5463 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5464 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5465 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5466 (h8300_pop_frame): Ditto.
5467 * blockframe.c (legacy_inside_entry_func)
5468 (legacy_frame_chain_valid): Ditto.
5469 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5470 to deprecated_pc_in_call_dummy.
5471
81cfbe54
AC
54722004-06-09 Andrew Cagney <cagney@gnu.org>
5473
a1f4a1b6
AC
5474 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5475 provide a default value.
5476 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5477 * gdbarch.h, gdbarch.c: Re-generate.
5478 * arch-utils.c (generic_convert_register_p): Rename
5479 legacy_convert_register_p
5480 (legacy_register_to_value, legacy_value_to_register): Delete
5481 functions.
5482 * arch-utils.h (generic_convert_register_p): Rename
5483 legacy_convert_register_p.
5484 (legacy_register_to_value, legacy_value_to_register): Delete
5485 declarations.
5486
9730f241
AC
5487 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5488 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5489 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5490 * gdbarch.h, gdbarch.c: Re-generate.
5491 * infcmd.c (default_print_registers_info): Simplify.
5492 * findvar.c (value_of_register): Simplify.
5493 * mi/mi-main.c (get_register): Simplify.
5494 * arch-utils.c (legacy_convert_register_p): Always return 0.
5495 (legacy_register_to_value, legacy_value_to_register): Always call
5496 internal_error.
5497
8a1bf479
AC
5498 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5499 #ifdef CLEAR_INSN_CACHE code.
5500 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5501 Delete #ifdef CLEAR_DEFERRED_STORES code.
5502
4b38d6f1
AC
5503 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5504
2d62ecc7
AC
5505 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5506 copyright.
5507 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5508
be4f7469
AC
5509 * config/mips/mipsv4.mh: Delete file.
5510
81cfbe54
AC
5511 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5512 unreferenced macro.
5513 (hpread_adjust_stack_address): Delete declaration.
5514
d966f0cb
AC
55152004-06-08 Andrew Cagney <cagney@gnu.org>
5516
5517 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5518 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5519 PTRACE_ATTACH / PTRACE_DETACH available call error.
5520 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5521 * infttrace.c (update_thread_state_after_attach, attach, detach):
5522 Remove #ifdef wrappers.
5523 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5524 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5525 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5526 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5527 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5528 * config/nm-linux.h (ATTACH_DETACH): Delete.
5529 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5530 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5531 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5532 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5533 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5534
d91670b9
CV
55352004-06-08 Corinna Vinschen <vinschen@redhat.com>
5536
5537 * configure.in: Set $configdir to the right OS specific value.
5538 Use value when setting $tcldir and $tkdir.
5539 * configure: Regenerate.
5540
28ba0b33
PB
55412004-06-06 Paul Brook <paul@codesourcery.com>
5542
5543 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5544 records.
5545
f26caa11
PH
55462004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5547
5548 * ada-lang.c (lookup_symbol_in_language): New function to allow
5549 re-use of another language's symbol lookup code. (Placed here
5550 temporarily while Ada support is being integrated into the public
5551 tree).
5552 (restore_language): New auxiliary function for
5553 lookup_symbol_in_language.
5554 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5555 temporarily while Ada support is being integrated into the public
5556 tree).
5557
d560a54b
AO
55582004-06-08 Alexandre Oliva <aoliva@redhat.com>
5559
e75d110c
AO
5560 * Makefile.in (check//%): New.
5561
d560a54b
AO
5562 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5563 (mn10300_store_return_value): Rewrite.
5564 (mn10300_type_align): New.
5565 (mn10300_use_struct_convention): Rewrite.
5566 (mn10300_return_value): New, using all of the above.
5567 (mn10300_pop_frame_regular): Add saved_regs_size.
5568 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5569
a72fbdb7
AO
5570 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5571 regs if PC is on movm.
5572
01904826
JB
55732004-06-07 Jim Blandy <jimb@redhat.com>
5574
5575 Add native Linux support for the PowerPC E500.
5576 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5577 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5578 all architectures except the E500.
5579 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5580 #definitions.
5581 (struct gdb_evrregset_t): New type.
5582 (have_ptrace_getsetevrregs): New variable.
5583 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5584 fetch_spe_registers): New functions.
5585 (fetch_register): Call fetch_spe_register as appropriate.
5586 Assert that we're only passed raw register numbers.
5587 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5588 Don't fetch gprs if they're pseudoregisters.
5589 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5590 store_spe_registers): New functions.
5591 (store_register): Call store_spe_register as appropriate.
5592 Assert that we're only passed raw register numbers.
5593 (store_ppc_registers): Call store_spe_registers as appropriate.
5594 Don't store gprs if they're pseudoregisters.
5595
f90ef764
JJ
55962004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5597
5598 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5599 struct if one exists, even if we are dealing with a zombie thread.
5600
45b75230
AC
56012004-06-07 Andrew Cagney <cagney@gnu.org>
5602
5603 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5604 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5605 Rename PC_REQUIRES_RUN_BEFORE_USE.
5606 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5607 #ifdef.
5608
1658da49
RC
56092004-06-07 Randolph Chung <tausq@debian.org>
5610
5611 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5612 unwinding after sp has been saved to the stack but before the end
5613 of the prologue, and after the fp has been modified but before it has
5614 been saved to the stack.
5615 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5616 Remove superfluous definitions.
5617 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5618
9a727a3c
RC
56192004-06-07 Guy Martin <gmsoft@gentoo.org>
5620
5621 Committed by Randolph Chung.
5622 * hppa-linux-nat.c: Include the correct version of the header file
5623 depending on the kernel version.
5624
9e500012
RC
56252004-06-06 Randolph Chung <tausq@debian.org>
5626
5627 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5628 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5629
3388d7ff
RC
56302004-06-06 Randolph Chung <tausq@debian.org>
5631
5632 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5633 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5634 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5635 * hppa-tdep.c (hppa_symbol_address): New function definition.
5636 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5637
d49771ef
RC
56382004-06-06 Randolph Chung <tausq@debian.org>
5639
5640 * hppa-tdep.h (struct value): Forward declaration.
5641 (gdbarch_tdep): Define tdep find_global_pointer method.
5642 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5643 associated with the function we are trying to call, and write it
5644 to the gp register.
5645 (hppa32_convert_from_funct_ptr_addr): New function.
5646 (hppa_find_global_pointer): New function.
5647 (hppa_gdbarch_init): Set default find_global_pointer method; set
5648 convert_from_func_ptr_addr method.
5649 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5650 (hppa_linux_init_abi): Set find_global_pointer method.
5651 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5652
7d9b040b
RC
56532004-06-06 Randolph Chung <tausq@debian.org>
5654
5655 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5656 to struct value *function.
5657 * gdbarch.c: Regenerate.
5658 * gdbarch.h: Likewise.
5659 * infcall.c (call_function_by_hand): Pass entire function value
5660 to push_dummy_call.
5661
5662 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5663 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5664 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5665 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5666 * arm-tdep.c (arm_push_dummy_call): Likewise.
5667 * avr-tdep.c (avr_push_dummy_call): Likewise.
5668 * cris-tdep.c (cris_push_dummy_call): Likewise.
5669 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5670 * frv-tdep.c (frv_push_dummy_call): Likewise.
5671 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5672 * hppa-tdep.c (hppa32_push_dummy_call)
5673 (hppa64_push_dummy_call): Likewise.
5674 * i386-tdep.c (i386_push_dummy_call): Likewise.
5675 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5676 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5677 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5678 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5679 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5680 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5681 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5682 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5683 (ppc64_sysv_abi_push_dummy_call): Likewise.
5684 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5685 (ppc64_sysv_abi_push_dummy_call): Likewise.
5686 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5687 * s390-tdep.c (s390_push_dummy_call): Likewise.
5688 * sh-tdep.c (sh_push_dummy_call_fpu)
5689 (sh_push_dummy_call_nofpu): Likewise.
5690 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5691 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5692 * vax-tdep.c (vax_push_dummy_call): Likewise.
5693
4a19ea35
JB
56942004-06-04 Jim Blandy <jimb@redhat.com>
5695
8327ccee
JB
5696 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5697 gdbarch argument to register_size.
5698
a3c001ce
JB
5699 * rs6000-tdep.c (rs6000_store_return_value): Use
5700 regcache_cooked_write_part instead of
5701 deprecated_write_register_bytes.
5702 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5703 not gdbarch_deprecated_store_return_value.
5704
4a19ea35
JB
5705 * ppc-linux-nat.c (store_register, fetch_register): Remove
5706 incorrect assertions. Simplify and generalize handling of
5707 transfers whose sizes are not multiples of, or less than, sizeof
5708 (PTRACE_XFER_TYPE).
5709
b9b5d7ea
JJ
57102004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5711
5712 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5713 as a new thread event.
720c7d64 5714 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5715 zombie, return TD_THR_ZOMBIE.
720c7d64 5716 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5717 TD_THR_ZOMBIE, check if the thread is still on the thread list
5718 and return a -1 ptid if not found.
5719 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5720 change the status to TARGET_WAITKIND_SPURIOUS.
5721
c8a3b559
CV
57222004-06-03 Corinna Vinschen <vinschen@redhat.com>
5723
5724 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5725 double values in little endian mode.
5726
20605361
AC
57272004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5728
5729 Committed by Andrew Cagney.
5730 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5731 after last enum constant to avoid error from IBM C
5732 compiler.
5733
bc97b3ba
JB
57342004-06-02 Jim Blandy <jimb@redhat.com>
5735
5736 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5737 to 'message', and make it local to the lone block that uses it.
5738
1da28ab0
JB
5739 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5740
4c4b4cd2
PH
57412004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5742
8a2225b2
PH
5743 * ada-exp.y: Update copyright notice.
5744 Include block.h.
5745
5746 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5747 SPECIAL_VARIABLE and unify the treatment of these cases.
5748
5749 (write_attribute_call0): Remove.
5750 (write_attribute_call1): Remove.
5751 (write_attribute_calln): Remove.
5752 (save_qualifier): Add missing semicolon.
5753
5754 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5755 temporarily disabled to allow compilation with FSF head version.
5756
5757 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5758 use individual operators (OP_*) for all attributes.
5759 (exp syntax): Use write_int.
5760 Handle STRING literals with OP_STRING.
5761 (variable syntax): Add limit parameter to calls to
5762 write_object_renaming.
5763
5764 (temp_parse_space): New definition to hold entities that need
5765 only live until the next call to ada_parse.
5766 (string_to_operator): Rename fields of ada_opname_table entries.
5767
5768 (write_var_from_sym): Record block.
5769 (write_var_from_name): Minor reformatting.
5770 Make sure saved name is properly encoded in the case of multiple
5771 matches, and set its language to Ada.
5772 Update comment.
5773 Modify to indicate unresolved name as symbol in the UNRESOLVED
5774 namespace, allocated in temp_parse_space.
5775 (write_int): New function.
5776
5777 (write_object_renaming): Add max_depth parameter to limit
5778 chains of object renamings.
5779 Handle case where root of renaming expression is itself a renaming.
5780 Use temp_parse_space for temporary name buffer.
5781 Handle renamings to dereferenced pointers (___XEXA suffices).
5782
5783 (ada_parse, yyerror, string_to_operator,
5784 write_var_from_sym, write_var_from_name, write_attribute_call0,
5785 write_attribute_call1, write_attribute_calln,
5786 write_object_renaming): Protoize.
5787
5788 (_initialize_ada_exp): New function.
5789
5790 * ada-lang.c: Update copyright notice.
5791 General terminology change to conform to GNAT compiler usage:
5792 mangle => encode, demangle => decode
5793 Include gdb_obstack.h.
5794 Include gdb_regex.h
5795 Include frame.h
5796 Include hashtab.h
5797 Include completer.h
5798 Include gdb_stat.h
5799 Include block.h
5800 Include infcall.h
5801
5802 (ADA_RETAIN_DOTS): Make sure this is defined.
5803 (TRUNCATION_TOWARDS_ZERO): Define.
5804 (struct string_vector): Define.
5805 (unresolved_names): Remove definition.
5806 (xnew_string_vector): New function.
5807 (string_vector_append): New function.
5808 (extract_string): Make static.
5809 (ada_unqualified_name): New function.
5810 (add_angle_brackets): New function.
5811 (function_name_from_pc): New function.
5812 (place_on_stack): Rename to ensure_lval.
5813
5814 (ensure_lval): Renamed from place_on_stack.
5815 Make identity on lvals.
5816 Update comment.
5817 (is_nonfunction): New interface.
5818 Only symbols in LOC_CONST class can be enumerals.
5819 (fill_in_ada_prototype): Remove; now independent of language.
5820 (add_defn_to_vec): Add obstack and symtab arguments.
5821 Use obstack to hold collected definitions.
5822 (num_defns_collected): New function.
5823 (defns_collected): New function.
5824 (ada_resolve_subexp): Rename to resolve_subexp.
5825 (resolve_subexp): Renamed from ada_resolve_subexp.
5826 (ada_op_name): Return non-const result.
5827 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5828 other purposes.
5829
5830 (to_fixed_array_type): Add declaration.
5831 (coerce_unspec_val_to_type): Remove offset parameter.
5832 (find_sal_from_funcs_and_line): New interface.
5833 (find_line_in_linetable): Ditto.
5834
5835 (all_sals_for_line): Rename to ada_sals_for_line and make
5836 global.
5837 Add new parameter. When set, do not ask the user to choose the
5838 instance, but use the first one found instead.
5839 Use given line number in returned sals.
5840 Fix comment.
5841 Skip the prologue if funfirstline is set.
5842 Correct for memory leak when 0 lines found.
5843
5844 (value_pos_atr): Use pos_atr.
5845 (pos_atr): New function.
5846 (standard_lookup): Add block parameter.
5847
5848 (makeTimeStart): Remove declaration and uses.
5849 (makeTimeStop): Remove declaration and uses.
5850
5851 (ada_completer_word_break_characters): Allow for VMS.
5852 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5853 (raise_sym_name): New constant.
5854 (raise_unhandled_sym_name): New constant.
5855 (raise_assert_sym_name): New constant.
5856 (process_raise_exception_name): New constant.
5857 (longest_exception_template): New constant.
5858 (warning_limit): New variable to limit warnings during expression
5859 evaluation.
5860 (warnings_issued): New variable to keep track of warnings issued.
5861 (known_runtime_file_name_patterns): New constant.
5862 (known_auxiliary_function_name_patterns): New constant.
5863 (symbol_list_obstack): New variable.
5864
5865 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5866 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5867 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5868 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5869 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5870 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5871 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5872 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5873 and strcmp.
5874
5875 (ada_get_field_index): New function.
5876 (lim_warning): New function.
5877 (ada_translate_error_message): New function.
5878 (MAX_OF_SIZE): New function.
5879 (MIN_OF_SIZE): New function.
5880 (UMAX_OF_SIZE): New function.
5881 (UMIN_OF_SIZE): New function.
5882 (discrete_type_high_bound): New function.
5883 (discrete_type_low_bound): New function.
5884 (base_type): New function.
5885 (do_command): Remove.
5886
5887 (ada_update_initial_language): Use language_ada, not language_unknown.
5888 (ada_encode): Renamed from ada_mangle.
5889 Obey ADA_RETAIN_DOTS.
5890 (ada_decode): Renamed from ada_demangle.
5891 Update coding conventions.
5892 (decoded_names_store): New hash table.
5893 (ada_decode_symbol): New function.
5894 (ada_la_decode): New function.
5895
5896 (modify_general_field): Correct computations of offset and bit
5897 position.
5898 (desc_base_type): Handle ref types, too.
5899 (ada_is_direct_array_type): New function.
5900
5901 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5902 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5903 (ada_is_bogus_array_descriptor,ada_type_of_array,
5904 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5905 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5906 ada_is_array_descriptor_type.
5907
5908 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5909 (ada_is_packed_array_type): Handle pointers or
5910 references to packed arrays as well.
5911 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5912 (decode_packed_array_type): Search for the packed array type
5913 symbol in the currently selected block and associated
5914 superblocks too.
5915 Use lookup_symbol again.
5916
5917 (decode_packed_array): Handle pointers and references.
5918 Update call to coerce_unspec_val_to_type.
5919 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5920 (ada_value_primitive_packed_val): Improve comment.
5921
5922 (ada_index_type): Substitute int type for "undefined".
5923 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5924 ada_array_langth, ada_is_string_type): Use renamed
5925 ada_is_simple_array_type.
5926 (empty_array): New function.
5927
5928 (ada_resolve): Rename to resolve.
5929 (resolve): Make static.
5930 Call renamed resolve_subexp.
5931 Update comment.
5932 (ada_resolve_subexp): Rename to resolve_subexp.
5933 (resolve_subexp): Update comment.
5934 Decomment disabled code.
5935 Add LOC_COMPUTED* cases.
5936 Modify to use temporary struct symbols (marked as being in
5937 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5938 OP_UNRESOLVED_VALUE.
5939 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5940 Add OP_STRING case.
5941 Remove OP_ARRAY.
5942 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5943 Use new ada_lookup_symbol_list interface.
5944 Use new ada_resolve_function interface.
5945 Remove OP_TYPE case.
5946
5947 (ada_args_match): Idiot proof against null actuals.
5948 Use intermediate variables to clarify.
5949 (ada_resolve_function): Update comment and interface.
5950 (mangled_ordered_before): Rename to encoded_ordered_before and
5951 update comment.
5952 (sort_choices): Update comment and interface.
5953 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5954 (user_select_syms): New interface.
5955 Use new sort_choices interface.
5956 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5957 (possible_user_operator_p): Idiot-proof against null values.
5958 (ada_simple_renamed_entity): Don't make cleanup; rely on
5959 caller to free result string.
5960 Remove const from return type.
5961 (make_array_descriptor): Rename uses of place_on_stack to
5962 ensure_lval.
5963 Make sure that arrays are on stack.
5964
5965 (HASH_SIZE): Define.
5966 (struct cache_entry): Define.
5967 (cache_space): Define.
5968 (cache): Define.
5969 (clear_ada_sym_cache): New function.
5970 (find_entry): New function.
5971 (lookup_cached_symbol): New function.
5972 (defn_vector_size): Define.
5973 (cache_symbol): New function.
5974 (defn_symbols): Remove.
5975
5976 (standard_lookup): Use lookup_symbol_in_language to get effect of
5977 C lookup.
5978 Cache results.
5979
5980 (symbol_completion_match): New function.
5981 (symbol_completion_add): New function.
5982 (ada_make_symbol_completion_list): New function.
5983
5984 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5985 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5986 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5987 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5988
5989 (ada_lookup_simple_minsym): New function.
5990 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5991
5992 (add_symbols_from_enclosing_procs): New interface.
5993 Conditionalize more helpfully.
5994 Don't bother if program isn't running.
5995 Use new interface to get_frame_block.
5996 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5997
5998 (remove_extra_symbols): New interface.
5999 (xget_renaming_scope): New function.
6000 (is_package_name): New function.
6001 (renaming_is_visible): New function.
6002 (remove_out_of_scope_renamings): New function.
6003
6004 (ada_lookup_symbol_list): New interface.
6005 Properly reinitialize the symbol list obstack.
6006 Don't call add_symbols_from_enclosing_procs if we start from a
6007 static or global block.
6008 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6009 add_symbols_from_enclosing_procs.
6010 Add symtab data to cached entries.
6011 Handle symbols prefixed with
6012 "standard__" specially; strip prefix and don't look in local symbols.
6013 Do not include out of scope renaming symbols in list of
6014 symbols returned.
6015 Add const to block parameter.
6016 Move check for non-local, non-global symbols earlier.
6017 Remove timing stuff.
6018 (ada_lookup_symbol): New interface.
6019 Find symtab as well.
6020 (ada_lookup_symbol_nonlocal): New function.
6021
6022 (is_name_suffix): Enhance suffix detection to recognize
6023 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6024 (is_dot_digits_suffix): New function.
6025 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6026
6027 (ada_add_block_symbols): New interface. Use obstack to return results
6028 in a vector of struct ada_symbol_infos. Add symtab argument.
6029 Use new interface to add_defn_to_vec.
6030 Remove calls to fill_in_ada_prototype.
6031 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6032
6033 (ada_finish_decode_line_1): Add const qualification to local to fix
6034 warning.
6035 Start looking in static block for functions to avoid attempts
6036 to search frame chain for up-level variables.
6037 Adapt to new ada_sals_for_line interface.
6038 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6039 Handle quoting of the function name inside the spec string.
6040 Skip prologue when funfirstline is set and update the
6041 function documentation to that effect.
6042
6043 (debug_print_lines, debug_print_block, debug_print_blocks,
6044 debug_print_symtab): Remove.
6045
6046 (ada_main_name): New function.
6047 (ada_exception_breakpoint_type): New function.
6048 (is_known_support_routine): New function.
6049 (ada_find_printable_frame): Renamed from find_printable_frame and made
6050 global.
6051 Remove level parameter.
6052 Use new interface to select_frame.
6053
6054 (begin_command): Remove.
6055 (ada_adjust_exception_stop): New function.
6056 (ada_print_exception_stop): New function.
6057 (exception_name_from_cond): New function.
6058 (ada_report_exception_break): Replace disabled code with
6059 conditionalization on GNAT_GDB.
6060 Get the exception name from the condition string.
6061 Remove and move functionality into new functions
6062 ada_print_exception_breakpoint_task and
6063 ada_print_exception_breakpoint_nontask.
6064 (error_breakpoint_runtime_sym_not_found): New function.
6065 (is_runtime_sym_defined): New function.
6066 (ada_breakpoint_rewrite): Uncomment suppressed code.
6067 Use symbolic error-message and runtime-symbol names.
6068 Surround runtime symbol names in quotes.
6069 Allow non-specific breakpoints on exceptions and assertions before
6070 program starts.
6071
6072 (ada_is_tagged_type): Add parameter.
6073 (ada_is_tag_type): New function.
6074 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6075 (ada_variant_discrim_type): Ditto.
6076 (value_tag_from_contents_and_address): New function.
6077 (type_from_tag): New function.
6078 (struct tag_args): New structure used to communicate with
6079 ada_tag_name_1.
6080 (ada_tag_name_1): New function.
6081 (ada_tag_name): New function.
6082
6083 (ada_scan_number): Update comment.
6084 (find_struct_field): New function.
6085 (ada_search_struct_field): Make static.
6086 (ada_value_struct_elt): New version that returns references when
6087 given pointers or references to structs.
6088 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6089 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6090 interface.
6091 (ada_value_ind): Use new ada_to_fixed_value interface.
6092 (ada_coerce_ref): Ditto.
6093 (field_offset): Remove.
6094
6095 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6096 (ada_find_renaming_symbol): New function.
6097 (ada_prefer_type): Prefer named types over unnamed ones.
6098 (variant_field_index): New function.
6099 (contains_variant_part): Removed: subsumed by variant_field_index.
6100 (ada_template_to_fixed_record_type): New function, mostly from
6101 template_to_fixed_record_type.
6102 (template_to_fixed_record_type):
6103 Do not scan the type fields beyond the last one; prevents a
6104 potential SEGV.
6105 Handle case where variant field is listed BEFORE discriminant it
6106 depends on.
6107 Fix calculation of record length when bit length is
6108 not evenly divisible by char length.
6109 Move code to ada_template_to_fixed_record_type and call it.
6110
6111 (template_to_static_fixed_type): Revise comment.
6112 Modify to work on ordinary record types as well as templates,
6113 so as to handle fields that use ___XVE or ___XVU encodings.
6114 (to_record_with_fixed_variant_part): Fill out comment.
6115 Initialize C++ stuff in right type.
6116 Allow case where DVAL is null.
6117 Handle case where variant field is not last.
6118 Fix typo concerning record length.
6119 (to_fixed_record_type): Decomment disabled code.
6120 (to_fixed_record_type): Use variant_field_index instead of
6121 contains_variant_part.
6122 (to_fixed_variant_branch_type): Ditto.
6123 (to_fixed_array_type): Decomment disabled code.
6124 (ada_to_fixed_type): Convert tagged types to the specific type.
6125 Deactivate the size-check for array types in order to avoid
6126 some false size alarms.
6127 (to_static_fixed_type): Decomment disabled code.
6128 Modify to call template_to_static_fixed_type
6129 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6130 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6131 Remove valaddr argument, as it is never really used.
6132 (ada_to_fixed_value): Change interface to act on single struct value*
6133 operand.
6134 (adjust_pc_past_prologue): New function.
6135 (ada_attribute_name): Modify to take enum exp_opcode argument.
6136
6137 (ada_enum_name): Recognize new homonym-distinguishing convention.
6138 Adjust local variable's type to remove compiler warning.
6139 Fix a small problem in the part that unqualifies the enumeration name.
6140 (ada_value_binop): New function.
6141 (ada_value_equal): New function.
6142
6143 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6144 Don't give error message when not doing normal evaluation
6145 and a tagged type doesn't seem to contain a structure member.
6146 Give error message for packed arrays.
6147 For indexing arrays, handle pointers to packed arrays correctly.
6148 Handle case of 'first and 'last attributes of bare integral type
6149 without encoded subtype info.
6150 Remove some unnecessary casts.
6151 Fix uninitialized value of type in computing 'first, 'last, or 'length
6152 of array object.
6153 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6154 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6155 calls.
6156 Attributes are now exp_opcode values.
6157 Correct treatment of 'modulus.
6158 Better error message for taking 'length of wrong kind of type;
6159 improve comment.
6160 Change EVAL_NORMAL to noside for consistency.
6161 Use ada_value_binop for DIV, MOD, REM.
6162 Make special case out of array of length 0, since an argument
6163 of 0 upsets some platforms' malloc.
6164 Use OP_STRING instead of OP_ARRAY.
6165 For slice, add check that we have an array type before extracting
6166 a slice out of it. Avoids a SEGV.
6167 When evaluating an array slice, if the array type is a reference to
6168 an aligner type, then replace the aligner type by the actual type.
6169 Decomment disabled code.
6170 Remove some dead code.
6171 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6172 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6173 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6174 and UNOP_MBR to UNOP_IN_RANGE.
6175 If an array type has a parallel ___XVE type, then use it.
6176 Turn arrays into pointers for lvalue arrays.
6177 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6178 bounds error and handle 0-length slices.
6179 Use lim_warning.
6180 When selecting fields, apply ada_to_fixed_value (because the fields
6181 might have ___XVU or ___XVE encodings even if not dynamic.)
6182 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6183 (ada_is_system_address_type): New function.
6184
6185 (get_var_value): Use new interface to ada_lookup_symbol_list.
6186 (get_int_var_value): New interface.
6187 (to_fixed_range_type): Allow unknown bound, with warning.
6188 (ada_is_modular_type): Decomment disabled code.
6189 (ADA_OPERATORS): New definition.
6190 (ada_operator_length): New function.
6191 (ada_expr_op_name): New function.
6192 (ada_forward_operator_length): New function.
6193 (ada_dump_subexp_body): New function.
6194 (ada_print_subexp): New function.
6195 (ada_exp_descriptor): New constant.
6196 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6197 (ada_language_defn): Add ada_exp_descriptor entry.
6198 Change ada_parse => parse.
6199 Add post-parser entry.
6200 Use ada-specific non-local symbol lookup.
6201 Don't use C-style arrays.
6202 String lower-bound is 1.
6203 Decomment disabled code.
6204 (parse): New function.
6205 New fields ada_translate_error_message, ada_lookup_symbol,
6206 ada_lookup_minimal_symbol.
6207
6208 * ada-lang.h: Update copyright dates.
6209 Replace the mangle/demangle terminology throughout by the
6210 more appropriate encode/decode one.
6211 Include breakpoint.h.
6212 Forward declare struct partial_symbol, struct block.
6213 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6214 (EXTRACT_ADDRESS): Remove.
6215 (EXTRACT_INT): Remove.
6216 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6217 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6218 (MAX_RENAMING_CHAIN_LENGTH): Define.
6219 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6220
6221 (enum task_states): Remove.
6222 ada_task_states: Remove.
6223 (fat_string): Remove.
6224 (struct entry_call): Remove.
6225 (struct task_fields): Remove.
6226 (struct task_entry): Remove.
6227
6228 (struct ada_symbol_info): Define.
6229 (enum ada_attribute): Remove.
6230 (enum ada_operator): Define.
6231
6232 (ada_get_field_index): Declare.
6233 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6234 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6235 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6236 (ada_lookup_symbol_list): New interface.
6237 (ada_decode_symbol): Declare.
6238 (ada_decode): Declare.
6239 (ada_lookup_symbol): New interface.
6240 (ada_update_initial_language): Declare.
6241 (ada_lookup_simple_minsym): Declare.
6242 (user_select_syms): New interface.
6243 (ada_sals_for_line): Declare.
6244 (ada_is_tagged_type): New interface.
6245 (ada_tag_name): Declare.
6246 (ada_lookup_struct_elt_type): Remove declaration.
6247 (ada_search_struct_field): Remove declaration.
6248 (ada_attribute_name): New interface.
6249 (ada_is_system_address_type): Declare.
6250 (ada_to_fixed_value): Remove declaration.
6251 (ada_template_to_fixed_record_type_1): Declare.
6252 (get_int_var_value): New interface.
6253 (ada_find_any_symbol): Declare.
6254 (ada_find_renaming_symbol): Declare.
6255 (ada_mangle): Rename to ada_encode.
6256 (ada_simple_renamed_entity): Remove const.
6257 (ada_main_name): Declare.
6258 (get_current_task): Rename to ada_get_current_task.
6259 (get_entry_number): Remove declaration.
6260 (ada_report_exception_break): Remove declaration.
6261 (ada_print_exception_breakpoint_nontask): Declare.
6262 (ada_print_exception_breakpoint_task): Declare.
6263 (ada_find_printable_frame): Declare.
6264
6265 * ada-lex.l: Update copyright notices.
6266 Use xmalloc and xfree instead of malloc and free.
6267 Use new interface to name_lookup.
6268 Use new interface to
6269 ada_mangle=>ada_encode.
6270 Redo handling of '$...' variable to parallel current treatment
6271 in c-exp.y.
6272 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6273 digit_to_int, strtoulst, processInt, processReal, processId,
6274 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6275 yywrap): Protoize.
6276
6277 (processInt): Use cast to remove harmless warning.
6278 (processReal): Modify to get rid of compiler warning on scan formats.
6279
6280 (processId): Replace xmalloc with obstack_alloc for name and remove
6281 call to ada_name_string_cleanup.
6282 Remove obsolete disabled code.
6283 (name_lookup): Ditto.
6284 New interface.
6285 Use obsavestring on temp_parse_space instead of savestring
6286 on name, and remove call to ada_name_string_cleanup.
6287 Free string returned from ada_simple_renamed_entity.
6288 Use new interface to ada_lookup_symbol_list.
6289 Decomment disabled code.
6290 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6291 not types.
6292 When a type name lookup succeeds as a result of
6293 lookup_primitive_typename, check for regular type entry that has not
6294 yet been read in.
6295 Limit length of chain of renamed symbols we are willing to follow.
6296 Do not break names beginning with "standard__" into segments.
6297 (block_lookup): Use new interface to ada_lookup_symbol_list.
6298
6299 * ada-typeprint.c: Update copyright notice.
6300 (demangled_type_name): Rename to decoded_type_name.
6301 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6302 (print_range_bound): Correct handling of negative
6303 bounds that make the index type looked unsigned under STABS.
6304 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6305 (print_range_type_named): Use the builtin int type if no type
6306 corresponding to the given type name could be found.
6307 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6308 Add some bullet-proofing.
6309 (print_variant_clauses): Allow for variant branches with ___XVU
6310 encodings that are not dynamic fields.
6311 Use new interface to ada_is_tagged_type.
6312 (print_record_type): Allow for fields with ___XVE encodings that
6313 are not dynamic fields.
6314 Use new interface to ada_is_tagged_type.
6315 (ada_print_type): ada_is_array_descriptor =>
6316 ada_is_array_descriptor_type.
6317
6318 * ada-valprint.c: Update copyright notice.
6319 Include gdb_string.h
6320 Include infcall.h
6321 (ui_memcpy): New function.
6322 (ada_print_floating): New function.
6323 (ada_print_str): Order arguments correctly.
6324 Correct handling of empty arrays and arrays of 0-length items.
6325 ada_is_array_descriptor => ada_is_array_descriptor_type
6326 Print values of type System.Address in hexadecimal format.
6327 Use ada_print_floating to print floating-point numbers in Ada format.
6328 Print class tag values with type names.
6329 No longer print the address of reference values. Avoids
6330 a potential confusion.
6331 (ada_value_print): Stop printing the object type for reference
6332 values, but preserve that behavior for access types. Avoids
6333 a potential confusion.
6334 Simplify one conditional expression, as the first part is now
6335 necessarily true.
6336 ada_is_array_descriptor => ada_is_array_descriptor_type
6337 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6338
f65f91b5
JB
63392004-06-01 Jim Blandy <jimb@redhat.com>
6340
6341 * ppc-tdep.h: Delete unused 'regoff' member.
6342 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6343
d4687fa0
MC
63442004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6345
6346 Fix PR symtab/1661.
6347 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6348 (hpread_read_struct_type): Likewise.
6349
de169ec9
AC
63502004-06-01 Andrew Cagney <cagney@gnu.org>
6351
c6902d46
AC
6352 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6353 instead of xasprintf.
6354 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6355 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6356 (mi_cmd_data_list_register_names)
6357 (mi_cmd_data_list_changed_registers)
6358 (mi_cmd_data_list_register_values)
6359 (get_register, mi_cmd_data_write_register_values)
6360 (mi_cmd_data_write_register_values)
6361 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6362 (mi_cmd_target_download, mi_cmd_target_select)
6363 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6364 (mi_execute_cli_command, mi_execute_async_cli_command)
6365 (mi_execute_async_cli_command): Ditto.
6366 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6367 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6368
6085fc2d
AC
6369 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6370 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6371 error_last_message instead of mi_error_last_message.
6372 * mi/mi-main.c (mi_error_last_message): Delete function.
6373
de169ec9
AC
6374 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6375 "invalid number of columns" error. Delete redundant "out of
6376 memory" check.
6377
1fc7d519
MK
63782004-05-31 Mark Kettenis <kettenis@gnu.org>
6379
6cfb2041
MK
6380 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6381 (gregset_t, fpregset_t): Remove typedefs.
6382 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6383 (REG_OFFSET): Rename argument.
6384 (i386bsd_r_reg_offset): Rename from reg_offset.
6385 (REG_ADDR): Remove macro.
6386 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6387 functions.
6388 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6389 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6390 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6391 instead of supply_gregset.
6392 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6393 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6394 instead of fill_gregset.
6395 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6396
1fc7d519
MK
6397 * i386bsd-nat.c: Don't include "gregset.h".
6398 (supply_gregset, fill_gregset): Make static.
6399 (supply_fpregset, fill_fpregset): Remove.
6400 * Makefile.in (i386bsd-nat.o): Update dependencies.
6401
2c34abbe
MK
64022004-05-30 Mark Kettenis <kettenis@gnu.org>
6403
448724fb
MK
6404 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6405 "gdb_assert.h". Con't include "gregset.h".
6406 (fbsd_make_corefile_notes): Use regset-based core file support
6407 instead off fill_gregset and fill_fpregset.
6408 * Makefile.in (fbsd-proc.o): Update dependencies.
6409
5ca8ca7c
MK
6410 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6411 instructions.
6412 (m88k_frame_prev_register): Simplify code a bit.
6413
593adc23
MK
6414 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6415 (amd64_collect_fpregset): New function.
6416 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6417
8d1b517b
MK
6418 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6419
7fdafb5a
MK
6420 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6421 (i386_collect_gregset): New function.
6422 (i386_supply_fpregset): Adjust comment.
6423 (i386_collect_fpregset): New function.
6424 (i386_regset_from_core_section): Use i386_collect_gregset and
6425 i386_collect_fpregset.
6426
8693c419
MK
6427 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6428 handle VALUEP being null.
6429
2c34abbe
MK
6430 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6431
45d134d8
MK
64322004-05-29 Mark Kettenis <kettenis@gnu.org>
6433
1698f4e7
MK
6434 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6435
45d134d8
MK
6436 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6437 assembler in OpenBSD 3.5-current.
6438 (amd64obsd_sigcontext_addr): Likewise.
6439
691d145a
JB
64402004-05-28 Jim Blandy <jimb@redhat.com>
6441
6442 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6443 register set, so our regcache isn't declared "legacy" and our E500
6444 pseudoregister read and write functions aren't ignored.
6445 (rs6000_register_byte, rs6000_register_raw_size,
6446 rs6000_register_virtual_type, rs6000_register_convertible,
6447 rs6000_register_convert_to_virtual,
6448 rs6000_register_convert_to_raw): Deleted.
6449 (rs6000_register_type, rs6000_convert_register_p,
6450 rs6000_register_to_value, rs6000_value_to_register): New
6451 functions.
6452 (rs6000_gdbarch_init): Don't register
6453 gdbarch_deprecated_register_size,
6454 gdbarch_deprecated_register_bytes,
6455 gdbarch_deprecated_register_byte,
6456 gdbarch_deprecated_register_raw_size,
6457 gdbarch_deprecated_register_virtual_type,
6458 gdbarch_deprecated_register_convertible,
6459 gdbarch_deprecated_register_convert_to_virtual, or
6460 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6461 register gdbarch_register_type, gdbarch_convert_register_p,
6462 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6463
18ed0c4e
JB
64642004-05-26 Jim Blandy <jimb@redhat.com>
6465
6466 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6467 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6468 functions, updated to match the register numberings used in GCC.
6469 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6470 rs6000_dwarf2_reg_to_regnum as register number conversions
6471 functions for STABS and Dwarf2.
6472
779af9e3
RC
64732004-05-26 Randolph Chung <tausq@debian.org>
6474
6475 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6476 in header file.
6477
c23968a2
JB
64782004-05-25 Joel Brobecker <brobecker@gnat.com>
6479
6480 * NEWS: Document new "start" command.
6481
3a7d1c27
RC
64822004-05-25 Randolph Chung <tausq@debian.org>
6483
6484 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6485 hppa-linux.
6486
43613416
RC
64872004-05-25 Randolph Chung <tausq@debian.org>
6488
6489 * hppa-hpux-tdep.c (offsetof): Define.
6490 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6491 (hppa32_hpux_frame_base_before_sigtramp)
6492 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6493 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6494 (hppa64_hpux_frame_base_before_sigtramp)
6495 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6496 functions.
6497 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6498 (hppa_hpux_sigtramp_frame_unwind_cache)
6499 (hppa_hpux_sigtramp_frame_this_id)
6500 (hppa_hpux_sigtramp_frame_prev_register)
6501 (hppa_hpux_sigtramp_frame_unwind)
6502 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6503 (hppa_hpux_init_abi): Register sigtramp unwinder.
6504 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6505
6d1be3f1
RC
65062004-05-25 Randolph Chung <tausq@debian.org>
6507
6508 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6509 and multiple stack unwinds.
6510 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6511
97c34f65
AC
65122004-05-25 Andrew Cagney <cagney@gnu.org>
6513
6514 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6515 * symfile-mem.h: Delete file.
6516 * symfile-mem.c: Do not include "symfile-mem.h".
6517 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6518 "struct bfd_section". When an error do not bother returning NULL.
6519 (add_symbol_file_from_memory_command): Use "struct bfd" and
6520 "struct bfd_section".
6521 * Makefile.in (symfile_mem_h): Delete.
6522 (symfile-mem.o): Update dependencies.
6523
e23cbd82
NR
65242004-05-25 Nick Roberts <nickrob@gnu.org>
6525
6526 * gdb-mi.el: New file.
6527
20d2ca3e
AC
65282004-05-25 Andrew Cagney <cagney@gnu.org>
6529
6530 * inftarg.c: Include "observer.h".
6531 (child_attach, child_create_inferior): Notify inferior_created.
6532 * corelow.c: Include "observer.h".
6533 (core_open): Notify inferior_created.
6534 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6535
c27cda74
AC
65362004-05-25 Andrew Cagney <cagney@gnu.org>
6537
6538 * target.h (struct target_ops): Add from_tty to
6539 to_create_inferior.
6540 (target_create_inferior, find_default_create_inferior): Update.
6541 * infcmd.c (run_command): Update.
6542 * wince.c (child_create_inferior): Update.
6543 * win32-nat.c (child_create_inferior): Update.
6544 * uw-thread.c (uw_thread_create_inferior): Update.
6545 * thread-db.c (thread_db_create_inferior): Update.
6546 * target.c (debug_to_create_inferior)
6547 (find_default_create_inferior): Update.
6548 (maybe_kill_then_create_inferior): Update.
6549 * sol-thread.c (sol_thread_create_inferior): Update.
6550 * remote.c (extended_remote_async_create_inferior)
6551 (extended_remote_create_inferior): Update.
6552 * remote-vx.c (vx_create_inferior): Update.
6553 * remote-st.c (st2000_create_inferior): Update.
6554 * remote-sim.c (gdbsim_create_inferior): Update.
6555 * remote-sds.c (sds_create_inferior): Update.
6556 * remote-rdp.c (remote_rdp_create_inferior): Update.
6557 * remote-rdi.c (arm_rdi_create_inferior): Update.
6558 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6559 * remote-e7000.c (e7000_create_inferior): Update.
6560 * procfs.c (procfs_create_inferior): Update.
6561 * ocd.c (ocd_create_inferior): Update.
6562 * ocd.h (ocd_create_inferior): Update.
6563 * nto-procfs.c (procfs_create_inferior): Update.
6564 * monitor.c (monitor_create_inferior): Update.
6565 * lin-lwp.c (lin_lwp_create_inferior): Update.
6566 * inftarg.c (child_create_inferior): Update.
6567 * hpux-thread.c (hpux_thread_create_inferior): Update.
6568 * gnu-nat.c (gnu_create_inferior): Update.
6569
1db2a798
AC
65702004-05-25 Andrew Cagney <cagney@gnu.com>
6571
6572 * MAINTAINERS: Update e-mail address.
6573
007d08bb
RC
65742004-05-24 Randolph Chung <tausq@debian.org>
6575
6576 * thread.c (info_threads_command, thread_apply_all_command)
6577 (thread_apply_command, thread_command, do_captured_thread_select):
6578 Remove HPUXHPPA-specific code.
6579
69e7b95e
RC
65802004-05-24 Randolph Chung <tausq@debian.org>
6581
6582 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6583 unused symbols.
6584 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6585 references.
6586
a4d5f2e0
JB
65872004-05-24 Joel Brobecker <brobecker@gnat.com>
6588
6589 * infcmd.c (kill_if_already_running): New function, extracted
6590 from run_command().
6591 (run_command): Replace extracted code by call to
6592 kill_if_already_running().
6593 (start_command): New function.
6594 (_initialize_infcmd): Add "start" command.
6595
bf2ca189
MK
65962004-05-24 Mark Kettenis <kettenis@gnu.org>
6597
6598 Add OpenBSD/m88k support.
6599 * NEWS (New native configurations): Mention OpenBSD/m88k.
6600 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6601 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6602 * Makefile.in (m88k_tdep_h): New variable.
6603 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6604 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6605 * configure.host: Add m88*-*-openbsd*.
6606 * configure.tgt: Add m88*-*-openbsd*.
6607
80fadb11
JB
66082004-05-24 Jim Blandy <jimb@redhat.com>
6609
6610 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6611 to approve changes.
6612
19e2d14b
KB
66132004-05-24 Kevin Buettner <kevinb@redhat.com>
6614
6615 * symtab.c (fixup_section): Search section table when lookup by
6616 name fails.
6617
1b07b470
RC
66182004-05-24 Randolph Chung <tausq@debian.org>
6619
6620 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6621 be "small_struct".
6622
368702b1
MK
66232004-05-24 Mark Kettenis <kettenis@gnu.org>
6624
5df97fde
MK
6625 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6626 register number in regcache_raw_collect call.
6627 (m68kbsd_collect_fpregset): Likewise.
6628 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6629
368702b1
MK
6630 * regset.h (struct regset): Add back `regset' member.
6631
a770d4ec
MK
66322004-05-23 Mark Kettenis <kettenis@gnu.org>
6633
70f9f479
MK
6634 * configure.in: Check for td_pcb in `struct thread'.
6635 * configure, config.in: Regenerated.
6636
2e16d79e
MK
6637 * dpx2-nat.c: Remove file.
6638 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6639 (dpx2-nat.o): Remove dependencies.
6640
492cf391
MK
6641 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6642 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6643 (amd64obsd_supply_pcb): New function.
6644 (_initialize_amd64obsd_nat): Enable libkvm interface.
6645 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6646 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6647 (LOADLIBES): New variable.
6648
a770d4ec
MK
6649 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6650 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6651 (sparc32nbsd_supply_pcb): New function.
6652 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6653 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6654 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6655 (LOADLIBES): New variable.
6656
9ea75c57
MK
66572004-05-22 Mark Kettenis <kettenis@gnu.org>
6658
2e0c3539
MK
6659 * bsd-kvm.c, bsd-kvm.h: New files.
6660 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6661 "bsd-kvm.h".
6662 (i386fbsd_supply_pcb): New function.
6663 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6664 (i386fbsd-nat.o): Update dependencies.
6665 (bsd_kvm_h): New variable.
6666 (bsd-kvm.o): New dependency.
6667 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6668 (LOADLIBES): New variable.
6669
9ea75c57
MK
6670 * regset.c: Tweak comment.
6671 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6672 macro.
6673 * regset.h: Update copyright year.
6674 (struct regset): Remove `descr' member, add `gdbarch' member.
6675 (regset_alloc): Adjust prototype and comment.
6676 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6677 (i386_supply_fpregset): Likewise.
6678 (i386_regset_from_core_section): Update call to regset_alloc.
6679 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6680 REGSET->arch.
6681 (i386obsd_aout_regset_from_core_section): Update call to
6682 regset_alloc.
6683 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6684 REGSET->arch.
6685 (i386nbsd_aout_regset_from_core_section): Update call to
6686 regset_alloc.
6687 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6688 REGSET->arch.
6689 (amd64_regset_from_core_section): Update call to regset_alloc.
6690 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6691 REGSET->arch.
6692 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6693 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6694 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6695 (sparc32nbsd_init_abi): Update call to regset_alloc.
6696 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6697 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6698 (sparc64obsd_init_abi): Update call to regset_alloc.
6699 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6700 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6701 (sparc64nbsd_init_abi): Update call to regset_alloc.
6702 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6703 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6704 (sparc64fbsd_init_abi): Update call to regset_alloc.
6705
867e2dc5
JB
67062004-05-22 Jim Blandy <jimb@redhat.com>
6707
6708 * ppc-tdep.h (spe_register_p): New declaration.
6709 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6710 ppc_spefscr_regnum.
6711 * rs6000-tdep.c (spe_register_p): New function.
6712 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6713 spefscr.
6714 (rs6000_gdbarch_init): Initialize the new members of the tdep
6715 structure.
6716
617a4cba
JB
67172004-05-21 Jim Blandy <jimb@redhat.com>
6718
0397dee1
JB
6719 * ppc-linux-nat.c (fetch_register): Move code back to be next
6720 to the comment that describes it. (Moved code, instead of
6721 comment, for symmetry with store_register.)
6722
617a4cba
JB
6723 Allocate regset structures in the gdbarch's obstack, not using
6724 xmalloc.
6725 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6726 Add 'arch' argument. Allocate the regset on arch's obstack, not
6727 using xmalloc.
6728 * regset.h (regset_alloc): Update declaration.
6729 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6730 gdbarch argument.
6731 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6732 * i386-tdep.c (i386_regset_from_core_section): Same.
6733 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6734 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6735 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6736 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6737 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6738 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6739
9aa3914d
JB
67402004-05-21 Joel Brobecker <brobecker@gnat.com>
6741
6742 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6743
99c87dab
JB
67442004-05-21 Jim Blandy <jimb@redhat.com>
6745
6746 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6747 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6748
c2b6b4aa
JB
67492004-05-20 Jim Blandy <jimb@redhat.com>
6750
6751 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6752
144529d0
MK
67532004-05-20 Mark Kettenis <kettenis@gnu.org>
6754
6755 * regset.h: Make prototype const-correct.
6756 * regset.c (regset_xmalloc): Make const-correct.
6757
4725b721
PH
67582004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6759
6760 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6761 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6762 (symbol_search_name): Declare.
6763
6764 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6765 (iter_name_next_hashed): Ditto.
6766 (iter_name_next_linear): Ditto.
6767 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6768
6769 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6770 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6771 (symbol_search_name): New function.
6772
6773 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6774
6775 * minsyms.c (build_minimal_symbol_hash_tables): Change
6776 test for adding to demangled hash table to check for difference
6777 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6778
be07a590
JB
67792004-05-19 Jim Blandy <jimb@redhat.com>
6780
6781 Use a constructor function to create regset structures.
6782 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6783 (struct regset): Use supply_regset_ftype. Add new
6784 'collect_regset' member.
6785 (regset_xmalloc): New declaration.
6786 * regset.c: New file.
6787 * am64-tdep.c (amd64_regset_from_core_section): Use
6788 regset_xmalloc to construct regset structures.
6789 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6790 * i386-tdep.c (i386_regset_from_core_section): Same.
6791 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6792 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6793 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6794 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6795 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6796 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6797 * Makefile.in (COMMON_OBS): Add regset.o.
6798 (regset.o): New rule.
6799
604368f5
JB
68002004-05-19 Joel Brobecker <brobecker@gnat.com>
6801
6802 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6803 and pthread_cond_wait.c.
6804
82d69f8b
JB
68052004-05-18 Jim Blandy <jimb@redhat.com>
6806
6807 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6808 before the mach-specific switch, and then let the individual cases
6809 override the defaults, rather than leaving them uninitialized
6810 until the switch and then setting them in each case.
6811
5859efe5
RC
68122004-05-18 Randolph Chung <tausq@debian.org>
6813
6814 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6815 millicode functions.
6816
9ca80cf8
RC
68172004-05-18 Randolph Chung <tausq@debian.org>
6818
6819 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6820 references to dld_flags_buffer consistent.
6821
ed70ba00
RC
68222004-05-18 Randolph Chung <tausq@debian.org>
6823
6824 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6825 it for unwinding the stack.
6826
63100632
RC
68272004-05-18 Randolph Chung <tausq@debian.org>
6828
6829 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6830 Undefine these so we can overide them using gdbarch.
6831
090ccbb7
RC
68322004-05-18 Randolph Chung <tausq@debian.org>
6833
6834 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6835 handling for 64-bit HPUX (elf).
6836
594706e6
DJ
68372004-05-18 Daniel Jacobowitz <dan@debian.org>
6838
6839 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6840 constants.
6841 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6842 * ia64-tdep.c (examine_prologue): Likewise.
6843 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6844 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6845
e5483145
MK
68462004-05-18 Mark Kettenis <kettenis@gnu.org>
6847
6848 * vax-tdep.c (vax_return_value): Implement
6849 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6850
caed1a45
MK
68512004-05-17 Mark Kettenis <kettenis@gnu.org>
6852
6853 * vax-tdep.c (vax_return_value): Fix typo.
6854
3c0b7db2
AC
68552004-05-17 Andrew Cagney <cagney@redhat.com>
6856
5aae53e5
AC
6857 * MAINTAINERS: Mark Salter was also responsible for
6858 testsuite/config/
6859
3c0b7db2
AC
6860 * NEWS: Mention signal fixes.
6861
22b0923d
RC
68622004-05-17 Randolph Chung <tausq@debian.org>
6863
6864 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6865 check to see if we are unwinding an export stub. Export stubs clobber
6866 the %rp in the call path and stores the original rp in a stack slot.
6867
22f2b2f3
JB
68682004-05-17 Jim Blandy <jimb@redhat.com>
6869
6870 * MAINTAINERS: Update address for J.T. Conklin.
6871
cea96d64
RC
68722004-05-17 Randolph Chung <tausq@debian.org>
6873
6874 * hppa-tdep.c: Remove superfluous #include's.
6875 * Makefile.in (hppa-tdep.o): Update dependencies.
6876
f08f6a4a
RC
68772004-05-17 Randolph Chung <tausq@debian.org>
6878
6879 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6880 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6881 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6882 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6883 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6884 Remove static function declarations.
6885
51da707a
MK
68862004-05-17 Mark Kettenis <kettenis@gnu.org>
6887
caed1a45
MK
6888 * alphabsd-nat.c: Update copyright year.
6889 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6890
c0c2b0db
MK
6891 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6892 and M68K_A2_REGNUM.
6893
51da707a
MK
6894 * m68k-tdep.c (m68k_svr4_return_value): Implement
6895 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6896
8d027a04
MK
68972004-05-16 Mark Kettenis <kettenis@gnu.org>
6898
6899 * sol-thread.c Update copyright year. Fix various coding
6900 standards violations. Tweak a few comments.
6901 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6902 Delete prototypes.
6903
0d99fdb9
RC
69042004-05-15 Randolph Chung <tausq@debian.org>
6905
6906 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6907 as pointer instead of array reference since HPUX compiler does
6908 not accept unsized array arguments.
6909 * somsolib.c (dld_flags_buffer): Use constant array size.
6910
f7e3843a
MK
69112004-05-15 Mark Kettenis <kettenis@gnu.org>
6912
0fe85704
MK
6913 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6914 offset with decimal offset.
6915 (amd64obsd_sigcontext_addr): Return correct address for entire
6916 signal trampoline.
6917
a54f9a00
MK
6918 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6919 instead of get_frame_base.
6920
feae6502
MK
6921 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6922 (fill_gregset): Use regcache_raw_collect.
6923
0382d099
MK
6924 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6925 ppcobsd-tdep.c.
6926
f7e3843a
MK
6927 * config/sparc/tm-nbsd64.h: Remove file.
6928 * config/tm-sunos.h: Remove file.
6929
773df3e5
JB
69302004-05-15 Joel Brobecker <brobecker@gnat.com>
6931
6932 * rs6000-tdep.c (store_param_on_stack_p): New function,
6933 an improved version of some code extracted from skip_prologue().
6934 (skip_prologue): Use store_param_on_stack_p() to detect
6935 instructions saving a parameter on the stack. Detect when r0
6936 is used to save a parameter.
6937 Do not mark "li rx, SIMM" instructions as part of the prologue,
6938 unless the following instruction is also part of the prologue.
6939
95918acb
AC
69402004-05-14 Andrew Cagney <cagney@redhat.com>
6941
06f32659
AC
6942 * infrun.c (handle_inferior_event): Simplify
6943 STEP_OVER_UNDEBUGGABLE.
6944
95918acb
AC
6945 * infrun.c (handle_step_into_function): Delete function.
6946 (handle_inferior_event): Inline calls to
6947 handle_step_into_function.
6948
40711ff1 69492004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6950
6951 * rs6000-nat.c: Fix a comment.
6952
02f60eae
JB
69532004-05-12 David Anderson <davea@sgi.com>
6954
6955 Committed by Jim Blandy <jimb@redhat.com>:
6956 * regcache.c (struct regcache_descr): fix comment spelling.
6957
552e377b
JB
69582004-05-13 J. Brobecker <brobecker@gnat.com>
6959
6960 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6961 Fixes a link link failure.
6962
349766b2
JB
69632004-05-13 J. Brobecker <brobecker@gnat.com>
6964
6965 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6966 error that was causing the build to fail.
6967
0d4d5484
JB
69682004-05-13 J. Brobecker <brobecker@gnat.com>
6969
6970 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6971 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6972
0b30808c
AC
69732004-05-13 Andrew Cagney <cagney@redhat.com>
6974
6975 * infrun.c (handle_inferior_event): Check for
6976 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6977 calls. Update comments.
6978
cdf2c5f5
JB
69792004-05-13 Jim Blandy <jimb@redhat.com>
6980
063715bf
JB
6981 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6982 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6983 (store_regs_user_thread, store_regs_kernel_thread): Use
6984 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6985 * ppc-linux-nat.c (fill_gregset): Same.
6986 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6987 (ppc_linux_sigtramp_cache): Same.
6988 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6989 (ppcnbsd_sigtramp_cache_init): Same.
6990 * rs6000-nat.c (fetch_core_registers): Same.
6991 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6992 (rs6000_frame_cache): Same.
6993
cdf2c5f5
JB
6994 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6995 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6996 of assuming that the gprs are numbered starting with zero.
6997 * ppc-linux-nat.c (fill_gregset): Same.
6998 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6999 * ppcnbsd-nat.c (getregs_supplies): Same.
7000 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7001 * rs6000-nat.c (fetch_core_registers): Same.
7002 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7003
450bd37b
MS
70042004-05-07 Michael Snyder <msnyder@redhat.com>
7005
7006 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7007 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7008
4a72a2a6
AC
70092004-05-13 Andrew Cagney <cagney@redhat.com>
7010
7011 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7012
8edfa926
BM
70132004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7014
7015 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7016 base_address for shared libraries.
7017
723e0e3d
BM
70182004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7019
7020 * MAINTAINERS (write after approval): Add myself.
7021
00d4360e
UW
70222004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7023
7024 * breakpoint.c (bpstat_stop_status): Add new argument
7025 STOPPED_BY_WATCHPOINT. Use it instead of testing
7026 target_stopped_data_address agaist 0 to check whether
7027 or not we stopped due to a hardware watchpoint.
7028 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7029 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7030 with new argument.
7031
ec76baa5
JB
70322004-05-12 Jim Blandy <jimb@redhat.com>
7033
7034 * configure.in: When checking whether we should use the -bbigtoc
7035 option, don't forget to restore the original value of LDFLAGS.
7036 * configure: Regenerated.
7037
f2c9ca08
AC
70382004-05-12 Andrew Cagney <cagney@redhat.com>
7039
7040 * thread.c (load_infrun_state): Delete step_sp.
7041 * infrun.c (context_switch): Ditto.
7042 * inferior.h (step_sp): Ditto.
7043 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7044 * gdbthread.h (struct thread_info, save_infrun_state)
7045 (restore_infrun_state): Ditto.
7046
090ddb2a
UW
70472004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7048
7049 * MAINTAINERS (write after approval): Add myself.
7050
8aad930b
AC
70512004-05-12 Andrew Cagney <cagney@redhat.com>
7052
7053 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7054 eliminate reference to step_sp.
7055 (struct execution_control_state, init_execution_control_state)
7056 (handle_inferior_event, keep_going): Delete update_step_sp and
7057 step_sp.
7058 * infcmd.c (step_sp): Note that variable is unused.
7059
922d5ae0
AC
70602004-05-11 Andrew Cagney <cagney@redhat.com>
7061
7062 * infrun.c (step_over_function): Delete function.
7063 (handle_step_into_function): Use insert_step_resume_breakpoint.
7064 (insert_step_resume_breakpoint): Fix assertion.
7065
017c5ca5
NR
70662004-05-11 Nick Roberts <nickrob@gnu.org>
7067
7068 * utils.c (defaulted_query): Just use the normal query input type
7069 when printing the annotations.
7070
42edda50
AC
70712004-05-11 Andrew Cagney <cagney@redhat.com>
7072
7073 * infrun.c (handle_inferior_event): Simplify code handling
7074 step-into or return-from a signal trampoline.
7075
d28b44a7
AC
70762004-05-11 Andrew Cagney <cagney@redhat.com>
7077
7078 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7079 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7080
383f0f5b
JB
70812004-05-10 Jim Blandy <jimb@redhat.com>
7082
d0b57c3a
JB
7083 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7084 with a call to internal_error.
7085
383f0f5b
JB
7086 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7087 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7088 processor variant lacks those registers.
7089 (ppc_floating_point_unit_p): Change description to make it clear
7090 that this returns info about the ISA, not the ABI.
7091 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7092 return true or false by checking tdep->ppc_fp0_regnum and
7093 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7094 arch/mach switching done in rs6000_gdbarch_init; it's better to
7095 keep that logic there, and just check the results here.
7096 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7097 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7098 floating-point registers.
7099 (ppc_supply_fpregset, ppc_collect_fpregset)
7100 (rs6000_push_dummy_call, rs6000_extract_return_value)
7101 (rs6000_store_return_value): Assert that we have floating-point
7102 registers.
7103 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7104 (rs6000_frame_cache): Don't note the locations at which
7105 floating-point registers were saved if we have no fprs.
7106 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7107 registers.
7108 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7109 (store_regs_user_thread, store_regs_kernel_thread): Only call
7110 supply_fprs / fill_fprs if we actually have floating-point
7111 registers.
7112 (special_register_p): Check ppc_fpscr_regnum before matching
7113 against it.
7114 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7115 supply / collect fpscr if we don't have it.
7116 * ppc-bdm.c: #include "gdb_assert.h".
7117 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7118 have floating-point registers, since I can't test this code on
7119 FP-free systems to adapt it.
7120 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7121 fpscr and floating point register numbers if they don't exist.
7122 (fetch_register): Assert that we have floating-point registers
7123 before we reach the code that handles them.
7124 (store_register): Same. And use tdep instead of calling
7125 gdbarch_tdep again.
7126 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7127 don't have them.
7128 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7129 fprs and fpscr if we don't have them.
7130 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7131 don't have them.
7132 * ppcnbsd-nat.c: #include "gdb_assert.h".
7133 (getfpregs_supplies): Assert that we have floating-point registers.
7134 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7135 * ppcobsd-tdep.c: #include "gdb_assert.h".
7136 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7137 have floating-point registers.
7138 * rs6000-nat.c (regmap): Don't match against the fpscr and
7139 floating point register numbers if they don't exist.
7140 (fetch_inferior_registers, store_inferior_registers,
7141 fetch_core_registers): Only fetch / store / supply the
7142 floating-point registers and the fpscr if we have them.
7143 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7144 (ppcobsd-tdep.o): Update dependencies.
7145
15960608
AC
71462004-05-10 Andrew Cagney <cagney@redhat.com>
7147
7148 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7149 (context_switch): Do not switch through_sigtramp_breakpoint.
7150 * gdbthread.h (save_infrun_state, load_infrun_state)
7151 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7152 and structure member.
7153 * thread.c (load_infrun_state, save_infrun_state): Update.
7154
5ab5aa0f
MK
71552004-05-10 Mark Kettenis <kettenis@gnu.org>
7156
7157 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7158
da78b0e7
DJ
71592004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7160
7161 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7162 throughout.
7163 * aclocal.m4: Regenerate.
7164
cca0d3b0
NW
71652004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7166
7167 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7168
d303a6c7
AC
71692004-05-10 Andrew Cagney <cagney@redhat.com>
7170
7171 * infrun.c (check_sigtramp2): Delete function.
7172 (handle_inferior_event): When single stepping, and taking a
7173 signal, set a breakpoint at the signal return address. Delete
7174 redundant calls to check_sigtramp2.
7175 (insert_step_resume_breakpoint): New function.
7176 (through_sigtramp_breakpoint, handle_inferior_event)
7177 (follow_exec, wait_for_inferior, fetch_inferior_event)
7178 (currently_stepping, keep_going): Delete most uses of
7179 through_sigtramp_breakpoint, not that it should be deleted.
7180 (delete_breakpoint_current_contents): Delete function.
7181
03f4cc20
RC
71822004-05-10 Randolph Chung <tausq@debian.org>
7183
7184 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7185 target.
7186 * config/pa/tm-linux.h: New file.
7187
37fc812e
DJ
71882004-05-10 Daniel Jacobowitz <drow@mvista.com>
7189
7190 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7191 of prefixes. Don't print the prefix twice in the CLI.
7192
26c0b942
JB
71932004-05-10 Jim Blandy <jimb@redhat.com>
7194
2e56e9c1
JB
7195 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7196 collect all the gprs.
7197
26c0b942
JB
7198 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7199 loop collecting gprs.
7200
dc497459
AC
72012004-05-09 Andrew Cagney <cagney@redhat.com>
7202
7203 * remote-vx.c (net_step): Delete step-range code.
7204 * remote.c (remote_resume, init_all_packet_configs)
7205 (set_remote_protocol_E_packet_cmd)
7206 (show_remote_protocol_E_packet_cmd)
7207 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7208 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7209 (show_remote_protocol_e_packet_cmd): Ditto.
7210
0543f387
MK
72112004-05-09 Mark Kettenis <kettenis@gnu.org>
7212
c481d1ca
MK
7213 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7214
f626a069
MK
7215 * hppa-tdep.h: Update copyright year.
7216 (struct trad_frame_saved_reg): Add opaque declaration.
7217
6fa57a7d
MK
7218 * amd64-tdep.c (amd64_return_value): Implement
7219 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7220
e47577ab
MK
7221 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7222 (m68k_value_to_register): New functions.
7223 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7224 value_to_register.
7225
31db7b6c
MK
7226 * defs.h (enum return_value_convention): Add
7227 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7228 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7229 * infcmd.c (legacy_return_value): New function.
7230 (print_return_value): Rwerite to implement
7231 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7232 * values.c (using_struct_return): Check for inequality to
7233 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7234 RETURN_VALUE_STRUCT_CONVENTION.
7235 * i386-tdep.c (i386_return_value): Implement
7236 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7237
0543f387
MK
7238 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7239 include "symtab.h", "opcode/vax.h" and "inferior.h".
7240 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7241 to read_memory_unsigned_integer.
7242 (vax_gdbarch_init): Reorder.
7243 (_initialize_vax_tdep): Spell out prototype.
7244 * Makefile.in (vax-tdep.o): Update dependencies.
7245
0c93b7b6
AC
72462004-05-08 Andrew Cagney <cagney@redhat.com>
7247
e6b55ae2
AC
7248 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7249 * target.c (target_detach, target_disconnect): Ditto.
7250
1ac839b8
AC
7251 * infcall.c (call_function_by_hand): When no
7252 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7253 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7254 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7255 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7256 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7257
28954179
AC
7258 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7259 * gdbarch.h, gdbarch.c: Re-generate.
7260 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7261 deprecated_fix_call_dummy.
7262 * v850-tdep.c (v850_gdbarch_init): Ditto.
7263 * infcall.c (call_function_by_hand): Do not call
7264 DEPRECATED_FIX_CALL_DUMMY.
7265
434b87dd
AC
7266 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7267 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7268 * gdbarch.h, gdbarch.c: Re-generate.
7269 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7270 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7271 deprecated_sizeof_call_dummy_words.
7272 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7274 * v850-tdep.c (v850_gdbarch_init): Ditto.
7275 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7276 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7277 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7278 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7279 * arch-utils.h (legacy_call_dummy_words)
7280 (legacy_sizeof_call_dummy_words): Delete declarations.
7281 * arch-utils.c (legacy_call_dummy_words)
7282 (legacy_sizeof_call_dummy_words): Delete variables.
7283
58d28df8
AC
7284 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7285 * gdbarch.h, gdbarch.c: Re-generate.
7286 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7287 * infcall.c (call_function_by_hand): Eliminate call to
7288 DEPRECATED_PUSH_DUMMY_FRAME.
7289 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7290 push_dummy_frame.
7291 (ns32k_push_dummy_frame): Delete function.
7292
e4a2df64
AC
7293 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7294 deprecated_call_dummy_breakpoint_offset or
7295 deprecated_call_dummy_start_offset.
7296 * dummy-frame.c, arm-tdep.c: Update comments.
7297 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7298 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7299 * gdbarch.h, gdbarch.c: Re-generate.
7300
d3712828
AC
7301 * infcall.c (legacy_push_dummy_code): Delete function.
7302 (push_dummy_code): Delete call.
7303
7a882905
AC
7304 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7305 * gdbarch.h, gdbarch.c: Re-generate.
7306 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7307 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7308 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7309 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7310
0ec5872b
AC
7311 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7312 (struct frame_info): Delete opaque declaration.
7313 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7314 * frame.c (get_frame_type): Delete call.
7315
0c93b7b6
AC
7316 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7317 pc_in_call_dummy.
7318 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7319 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7320
75536971
MK
73212004-05-08 Mark Kettenis <kettenis@gnu.org>
7322
527ca6bb
MK
7323 * alphanbsd-tdep.c: Include "gdb_string.h".
7324 * armnbsd-tdep.c: Update copyright year.
7325 Include "gdb_string.h".
7326 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7327 dependencies.
7328
d39fdc61
MK
7329 * delta68-nat.c: Remove file.
7330 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7331 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7332 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7333 (delta68-nat.o): Remove dependency.
7334
75536971
MK
7335 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7336 function.
7337 (m68k_gdbarch_init): Don't set
7338 deprecated_frameless_function_invocation.
7339
f4ca1d1f
RC
73402004-05-07 Randolph Chung <tausq@debian.org>
7341
7342 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7343 read_memory_nobpt for code reading when doing frame unwinding.
7344 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7345
2f0e8c7a
RC
73462004-05-07 Randolph Chung <tausq@debian.org>
7347
7348 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7349 instead of sp, handle sigaltstack case.
7350 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7351 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7352 signal handler and not that of the caller.
7353 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7354 hppa_linux_sigtramp_find_sigcontext.
7355
959464ff
RC
73562004-05-07 Randolph Chung <tausq@debian.org>
7357
7358 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7359 hppa-linux-nat.c.
7360 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7361 * hppa-linux-nat.c (fetch_register, store_register): Define.
7362 (fetch_inferior_registers, store_inferior_registers): Define.
7363 (supply_gregset): Add comment and clean up some unneeded code.
7364 (fill_gregset): Add comment and fix so that it saves registers in
7365 the right place in the gregset.
7366 (fill_fpregset): Fix buffer overrun problem.
7367 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7368
0da28f8a
RC
73692004-05-07 Randolph Chung <tausq@debian.org>
7370
7371 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7372 do common handling of the pcoqt register.
7373 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7374 to use helper function.
7375 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7376 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7377 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7378 generic fallback unwinder when all else fails.
7379 (hppa_gdbarch_init): Add fallback sniffer.
7380 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7381 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7382 to use helper function.
7383
b9ec757a
JB
73842004-05-08 Joel Brobecker <brobecker@gnat.com>
7385
7386 * config/djgpp/fnchange.lst: Add translation rules for
7387 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7388
756e95f1
MK
73892004-05-08 Mark Kettenis <kettenis@gnu.org>
7390
7391 * frame.c (get_prev_frame_1): Work around GCC bug.
7392 * frame.h: Add comment about GCC bug.
7393
2b4855ab
AC
73942004-05-07 Andrew Cagney <cagney@redhat.com>
7395
7396 * observer.c: Include "commands.h" and "gdbcmd.h".
7397 (observer_debug, _initialize_observer): Add the
7398 command "set/show debug observer".
7399 * observer.sh: When observer debugging, log notify calls.
7400 * Makefile.in (observer.o): Update dependencies.
7401
ba3e8e46
JM
74022004-05-07 Jason Molenda (jmolenda@apple.com)
7403
7404 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7405
16796152
JB
74062004-05-07 Jim Blandy <jimb@redhat.com>
7407
daf6dc85
JB
7408 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7409 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7410 to recognize gpr regnums, instead of assuming that
7411 tdep->ppc_fp0_regnum marks the end of the general-purpose
7412 registers.
7413
16796152
JB
7414 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7415 the given architecture has floating-point registers.
7416
c69b8bfc
AC
74172004-05-07 Andrew Cagney <cagney@redhat.com>
7418
7419 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7420 macro defined to 1.
7421 * gdbarch.h, gdbarch.c: Re-generate.
7422 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7423 deprecated_use_generic_dummy_frames.
7424
7243600a
BF
74252004-05-07 Brian Ford <ford@vss.fsi.com>
7426
7427 * NEWS: Mention Cygwin DWARF 2 support.
7428
73c1e0a1
AC
74292004-05-07 Andrew Cagney <cagney@redhat.com>
7430
7431 * objfiles.h (struct entry_info): Delete unused fields
7432 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7433 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7434 * mipsread.c (mipscoff_symfile_read): Update.
7435 * mdebugread.c (parse_partial_symbols): Update.
7436 * dwarfread.c (read_file_scope): Update.
7437 * dwarf2read.c (read_file_scope): Update.
7438 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7439 * coffread.c (complete_symtab): Update.
7440
1d3056ac
MK
74412004-05-07 Mark Kettenis <kettenis@gnu.org>
7442
7443 * infcall.c (_initialize_infcall): Fix typo.
7444
15170568
AC
74452004-05-07 Andrew Cagney <cagney@redhat.com>
7446
7447 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7448 * command.h (add_setshow_zinteger_cmd): Declare.
7449
34f75cc1
RC
74502004-05-06 Randolph Chung <tausq@debian.org>
7451
7452 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7453 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7454 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7455 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7456 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7457 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7458 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7459 definitions ...
7460 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7461 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7462 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7463 (hppa64_hpux_frame_find_saved_regs_in_sig)
7464 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7465 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7466 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7467 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7468 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7469 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7470 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7471 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7472 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7473 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7474 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7475 (hppa32_register_type, hppa_cannot_store_register)
7476 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7477 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7478 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7479 * pa64solib.c (pa64_solib_have_load_event)
7480 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7481 (pa64_solib_unloaded_library_pathname): Likewise.
7482 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7483 (som_solib_library_pathname): Likewise.
7484
0a5e7efe
JI
74852004-05-05 Jim Ingham <jingham@apple.com>
7486
7487 * breakpoint.c (create_breakpoints): Copy the ignore count and
7488 thread id over from the pended breakpoint to the actual
7489 breakpoint.
7490
10a4b113
AC
74912004-05-05 Andrew Cagney <cagney@redhat.com>
7492
7493 * gdbarch.sh (PARM_BOUNDARY): Delete.
7494 gdbarch.h, gdbarch.c: Re-generate.
7495 * valops.c (PARM_BOUNDARY): Delete macro.
7496 (value_push): Delete PARM_BOUNDARY code.
7497 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7498
366f009f
JB
74992004-05-04 Jim Blandy <jimb@redhat.com>
7500
32b99774
JB
7501 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7502 Don't assume that the gprs, fprs, and UISA sprs are
7503 contiguous, start at register number zero, and end with fpscr.
7504 Instead, use the numbers from the tdep structure.
7505
366f009f
JB
7506 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7507 should no longer be used in code specific to the RS6000 and its
7508 derivatives.
7509 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7510 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7511 tdep->ppc_fp0_regnum.
7512 (ppc_supply_fpregset, ppc_collect_fpregset)
7513 (rs6000_push_dummy_call, rs6000_extract_return_value)
7514 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7515 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7516 FP0_REGNUM.
7517 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7518 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7519 Same.
7520 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7521 bdm_ppc_store_registers): Same.
7522 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7523 (store_register, fill_fpregset): Same.
7524 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7525 (ppc_linux_supply_fpregset): Same.
7526 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7527 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7528 Same.
7529 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7530 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7531 ppc64_sysv_abi_return_value): Same.
7532 * rs6000-nat.c (regmap, fetch_inferior_registers)
7533 (store_inferior_registers, fetch_core_registers): Same.
7534
827f338d
MK
75352004-05-01 Mark Kettenis <kettenis@gnu.org>
7536
7537 * m68knbsd-nat.c: Remove file.
7538 * m68knbsd-tdep.c: Remove file.
7539 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7540 dependencies.
7541 * configure.host: Add m68k-*-netbsdelf*.
7542 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7543 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7544 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7545 (XM_FILE): Remove.
7546 * config/m68k/nbsdelf.mh: New file.
7547 * config/m68k/nbsd.mt: New file.
7548 * config/m68k/nbsdaout.mt: Remove file.
7549 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7550 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7551 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7552 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7553 (use_struct_convention): Remove prototype.
7554 (USE_STRUCT_CONVENTION): Remove define.
7555 * config/m68k/xm-nbsd.h: Remove file.
7556
66894781
MS
75572004-05-04 Michael Snyder <msnyder@redhat.com>
7558
7559 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7560 reg_struct_return method (as gcc usually does for cross targets).
7561
f0f63663
AC
75622004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7563
7564 Committed by Andrew Cagney.
7565 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7566 alignment padding when accessing ucontext struct members.
7567
edf61169
JB
75682004-05-04 Jim Blandy <jimb@redhat.com>
7569
8bf659e8
JB
7570 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7571 'ppc_gplast_regnum' member.
7572 (ppc_num_gprs): New enum constant.
7573 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7574 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7575 * rs6000-nat.c (regmap, fetch_inferior_registers,
7576 store_inferior_registers): Same.
7577 * rs6000-tdep.c (e500_pseudo_register_read)
7578 (e500_pseudo_register_write): Same.
7579 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7580
b967e06f
JB
7581 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7582 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7583 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7584 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7585 FPLAST_REGNUM.
7586 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7587 Same.
7588 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7589 * rs6000-nat.c (regmap, fetch_inferior_registers)
7590 (store_inferior_registers): Same.
7591
edf61169
JB
7592 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7593 with FPLAST_REGNUM.
7594
58a9656e
JB
75952004-05-03 Joel Brobecker <brobecker@gnat.com>
7596
7597 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7598 failure detected by recent versions of GCC.
7599 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7600 to be consistent with the usage in dwarf2_create_include_psymtab.
7601
dc305454
MS
76022004-05-03 Michael Snyder <msnyder@redhat.com>
7603
7604 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7605 (heuristic_proc_start): Whitespace cleanup.
7606
29972665
MK
76072004-05-04 Mark Kettenis <kettenis@gnu.org>
7608
6b57680d
MK
7609 * sun3-nat.c: Remove file.
7610 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7611 dependencies.
7612 (ALLDEPFILES): Remove sun3-nat.c.
7613 (sun3-nat.o): Remove dependencies.
7614
29972665
MK
7615 * i386-interix-nat.c, i386-interix-tdep.c,
7616 config/i386/nm-interix.h, config/i386/interix.mh,
7617 config/i386/interix.mt: Remove files.
7618 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7619 dependencies.
7620
f595cb19
MK
76212004-05-03 Mark Kettenis <kettenis@gnu.org>
7622
7623 * m68k-tdep.h (struct gdbarch_tdep): Add member
7624 struct_value_regnum.
7625 (m68k_svr4_init_abi): New prototype.
7626 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7627 different calling conventions.
7628 (m68k_extract_return_value): Remove code dealing with single-field
7629 structs.
7630 (m68k_store_return_value): Remove code dealing with single-field
7631 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7632 (m68k_extract_struct_value_address): Remove function.
7633 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7634 (m68k_reg_struct_return_p, m68k_return_value)
7635 (m68k_svr4_return_value): New functions.
7636 (m68k_use_struct_convention): Remove function.
7637 (m68k_push_dummy_call): Use new struct_value_regnum member of
7638 `struct gdbarch_tdep' instead of hardcoded register number to
7639 store STRUCT_ADDR.
7640 (m68k_svr4_init_abi): New function.
7641 (m68k_gdbarch_init): Don't set extract_return_value,
7642 store_return_values, deprecated_extract_struct_value_address and
7643 use_struct_convention. Set return_value instead. Initialize new
7644 struct_value_regnum member of `struct gdbarch_tdep'.
7645 * m68klinux-tdep.c: Update copyright year.
7646 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7647 (m68k_linux_extract_struct_value_address): Remove function.
7648 (m68k_linux_init_abi): Don't set extract_return_value,
7649 store_return_values, deprecated_extract_struct_value_address and
7650 use_struct_convention. Call m68k_svr4_init_abi but override the
7651 new struct_value_regnum member of `struct gdbarch_tdep'.
7652 * Makefile.in (m68k-tdep.o): Update dependencies.
7653
aaa75496
JB
76542004-05-03 J. Brobecker <brobecker@gnat.com>
7655
7656 * dwarf2read.c (line_header): Add new included_p field in
7657 field file_names.
7658 (partial_die_info): New field has_stmt_list. New field line_offset.
7659 (dwarf2_create_include_psymtab): New function.
7660 (dwarf2_build_include_psymtabs): New function.
7661 (add_file_name): Add forward declaration. Initialize new field.
7662 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7663 to be able to determine the list of files included by the
7664 given unit, and build their associated psymtabs.
7665 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7666 files as well.
7667 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7668 (read_file_scope): Update call to dwarf_decode_lines.
7669 (read_partial_die): Handle DW_AT_stmt_list attributes.
7670
c848556f
MC
76712004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7672
7673 Unfix PR gdb/1626.
7674 * configure.in: Revert special case for osf5.*.
7675 * configure: Regenerate.
7676
eb4556d7
JB
76772004-05-02 Jim Blandy <jimb@redhat.com>
7678
7679 Move the symbol-file-from-memory functions into their own file.
7680 * symfile-mem.c, symfile-mem.h: New files.
7681 * symfile.c (symbol_file_add_from_bfd): New function.
7682 (symbol_file_add): Call symbol_file_add_from_bfd.
7683 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7684 Moved to symfile-mem.c.
7685 (_initialize_symfile): Move definition of
7686 add-symbol-file-from-memory command to symfile-mem.c.
7687 * symfile.h (symbol_file_add_from_bfd): New declaration.
7688 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7689 * config/powerpc/linux.mt (TDEPFILES): Same.
7690 * Makefile.in (SFILES): Add symfile-mem.c.
7691 (symfile_mem_h): New variable.
7692 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7693 (symfile-mem.o): New rule.
7694
80bb239e
AC
76952004-05-01 Andrew Cagney <cagney@redhat.com>
7696
7789d0fa
AC
7697 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7698 frame_find_by_id instead of frame_relative_level.
7699 (do_enable_breakpoint): Ditto.
7700 * thread.c: Update copyright.
7701 (info_threads_command): Ditto, simplify.
7702
80bb239e
AC
7703 * frame.c (deprecated_generic_get_saved_register): Delete
7704 function, moved to "xstormy16-tdep.c".
7705 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7706 deprecated_generic_get_saved_register from "frame.c".
7707 (xstormy16_frame_saved_register): Call
7708 xstormy16_get_saved_register.
7709 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7710 static.
7711 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7712 * frame.h (deprecated_generic_get_saved_register): Delete.
7713
b2a871dd
MC
77142004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7715
7716 * dwarfread.c: Update documentation on the state of dwarf-1.
7717
0e100dab
AC
77182004-05-01 Andrew Cagney <cagney@redhat.com>
7719
acd8056e
AC
7720 * stack.c (select_frame_command): Delete call to
7721 frame_relative_level.
7722 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7723 Delete #if0 code.
7724 (frame_info): Do not print FRAMELESS.
7725 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7726 (catch_info): Delete #if0 code.
7727
0e100dab
AC
7728 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7729 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7730 of frame_relative_level.
7731 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7732 to SENTINEL_FRAME.
7733 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7734 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7735 frame_relative_level.
7736
55699d59
AC
7737 * frame.h (deprecated_set_frame_type): Delete declaration.
7738 * frame.c (deprecated_set_frame_type): Delete function, update
7739 comments.
7740
fcf70625
AC
7741 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7742 * gdbarch.h, gdbarch.c: Re-generate.
7743 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7744 (shnbsd_pc_in_sigtramp): Delete.
7745 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7746 pc_in_sigtramp.
7747 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7748 pc_in_sigtramp.
7749 * frame.h: Update comments.
7750 * ppc-linux-tdep.c: Update comments.
7751 * breakpoint.c (bpstat_what): Update comments.
7752
ac5eccb7
AC
7753 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7754 m68klinux-tdep.o's dependencies, were previously added to
7755 m68klinux-nat.o.
7756
f2524b93
AC
7757 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7758 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7759 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7760 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7761 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7762
17e20bce
AC
7763 * Makefile.in (m68klinux-nat.o): Update dependencies.
7764 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7765 (m68k_linux_sigtramp_frame_cache)
7766 (m68k_linux_sigtramp_frame_this_id)
7767 (m68k_linux_sigtramp_frame_prev_register)
7768 (m68k_linux_sigtramp_frame_unwind)
7769 (m68k_linux_sigtramp_frame_sniffer)
7770 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7771 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7772 names, use trad-frame.h.
7773 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7774 (struct m68k_sigtramp_info): Delete.
7775 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7776 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7777 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7778 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7779 "m68klinux-tdep.c".
7780
c8864fa2
AC
7781 * infrun.c (check_sigtramp2): Delete check for
7782 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7783
511dd2cd
MK
77842004-05-01 Mark Kettenis <kettenis@gnu.org>
7785
7786 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7787
8c6b0e06
AC
77882004-05-01 Andrew Cagney <cagney@redhat.com>
7789
9df0bb3f
AC
7790 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7791 (frv_linux_sigtramp_frame_cache)
7792 (frv_linux_sigtramp_frame_this_id)
7793 (frv_linux_sigtramp_frame_prev_register)
7794 (frv_linux_sigtramp_frame_unwind)
7795 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7796 include "linux" in function and variable names, directly call
7797 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7798 the latest trad-frame code.
7799 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7800 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7801 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7802 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7803 * frv-tdep.c (frv_sigtramp_frame_cache)
7804 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7805 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7806 frv-linux-tdep.c.
7807 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7808 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7809 (frv_set_sigcontext_reg_addr): Delete function.
7810
8c6b0e06
AC
7811 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7812 (DEPRECATED_SIGTRAMP_END): Delete.
7813 * gdbarch.h, gdbarch.c: Re-generate.
7814 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7815 * config/vax/tm-vaxbsd.h: Update copyright.
7816 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7817 (DEPRECATED_IN_SIGTRAMP): Define.
7818 * config/m68k/tm-nbsd.h: Update copyright.
7819 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7820 (DEPRECATED_IN_SIGTRAMP): Define.
7821
50ea7769
MK
78222004-05-01 Mark Kettenis <kettenis@gnu.org>
7823
03ac2a74
MK
7824 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7825 encondings. Fixes PR gdb/1628.
7826
50ea7769
MK
7827 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7828 DW_CFA_restore state without a matching DW_CFA_remember_state
7829 instead of aborting. Fixes PR backtrace/1589.
7830
9a5d7be1
JB
78312004-04-30 Joel Brobecker <brobecker@gnat.com>
7832
7833 * MAINTAINERS: Add self as AIX maintainer.
7834 Update my e-mail address in write-after-approval section.
7835
2593d1cd
AC
78362004-04-30 Andrew Cagney <cagney@redhat.com>
7837
ce12bbf9
AC
7838 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7839 (legacy_get_prev_frame): Ditto.
7840
36710c63
AC
7841 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7842 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7843 * mipsread.c (sigtramp_address): Delete extern variable.
7844 (mipscoff_new_init): Delete reference.
7845 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7846 (fixup_sigtramp): Delete function.
7847 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7848 (fixup_sigtramp): Delete declarations.
7849
2593d1cd
AC
7850 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7851 deprecated_pc_in_sigtramp.
7852 (ppcnbsd_pc_in_sigtramp): Delete function.
7853
2a25f91c
MK
78542004-05-01 Mark Kettenis <kettenis@gnu.org>
7855
7856 * config/m68k/nm-nbsd.h: Tweak comments.
7857 * config/m68k/nm-nbsdaout.h: Likewise.
7858
0b281939
AC
78592004-04-30 Andrew Cagney <cagney@redhat.com>
7860
7861 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7862 legacy_pc_in_sigtramp.
7863 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7864
8f2d3ea0
MK
78652004-05-01 Mark Kettenis <kettenis@gnu.org>
7866
7867 Add OpenBSD/m68k support.
7868 * NEWS (New native configurations): Mention OpenBSD/m68k.
7869 * m68kbsd-tdep.c: New file.
7870 * m68kbsd-nat.c: New file.
7871 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7872 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7873 * configure.host: Add m68k-*-openbsd.
7874 * configure.tgt: Add m68k-*-openbsd.
7875 * config/m68k/tm-obsd.h: New file.
7876 * config/m68k/obsd.mt: New file.
7877 * config/m68k/obsd.mh: New file.
7878 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7879 m68kbsd-tdep.c.
7880
c40f49a4
AC
78812004-04-30 Andrew Cagney <cagney@redhat.com>
7882
7883 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7884 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7885
e81554cd
MK
78862004-04-30 Mark Kettenis <kettenis@gnu.org>
7887
7888 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7889 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7890
d4dc1a91
BF
78912004-04-30 Brian Ford <ford@vss.fsi.com>
7892
7893 Revert 2004-04-16 change.
7894 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7895 (i386_coff_init_abi): Remove.
7896 * i386-tdep.h (i386_coff_init_abi): Remove.
7897 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7898
2f72f850
AC
78992004-04-30 Andrew Cagney <cagney@redhat.com>
7900
e492f9d6
AC
7901 * blockframe.c (find_pc_partial_function): Delete use of
7902 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7903 DEPRECATED_SIGTRAMP_END.
7904
7b7adad0
AC
7905 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7906 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7907 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7908 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7909 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7910
2f72f850
AC
7911 * defs.h (deprecated_inside_entry_file): Delete declaration.
7912 * blockframe.c (deprecated_inside_entry_file): Delete function.
7913 (legacy_frame_chain_valid): Delete call.
7914 * sh64-tdep.c (sh64_frame_chain): Delete call.
7915 * objfiles.h: Update comments.
7916 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7917 call.
7918 * frame.c (get_prev_frame): Delete call, update comments.
7919
283f90a7
BF
79202004-04-30 Brian Ford <ford@vss.fsi.com>
7921
7922 * MAINTAINERS (Write After Approval): Add myself.
7923
8ee56bcf
AC
79242004-04-30 Andrew Cagney <cagney@redhat.com>
7925
7926 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7927 * gdbarch.h, gdbarch.c: Re-generate.
7928 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7929 code.
7930
ee27e1b6
AC
79312004-04-30 Andrew Cagney <cagney@redhat.com>
7932
7933 * gdb-events.sh (selected_thread_changed)
7934 (selected_frame_level_changed, target_changed): Delete.
7935 * gdb-events.h, gdb-events.c: Re-generate.
7936 * valops.c (value_assign): Update.
7937 * stack.c (select_frame_command, up_silently_base)
7938 (down_silently_base): Update.
7939
d5ac5a39
AC
79402004-04-29 Andrew Cagney <cagney@redhat.com>
7941
7942 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7943 registers correctly.
7944 (print_gp_register_row, mips32_heuristic_proc_desc)
7945 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7946 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7947 references to mips_isa_regsize.
7948
ceae6e75
AC
79492004-04-29 Andrew Cagney <cagney@redhat.com>
7950
7951 * mips-tdep.c (struct gdbarch_tdep): Delete
7952 mips_fp_register_double.
7953 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7954 mips_abi_regsize.
7955 (mips_gdbarch_init): Do not set mips_fp_register_double.
7956 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7957
a587af0b
AC
79582004-04-29 Joel Brobecker <brobecker@gnat.com>
7959
7960 Committed by Andrew Cagney.
7961 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7962 function calls.
7963
13326b4e
AC
79642004-04-29 Andrew Cagney <cagney@redhat.com>
7965
7966 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7967 gdbarch, use mips_abi, update callers.
7968 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7969 mips_abi_regsize, update callers.
7970 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7971 mips_default_abi_regsize.
7972 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7973 mips_default_abi_regsize.
7974
711cc5cd
AC
79752004-04-29 Andrew Cagney <cagney@redhat.com>
7976
1b13c4f6
AC
7977 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7978 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7979 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7980 mips_default_abi_regsize.
7981 (mips_isa_regsize): Rename mips_regisze.
7982 * mipsnbsd-tdep.c: Update.
7983 * mips-linux-tdep.c: Update.
7984 * irix5-nat.c: Update.
7985 * mips-tdep.h (mips_isa_regsize): Update.
7986
711cc5cd
AC
7987 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7988 Delete all disabled code.
7989 * gdb-events.h, gdb-events.c: Re-generate.
7990
e63bbc88
MK
79912004-04-19 Jerome Guitton <guitton@gnat.com>
7992 Mark Kettenis <kettenis@gnu.org>
7993
7994 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7995 the function begins with a branch instruction.
7996
fd35795f
MK
79972004-04-29 Mark Kettenis <kettenis@gnu.org>
7998
7999 * i386-tdep.c: Fix spelling mistakes.
8000
c960c18f
AC
80012004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8002 Andrew Cagney <cagney@redhat.com>
8003
8004 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8005 <sys/proc.h>.
8006 * acconfig.h: Provide default _KMEMUSER value.
8007 * config.in, configure: Re-generate.
8008 * NEWS: Mention fix.
8009
50306a9d
RC
80102004-04-24 Randolph Chung <tausq@debian.org>
8011
8012 * configure.host (hppa*-*-linux*): New target.
8013 * configure.tgt (hppa*-*-linux*): Likewise.
8014 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8015 gdbarch_init_osabi() call earlier so that osabi-specific frame
8016 unwinders can be registered first.
8017 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8018 hppa-linux-nat.c.
8019 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8020 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8021 * config/pa/linux.mh: New file.
8022 * config/pa/linux.mt: New file.
8023 * config/pa/nm-linux.h: New file.
8024 * config/pa/xm-linux.h: New file.
8025 * hppa-linux-nat.c: New file.
8026 * hppa-linux-tdep.c: New file.
8027
2a6228ef
RC
80282004-04-28 Randolph Chung <tausq@debian.org>
8029
8030 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8031 return values.
8032 (hppa32_push_dummy_call): Fix small struct and floating point argument
8033 passing, and make sure the stack frame is properly aligned.
8034
82c10df6
AC
80352004-04-28 Andrew Cagney <cagney@redhat.com>
8036
d762c46a
AC
8037 * stack.c (print_stack_frame): Fix description.
8038
82c10df6
AC
8039 * NEWS: Mention gdb/gdbserver/configure execute permission
8040 changed. PR server/519.
8041
0faf0076
AC
80422004-04-28 Andrew Cagney <cagney@redhat.com>
8043
8044 * stack.c (print_stack_frame_stub): Delete declaration.
8045 (struct print_stack_frame_args, print_stack_frame)
8046 (print_frame_info, print_frame): Replace "source" with print what.
8047 Replace "print" with "print_level". Replace "args" with
8048 "print_args".
8049 * frame.h (show_and_print_stack_frame, print_stack_frame)
8050 (print_frame_info): Update declarations.
8051 * stack.c (select_and_print_frame, frame_command)
8052 (current_frame_command, up_command, down_command): Update calls -
8053 use get_selected_frame, pass "enum print_what" for source, do not
8054 call frame_relative_level.
8055 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8056 * remote-rdp.c (remote_rdp_open): Ditto.
8057 * remote-mips.c (common_open): Ditto.
8058 * remote-e7000.c (e7000_start_remote): Ditto.
8059 * ocd.c (ocd_start_remote): Ditto.
8060 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8061 * infrun.c (normal_stop): Ditto.
8062 * inflow.c (kill_command): Ditto.
8063 * infcmd.c (finish_command): Ditto.
8064 * corelow.c (core_open): Ditto.
8065 * tracepoint.c (finish_tfind_command): Ditto.
8066 * thread.c (info_threads_command, info_threads_command)
8067 (restore_current_thread, do_captured_thread_select): Ditto.
8068 * ada-tasks.c (task_command): Ditto.
8069
f4c5303c
OF
80702004-04-26 Orjan Friberg <orjanf@axis.com>
8071
8072 * frame.c: Include "observer.h".
8073 (frame_observer_target_changed): New function.
8074 (_initialize_frame): Attach target_changed observer.
8075 * regcache.c: Include "observer.h".
8076 (regcache_observer_target_changed): New function.
8077 (_initialize_regcache): Attach target_changed observer.
8078 * valops.c: Include "observer.h".
8079 (value_assign): Notify target_changed event when modifying register.
8080 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8081
7270d8f2
OF
80822004-04-26 Orjan Friberg <orjanf@axis.com>
8083
8084 From Paul Koning <pkoning@equallogic.com>:
8085 * breakpoint.c (free_valchain): New function.
8086 (insert_bp_location, delete_breakpoint): Use free_valchain.
8087 (remove_breakpoint): Do not remove the valchain.
8088 (bpstat_stop_status): If not stopped by watchpoint, skip
8089 watchpoints when generating stop status list.
8090 * infrun.c (handle_inferior_event): Make
8091 stepped_after_stopped_by_watchpoint a global variable.
8092 * remote.c (remote_stopped_data_address): Return watch data
8093 address rather than zero if stepped_after_stopped_by_watchpoint is
8094 set.
8095
02d62932
MC
80962004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8097
8098 Fix PR gdb/1626.
8099 * configure.in: Check for curses after termcap.
8100 On osf5.*, do not check for ncurses.
8101 * configure: Regenerate.
8102
3e9a183c
MK
81032004-04-25 Mark Kettenis <kettenis@gnu.org>
8104
c79ac407
MK
8105 * ppcobsd-nat.c: Include "ppc-tdep.h".
8106 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8107
3e9a183c
MK
8108 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8109 Fixes PR tdep/1623 and PR tdep/1624.
8110
38cc9c28
MC
81112004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8112
8113 * xmodem.h, xmodem.c: Remove files.
8114 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8115
7f07c5b6
RC
81162004-04-23 Randolph Chung <tausq@debian.org>
8117
8118 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8119 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8120 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8121 for handling stackless frames.
8122 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8123
9f7194c3
RC
81242004-04-23 Randolph Chung <tausq@debian.org>
8125
8126 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8127 starts at a pc before the frame is created.
8128
dcff6009
JB
81292004-04-23 Joel Brobecker <brobecker@gnat.com>
8130
8131 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8132
40711ff1 81332004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8134
8135 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8136 use convert_typed_floating to get the appropriate format.
8137
abc485a1
RC
81382004-04-22 Randolph Chung <tausq@debian.org>
8139
8140 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8141 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8142 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8143 (hppa_sign_extend): Add prototype.
8144 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8145 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8146 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8147 hppa targets will also use these functions.
8148 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8149 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8150 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8151 (hppa_gdbarch_init): Remove gdbarch setting of
8152 skip_trampoline_code, in_solib_call_trampoline and
8153 in_solib_return_trampoline.
8154 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8155 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8156 hppa_in_solib_call_trampoline.
8157 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8158 Moved from hppa-tdep.c.
8159 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8160 in_solib_call_trampoline and in_solib_return_trampoline.
8161
369aa520
RC
81622004-04-22 Randolph Chung <tausq@debian.org>
8163
8164 * hppa-tdep.c (hppa_debug): New variable.
8165 (find_unwind_entry, hppa_frame_cache): Add debug output.
8166 (_initialize_hppa_tdep): Add command to set debug flag.
8167
476be15e
AC
81682004-04-22 Andrew Cagney <cagney@redhat.com>
8169
8170 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8171 "trad-frame.h".
8172 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8173 signal trampoline unwinder.
8174 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8175
d195bc9f
MK
81762004-04-22 Mark Kettenis <kettenis@gnu.org>
8177
8178 Add OpenBSD/powerpc support.
8179 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8180 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8181 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8182 (ppc_collect_fpregset): New prototypes.
8183 * ppcobsd-nat.c: New file.
8184 * ppcobsd-tdep.c: New file.
8185 * ppcobsd-tdep.h: New file.
8186 * rs6000-tdep.c: Include "regset.h".
8187 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8188 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8189 New functions.
8190 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8191 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8192 (rs6000-tdep.o): Update dependencies.
8193 * configure.host: Add powerpc-*-openbsd.
8194 * configure.tgt: Add powerpc-*-openbsd.
8195 * config/powerpc/obsd.mh: New file.
8196 * config/powerpc/nm-obsd.h: New file.
8197 * config/powerpc/obsd.mt: New file.
8198
6f14cc33
AC
81992004-04-22 Andrew Cagney <cagney@redhat.com>
8200
fcf29e5f
AC
8201 * frame.h (show_frame_info): Delete declaration.
8202
6f14cc33
AC
8203 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8204 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8205 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8206 * frv-tdep.c (frv_frame_this_id): Ditto.
8207 * avr-tdep.c (avr_frame_this_id): Ditto.
8208
e5786a5c
EZ
82092004-04-22 Elena Zannoni <ezannoni@redhat.com>
8210
8211 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8212
26e75e5c
JB
82132004-04-22 Jim Blandy <jimb@redhat.com>
8214
8215 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8216 register number zero.
8217
d8d65dd3
MS
82182004-04-21 Michael Snyder <msnyder@redhat.com>
8219
8220 * mips-tdep.c (heuristic_proc_start):
8221 Warning() already prefixes "Warning: ".
8222
9a4105ab
AC
82232004-04-21 Andrew Cagney <cagney@redhat.com>
8224
8225 * annotate.h (deprecated_annotate_starting_hook)
8226 (deprecated_annotate_stopped_hook)
8227 (deprecated_annotate_exited_hook)
8228 (deprecated_annotate_signal_hook)
8229 (deprecated_annotate_signalled_hook): Deprecate.
8230 * tracepoint.h (deprecated_create_tracepoint_hook)
8231 (deprecated_delete_tracepoint_hook)
8232 (deprecated_modify_tracepoint_hook)
8233 (deprecated_trace_find_hook)
8234 (deprecated_trace_start_stop_hook): Deprecate.
8235 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8236 * remote.h (deprecated_target_resume_hook)
8237 (deprecated_target_wait_loop_hook): Deprecate.
8238 * gdbcore.h (deprecated_exec_file_display_hook)
8239 (deprecated_file_changed_hook): Deprecate.
8240 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8241 * defs.h (deprecated_modify_breakpoint_hook)
8242 (deprecated_command_loop_hook, deprecated_show_load_progress)
8243 (deprecated_print_frame_info_listing_hook)
8244 (deprecated_query_hook, deprecated_warning_hook)
8245 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8246 (deprecated_delete_breakpoint_hook)
8247 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8248 (deprecated_readline_begin_hook, deprecated_readline_hook)
8249 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8250 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8251 (deprecated_context_hook, deprecated_target_wait_hook)
8252 (deprecated_attach_hook, deprecated_detach_hook)
8253 (deprecated_call_command_hook, deprecated_set_hook)
8254 (deprecated_error_hook, deprecated_error_begin_hook)
8255 (deprecated_ui_load_progress_hook): Deprecate.
8256 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8257 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8258 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8259 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8260 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8261 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8262 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8263 * annotate.c, aix-thread.c: Update.
8264
62cf13cc
AC
82652004-04-21 Andrew Cagney <cagney@redhat.com>
8266
b2e31a62
AC
8267 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8268 * vaxnbsd-tdep.c: Include "gdb_string.h".
8269
62cf13cc
AC
8270 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8271 (add_symbol_file_from_memory_command): #if 0 function body, call
8272 error instead.
8273
00e32a35
AC
82742004-04-21 Andrew Cagney <cagney@redhat.com>
8275
8276 * gdbcore.h: Update copyright.
8277 (deprecated_add_core_fns): Rename add_core_fns.
8278 * win32-nat.c (_initialize_core_win32): Update.
8279 * sun3-nat.c (_initialize_core_sun3): Update.
8280 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8281 * rs6000-nat.c (_initialize_core_rs6000): Update.
8282 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8283 * nto-tdep.c (_initialize_nto_tdep): Update.
8284 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8285 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8286 * mips-nat.c (_initialize_core_mips): Update.
8287 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8288 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8289 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8290 * lynx-nat.c (_initialize_core_lynx): Update.
8291 * irix5-nat.c (_initialize_core_irix5): Update.
8292 * i386-interix-nat.c (_initialize_core_interix): Update.
8293 * cris-tdep.c (_initialize_cris_tdep): Update.
8294 * corelow.c (deprecated_add_core_fns): Update.
8295 * core-regset.c (_initialize_core_regset): Update.
8296 * core-aout.c (_initialize_core_aout): Update.
8297 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8298 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8299 * alpha-nat.c (_initialize_core_alpha): Update.
8300
13c7b1ca
JB
83012004-04-21 Jim Blandy <jimb@redhat.com>
8302
8303 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8304
7b5a2f43
DJ
83052004-04-19 Daniel Jacobowitz <drow@mvista.com>
8306
8307 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8308 Delete.
8309 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8310 (read_attribute_value): Update calls to dwarf_alloc_block.
8311 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8312 dwarf2_tmp_obstack.
8313 (psymtab_to_symtab_1): Likewise. Clean up using
8314 free_stack_comp_unit.
8315 (add_to_cu_func_list): Use the comp_unit_obstack.
8316
05cf31d1
JB
83172004-04-19 Joel Brobecker <brobecker@gnat.com>
8318
8319 * dwarf2read.c (dwarf2_flag_true_p): New function.
8320 (die_is_declaration): Use the function above. Add some comments.
8321
adf93a2f
MK
83222004-04-19 Mark Kettenis <kettenis@gnu.org>
8323
8324 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8325 architecture when registering sparcnbsd_core_osabi_sniffer.
8326 Adjust comment.
8327
748894bf
MK
83282004-04-18 Mark Kettenis <kettenis@gnu.org>
8329
f622ad42
MK
8330 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8331 return value.
8332
c4fc7f1b
MK
8333 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8334 * i386-tdep.c: Correct register numbering scheme comments
8335 throughout.
8336 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8337 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8338 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8339 (i386_gdb_arch_init): Likewise.
8340
b4ead1bd
MK
8341 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8342 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8343 ppcnbsd-tdep.o.
8344
748894bf
MK
8345 * m68k-tdep.h: Tweak comments.
8346 * m68k-tdep.c: Tweak comment.
8347
fdd72f95
RC
83482004-04-17 Randolph Chung <tausq@debian.org>
8349
8350 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8351 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8352 (hppa_hpux_som_init_abi): Set is_elf to 0.
8353 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8354 * hppa-tdep.c (low_text_segment_address): Remove global.
8355 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8356 section offset to calculate segment address.
8357 (internalize_unwinds): Define low_text_segment_address as local and
8358 pass to record_text_segment_lowaddr for ELF targets.
8359 (hppa_gdbarch_init): Zero fill tdep structure.
8360 (hppa_dump_tdep): Print tdep structure.
8361 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8362
0f8d9d59
RC
83632004-04-17 Randolph Chung <tausq@debian.org>
8364
8365 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8366 (hppa_gdbarch_init): Set pseudo_register_read.
8367 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8368 * regcache.c (supply_register): Remove check for
8369 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8370
7c46b9fb
RC
83712004-04-17 Randolph Chung <tausq@debian.org>
8372
8373 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8374 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8375 (hpread_adjust_stack_address): Move to hpread.c.
8376 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8377 obj_private_struct): Move from tm-hppa.h.
8378 * hpread.c (hppa-tdep.h): Include.
8379 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8380 (hpread_read_function_type, hpread_read_doc_function_type)
8381 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8382 directly.
8383 * pa64solib.c (hppa-tdep.h): Include.
8384 * somsolib.c (hppa-tdep.h): Include.
8385 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8386 inferior_status): Remove unused forward declarations.
8387 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8388 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8389 obj_private_struct): Move to hppa-tdep.h.
8390 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8391
8d153463
RC
83922004-04-17 Randolph Chung <tausq@debian.org>
8393
8394 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8395 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8396 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8397 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8398 Remove forward declaration and make static.
8399 (hppa_reg_struct_has_addr): Remove.
8400
350c2e5b
JB
84012004-04-16 Joel Brobecker <brobecker@gnat.com>
8402
8403 * observer.sh: Move comments in sed command to first column.
8404
bbde78fa
JM
84052004-04-16 Jason Molenda (jmolenda@apple.com)
8406
8407 * frame.c: Minor typeo corrections in comments.
8408
e0270fd9
JB
84092004-04-16 Joel Brobecker <brobecker@gnat.com>
8410
8411 * observer.c (observer_test_first_notification_function): Update
8412 function profile.
8413 (observer_test_second_notification_function): Likewise.
8414 (observer_test_third_notification_function): Likewise.
8415
3d049254
MK
84162004-04-16 Mark Kettenis <kettenis@gnu.org>
8417
8418 From Brian Ford <ford@vss.fsi.com>:
8419 * i386-tdep.c (i386_coff_init_abi): New function.
8420 * i386-tdep.h (i386_coff_init_abi): New prototype.
8421 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8422 register number translation functions for DWARF and DWARF 2.
8423
7867684d
JB
84242004-04-16 Joel Brobecker <brobecker@gnat.com>
8425
8426 * dwarf2read.c: Back out my previous change, it was incorrect.
8427
72bf9492
DJ
84282004-04-16 Daniel Jacobowitz <drow@mvista.com>
8429
8430 * dwarf2read.c: Include "hashtab.h".
8431 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8432 has_namespace_info.
8433 (struct partial_die_info): Add comments. Use bitfields to reduce
8434 memory footprint. Add scope, scope_set, has_specification,
8435 spec_offset, die_parent, die_child, and die_sibling.
8436 (peek_die_abbrev): Add prototype.
8437 (partial_read_comp_unit_head): New function, broken out from
8438 dwarf2_build_psymtabs_hard.
8439 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8440 Use partial_read_comp_unit_head. Initialize the CU and
8441 comp_unit_obstack. Update calls to read_partial_die and
8442 scan_partial_symbols. Use free_stack_comp_unit and
8443 load_partial_dies.
8444 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8445 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8446 Update calls to helper functions. Remove NAMESPACE argument.
8447 Update comments.
8448 (partial_die_parent_scope, partial_die_full_name): New functions.
8449 (add_partial_symbol): Remove namespace argument. Update call to
8450 pdi_needs_namespace. Use partial_die_full_name. Handle
8451 DW_TAG_namespace. Check has_namespace_info flag.
8452 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8453 tag. Handle namespaces.
8454 (add_partial_namespace, add_partial_enumeration): Simplify.
8455 (guess_structure_name): New function, derived from
8456 add_partial_structure.
8457 (add_partial_structure): Remove.
8458 (determine_class_name): Update comment.
8459 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8460 (is_type_tag_for_partial, load_partial_dies): New functions.
8461 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8462 Record specifications instead of following them immediately.
8463 (find_partial_die_in_comp_unit, find_partial_die)
8464 (fixup_partial_die, free_stack_comp_unit)
8465 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8466 (partial_die_hash, partial_die_eq): New functions.
8467 * Makefile.in (hashtab_h): Define.
8468 (dwarf2read.o): Update dependencies.
8469 (observer_inc, observer_h): Move to the correct section.
8470
fdc860a3
JB
84712004-04-15 Joel Brobecker <brobecker@gnat.com>
8472
8473 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8474 (die_is_declaration): Use the function above. Add comment.
8475
dc718098
JB
84762004-04-15 Joel Brobecker <brobecker@gnat.com>
8477
8478 * dwarf2read.c (read_structure_scope): Identify stub types
8479 using die_is_declaration() only.
8480
8718a420
RM
84812004-04-15 Roland McGrath <roland@redhat.com>
8482
8483 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8484 argument instead of NAME.
8485 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8486 in call to symbol_file_add_with_addrs_or_offsets.
8487 (build_addr_info): New function, helper for ...
8488 (symbol_file_add_from_memory): New function.
8489 (add_symbol_file_from_memory_command): New function using that.
8490 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8491 (pre_add_symbol_hook): Add const to argument type.
8492 * symfile.h (symbol_file_add_from_memory): Declare it.
8493
8b910bab
MK
84942004-04-15 Mark Kettenis <kettenis@gnu.org>
8495
9f076e7a
MK
8496 * NEWS (New native configurations): Mention OpenBSD/vax.
8497 * configure.host: Add vax-*-openbsd*.
8498 * config/vax/obsd.mh: New file.
8499 * config/vax/nm-obsd.h: New file.
8500
8b910bab
MK
8501 * vax-tdep.c: Include "regset.h".
8502 (vax_supply_gregset): New function.
8503 (vax_gregset): New variable.
8504 (vax_regset_from_core_section): New function.
8505 (vax_gdbarch_init): Set regset_from_core_section.
8506 * Makefile.in (vax-tdep.o): Update dependencies.
8507
7a464420
AC
85082004-04-15 Andrew Cagney <cagney@redhat.com>
8509
8510 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8511 (observer_normal_stop_notification_stub)
8512 (observer_attach_normal_stop, observer_detach_normal_stop):
8513 Delete, replaced by #include "observer.inc".
8514 * infrun.c (normal_stop): Pass "stop_bpstat" to
8515 observer_notify_normal_stop.
8516 * Makefile.in (observer_inc): Define.
8517 (observer.o): Update dependencies.
8518 (observer.h, observer.inc): New rules.
8519 * observer.h: Delete file.
8520 * observer.sh: New file.
8521
e36ad527
MK
85222004-04-15 Mark Kettenis <kettenis@gnu.org>
8523
8524 * vax-tdep.c (vax_frame_cache): Fix typo.
8525
67b441e1
MK
85262004-04-14 Mark Kettenis <kettenis@gnu.org>
8527
6f606e1c
MK
8528 * NEWS (New native configurations): Mention NetBSD/vax.
8529 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8530 * config/vax/nbsdelf.mh: New file.
8531 * config/vax/nbsdaout.mh: New file.
8532 * config/vax/nm-nbsd.h: New file.
8533 * config/vax/nm-nbsdaout.h: New file.
8534
9c5519a5
MK
8535 * vaxnbsd-tdep.c: New file.
8536 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8537 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8538 * config/vax/nbsd.mt: New file.
8539 * config/vax/tm-nbsd.h: New file.
8540
4844a614
MK
8541 * Makefile.in (vaxbsd-nat.o): New dependency.
8542
67b441e1
MK
8543 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8544 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8545 struct_addr arguments. Don't push return value address.
8546 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8547 arguments to vax_store_arguments. Store return value address in
8548 R1.
8549 (vax_store_struct_return, vax_extract_return_value)
8550 (vax_store_return_value): Remove functions.
8551 (vax_return_value): New function.
8552 (vax_gdbarch_init): Set return value. Don't set
8553 deprecated_store_struct_return, deprecated_extract_struct_return
8554 and deprecated_store_return_value.
8555
6672f2ae
AS
85562004-04-14 Andreas Schwab <schwab@suse.de>
8557
8558 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8559 value buffer.
8560 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8561
7346c184
MK
85622004-04-14 Mark Kettenis <kettenis@gnu.org>
8563
8564 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8565 (vax_unwind_dummy_id): New functions.
8566 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8567 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8568 variables.
8569 (vax_fix_call_dummy): Remove function.
8570 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8571 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8572 call_dummy_location, deprecated_call_dummy_words,
8573 deprecated_sizeof_call_dummy_words,
8574 deprecated_call_dummy_breakpoint_offset,
8575 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8576 and deprecated_dummy_write_sp.
8577
58e23df4
DC
85782004-04-13 David Carlton <carlton@kealia.com>
8579
8580 * MAINTAINERS: Move myself to "paper trail" section.
8581
5e6b39ff
MK
85822004-04-12 Mark Kettenis <kettenis@gnu.org>
8583
7def7fef
MK
8584 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8585 "trad-frame.h".
8586 (vax_frame_init_saved_regs): Remove function.
8587 (vax_sigtramp_saved_pc): Remove function.
8588 (vax_frame_saved_pc): Remove function.
8589 (vax_frame_args_address): Remove function.
8590 (vax_frame_num_args): Rewrite.
8591 (vax_frame_chain): Remove function.
8592 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8593 VAX_FP_REGNUM.
8594 (vax_pop_frame): Likewise.
8595 (vax_saved_pc_after_call): Remove function.
8596 (struct vax_frame_cache): New structure.
8597 (vax_frame_cache): New function.
8598 (vax_frame_this_id): New function.
8599 (vax_frame_prev_register): New function.
8600 (vax_frame_unwind): New variable.
8601 (vax_frame_sniffer): New function.
8602 (vax_frame_base_address): New function.
8603 (vax_frame_args_address): New function.
8604 (vax_frame_base): New variable.
8605 (vax_unwind_pc): New function.
8606 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8607 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8608 deprecated_frame_chain, deprecated_frame_saved_pc,
8609 deprecated_frame_args_address and
8610 deprecated_frame_init_saved_regs.
8611 * Makefile.in (vax-tdep.o): Update dependencies.
8612
53284fc1
MK
8613 * vaxbsd-nat.c: New file.
8614
5e6b39ff
MK
8615 * vax-tdep.h: Update copyright year. Adjust comments.
8616 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8617 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8618 (vax_regnum): New enum. Replacing...
8619 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8620 (VAX_PS_REGNUM): ... these removed macros.
8621 * vax-tdep.c (vax_register_name): Remove prototype.
8622 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8623 (vax_register_byte, vax_register_raw_size,
8624 vax_register_virtual_size, vax_register_virtual_type): Remove
8625 functions.
8626 (vax_register_type): New function.
8627 (vax_breakpoint_from_pc): Reorganize.
8628 (vax_gdbarch_init): Set register_type. Don't set
8629 deprecated_register_size, deprecated_register_bytes,
8630 deprecated_register_byte, deprecated_register_raw_size,
8631 deprecated_max_register_raw_size,
8632 deprecated_register_virtual_size,
8633 deprecated_max_register_virtual_size and
8634 deprecated_register_virtual_type. Add comment on stack direction.
8635
e9c71e9f
MK
86362004-04-11 Mark Kettenis <kettenis@gnu.org>
8637
8638 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8639 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8640 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8641
d46f1176 86422004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8643
d46f1176
RC
8644 * MAINTAINERS (write after approval): Add myself.
8645
a2a84a72
RC
86462004-04-07 Randolph Chung <tausq@debian.org>
8647
8648 * hppa-tdep.c (hppa_inner_than): Remove.
8649 (is_pa_2): Remove unused static variable.
8718a420 8650 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8651
e85c3284
PH
86522004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8653
8654 * language.h (language_defn): Add new la_post_parser field.
8655 * parser-defs.h (null_post_parser): New declaration (default for
8656 la_post_parser).
8718a420 8657
e85c3284
PH
8658 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8659 insert call to that function.
8660 (parse_exp_in_context): New function, including code formerly in
8718a420 8661 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8662 prefixification.
8663 (parse_expression_in_context): New exported function.
8664 (null_post_parser): New definition.
8665 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8666
e85c3284
PH
8667 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8668 * c-lang.c (c_language_defn): Ditto.
8669 (cplus_language_defn): Ditto.
8670 (asm_language_defn): Ditto.
8671 (minimal_language_defn): Ditto.
8672 * f-lang.c (f_language_defn): Ditto.
8673 * jv-lang.c (java_language_defn): Ditto.
8674 * language.c (unknown_language_defn): Ditto.
8675 (auto_language_defn): Ditto.
8676 (local_language_defn): Ditto.
8677 * m2-lang.c (m2_language_defn): Ditto.
8678 * scm-lang.c (scm_language_defn): Ditto.
8679 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8680
d9f8c85b
MK
86812004-04-10 Mark Kettenis <kettenis@gnu.org>
8682
fa34704a
MK
8683 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8684 (amd64nbsd_mcontext_addr): New function.
8685 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8686 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8687 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8688
403e1656
MK
8689 * corelow.c (core_xfer_partial): Fix coding standards violation.
8690 Add support for TARGET_OBJECT_WCOOKIE.
8691
a57e5a95
MK
8692 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8693 deprecated_pc_in_sigtramp.
8694 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8695 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8696 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8697 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8698 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8699 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8700 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8701
377d9ebd
MK
8702 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8703 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8704 Fix typo.
8705
f0ef85a5
MK
8706 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8707 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8708 (amd64_collect_fxsave): Likewise.
8709
d9f8c85b
MK
8710 * i386-sol2-tdep.c: Include "gdb_string.h".
8711 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8712 name.
8713 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8714
75f501b5
MK
87152004-04-10 Mark Kettenis <kettenis@gnu.org>
8716
8717 * i386-sol2-tdep.c: Include "solib-svr4.h".
8718 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8719 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8720 * config/i386/tm-i386sol2.h: Include :solib.h".
8721 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8722 solib-svr4.o and solib-legacy.o.
8723 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8724 solib-svr4.o.
8725
b31bc724
MK
87262004-04-09 Mark Kettenis <kettenis@gnu.org>
8727
18bbbd9e
MK
8728 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8729 whether a register is supplied by PTRACE_GETFPREGS.
8730 (store_inferior_registers): Likewise.
8731 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8732 whether a register is supplied by PT_GETFPREGS.
8733 (store_inferior_registers): Likewise.
8734
3c30bf1b
MK
8735 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8736 * config/i386/linux64.mt (TDEPFILES): Likewise.
8737
a4194092
MK
8738 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8739
911bc6ee
MK
8740 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8741 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8742 the program counter is in the range specified by `struct
8743 gdbarch_tdep'.
8744 * amd64-linux-tdep.c: Include "symtab.h".
8745 (amd64_linux_pc_in_sigtramp): Remove function.
8746 (amd64_linux_sigtramp_p): New function.
8747 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8748 deprecated_pc_in_sigtramp.
8749 * amd64nbsd-tdep.c: Include "symtab.h".
8750 (amd64nbsd_sigtramp_p): New function.
8751 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8752 deprecated_pc_in_sigtramp.
8753 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8754 few comments.
8755 (amd64obsd_pc_in_sigtramp): Remove function.
8756 (amd64obsd_sigtramp_p): New function.
8757 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8758 deprecated_pc_in_sigtramp.
8759 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8760 (i386bsd_pc_ins_sigtramp): Remove prototype.
8761 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8762 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8763 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8764 the program counter is in the range specified by `struct
8765 gdbarch_tdep'.
8766 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8767 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8768 (i386_go32_pc_in_sigtramp): Remove function.
8769 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8770 Initialize TDEP->sigtramp_p.
8771 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8772 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8773 deprecated_pc_in_sigtramp.
8774 * i386-linux-tdep.c: Adjust comments.
8775 (i386_linux_pc_in_sigtramp): Remove function.
8776 (i386_linux_sigtramp_p): New function.
8777 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8778 deprecated_pc_in_sigtramp.
8779 * i386-nto-tdep.c: Update copyright year.
8780 (i386nto_pc_in_sigtramp): Remove function.
8781 (i386nto_sigtramp_p): New function.
8782 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8783 SP_REGNUM.
8784 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8785 deprecated_pc_in_sigtramp.
8786 * i386-sol2-tdep.c: Update copyright year.
8787 (i386_sol2_pc_in_sigtramp): Remove function.
8788 (i386_sol2_sigtramp_p): New function.
8789 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8790 deprecated_pc_in_sigtramp.
8791 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8792 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8793 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8794 deprecated_sigtramp_start and deprecated_sigtramp_end.
8795 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8796 (i386nbsd_pc_in_sigtramp): Remove function.
8797 (i386nbsd_sigtramp_p): New function.
8798 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8799 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8800 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8801 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8802 (i386obsd_pc_in_sigtramp): Remove function.
8803 (i386obsd_sigtramp_p): New function.
8804 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8805 functions.
8806 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8807 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8808 TDEP->sigtramp_p.
8809 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8810 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8811 dependencies.
8812
e083e6ec
MK
8813 * config/i386/i386aout.mt: Remove file.
8814
bd153b94
MK
8815 * configure.tgt: Remove i[34567]86-*-go32*,
8816 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8817 and i[34567]86-*-isc*. Set gdb_target to i386 for
8818 i[34567]86-*-netware* and i[34567]86-*-*.
8819 * config/i386/i386.mt: New file.
8820 * config/i386/embed.mt: Remove file.
8821 * config/i386/go32.mt: Remove file.
8822 * config/i386/i386nw.mt: Remove file.
8823 * config/i386/i386v.mt: Remove file.
8824 * config/i386/tm-go32.h: Remove file.
8825
4a1bcc8c
MK
8826 * tui/tui-hooks.c: Include "readline/readline.h" after
8827 "gdb_curses.h" instead of before.
8828 * tui/tui-io.c: Likewise.
8829
f9a79064
MK
8830 * tui/tui.c: Fix typo in comment.
8831
b31bc724
MK
8832 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8833
f83f82bc
AC
88342004-04-08 Andrew Cagney <cagney@redhat.com>
8835
8836 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8837 (deprecated_exception_support_initialized): Declare.
8718a420 8838 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8839 (initialize_hp_cxx_exception_support)
8840 (child_enable_exception_callback): Update.
8841 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8842 (deprecated_exception_support_initialized): Rename
8843 deprecated_exception_catchpoints_are_fragile and
8844 deprecated_exception_support_initialized.
8845 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8846
8847 * symtab.c (deprecated_hp_som_som_object_present): Rename
8848 hp_som_som_object_present.
8849 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8850 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8851 Update. Delete extern declaration.
8852 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8853 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8854 (parse_nested_classes_for_hpacc): Ditto.
8855 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8856 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8857 (initialize_hp_cxx_exception_support): Ditto.
8858 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8859 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8860 (cp_print_class_method): Ditto.
8718a420 8861 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8862 (c_type_print_base): Ditto.
8863 * c-exp.y (hp_som_som_object_present): Ditto.
8864
fb2be677
AC
88652004-04-08 Andrew Cagney <cagney@redhat.com>
8866
8867 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8868 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8869 (frame_unwind_find_by_frame): Re-implement the unwind code so
8870 that it can both prepend and append sniffers. Replace
8871 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8872 * tramp-frame.c (tramp_frame_append): Use
8873 frame_unwind_prepend_unwinder.
8874 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8875 frame_unwind_register_unwinder.
8876 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8877 tramp_frame_append.
8878 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8879 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8880 (mips_linux_init_abi): Update.
8881
67faf007
KB
88822004-04-08 Kevin Buettner <kevinb@redhat.com>
8883
8884 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8885 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8886 file support.
8887
8973ff21
KB
88882004-04-07 Kevin Buettner <kevinb@redhat.com>
8889
8890 * ia64-tdep.c (elf.h): Don't include.
8891 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8892
4a0e2f88
JM
88932004-04-07 Jason Molenda (jmolenda@apple.com)
8894
8895 * frame.h: Typeo corrections in comments.
8896
9872ad24
JB
88972004-04-07 Jim Blandy <jimb@redhat.com>
8898
8899 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8900 %esp and %ebp
8901
70b216c8
MK
89022004-04-07 Mark Kettenis <kettenis@gnu.org>
8903
11d5789c
MK
8904 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8905 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8906 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8907 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8908 and solib-legacy.o.
8909 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8910 solib-svr4.o.
8911 * config/sparc/tm-sol2.h: Update copyright year. Include
8912 "solib.h".
8913
70b216c8
MK
8914 * sparc-sol2-tdep.c: Update copyright year. Include
8915 "solib-svr4.h".
8916 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8917 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8918 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8919 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8920 dependencies.
8921
6339dc9e
AC
89222004-04-06 Andrew Cagney <cagney@redhat.com>
8923
8924 * infttrace.c: Include "infttrace.h".
8925 * infttrace.h: Include "target.h".
8926 * Makefile.in (infttrace_h): Update.
8927 (infttrace.o): Update.
8718a420 8928
93449403
AC
89292004-04-06 Andrew Cagney <cagney@redhat.com>
8930
6d518969
AC
8931 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8932 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8933 move extern declarations from here ...
8934 * infttrace.h: ... to here.
8935 * Makefile.in (hppah-nat.o): Update dependencies.
8936
85f4f2d8
AC
8937 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8938 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8939 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8940 (hppa_breakpoint_from_pc): Delete.
8941
93449403
AC
8942 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8943
71456ec6
AC
89442004-04-05 Andrew Cagney <cagney@redhat.com>
8945
8946 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8947 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8948 <sys/file.h>.
8718a420 8949
4c02c60c
AC
89502004-04-06 Randolph Chung <tausq@debian.org>
8951
8952 Committed by Andrew Cagney (mechanical change).
8953 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8954 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8955 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8956 child_enable_exception_callback, current_ex_event,
8957 null_symtab_and_line, child_get_current_exception_event,
8958 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8959 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8960 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8961 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8962 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8963 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8964 Move hpux-specific definitions ...
8965 * hppa-hpux-tdep.c: ... to here.
8966
3a515653
AC
89672004-04-05 Andrew Cagney <cagney@redhat.com>
8968
8969 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8970 skip_prologue_using_sal.
8971
c1730d02
AC
89722004-04-05 Andrew Cagney <cagney@redhat.com>
8973
8974 * config/i386/tm-i386.h: Delete file.
8975 * config/i386/tm-vxworks.h: Update copyright, do not include
8976 "tm-i386.h".
8977 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8978 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8979 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8980 * config/i386/ncr3000.mt (TM_FILE): Delete.
8981 * config/i386/interix.mt (TM_FILE): Delete.
8982 * config/i386/i386v.mt (TM_FILE): Delete.
8983 * config/i386/i386nw.mt (TM_FILE): Delete.
8984 * config/i386/i386gnu.mt (TM_FILE): Delete.
8985 * config/i386/i386aout.mt (TM_FILE): Delete.
8986 * config/i386/embed.mt (TM_FILE): Delete.
8987
8b67aa36
KB
89882004-04-05 Kevin Buettner <kevinb@redhat.com>
8989
8990 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8991 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8992 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8993 (accg7_regnum): New constants.
8994 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8995 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8996 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8997 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8998 for accg registers.
8999 (frv_register_sim_regno): Update spr_map[].
9000
3c7012f5
AC
90012004-04-04 Andrew Cagney <cagney@redhat.com>
9002
9003 * config/mips/xm-riscos.h: Delete.
9004 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9005 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9006 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9007 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9008 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9009 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9010 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9011 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9012 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9013 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9014 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9015 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9016 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9017 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9018 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9019 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9020 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9021 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9022 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9023 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9024 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9025 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9026 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9027 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9028 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9029 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9030
3c7012f5
AC
9031 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9032 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9033 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9034 * configure.host: Remove m680[01]0-sun-sunos3*,
9035 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9036 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9037 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9038 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9039 mips-*-riscos*.
9040 * NEWS: Mention removed systems.
9041
99d16a21
AC
90422004-04-04 Andrew Cagney <cagney@redhat.com>
9043
9044 GDB 6.1 release created from 6.1 branch.
9045
6cdf9d98
AC
90462004-04-04 Andrew Cagney <cagney@redhat.com>
9047
98d346c3
AC
9048 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9049 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9050 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9051
6cdf9d98
AC
9052 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9053 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9054 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9055
859a326d
JB
90562004-04-03 Jim Blandy <jimb@redhat.com>
9057
9058 * MAINTAINERS: Chris Faylor has changed employers; add him to
9059 "paper trail" section, and update his E-mail address.
9060
b87178c3
AC
90612004-04-03 Andrew Cagney <cagney@redhat.com>
9062
4ea2acf0
AC
9063 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9064 generic dummy frames.
9065 * dummy-frame.c: Update copyright.
9066 (dummy_frame_sniffer): Delete check for generic dummy frames.
9067
d0bd2d18 9068 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9069 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9070 (REG_PARM_STACK_SPACE): Delete.
9071 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9072 Inline reference to REG_PARM_STACK_SPACE.
9073
b87178c3
AC
9074 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9075 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9076 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9077 (FRAME_BASE_BEFORE_SIGTRAMP)
9078 (hppa32_hpux_frame_base_before_sigtramp)
9079 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9080 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9081 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9082 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9083 (FRAME_BASE_BEFORE_SIGTRAMP)
9084 (hppa64_hpux_frame_base_before_sigtramp)
9085 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9086
43e2e1a0
AC
90872004-04-03 Andrew Cagney <cagney@redhat.com>
9088
9089 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9090
ddc135a4
AC
90912004-04-02 Andrew Cagney <cagney@redhat.com>
9092
9093 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9094 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9095 * dummy-frame.h: Delete out-of-date comments.
9096 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9097 * gdbarch.h, gdbarch.c: Re-generate.
9098
d15bfd3a 90992004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9100
d15bfd3a
AC
9101 Committed by Andrew Cagney <cagney@redhat.com>.
9102 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9103 into account an instruction saving a register if we have already
9104 seen an earlier instruction saving that same register.
9105
f04ceafa
AC
91062004-04-02 Andrew Cagney <cagney@redhat.com>
9107
08be3abd
AC
9108 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9109 * gdbarch.h, gdbarch.c: Re-generate.
9110 * frame.c (legacy_get_prev_frame): Delete references to
9111 DEPRECATED_INIT_FRAME_PC_FIRST.
9112
f04ceafa
AC
9113 * infrun.c (pc_in_sigtramp): Delete function.
9114 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9115 get_frame_type.
9116
08e69816
AC
91172004-04-02 Andrew Cagney <cagney@redhat.com>
9118
9119 * infrun.c (handle_step_into_function): Delete code conditional on
9120 legacy_frame_p.
9121 (handle_inferior_event, step_over_function): Ditto.
9122
adb54772
AC
91232004-04-02 Andrew Cagney <cagney@redhat.com>
9124
9125 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9126 "previous frame inner to this frame" test.
9127
304396fb
AC
91282004-04-02 Andrew Cagney <cagney@redhat.com>
9129
9130 * frame.c (safe_frame_unwind_memory): New function.
9131 * frame.h (safe_frame_unwind_memory): Declare. Update description
9132 of /safe_/ methods.
9133 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9134 "next_frame". Use safe_frame_unwind_memory.
9135 (tramp_frame_sniffer): Update call to tramp_frame_start.
9136
6502dd73
DJ
91372004-04-01 Daniel Jacobowitz <drow@mvista.com>
9138
9139 * dwarf2read.c (dwarf2_objfile_data_key): New.
9140 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9141 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9142 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9143 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9144 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9145 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9146 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9147 Remove variables.
9148 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9149 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9150 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9151 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9152 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9153 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9154 Remove macros.
9155 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9156 data.
9157 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9158 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9159 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9160 (read_partial_die, read_full_die, read_indirect_string)
9161 (dwarf_decode_line_header, dwarf_decode_macros)
9162 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9163 Update uses of removed variables.
9164 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9165 of removed macros.
9166 (_initialize_dwarf2_read): New function.
9167 * symfile.h (dwarf2_has_info): Update prototype.
9168 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9169 * elfread.c (elf_symfile_read): Likewise.
9170
408752b0
JB
91712004-04-01 Jim Blandy <jimb@redhat.com>
9172
9f744501
JB
9173 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9174 function for register numbers on all the rs6000-derived targets.
9175 (rs6000_gdbarch_init): Don't register a separate
9176 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9177 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9178 variants.
9179
408752b0
JB
9180 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9181 numbering.
9182
2de41bce
PH
91832004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9184
9185 * valarith.c: Update copyright notice.
9186 (value_add): Handle range types.
9187 (value_sub): Ditto.
9188 (value_equal): Ditto.
9189 (value_less): Ditto.
9190 (value_neg): Ditto.
9191 (value_complement): Ditto.
8718a420 9192 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9193 eliminiating unnecessary COERCE_ENUMs.
8718a420 9194
5613d8d3
AC
91952004-03-31 Andrew Cagney <cagney@redhat.com>
9196
9197 * frame.h (frame_unwind_id): Declare.
9198 * frame.c (frame_unwind_id): New function.
9199 (get_prev_frame_1): New function.
9200 (frame_debug_got_null_frame): New function.
9201 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9202 code proper to prev_frame, update description.
9203 * infrun.c (step_over_function): Use frame_unwind_id.
9204
c4557624
JB
92052004-04-31 J. Brobecker <brobecker@gnat.com>
9206
9207 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9208 (hppa64_push_dummy_call): Likewise.
9209
3e6bb910
JB
92102004-03-30 Jim Blandy <jimb@redhat.com>
9211
9212 From Ulrich Weigand:
9213 * utils.c (query): Do not use a va_list variable multiple times.
9214
a2f23071
DJ
92152004-03-29 Daniel Jacobowitz <drow@mvista.com>
9216
9217 * Makefile.in (linux_nat_h): Update dependencies.
9218 * configure.in: Check for <gnu/libc-version.h>.
9219 * configure: Regenerate.
9220 * config.in: Regenerate.
9221 * linux-nat.h: Include "target.h". Add waitstatus field to
9222 struct lwp_info.
9223 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9224 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9225 to.
9226 (lin_lwp_handle_extended): New function. Handle clone events.
9227 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9228 thread exit events.
9229 (child_wait): Handle clone events.
9230 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9231 * linux-nat.c (linux_enable_event_reporting): Turn on
9232 PTRACE_O_TRACECLONE.
9233 (linux_handle_extended_wait): Handle clone events.
9234 * thread-db.c: Include <gnu/libc-version.h>.
9235 (struct private_thread_info): Add dying flag.
9236 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9237 higher.
9238 (attach_thread): Update comments. Handle dying threads.
9239 (detach_thread): Set the dying flag.
9240 (check_event): Always call attach_thread.
9241
8d5f9dcb
DJ
92422004-03-29 Daniel Jacobowitz <drow@mvista.com>
9243
9244 * mips-tdep.c (mips_pdr_data): New.
9245 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9246 (_initialize_mips_tdep): Initialize mips_pdr_data.
9247
66337bb1
CV
92482004-03-29 Corinna Vinschen <vinschen@redhat.com>
9249
9250 * minsyms.c (install_minimal_symbols): Move dropping leading
9251 char from linkage name from here...
9252 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9253 test for "__gnu_compiled*" symbols.
9254
e802b915
JB
92552004-03-28 Jim Blandy <jimb@redhat.com>
9256
9257 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9258 registers to temp register r0 and byte stores as prologue
9259 instructions.
9260
72b56458
AC
92612004-03-28 Andrew Cagney <cagney@redhat.com>
9262
9263 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9264 arm*-*-*.
9265
0bfbda3b
SC
92662004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9267
9268 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9269 and switch the layout to force a display of register window.
9270
5a7225ed
JB
92712004-02-26 J. Brobecker <brobecker@gnat.com>
9272
9273 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9274 of the INTEGER class.
9275
81a07a45
JB
92762004-03-26 Jim Blandy <jimb@redhat.com>
9277
9278 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9279 bytes long on PPC GNU/Linux.
9280
8c691c7a
DC
92812004-03-26 David Carlton <carlton@kealia.com>
9282
9283 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9284
103a0089
AC
92852004-03-25 Andrew Cagney <cagney@redhat.com>
9286
9287 * PROBLEMS: Add general section titles, remove references to
9288 specific releases.
9289
7a5ea0d4
DJ
92902004-03-25 Daniel Jacobowitz <drow@mvista.com>
9291
9292 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9293 INT_REGISTER_SIZE.
9294 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9295 FP_REGISTER_VIRTUAL_SIZE.
9296 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9297 of DEPRECATED_REGISTER_RAW_SIZE.
9298 (arm_register_type): Add gdbarch argument.
9299 (arm_register_raw_size, arm_register_virtual_size): Delete.
9300 (arm_register_byte, arm_extract_return_value)
9301 (arm_store_return_value, arm_get_longjmp_target): Update references
9302 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9303 (arm_gdbarch_init): Likewise. Don't set
9304 deprecated_register_raw_size, deprecated_register_virtual_size,
9305 deprecated_max_register_raw_size,
9306 deprecated_max_register_virtual_size, or
9307 deprecated_max_register_virtual_type. Do set register_type.
9308 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9309 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9310 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9311 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9312 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9313 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9314 INT_REGISTER_SIZE.
9315 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9316 (remote_rdp_store_register): Likewise.
9317
5792a79b
DJ
93182004-03-24 Daniel Jacobowitz <drow@mvista.com>
9319
9320 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9321 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9322 to after osabi initialization.
9323 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9324 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9325 functions.
9326 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9327 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9328 variables.
9329 (mips_linux_init_abi): Append signal trampoline unwinders.
9330
1196bfda
AC
93312004-03-24 Andrew Cagney <cagney@redhat.com>
9332
9333 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9334 * tramp-frame.c: Include "gdb_assert.h".
9335 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9336 correct sizeof.
9337 (tramp_frame_append): Validate the tramp frame's instructions.
9338 * Makefile.in (tramp-frame.o): Update dependencies.
9339
4be282b4
AC
93402004-03-23 Andrew Cagney <cagney@redhat.com>
9341
9342 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9343
69aec09b
AC
93442004-03-23 Andrew Cagney <cagney@redhat.com>
9345
9346 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9347 Nasser as past testsuite/lib/ (and other) maintainers.
9348
63ed89b4
DJ
93492004-03-23 Daniel Jacobowitz <drow@mvista.com>
9350
9351 * infcmd.c (attach_command): Reread symbols if we already have
9352 an exec file.
9353
f3b36427
AC
93542004-03-23 Andrew Cagney <cagney@redhat.com>
9355
9356 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9357
aa2a3f87
AC
93582004-03-23 Andrew Cagney <cagney@redhat.com>
9359
9360 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9361 * gdbarch.h, gdbarch.c: Re-generate.
9362 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9363 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9364 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9365 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9366 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9367 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9368 (DEPRECATED_SIGTRAMP_START): Update.
9369 * blockframe.c (find_pc_sect_partial_function): Update.
9370 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9371
00cac895
DJ
93722004-03-23 Daniel Jacobowitz <drow@mvista.com>
9373
9374 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9375 if necessary.
9376
f561f026
AC
93772004-03-23 Andrew Cagney <cagney@redhat.com>
9378
9379 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9380 predicate, deprecate.
9381 * gdbarch.h, gdbarch.c: Re-generate.
9382 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9383 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9384 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9385 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9386 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9387 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9388 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9389 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9390 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9391 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9392 * blockframe.c (find_pc_partial_function): Update.
9393 * breakpoint.c (bpstat_what): Update.
9394 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9395 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9396 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9397 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9398 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9399 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9400 * i386-nto-tdep.c (i386nto_init_abi): Update.
9401 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9402 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9403 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9404 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9405 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9406 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9407 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9408 * infrun.c (pc_in_sigtramp): Update.
9409 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9410 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9411 * mips-tdep.c (mips_gdbarch_init): Update.
9412 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9413 * ppc-linux-tdep.c: Update comment.
9414 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9415 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9416 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9417 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9418 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9419 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9420 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9421 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9422 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9423 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9424
8050c72f
AC
94252004-03-23 Andrew Cagney <cagney@redhat.com>
9426
d2259dd3
AC
9427 * tramp-frame.h, tramp-frame.h: New files.
9428 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9429 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9430
8050c72f
AC
9431 * Makefile.in: Update all dependencies.
9432
0db9b4b7
AC
94332004-03-23 Andrew Cagney <cagney@redhat.com>
9434
9435 * Makefile.in (trad_frame_h): Add $(frame_h).
9436 * trad-frame.h: Update copyright. Include "frame.h".
9437 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9438 (trad_frame_set_id, trad_frame_get_id): Declare.
9439 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9440 * trad-frame.c: Update copyright.
9441 (struct trad_frame_cache): Define.
9442 (trad_frame_cache_zalloc): New function.
9443 (trad_frame_set_id, trad_frame_get_id): New functions.
9444 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9445
8e645ae7
AC
94462004-03-22 Andrew Cagney <cagney@redhat.com>
9447
9448 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9449 s390_pltstub_unwind_cache.
9450 (s390_stub_frame_unwind_cache): Rename
9451 s390_pltstub_frame_unwind_cache.
9452 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9453 (s390_stub_frame_prev_register): Rename
9454 s390_pltstub_frame_prev_register.
9455 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9456 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9457
9458 From Ulrich Weigand:
9459 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9460 pointer calls like PLT calls.
9461
34fcf120
DJ
94622004-03-22 Daniel Jacobowitz <drow@mvista.com>
9463
9464 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9465 PC rather than the partial function start address. Use the start
9466 address to sanity check the found PDR.
9467
5b917078
DJ
94682004-03-22 Daniel Jacobowitz <drow@mvista.com>
9469
9470 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9471 linux_handle_extended_wait.
9472
8adf9e78
AC
94732004-03-22 Andrew Cagney <cagney@redhat.com>
9474
c3122434
AC
9475 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9476 function.
9477
8adf9e78
AC
9478 * frame.h (generic_pop_current_frame): Delete declaration.
9479 (deprecate_pop_dummy_frame): Deprecate
9480 generic_pop_dummy_frame.
9481 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9482 (generic_pop_current_frame): Delete function.
9483 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9484 generic_pop_current_frame.
9485 * v850-tdep.c (v850_pop_frame): Update.
9486 * mcore-tdep.c (mcore_pop_frame): Update.
9487 * sh64-tdep.c (sh64_pop_frame): Update.
9488 * h8300-tdep.c (h8300_pop_frame): Update.
9489
90ba813f
AC
94902004-03-22 Andrew Cagney <cagney@redhat.com>
9491
9492 * frame.h (deprecated_pc_in_call_dummy): Rename
9493 generic_pc_in_call_dummy.
9494 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9495 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9496 generic_pc_in_call_dummy.
9497 (pc_in_dummy_frame): Make static.
9498 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9499 * gdbarch.h, gdbarch.c: Re-generate.
9500 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9501 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9502 (legacy_get_prev_frame): Ditto.
9503 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9504 comment.
8718a420 9505
ca4bb888
AC
95062004-03-21 Andrew Cagney <cagney@redhat.com>
9507
244675f9
AC
9508 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9509 declaration and out-of-date comment.
9510 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9511 Delete function.
9512 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9513 deprecated_pc_in_call_dummy.
9514
ca4bb888
AC
9515 * infrun.c (handle_inferior_event): For non legacy frames, use the
9516 frame ID and frame type to identify a signal trampoline. Update
9517 comments.
9518
1777c7b4
NW
95192004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9520
9521 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9522 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9523
82417da5
AC
95242004-03-21 Andrew Cagney <cagney@redhat.com>
9525
9526 * frame-unwind.h: Update copyright.
9527 (struct frame_data): Add opaque declaration.
9528 (frame_sniffer_ftype): Declare.
9529 (struct frame_unwind): Add "unwind_data" and "sniffer".
9530 (frame_unwind_register_unwinder): Declare.
9531 (frame_unwind_find_by_frame): Add parameter "this_cache".
9532 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9533 (legacy_get_prev_frame, legacy_get_prev_frame)
9534 (get_frame_type): Pass the prologue_cache to
9535 frame_unwind_find_by_frame.
9536 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9537 "unwinder".
9538 (frame_unwind_register_unwinder): New function.
9539 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9540
b2ba182e
PH
95412004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9542
9543 * bcache.c (print_percentage): Use floating point to avoid
9544 incorrect results when portion*100 overflows.
9545
81332287
KB
95462004-03-19 Kevin Buettner <kevinb@redhat.com>
9547
9548 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9549 (ppc_linux_init_extra_frame_info)
9550 (ppc_linux_frameless_function_invocation)
9551 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9552 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9553 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9554 (rs6000_frame_chain): Delete declarations.
9555 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9556 (ppc_linux_init_extra_frame_info)
9557 (ppc_linux_frameless_function_invocation)
9558 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9559 (ppc_linux_init_abi): Remove registration of above deleted functions.
9560 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9561 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9562 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9563 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9564 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9565 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9566 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9567 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9568 frame management for all OSABIs.
9569
61a65099
KB
95702004-03-19 Andrew Cagney <cagney@redhat.com>
9571
9572 Committed by Kevin Buettner <kevinb@redhat.com>.
9573
9574 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9575 Update copyright.
9576 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9577 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9578 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9579 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9580 unwinders. #ifdef legacy frame code.
9581 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9582 "frame-base.h".
9583 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9584 (struct rs6000_frame_cache, rs6000_frame_cache)
9585 (rs6000_frame_this_id, rs6000_frame_prev_register)
9586 (rs6000_frame_sniffer, rs6000_frame_unwind)
9587 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9588 (rs6000_frame_base): Implement a traditional frame unwinder.
9589 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9590 frame unwinder.
9591
88f7da05
KB
95922004-03-19 Kevin Buettner <kevinb@redhat.com>
9593
9594 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9595 breakpoint address for watchpoints or the catch eventpoints.
9596 Add new paramter ``bptype''. Adjust all callers.
9597
f826dce1
AC
95982004-03-19 Andrew Cagney <cagney@redhat.com>
9599
33cb8b0f
AC
9600 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9601
f826dce1
AC
9602 * PROBLEMS: Delete note that ARM does not use frame code, problem
9603 fixed.
9604
43b1ab88
AC
96052004-03-18 Andrew Cagney <cagney@redhat.com>
9606
292ab034
AC
9607 * stack.c (return_command): Delete code wrapped in #ifdef
9608 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9609
43b1ab88
AC
9610 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9611
dbfe4626
AC
96122004-03-18 Andrew Cagney <cagney@redhat.com>
9613
9614 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9615 DEPRECATED_IN_SIGTRAMP.
9616 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9617 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9618 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9619 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9620 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9621 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9622 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9623 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9624 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9625 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9626
0cad6aec
AC
96272004-03-18 Andrew Cagney <cagney@redhat.com>
9628
9629 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9630 (struct frame_base_table_entry): Define.
9631 (struct frame_base_table): Re-implement as a linked list.
9632 (frame_base_init): Re-implement.
9633 (frame_base_table): Delete function.
9634 (append_predicate): Delete function.
9635 (frame_base_append_sniffer): Update.
9636 (frame_base_set_default): Update.
9637 (frame_base_find_by_frame): Update.
9638 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9639 * Makefile.in (frame-base.o): Update dependencies.
9640
9982c2e7
AC
96412004-03-17 Andrew Cagney <cagney@redhat.com>
9642
9643 * frame.c (legacy_get_prev_frame): Pass correct frame to
9644 frame_unwind_find_by_frame.
9645
8dfe8985
DC
96462004-03-17 David Carlton <carlton@kealia.com>
9647
9648 * NEWS: Mention C++ nested types and namespaces
9649
ed47347a
MC
96502004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9651
9652 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9653 and "Regressions since gdb 5.3.". Add known regressions since
9654 gdb 6.0.
9655
90aeadfc
DC
96562004-03-16 David Carlton <carlton@kealia.com>
9657
9658 * dwarf2read.c (process_structure_scope): Process children even
9659 when we're a declaration.
9660
73912b9b
AC
96612004-03-16 Andrew Cagney <cagney@redhat.com>
9662
9663 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9664 * blockframe.c (find_pc_partial_function)
9665 (find_pc_sect_partial_function): Merge into a single
9666 find_pc_partial_function.
9667
283accbc
MK
96682004-03-16 Mark Kettenis <kettenis@gnu.org>
9669
9670 * i386bsd-nat.c: s/regno/regnum/g.
9671 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9672 FP0_REGNUM.
9673 (store_inferior_registers): Likewise.
9674
f5b1afdf
MK
96752004-03-16 Mark Kettenis <kettenis@gnu.org>
9676
9677 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9678 of i387_fill_fsave.
9679 (store_inferior_registers): Call i387_collect_fsave and
9680 i387_collect_fxsave instead of i387_fill_fsave and
9681 i387_fill_fxsave.
9682
41fe5eb3
AC
96832004-03-15 Andrew Cagney <cagney@redhat.com>
9684
9685 * Makefile.in (frame-unwind.o): Update dependencies.
9686 * frame-unwind.c: Include "gdb_obstack.h".
9687 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9688 parameter.
9689 (append_predicate): Delete function.
9690 (struct frame_unwind_table_entry): New structure.
9691 (struct frame_unwind_table): Replace "sniffer" with "head" and
9692 "tail".
9693 (frame_unwind_append_sniffer): Update.
9694 (frame_unwind_find_by_frame): Update.
9695 (_initialize_frame_unwind): Registe frame_unwind_init using
9696 gdbarch_data_register_pre_init.
9697
3f63813d
MK
96982004-03-15 Mark Kettenis <kettenis@gnu.org>
9699
9700 * i386bsd-nat.c: Update copyright year.
9701 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9702 define unconditionally.
9703
3248c325 97042004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9705
9706 * i387-tdep.h (i387_collect_fsave): New prototype.
9707 * i387-tdep.c (i387_collect_fsave): New function containing most
9708 of the code from i387_fill_fsave.
3248c325 9709 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9710
871fbe6a
MK
97112004-03-15 Mark Kettenis <kettenis@gnu.org>
9712
9713 * i386-linux-tdep.c: Update copyright year.
9714 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9715 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9716 svr4_ilp32_link_map_offsets instead of
9717 i386_linux_svr4_fetch_link_map_offsets.
9718
8176b9b8
DC
97192004-03-15 David Carlton <carlton@kealia.com>
9720
9721 Fix for PR c++/1553:
9722 * dwarf2read.c (read_structure_type): Determine type name by
9723 calling determine_class_name.
9724 (determine_class_name): New.
9725 (determine_prefix): Look at TYPE_TAG_NAME and call
9726 determine_class_name when appropriate.
9727 (determine_prefix_aux, class_name): Delete.
9d58e29d 9728 (read_namespace): Set die->type.
8176b9b8 9729
fe8bf7d7
KB
97302004-03-15 Kevin Buettner <kevinb@redhat.com>
9731
9732 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9733 unused macro definition. The definition in target.h (or perhaps
9734 elsewhere) takes precedence.
9735
ed6edd9b
AC
97362004-03-15 Andrew Cagney <cagney@redhat.com>
9737
f9be684a
AC
9738 * ppc-tdep.h: Update copyright.
9739 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9740 function signatures to match "regsets.h".
9741 * ppc-linux-tdep.c: Include "regset.h".
9742 (ELF_GREGSET_SIZE): Delete.
9743 (right_supply_register): New function.
9744 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9745 using right_supply_register.
9746 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9747 functions.
9748 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9749 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9750 (_initialize_ppc_linux_tdep): Do not register
9751 ppc_linux_regset_core_fns.
9752 (ppc_linux_regset_from_core_section): Replace
9753 fetch_core_registers.
9754 (ppc_linux_regset_core_fns): Delete.
9755 * ppc-linux-nat.c: (right_fill_reg): New function.
9756 (supply_gregset): Update call to ppc_linux_supply_gregset.
9757 (fill_gregset): Clear the register set, use right_fill_reg.
9758 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9759 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9760
ed6edd9b
AC
9761 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9762 unsigned.
9763
030f20e1
AC
97642004-03-15 Andrew Cagney <cagney@redhat.com>
9765
9766 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9767 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9768 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9769 and register_gdbarch_data.
9770 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9771 (struct gdbarch_data): Replace "init" by "pre_init" and
9772 "post_init".
9773 * gdbarch.h, gdbarch.c: Re-generate.
9774 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9775 with"obstack", use OBSTACK_ZALLOC.
9776 (dwarf2_frame_ops): Delete.
9777 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9778 (dwarf2_frame_init_reg): Use gdbarch_data.
9779 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9780 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9781 (_initialize_svr4_solib): Update.
9782 * user-regs.c (_initialize_user_regs): Update.
9783 * reggroups.c (_initialize_reggroup): Update.
9784 * regcache.c (_initialize_regcache): Update.
9785 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9786 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9787 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9788 * frame-unwind.c (_initialize_frame_unwind): Update.
9789 * frame-base.c (_initialize_frame_base): Update.
9790 * user-regs.c (user_reg_add): Update.
9791 * reggroups.c (reggroup_add): Update.
9792 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9793 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9794 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9795 * frame-base.c (frame_base_table): Update.
9796 * remote.c (_initialize_remote): Update.
9797 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9798
3111a3fc
AC
97992004-03-15 Andrew Cagney <cagney@redhat.com>
9800
9801 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9802
5ecb7103
KB
98032004-03-15 Kevin Buettner <kevinb@redhat.com>
9804
9805 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9806 * frv-linux-tdep.c: New file.
9807 * frv-tdep.c (struct gdbarch_tdep): Add new field
9808 ``sigcontext_reg_addr''.
9809 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9810 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9811 (frv_sigramp_frame_sniffer): New functions.
9812 (frv_sigtramp_frame_unwind): New static global.
9813 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9814 sniffers.
9815 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9816 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9817
1ccda5e9
KB
98182004-03-15 Kevin Buettner <kevinb@redhat.com>
9819
9820 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9821 but not via a call to error(), when unable to read memory.
9822
b375a0a5
KB
98232004-03-15 Kevin Buettner <kevinb@redhat.com>
9824
9825 * frv-tdep.c (frv_call_dummy_words): Delete.
9826 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9827
4fdf6121
AC
98282004-03-15 Andrew Cagney <cagney@redhat.com>
9829
9830 * infrun.c (handle_step_into_function, step_over_function): Only
9831 update and use STEP_FRAME_ID when the system is using legacy
9832 frames. Update comments.
9833
34021503
MK
98342004-03-14 Mark Kettenis <kettenis@gnu.org>
9835
187e21d1
MK
9836 * amd64-linux-tdep.h: Remove file.
9837 * amd64-linux-tdep.c: Don't include "inferior.h" and
9838 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9839 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9840 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9841 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9842 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9843 macros.
9844 (user_to_gdb_regmap): Remove variable.
9845 (amd64_linux_gregset_reg_offset): New variable.
9846 (amd64_core_fns): Remove variable.
9847 (fetch_core_registers): Remove function.
9848 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9849 functions.
9850 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9851 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9852 * Makefile.in (amd64_linux_tdep_h): Remove.
9853 (amd64-linux-nat.o): Update dependencies.
9854 (amd64-linux-tdep.o): Update dependencies.
9855
99679982
MK
9856 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9857 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9858 functions.
9859 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9860
34021503
MK
9861 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9862 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9863
134d01f1
DJ
98642004-03-14 Daniel Jacobowitz <drow@mvista.com>
9865
9866 * dwarf2read.c (read_structure_type): Rename from
8718a420 9867 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9868 Return immediately if die->type is set. Call read_type_die before
9869 dwarf2_add_member_fn.
9870 (process_structure_scope): New function.
9871 (read_enumeration_type, process_enumeration_scope): New functions,
9872 broken out from read_enumeration. Don't create the enumeration
9873 type if it has already been created.
9874 (read_enumeration): Removed.
9875 (process_die): Call read_structure_type, process_structure_scope,
9876 read_enumeration_type, and process_enumeration_scope. Just call
9877 new_symbol for base and subrange types. Add a comment about other
9878 type dies.
9879 (read_type_die): Call read_enumeration_type.
9880 (add_partial_structure, new_symbol): Update comments.
9881
65760afb
SC
98822004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9883
9884 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9885
10f59415
SC
98862004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9887
9888 * tui/tui-win.h (tui_get_cmd_list): Declare.
9889 * tui/tui-win.c (tui_command): New function.
9890 (tui_get_cmd_list): New function.
9891 (_initialize_tui_win): Moved initialization of tui command in
9892 tui_get_cmd_list.
9893
9894 * tui/tui-data.c (init_content_element): Setup new data members.
9895 (init_win_info): Likewise.
9896 (free_content_elements): Free it.
9897 * tui/tui-data.h (struct tui_data_element): Store the register
9898 content to print.
9899 (struct tui_data_info): Keep the current register group.
9900
9901 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9902
9903 * tui/tui-regs.h (tui_show_registers): Update prototype.
9904 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9905 (tui_resize_all): No need to calculate anything for register window.
9906 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9907 (tui_set_register_element, tui_set_general_regs_content): Remove.
9908 (tui_set_special_regs_content): Remove.
9909 (tui_set_general_and_special_regs_content): Remove.
9910 (tui_set_float_regs_content): Remove.
9911 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9912 (tui_set_regs_content): Remove.
9913 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9914 (tui_v_show_registers_command_support): Remove.
9915 (tui_show_registers): Use a reggroup to specify the registers to show.
9916 (tui_show_register_group): New function.
9917 (tui_display_registers_from): Compute the layout of register window
9918 and refresh with new API; be sure to delete old register windows.
9919 (tui_check_register_values): Update to use tui_get_register and
9920 tui_display_data.
9921 (tui_display_register): Just refresh the register window part.
9922 (tui_register_format): Format registers and save in tui_data_element.
9923 (tui_get_register): New to combine tui_reg_value_has_changed and
9924 tui_get_register_raw_value; fix to use the new gdb API.
9925 (tui_show_float_command): Renamed tui_reg_float_command.
9926 (tui_show_general_command): Renamed tui_reg_general_command.
9927 (tui_show_special_command): Renamed tui_reg_system_command.
9928 (_initialize_tui_regs): Remove unused commands.
9929
c3364ea4
MK
99302004-03-13 Mark Kettenis <kettenis@gnu.org>
9931
27d1e716
MK
9932 * NEWS (New native configurations): Mention OpenBSD/amd64.
9933
c3364ea4
MK
9934 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9935 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9936 Remove defines.
9937 * config/i386/nm-fbsd64.h: Likewise.
9938 * config/i386/nm-obsd.h: Likewise.
9939 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9940 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9941
b2d6d697
KB
99422004-03-12 Kevin Buettner <kevinb@redhat.com>
9943
9944 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9945 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9946 New constants.
9947
76e43199
KB
9948 From Richard Sandiford <rsandifo@redhat.com>:
9949 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9950
34ce532e
KB
99512004-03-12 Kevin Buettner <kevinb@redhat.com>
9952
9953 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9954 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9955 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9956 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9957 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9958 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9959 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9960 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9961 definitions from frv-tdep.c to frv-tdep.h.
9962
c4d10515
KB
99632004-03-12 Kevin Buettner <kevinb@redhat.com>
9964
9965 Add shared library support for FR-V FDPIC ABI:
9966 * Makefile.in (solib-frv.o): Add dependencies.
9967 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9968 New functions.
9969 (frv_push_dummy_call): Add support for FDPIC ABI.
9970 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9971 for FDPIC ABI.
9972 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9973 (frv_fdpic_find_canonical_descriptor): Declare.
9974 * solib-frv.c: New file.
9975 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9976 * config/frv/tm-frv.h (solib.h): Include.
9977
ed1bd989
KB
99782004-03-12 Kevin Buettner <kevinb@redhat.com>
9979
9980 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9981 (frv-tdep.o): Update dependencies.
9982 * frv-tdep.h: New file.
9983 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9984 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9985 constants.
9986 (struct gdbarch_tdep): Add new member ``frv_abi''.
9987 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9988 functions.
9989 (new_variant): Set ``frv_abi'' field.
9990 (gdb_arch_init): Detect FDPIC executables.
9991
82b38f72
MK
99922004-03-12 Mark Kettenis <kettenis@gnu.org>
9993
9994 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9995 wrapper.
9996
db1ea9ba
AC
99972004-03-11 Andrew Cagney <cagney@redhat.com>
9998
9999 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10000
f8766ec1
KB
100012004-03-11 Kevin Buettner <kevinb@redhat.com>
10002
10003 * solist.h (master_so_list): New function.
10004 * solib.c (master_so_list): Likewise.
10005 * solib-svr4.c (enable_break): Iterate over so_list entries
10006 obtained from master list instead of entries obtained directly
10007 via svr4_current_sos().
10008
523f6a27
BE
100092004-03-10 Ben Elliston <bje@gnu.org>
10010
10011 * MAINTAINERS: Update my mail address.
10012
37814c18
KI
100132004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10014
10015 * remote-m32r-sdi.c: Support hardware watchpoint.
10016
8b9740d8
DJ
100172004-03-09 Daniel Jacobowitz <drow@mvista.com>
10018
10019 * user-regs.c: Update copyright years.
10020 (struct user_regs): Rename to gdb_user_regs.
10021 (append_user_reg, builtin_user_regs, user_regs_init)
10022 (user_reg_add, user_reg_map_name_to_regnum)
10023 (usernum_to_user_reg): Update.
10024
4bb7a0a7
DJ
100252004-03-09 Daniel Jacobowitz <drow@mvista.com>
10026
10027 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10028 (skip_children): New functions.
10029 (locate_pdi_sibling): Call skip_children.
10030
44e1a9eb
DJ
100312004-03-09 Daniel Jacobowitz <drow@mvista.com>
10032
10033 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10034 * gdbtypes.c (check_typedef): Update comments.
10035
f3dd6933
DJ
100362004-03-09 Daniel Jacobowitz <drow@mvista.com>
10037
10038 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10039 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10040 pointer. Update comment about comp_unit_head.
10041 (struct abbrev_info): Shorten two int flags.
10042 (dwarf_alloc_abbrev): Take a CU argument.
10043 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10044 each time through the loop. Update cleanup argument.
10045 (psymtab_to_symtab_1): Update cleanup call.
10046 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10047 abbrev_obstack.
10048 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10049 Just call obstack_free and clear the pointer.
10050
b40c7d58
DJ
100512004-03-09 Daniel Jacobowitz <drow@mvista.com>
10052
10053 * infrun.c (handle_inferior_event): Remove short-circuit code for
10054 events in a different thread.
10055
333dabeb
DJ
100562004-03-09 Daniel Jacobowitz <drow@mvista.com>
10057
10058 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10059 print the whole transfer.
10060 (initialize_targets): Update description of "set debug target".
10061
aa17d93e
DJ
100622004-03-09 Daniel Jacobowitz <drow@mvista.com>
10063
10064 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10065
0b71f08f
NW
100662004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10067
10068 * MAINTAINERS (write after approval): Add myself.
10069
3930f270
CV
100702004-03-08 Corinna Vinschen <vinschen@redhat.com>
10071
10072 * sh-tdep.c (sh_print_registers_info): Use for loop.
10073 Don't skip multiple registers when a float register is encountered.
10074
a2b4a96c
CV
100752004-03-08 Corinna Vinschen <vinschen@redhat.com>
10076
10077 Fix PR tdep/1291.
10078 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10079 to official SH documentation.
10080
f15a4bc0
AC
100812004-03-07 Andrew Cagney <cagney@redhat.com>
10082
10083 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10084 unused function.
10085
9498281f
DJ
100862004-03-07 Daniel Jacobowitz <drow@mvista.com>
10087
10088 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10089 (arm_get_next_pc): Handle BX and BLX.
10090
449e1137
AC
100912004-03-07 Andrew Cagney <cagney@redhat.com>
10092
eded0a31
AC
10093 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10094 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10095 HPPA_SP_REGNUM.
10096 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10097 (hppa_target_read_fp): Delete.
10098 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10099 register_virtual_size, max_register_raw_size,
10100 max_register_virtual_size, register_byte, register_size,
10101 target_read_fp, fp_regnum, and register_bytes. Set register_type
10102 instead of register_virtual_type.
10103 (hppa32_register_type, hppa64_register_type): Replace
10104 hppa32_register_virtual_type and hppa64_register_virtual_type.
10105 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10106 (HPPA_FP_REGNUM): Define.
10107
f5f907e2
AC
10108 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10109
69b4bbe4
AC
10110 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10111 (pa_do_registers_info): Delete.
10112 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10113 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10114 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10115
78161e48
AC
10116 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10117 GDB_TARGET_IS_HPPA code.
10118 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10119 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10120 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10121 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10122 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10123 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10124 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10125 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10126 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10127 (hppa_frameless_function_invocation, hppa64_store_return_value)
10128 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10129 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10130 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10131 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10132 (find_proc_framesize, deposit_21, restore_pc_queue)
10133 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10134 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10135
782eae8b
AC
10136 Unconditionally enable 64-bit frame and ABI code.
10137 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10138 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10139 push_dummy_frame, fix_call_dummy, push_arguments,
10140 call_dummy_location, extract_return_value, use_struct_convention,
10141 store_return_value, store_struct_return, saved_pc_after_call,
10142 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10143 frame_chain, frame_chain_valid, frameless_function_invocation,
10144 frame_saved_pc, and pop_frame.
78161e48 10145
449e1137
AC
10146 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10147 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10148 (hppa_gdbarch_init): Do not set PC_REGNUM.
10149
12507572
MK
101502004-03-06 Mark Kettenis <kettenis@gnu.org>
10151
10152 * config/alpha/tm-fbsd.h: Remove file.
10153 * config/alpha/fbsd.mt: Tweak comment.
10154 (TM_FILE): Set to tm-alpha.h.
10155
c107cc1b
AC
101562004-03-05 Andrew Cagney <cagney@redhat.com>
10157
10158 * infrun.c (step_over_function): When non-legacy code, and no
10159 step_frame_id, use the unwinder to get the caller's frame ID.
10160
f2e7c15d
MK
101612004-03-05 Mark Kettenis <kettenis@gnu.org>
10162
8b0c3633
MK
10163 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10164 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10165 bfd_arch_unknown. Adjust comment.
10166
f2e7c15d
MK
10167 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10168 * i386obsd-tdep.c: Correct spelling in comment.
10169 * i386nbsd-tdep.c: Correct spelling in comment.
10170 * sparc-tdep.c: Correct spelling in comments.
10171
1198ecbe
DC
101722004-03-05 David Carlton <carlton@kealia.com>
10173
10174 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10175 bug.
10176
9eb42ed1
MK
101772004-03-05 Mark Kettenis <kettenis@gnu.org>
10178
10179 * sparc-tdep.c: Fix typo in comment.
10180
52b5e991
JB
101812004-03-04 J. Brobecker <brobecker@gnat.com>
10182
10183 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10184
d8151005
DJ
101852004-03-04 Daniel Jacobowitz <drow@mvista.com>
10186
10187 * dwarf2read.c: Add comment describing memory lifetimes.
10188 (struct dwarf2_pinfo): Update comment.
10189 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10190 (read_enumeration, new_symbol): Don't use obsavestring.
10191
cbeae229
MK
101922004-03-04 Mark Kettenis <kettenis@gnu.org>
10193
722d18c2
MK
10194 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10195 instead of amd64_fill_fxsave.
10196 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10197 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10198
cbeae229
MK
10199 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10200 Reorganize code a bit.
10201
b4206d25
OF
102022004-03-04 Orjan Friberg <orjanf@axis.com>
10203
10204 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10205 when the frame pointer is pushed. Don't set the frame pointer's
10206 address on the stack unless it's actually located there.
b4206d25
OF
10207 Set the SRP's address on the stack correctly when the PC is still in
10208 the prologue.
10209 (cris_return_value): New function.
10210 (cris_gdbarch_init): Clear deprecated store_return_value,
10211 extract_return_value.
10212
49b0b195
JB
102132004-03-02 Jim Blandy <jimb@redhat.com>
10214
10215 * stabsread.c (reg_value_complaint): The maximum register number
10216 is one less than the number of registers.
10217
e9ff708b
AC
102182004-03-02 Andrew Cagney <cagney@redhat.com>
10219
10220 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10221 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10222 trailing comma and redundant assignment of I386_ST0_REGNUM.
10223 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10224 32-bit segment registers.
10225
d4715e41
AC
102262004-03-01 Andrew Cagney <cagney@redhat.com>
10227
10228 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10229 use frame_relative_level and get_next_frame.
10230
3ce2bf18
AC
102312004-02-29 Andrew Cagney <cagney@redhat.com>
10232
10233 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10234 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10235 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10236 Delete macro.
10237
2da6aac3
DJ
102382004-02-29 Daniel Jacobowitz <drow@mvista.com>
10239
10240 * inflow.c (terminal_inferior): Don't give up the terminal if we
10241 previously couldn't get the inferior's terminal state.
10242
6ba34a8d
DJ
102432004-02-29 Daniel Jacobowitz <drow@mvista.com>
10244
10245 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10246 PC_REGNUM.
10247
faae5abe
AC
102482004-02-28 Andrew Cagney <cagney@redhat.com>
10249
10250 * NEWS: Refer to GDB 6.1.
10251 * README: Refer to GDB 6.1.
10252 * PROBLEMS: Refer to GDB 6.1.
10253
2227a3c5
DJ
102542004-02-28 Daniel Jacobowitz <drow@mvista.com>
10255
10256 * thread-db.c (disable_thread_signals): Remove unused function.
10257
80571bff
MK
102582004-02-28 Mark Kettenis <kettenis@gnu.org>
10259
041bd74b
MK
10260 * amd64-nat.c: Include "gdb_string.h".
10261 (amd64_collect_native_gregset): Zero-extend the 32-bit
10262 general-purpose registers and %eip.
10263
3c017e40
MK
10264 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10265 * amd64-tdep.c (amd64_collect_fxsave): New function.
10266 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10267
80571bff
MK
10268 * i387-tdep.h: Update copyright year.
10269 (i387_collect_fxsave): New prototype.
10270 * i387-tdep.c: Update copyright year.
10271 (i387_collect_fxsave): New function containing most of the code
10272 from i387_fill_fxsave.
10273 (i387_fill_fxsave): Call i387_collect_fxsave.
10274
50d71875
AC
102752004-02-28 Andrew Cagney <cagney@redhat.com>
10276
10277 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10278 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10279
4a28816e
MK
102802004-02-28 Mark Kettenis <kettenis@gnu.org>
10281
10282 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10283
dbda9972
AC
102842004-02-28 Andrew Cagney <cagney@redhat.com>
10285
10286 * utils.c: Use "", instead of <>, to include readline.
10287 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10288 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10289 * source.c, solib.c, exec.c, event-top.c: Ditto.
10290 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10291 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10292 * Makefile.in: Update all dependencies.
10293 (readline_tilde_h, readline_history_h): Define.
10294 (readline_headers): Delete.
10295
83277a99
MK
102962004-02-28 Mark Kettenis <kettenis@gnu.org>
10297
91ae4303
MK
10298 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10299 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10300 "config/i386/tm-lx64.h".
10301
83277a99
MK
10302 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10303 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10304 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10305
6e1d7d6c
AC
103062004-02-28 Andrew Cagney <cagney@redhat.com>
10307
ecc9ac84
AC
10308 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10309
6e1d7d6c
AC
10310 * breakpoint.c (_initialize_breakpoint): Use
10311 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10312 Add help to show command.
10313
9671aeef
MK
103142004-02-28 Mark Kettenis <kettenis@gnu.org>
10315
7fa2737c
MK
10316 * i386-nat.c: Reformat to be closer to coding standards.
10317 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10318 `retval'. Make variables `align' and `size' local to while-loop.
10319 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10320 (_initialize_i386_nat): New prototype.
10321
9671aeef
MK
10322 * tui/tui.c: Include <readline/readline.h> instead of
10323 "readline/readline.h". Include it after <term.h> and
10324 "gdb_curses.h".
10325
fca7aa43
AC
103262004-02-27 Andrew Cagney <cagney@redhat.com>
10327
412275d5
AC
10328 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10329 the new frame unwind code.
10330 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10331 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10332 PCOQ_HEAD_REGNUM.
10333
fca7aa43
AC
10334 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10335 "return_value" and "push_dummy_call".
10336 (hppa32_use_struct_convention): Delete unused function.
10337 (hppa32_store_return_value): Delete unused function.
10338 (hppa32_extract_return_value): Delete unused function.
10339 (hppa32_stack_align): Delete function.
10340
e6a8a7d2
EZ
103412004-02-27 Eli Zaretskii <eliz@elta.co.il>
10342
10343 * coffread.c (enter_linenos): Don't let rawptr reference memory
10344 outside linetab[]'s limits.
10345
1797a8f6
AC
103462004-02-27 Andrew Cagney <cagney@redhat.com>
10347
10348 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10349 inferior stack space - the stack needs to grow upwards.
10350 (hppa32_frame_align): New function.
10351 (hppa64_frame_align): Replace hppa_frame_align.
10352 (hppa_gdbarch_init): Update.
10353
2e4b5889
OF
103542004-02-26 Orjan Friberg <orjanf@axis.com>
10355
10356 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10357 (dwarf2-frame.h): Include.
10358 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10359 Remove static variables related to ABI setting.
10360 (struct gdbarch_tdep): Remove cris_abi member.
10361 (struct frame_extra_info): Remove.
10362 (cris_unwind_cache, stack_item): New structs.
10363 (cris_frame_unwind, cris_frame_base): New variables.
10364 (push_stack_item, pop_stack_item)
10365 (cris_frame_unwind_cache, cris_frame_this_id)
10366 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10367 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10368 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10369 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10370 (cris_reg_struct_has_addr): New functions.
10371 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10372 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10373 (cris_store_struct_return, cris_frameless_function_invocation)
10374 (cris_pop_frame, cris_skip_prologue_main)
10375 (cris_abi_original_store_return_value)
10376 (cris_abi_v2_store_return_value)
10377 (cris_abi_original_extract_return_value)
10378 (cris_abi_v2_extract_return_value)
10379 (cris_abi_original_reg_struct_has_addr)
10380 (cris_abi_v2_reg_struct_has_addr)
10381 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10382 (cris_push_return_address, cris_abi_update): Remove.
10383 (_initialize_cris_tdep): Remove ABI command.
10384 (cris_dump_tdep): Ditto.
8718a420 10385 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10386 Set store_return_value, extract_return_value, push_dummy_code,
10387 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10388 frame_unwind_append_sniffer, frame_base_set_default.
10389 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10390 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10391 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10392 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10393 init_extra_frame_info, frameless_function_invocation, frame_chain,
10394 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10395 dummy_write_sp.
8718a420 10396
6b9acc27
JJ
103972004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10398
10399 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10400 * valprint.c (print_hex_chars): Change from static to external.
10401 (print_char_chars): New function.
10402 * printcmd.c (print_scalar_formatted): For integer and enum types
10403 that are longer than LONGEST, perform processing via appropriate
10404 print_*_chars routines.
10405
a431654a
AC
104062004-02-26 Andrew Cagney <cagney@redhat.com>
10407
10408 * Makefile.in: Update dependencies.
10409 Changes from Ulrich Weigand,
10410 * s390-tdep.c: Include "dwarf2-frame.h".
10411 (s390_dwarf2_frame_init_reg): New function.
10412 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10413 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10414
fa8d40ab
JJ
104152004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10416
10417 * breakpoint.c (pending_break_support): New setting variable.
10418 (break_command_1): Account for pending_break_support setting
10419 when creating pending breakpoints.
10420 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10421 (_initialize_breakpoint): Add "set breakpoint pending" and
10422 "show breakpoint pending" commands.
10423
0dcd613f
AC
104242004-02-26 Andrew Cagney <cagney@redhat.com>
10425
10426 Fix PR i18n/1570.
10427 * charset.c (backslashable, backslashed, represented): Remove 'e'
10428 from list of escaped characters, not part of ISO-C.
10429
479272a3
JB
104302004-02-25 J. Brobecker <brobecker@gnat.com>
10431
10432 From Peter Schauer <schauer@pdf.de>:
10433 * tui/tui.c: Move system header includes after local includes.
10434 Fixes a build failure on solaris systems.
10435
7613d933
JB
104362004-02-25 J. Brobecker <brobecker@gnat.com>
10437
10438 * configure.in: Refine the previous change.
10439 * configure: Regenerate.
10440
9c1488cb
MK
104412004-02-25 Mark Kettenis <kettenis@gnu.org>
10442
10443 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10444 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10445 "amd64-tdep.h" instead of "x86-64-tdep.h".
10446 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10447 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10448 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10449 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10450 and "x86-64-tdep.c".
10451 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10452 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10453 and "x86-64-tdep.c".
10454 * amd64bsd-nat.c: Update copyright year.
10455 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10456 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10457 "x86-64-tdep.h".
10458 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10459 "x86-64-tdep.h".
10460 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10461 "x86-64-tdep.h".
10462 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10463 "x86-64-tdep.h".
10464 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10465 "x86-64-tdep.h".
10466 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10467 "x86-64-tdep.h".
8718a420 10468 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10469 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10470 * Makefile.in (amd64_linux_tdep_h): Renamed from
10471 x86_64_linux_tdep_h.
10472 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10473 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10474 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10475 (amd64obsd-tdep.o): Update dependencies.
10476 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10477 dependencies.
10478 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10479 dependencies.
10480 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10481 amd64-linux-nat.c amd64-linux-tdep.c.
10482 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10483 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10484 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10485 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10486 amd64-tdep.o and amd64-linux-tdep.o.
10487 (TM_FILE): Set to tm-linux64.h.
10488 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10489 (NAT_FILE): Set to nm-linux64.h.
10490 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10491 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10492 amd64-tdep.o.
10493 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10494 amd64-tdep.o.
10495 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10496 amd64-tdep.o.
10497
4b8dad4a
RM
104982004-02-25 Roland McGrath <roland@redhat.com>
10499
10500 * remote.c (remote_protocol_qPart_auxv): New variable.
10501 (init_all_packet_configs): Initialize it.
10502 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10503 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10504 (show_remote_cmd): Call it.
10505 (_initialize_remote): Initialize commands.
10506 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10507 service TARGET_OBJECT_AUXV requests.
10508
66745969
JB
105092004-02-25 J. Brobecker <brobecker@gnat.com>
10510
10511 * configure.in: Make sure that the wborder function is available.
10512 Otherwise, search for it in the cur_colr library.
10513 * configure: Regenerate.
10514
79508e1e
AC
105152004-02-25 Andrew Cagney <cagney@redhat.com>
10516
10517 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10518
571ee600
MK
105192004-02-25 Mark Kettenis <kettenis@gnu.org>
10520
10521 * config/i386/tm-x86-64linux.h: Tweak comments.
10522
2b1b322f 105232004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10524
10525 * MAINTAINERS: Add self to write-after-approval list.
10526
4d2acc65
AC
105272004-02-25 Andrew Cagney <cagney@redhat.com>
10528
4b8dad4a 10529 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10530 * cli/cli-script.c (execute_control_command): Unconditionally
10531 install a cleanup. Default "ret" to "invalid_control". Use
10532 "break" instead of "return" to escape from the switch.
10533
4cfcaf21
JB
105342004-02-24 J. Brobecker <brobecker@gnat.com>
10535
10536 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10537 with the lines macro defined in term.h on AiX.
10538 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10539 a collision with the label_width macro defined in term.h on AiX.
10540
54a5c8d8
KB
105412004-02-23 David Mosberger <davidm@hpl.hp.com>
10542
10543 Committed by Kevin Buettner <kevinb@redhat.com>.
10544
10545 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10546 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10547 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10548 instead of ia64_write_pc().
10549 * ia64-linux-tdep.c (regcache.h): Include.
10550 (ia64_linux_write_pc): New function.
4b8dad4a 10551
8a1dac83
RM
105522004-02-23 Roland McGrath <roland@redhat.com>
10553
10554 * auxv.c (info_auxv_command): Fix typos in error messages.
10555
90f90721
MK
105562004-02-23 Mark Kettenis <kettenis@gnu.org>
10557
8a1dac83 10558 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10559 (enum amd64_regnum): New.
10560 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10561 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10562 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10563 (X86_64_XMM1_REGNUM): Removed.
10564 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10565 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10566 prototypes for renamed functions.
10567 * x86-64-tdep.c: Fix typo.
10568 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10569 register numbers.
10570 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10571 Use constants from `enum amd64_regnum' for register numbers.
10572 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10573 (amd64_analyze_prologue, amd64_frame_cache,
10574 amd64_sigtramp_frame_cache): Use constants from `enum
10575 amd64_regnum' for register numbers.
10576 (amd64_supply_fpregset): Adjust for renamed functions.
10577 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10578 `enum amd64_regnum' for register numbers.
10579 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10580 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10581 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10582 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10583 (amd64_linux_fill_gregset): Adjust for renamed macros.
10584 (fetch_core_registers): Adjust for renamed functions.
10585 (amd64_linux_init_abi): Adjust for renamed functions.
10586 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10587 renamed functions.
10588 * amd64-nat.c: Adjust for renamed macros.
10589 * amd64bsd-nat.c (fetch_inferior_registers)
10590 (store_inferior_registers): Use constants from `enum amd64_regnum'
10591 for register numbers. Adjust for renamed variables.
10592 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10593 renamed variables.
10594 (_initialize_amd64fbsd_nat): Use constants from `enum
10595 amd64_regnum' for register numbers.
10596 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10597 `enum amd64_regnum' for register numbers.
10598 (amd64fbsd_init_abi): Adjust for renamed functions.
10599 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10600 `enum amd64_regnum' for register numbers.
10601 (amd64nbsd_init_abi): Adjust for renamed functions.
10602 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10603 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10604 `enum amd64_regnum' for register numbers.
10605 (amd64obsd_init_abi): Adjust for renamed functions.
10606 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10607
d5479188
JJ
106082004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10609
10610 * breakpoint.c (print_one_breakpoint): Do not output spaces
10611 after printing <PENDING> for a pending breakpoint.
10612
81cb7cc9
JJ
106132004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10614
10615 * printcmd.c (print_scalar_formatted): Initialize val_long
10616 to remove compiler warning message.
10617
cbdeadca
JJ
106182004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10619
10620 * defs.h (nquery, yquery): New prototypes.
10621 * breakpoint.c (break_command_1): Use new nquery interface.
10622 * utils.c (defaulted_query, nquery, yquery): New functions.
10623
da6bab63
AC
106242004-02-23 Andrew Cagney <cagney@redhat.com>
10625
2f690297
AC
10626 * hppa-tdep.c (hppa_frame_align): New function.
10627 (hppa32_push_dummy_call): New function.
10628 (hppa64_push_dummy_call): New function.
10629 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10630 disabled.
8a1dac83 10631
da6bab63
AC
10632 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10633 FIX_CALL_DUMMY when push_dummy_call is available.
10634 (call_function_by_hand, push_dummy_code): Ditto.
10635
abf9b42d
AC
106362004-02-22 Andrew Cagney <cagney@redhat.com>
10637
10638 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10639 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10640 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10641 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10642 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10643 call_dummy_location to ON_STACK.
10644
10fc94a4
MK
106452004-02-22 Mark Kettenis <kettenis@gnu.org>
10646
51433e4b
MK
10647 * x86-64-linux-tdep.c: Tweak comment.
10648 (amd64_linux_supply_gregset): Renamed from
10649 x86_64_linux_supply_gresget.
10650 (amd64_linux_fill_gregset): Renamed from
10651 x86_64_linux_fill_gregset.
10652 (fetch_core_registers): Adjust for renamed functions.
10653 (amd64_core_fns): Renamed from x86_64_core_fns.
10654 (amd64_linux_sigtramp_start): Renamed from
10655 x86_64_linux_sigtramp_start.
10656 (amd64_linux_pc_in_sigtramp): Renamed from
10657 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10658 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10659 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10660 (amd64_linux_sigcontext_addr): Renamed from
10661 x86_64_linux_sigcontext_addr.
10662 (amd64_linux_sc_reg_offset): Renamed from
10663 x86_64_linux_sc_reg_offset.
10664 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10665 Adjust for renamed functions and variables.
10666 (_initialize_amd64_linux_tdep): Renamed from
10667 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10668 variables.
10669 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10670 Adjust for renamed functions.
10671
430eaf2e
MK
10672 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10673 from x86_64_linux_gregset64_reg_offset.
10674 (amd64_linux_gregset32_reg_offset): Rename from
10675 x86_64_linux_gregset64_reg_offset.
10676 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10677 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10678 (amd64_linux_dr_set_control): Renamed from
10679 x86_64_linux_dr_set_control. Adjust for renamed functions.
10680 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10681 Adjust for renamed functions.
10682 (amd64_linux_dr_reset_addr): Renamed from
10683 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10684 (amd64_linux_dr_get_status): Renamed from
10685 x86_64_linux_dr_get_status. Adjust for renamed functions.
10686 (_initialize_amd64_linux_nat): Renamed from
10687 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10688 functions.
10689 * config/i386/nm-x86-64linux.h: Update copyright year.
10690 Adjust for renamed functions.
10691
10fc94a4
MK
10692 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10693 amd64fbsd_sigtramp_start.
10694 (amd64fbsd_sigtramp_end_addr): Renamed from
10695 amd64fbsd_sigtramp_end.
10696 (amd64fbsd_init_abi): Adjust for renamed variables.
10697 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10698 variables.
10699 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10700 amd64fbsd_sigtramp_start.
10701 (amd64fbsd_sigtramp_end_addr): Renamed from
10702 amd64fbsd_sigtramp_end.
10703
343af405
AC
107042004-02-22 Andrew Cagney <cagney@redhat.com>
10705
537987fc
AC
10706 * hppa-tdep.c (hppa32_return_value): New function.
10707 (hppa64_return_value): New function.
10708 (hppa_gdbarch_init): Set return_value; keep disabled.
10709
fad850b2
AC
10710 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10711 struct-return and inferior function call methods.
10712
26d08f08
AC
10713 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10714 "frame-base.h".
10715 (struct hppa_frame_cache): Define.
10716 (hppa_frame_cache, hppa_frame_this_id): New functions.
10717 (hppa_frame_prev_register): New function.
10718 (hppa_frame_unwind, hppa_frame_base): New variables.
10719 (hppa_frame_unwind_sniffer): New function.
10720 (hppa_frame_base_address, hppa_unwind_pc): New function.
10721 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10722 sniffer, and frame base sniffer; keep disabled.
10723 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10724 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10725
e7d7bd65
AC
10726 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10727 to predicates for "seriously old code".
10728
e963316f
AC
10729 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10730 runtime if(0).
10731
56132691
AC
10732 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10733 unsigned.
10734 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10735
343af405
AC
10736 * config/pa/tm-hppa.h: Update copyright.
10737 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10738 (deprecated_init_frame_pc_default): Delete declaration.
10739 (hppa_frame_init_saved_regs): Delete declaration.
10740 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10741 * hppa-tdep.c: Include "arch-utils.h".
10742 (hppa_gdbarch_init): Set deprecated init_frame_pc
10743 and deprecated frame_init_saved_regs.
10744 (hppa_frame_init_saved_regs): Make static.
10745
f5859b4d
MK
107462004-02-22 Mark Kettenis <kettenis@gnu.org>
10747
86f6f8e7 10748 Remove old 386BSD support.
cf7c5c23 10749 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10750 * configure.host: Remove i[34567]86-*-bsd*.
10751 * configure.tgt: Remove i[34567]86-*-bsd*.
10752 * i386b-nat.c: Removed.
10753 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10754 (i386b-nat.o): Remove dependencies.
10755
86f6f8e7
MK
10756 * config/i386/i386bsd.mh: Removed.
10757 * config/i386/i386bsd.mt: Removed.
10758 * config/i386/nm-i386bsd.h: Removed.
10759 * config/i386/tm-i386bsd.h: Removed.
10760 * config/i386/xm-i386bsd.h: Removed.
10761
971218cd
MK
10762 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10763
7e654c37
MK
10764 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10765 (amd64fbsd_init_abi): Set link map offsets.
10766 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10767 (amd64nbsd_init_abi): Set link map offsets.
10768 * amd64obsd-tdep.c: Include "solib-svr4.h".
10769 (amd64obsd_init_abi): Set link map offsets.
10770 * i386fbsd-tdep.c: Include "solib-svr4.h".
10771 (i386fbsd_init_abi): Set link map offsets.
10772 * i386nbsd-tdep.c: Include "solib-svr4.h".
10773 (i386nbsdelf_init_abi): Set link map offsets.
10774 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10775 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10776 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10777 solib-legacy.o and core-aout.o. Reformat.
10778 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10779 solib-svr4.o, solib-legacy.o. Reformat.
10780 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10781 * config/i386/nbsdelf.mh: Reformat.
10782 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10783 solib-svr4.o, solib-legacy.o and corelow.o.
10784 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10785 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10786 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10787 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10788 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10789 (TM_FILE): Set to tm-fbsd.h.
10790 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10791 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10792 solib-svr4.o.
10793 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10794 solib-svr4.o.
10795 (TM_FILE): Set to nm-nbsd.h.
10796 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10797 Simplify shared library support. Don't include "elf/common.h".
10798 (SVR4_SHARED_LIBS): Don't define.
10799 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10800 "solib.h".
10801 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10802 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10803 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10804 Don't include "i386/tm-i386.h". Include "solib.h".
10805 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10806 Don't include "i386/tm-i386.h".
10807 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10808 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10809 Include "i386/xm-i386.h".
10810 (HOST_LONG_DOUBLE_FORMAT): Remove.
10811
5d93ae8c
MK
10812 Fix OpenBSD/i386 sigtramp recognition.
10813 * i386-tdep.h: Update copyright year.
10814 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10815 (i386bsd_sigtramp_end): New prototypes.
10816 (i386fbsd_sigtramp_start_addr): Renamed from
10817 i386fbsd_sigtramp_start.
10818 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10819 (i386obsd_sigtramp_start_addr): Renamed from
10820 i386obsd_sigtramp_start.
10821 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10822 * i386bsd-tdep.c: Update copyright year.
10823 (i386bsd_pc_in_sigtramp): Make public.
10824 * i386fbsd-nat.c: Update copyright year.
10825 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10826 * i386fbsd-tdep.c: Update copyright year.
10827 (i386fbsd_sigtramp_start_addr): Renamed from
10828 i386fbsd_sigtramp_start.
10829 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10830 (i386fbsdaout_init_abi): Adjust for renamed variables.
10831 * i386obsd-nat.c: Update copyright year.
10832 (_initialize_i386obsd_nat): Adjust for renamed variables.
10833 * i386obsd-tdep.c: Include "target.h".
10834 (i386obsd_page_size): New variable.
10835 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10836 (i386obsd_sigtramp_end): New functions.
10837 (i386obsd_sigtramp_start_addr): Renamed from
10838 i386obsd_sigtramp_start.
10839 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10840 (i386obsd_init_abi): Adjust for renamed variables. Set
10841 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10842 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10843
84d04465
MK
10844 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10845 trampoline change in OpenBSD kernel.
10846
b053aceb
MK
10847 * amd64-nat.c: Update copyright year.
10848 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10849 architecture from REGCACHE.
10850
f5859b4d
MK
10851 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10852 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10853
e4bbbda8
MK
108542004-02-21 Mark Kettenis <kettenis@gnu.org>
10855
ba361932
MK
10856 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10857 i[34567]86-*-openbsd3.[0-3].
10858 * config/i386/obsdaout.mh: New file.
10859
d3e48264
MK
10860 * config/i386/obsd.mh (MH_FLAGS): Remove.
10861
60a6eeb6
MK
10862 Fix PR build/1549.
10863 * i386obsd-tdep.c: Update copyright years. Include
10864 "solib-svr4.h".
10865 (i386obsd_init_abi): Don't set regset_from_core_section here.
10866 (i386obsd_aout_init_abi): New function. Set
10867 regset_from_core_section here.
10868 (i386obsd_elf_init_abi): New function.
10869 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10870 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10871 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10872 (TM_FILE): Set to tm-nbsd.h.
10873
10874 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10875 solib-sunos.o.
10876
e4bbbda8
MK
10877 * solib-svr4.h: Update copyright year.
10878 (svr4_ilp32_fetch_link_map_offsets)
10879 (svr4_lp64_fetch_link_map_offsets): New prototype.
10880 * solib-svr4.c: Update copyright year.
10881 (svr4_ilp32_fetch_link_map_offsets)
10882 (svr4_lp64_fetch_link_map_offsets): New function.
10883
f6fe98ef
DJ
108842004-02-20 Daniel Jacobowitz <drow@mvista.com>
10885
10886 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10887 to the partial symbol table.
10888
589ca796
JB
108892004-02-20 J. brobecker <brobecker@gnat.com>
10890
10891 * PROBLEMS: Add description of problem documented under gdb/1560.
10892
2031c21a
MK
108932004-02-20 Mark Kettenis <kettenis@gnu.org>
10894
30b344b1
MK
10895 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10896 comments.
10897 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10898 functions.
10899 (amd64obsd_init_abi): Reorder initializations. Use
10900 amd64obsd_r_reg_offset to initialize the general-purpose register
10901 set details. Set regset_from_core_section.
10902 (_initialize_amd64obsd_tdep): Rename from
10903 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10904 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10905 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10906
2031c21a
MK
10907 * NEWS (New native configurations): Mention OpenBSD/alpha.
10908 * configure.tgt: Add alpha*-*-openbsd*.
10909 * configure.host: Add alpha*-*-openbsd*.
10910 * alphanbsd-tdep.c: Update copyright year.
10911 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10912
42471775
AC
109132004-02-20 Andrew Cagney <cagney@redhat.com>
10914
10915 Fix PR tdep/1372.
10916 * configure.tgt: Delete target "none-*-*".
10917 * configure.host: Delete host "none-*-*".
10918 * config/none/none.mh: Delete file.
10919 * config/none/none.mt: Delete file.
10920 * config/none/xm-none.h: Delete file.
10921 * config/none/tm-none.h: Delete file.
10922 * config/none/nm-none.h: Delete file.
10923
960ccd7d
FF
109242004-02-19 Fred Fish <fnf@redhat.com>
10925
10926 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10927 cache->uses_fp prior to setting it.
10928
5f883edd
FF
109292004-02-19 Fred Fish <fnf@redhat.com>
10930
10931 Fix for PR breakpoint/1558.
10932 * sh-tdep.c (IS_JSR): New macro.
10933 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10934
f98c22d5
JB
109352004-02-19 Jim Blandy <jimb@redhat.com>
10936
10937 * findvar.c (value_from_register): Doc fix.
10938
95051d27
JJ
109392004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10940
10941 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10942 type being greater than sizeof of host's LONGEST. Always use
10943 unpack_long() unless format 'f' chosen.
10944
ccefbec3
EZ
109452004-02-19 Joel Brobecker <brobecker@gnat.com>
10946
10947 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10948
ccefbec3
EZ
10949 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10950 contains a symbol wich is the best, non-exact match for the given
10951 pc. Update comments.
10952
109532004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10954
2ede629f
EZ
10955 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10956 macro, which was part of the now removed Mach 3 port.
10957 * utils.c (request_quit): Ditto.
10958
567ee972
MK
109592004-02-18 Mark Kettenis <kettenis@gnu.org>
10960
10961 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10962 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10963
50cca7bb
MK
109642004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10965
10966 Committed by Mark Kettenis <kettenis@gnu.org>.
10967
10968 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10969 Define.
10970
226361c4
AC
109712004-02-18 Andrew Cagney <cagney@redhat.com>
10972
10973 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10974 CONFIG_INSTALL and CONFIG_UNINSTALL.
10975 * configure: Re-generate.
10976 * interps.h (INTERP_TUI): Define.
10977 * Makefile.in: Update dependencies.
10978 (TUI): New macro.
10979 (tui-main.o): Specify dependencies.
10980 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10981 * tui/tui-main.c: New file.
10982
49cfa46f
MK
109832004-02-18 Mark Kettenis <kettenis@gnu.org>
10984
e2879ccb
MK
10985 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10986 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10987 dependencies.
10988 * configure.host: Add x86_64-*-openbsd*.
10989 * configure.tgt: Add x86_64-*-openbsd*.
10990 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10991
c43f4bec
MK
10992 * tui/tui.c: Don't include <malloc.h>.
10993
09ae75b6
MK
10994 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10995 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10996 amd64nbsd-tdep.c.
10997
49cfa46f 10998 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10999 static. Remove extraneous whitespace.
49cfa46f
MK
11000 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11001 static.
11002
05957fdb
JB
110032004-02-17 Jim Blandy <jimb@redhat.com>
11004
11005 * findvar.c (value_from_register): Doc fix.
11006
d0f54f9d
JB
110072004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11008
11009 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11010
8a1dac83 11011 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11012 CORE_ADDR as type for selectors. Correct types for GNU run time
11013 message lookup function to use double indirection.
11014 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11015 * objc-lang.h (lookup_child_selector): Adapt prototype.
11016
9cbd5950
JB
11017 * s390-nat.c (SUBOFF): New macro.
11018 (supply_gregset, fill_gregset): Use it to handle debugging
11019 of 32-bit exectuables running under a 64-bit kernel.
11020 * s390-tdep.c: Include "solib-svr4.h".
11021 (s390_svr4_fetch_link_map_offset): New function.
11022 (s390x_svr_fetch_link_map_offset): Likewise.
11023 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11024 * Makefile.in (s390-tdep.o): Update dependencies.
11025
a8c99f38
JB
11026 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11027 "frame-unwind.h".
11028 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11029 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11030 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11031 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11032 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11033 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11034 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11035 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11036 (struct frame_extra_info): Remove.
11037 (s390_memset_extra_info): Remove.
f73b1eff
JB
11038 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11039 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11040 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11041 (is_rse): Renamed to ...
11042 (is_rsy): ... this. Support long displacements.
11043 (is_rxe): Renamed to ...
11044 (is_rxy): ... this. Support long displacements.
11045 (compute_x_addr): Support long displacements.
11046 (struct s390_prologue_data): New data type.
11047 (s390_on_stack): Change API to use struct s390_prologue_data.
11048 (s390_store): Reimplement.
11049 (s390_load): New function.
11050 (s390_get_signal_frame_info): Remove.
11051 (s390_get_frame_info): Remove, replace by ...
11052 (s390_analyze_prolog): ... this new function.
11053 (s390_check_function_end): Remove.
11054 (s390_function_start): Remove.
11055 (s390_frameless_function_invokation): Remove.
11056 (s390_is_sigreturn): Remove.
11057 (s390_init_frame_pc_first): Remove.
11058 (s390_init_frame_extra_info): Remove.
11059 (s390_frame_init_saved_regs): Remove.
11060 (s390_frame_saved_pc_nofix): Remove.
11061 (s390_frame_saved_pc): Remove.
11062 (s390_frame_chain): Remove.
11063 (s390_fp_regnum, s390_read_fp): Remove.
11064 (s390_pop_frame_regular, s390_pop_frame): Remove.
11065 (s390_saved_pc_after_call): Remove.
11066 (s390_skip_prologue): Reimplement.
11067 (s390_in_function_epilogue_p): Support long displacements.
11068 (struct s390_unwind_cache): New data structure.
11069 (s390_frame_unwind_cache): New function.
11070 (s390_prologue_frame_unwind_cache): Likewise.
11071 (s390_backchain_frame_unwind_cache): Likewise.
11072 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11073 (s390_frame_unwind): Define.
11074 (s390_frame_sniffer): New function.
11075 (struct s390_pltstub_unwind_cache): New data structure.
11076 (s390_pltstub_frame_unwind_cache): New function.
11077 (s390_pltstub_frame_this_id): Likewise.
11078 (s390_pltstub_frame_prev_register): Likewise.
11079 (s390_pltstub_frame_unwind): Define.
11080 (s390_pltstub_frame_sniffer): New function.
11081 (struct s390_sigtramp_unwind_cache): New data structure.
11082 (s390_sigtramp_frame_unwind_cache): New function.
11083 (s390_sigtramp_frame_this_id): Likewise.
11084 (s390_sigtramp_frame_prev_register): Likewise.
11085 (s390_sigtramp_frame_unwind): Define.
11086 (s390_sigtramp_frame_sniffer): New function.
11087 (s390_frame_base_address, s390_local_base_address): New functions.
11088 (s390_frame_base): Define.
11089 (s390_unwind_pc, s390_unwind_sp): New function.
11090 (s390_push_dummy_call): Use new frame base location.
11091 (s390_unwind_dummy_id): Likewise.
11092 (s390_gdbarch_init): Remove calls to:
11093 set_gdbarch_frameless_function_invocation,
11094 set_gdbarch_deprecated_init_frame_pc,
11095 set_gdbarch_deprecated_frame_chain,
11096 set_gdbarch_deprecated_frame_init_saved_regs,
11097 set_gdbarch_deprecated_pop_frame,
11098 set_gdbarch_deprecated_init_extra_frame_info,
11099 set_gdbarch_deprecated_init_frame_pc_first,
11100 set_gdbarch_deprecated_target_read_fp,
11101 set_gdbarch_deprecated_frame_saved_pc,
11102 set_gdbarch_deprecated_saved_pc_after_call,
11103 set_gdbarch_deprecated_fp_regnum.
11104 Add calls to:
11105 set_gdbarch_in_solib_call_trampoline,
11106 frame_unwind_append_sniffer,
11107 frame_base_set_default,
11108 set_gdbarch_unwind_pc,
11109 set_gdbarch_unwind_sp.
11110 * Makefile.in (s390-tdep.o): Update dependencies.
11111
b0cf273e
JB
11112 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11113 (S390_STACK_FRAME_OVERHEAD): Remove.
11114 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11115 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11116 (s390_promote_integer_argument): Remove.
11117 (s390_cannot_extract_struct_value_address): Remove.
11118 (s390_use_struct_convention, s390_store_struct_return): Remove.
11119 (s390_extract_return_value, s390_store_return_value): Remove.
11120 (s390_return_value_convention, s390_return_value): New functions.
11121 (is_float_singleton): Handle typedefs.
8a1dac83 11122 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11123 Remove, replace by ...
11124 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11125 s390_function_arg_integer): ... these new functions.
11126 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11127 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11128 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11129 Fill in tdep->abi.
11130 Remove calls to:
11131 set_gdbarch_deprecated_store_struct_return,
11132 set_gdbarch_deprecated_extract_return_value,
11133 set_gdbarch_deprecated_store_return_value,
11134 set_gdbarch_use_struct_convention,
11135 set_gdbarch_extract_struct_value_address,
11136 set_gdbarch_deprecated_pc_in_call_dummy,
11137 set_gdbarch_deprecated_push_arguments,
11138 set_gdbarch_deprecated_save_dummy_frame_tos,
11139 set_gdbarch_deprecated_push_return_address,
11140 set_gdbarch_deprecated_sizeof_call_dummy_words,
11141 set_gdbarch_deprecated_call_dummy_words,
11142 set_gdbarch_deprecated_dummy_write_sp.
11143 Add calls to:
11144 set_gdbarch_push_dummy_call,
11145 set_gdbarch_unwind_dummy_id,
11146 set_gdbarch_return_value.
8a1dac83 11147
e1457d83
JB
11148 * config/s390/nm-linux.h: Update comments.
11149 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11150 (STOPPED_BY_WATCHPOINT): Redefine.
11151 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11152 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11153 (s390_stopped_by_watchpoint): Likewise.
11154 (watch_area_cnt): Remove.
11155 * s390-nat.c: Update comments.
11156 (watch_area): Remove typedef.
11157 Global replace watch_area by struct watch_area.
11158 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11159 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11160 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11161 (s390_fix_watch_points): Remove pid argument,
11162 use s390_inferior_tid. Recompute area spanned by watchpoints.
11163 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11164 argument. Reimplement.
11165
d0f54f9d
JB
11166 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11167 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11168 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11169 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11170 core-regset.o.
11171 * config/s390/s390x.mt: Remove.
11172 * config/s390/tm-s390.h: Remove.
11173 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11174 (TARGET_ELF64): Remove.
11175 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11176 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11177 s390*-*-* case; always set gdb_target to s390.
11178 * regformats/reg-s390.dat: Remove control registers.
11179 * regformats/reg-s390x.dat: Likewise.
11180 * s390-tdep.h: New file.
8a1dac83 11181 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11182 Include "inferior.h" and "s390-tdep.h".
11183 Remove private definition of offsetof.
11184 (s390_register_u_addr): Remove.
11185 (regmap_gregset, regmap_fpregset): Define.
11186 (supply_gregset, fill_gregset): Reimplement.
11187 (supply_fpregset, fill_fpregset): Likewise.
11188 (s390_inferior_tid): New function.
11189 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11190 (fetch_inferior_registers, store_inferior_registers): Likewise.
11191 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11192 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11193 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11194 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11195 (struct gdbarch_tdep): Define.
11196 (struct s390_register_info): Define.
11197 (s390_register_info): New variable.
11198 (s390_register_name): Reimplement.
11199 (s390_register_type): New function.
11200 (s390_register_raw_size, s390x_register_raw_size): Remove.
11201 (s390_cannot_fetch_register): Remove.
11202 (s390_register_byte): Remove.
11203 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11204 (s390_dwarf_regmap): New variable.
11205 (s390_dwarf_reg_to_regnum): New function.
11206 (s390_stab_reg_to_regnum): Remove.
11207 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11208 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11209 (s390_convert_register_p): Likewise.
11210 (s390_register_to_value, s390_value_to_register): Likewise.
11211 (s390_register_reggroup_p): Likewise.
11212 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11213 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11214 (s390_supply_regset, s390_regset_from_core_section): New functions.
11215 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11216 (S390_FPR_SIZE): Likewise.
11217 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11218 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11219 (S390_NUM_GPRS): Move here from tm-s390.h.
11220 (S390_NUM_FPRS): Likewise.
11221 (s390_in_function_epilogue_p): New function.
11222 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11223 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11224 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11225 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11226 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11227 Remove calls to:
11228 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11229 set_gdbarch_deprecated_max_register_virtual_size,
11230 set_gdbarch_deprecated_register_byte,
d0f54f9d 11231 set_gdbarch_cannot_fetch_register,
8a1dac83 11232 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11233 set_gdbarch_deprecated_register_size,
11234 set_gdbarch_deprecated_register_raw_size,
11235 set_gdbarch_deprecated_register_virtual_size,
11236 set_gdbarch_deprecated_register_virtual_type,
11237 set_gdbarch_deprecated_register_bytes.
11238 Add calls to:
11239 set_gdbarch_num_pseudo_regs,
11240 set_gdbarch_register_type,
11241 set_gdbarch_convert_register_p,
11242 set_gdbarch_register_to_value,
11243 set_gdbarch_value_to_register,
11244 set_gdbarch_register_reggroup_p,
11245 set_gdbarch_regset_from_core_section,
11246 set_gdbarch_pseudo_register_read,
11247 set_gdbarch_pseudo_register_write,
11248 set_gdbarch_in_function_epilogue_p.
11249 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11250 (s390_tdep_h): New variable.
11251
8cfe231d
JB
112522004-02-17 Jim Blandy <jimb@redhat.com>
11253
4589a601
JB
11254 * findvar.c (value_from_register): If the type has no length, just
11255 return an acceptable value --- don't report an internal error.
11256
8cfe231d
JB
11257 * stabsread.c (read_type): If we find any type numbers that are
11258 forward references, complain if the references aren't resolved by
11259 the time we're finished reading.
11260 (cleanup_undefined_types): Make error message more appropriate for
11261 a complaint.
11262
5bf0017e
EZ
112632004-02-17 Elena Zannoni <ezannoni@redhat.com>
11264
9d62932d
EZ
11265 * Makefile.in (defs_h): Remove dependency on progress_h.
11266 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11267 progress.h.
11268 * main.c (captured_main): Delete use of START_PROGRESS and
11269 END_PROGRESS.
11270
112712004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11272
5bf0017e
EZ
11273 * objfiles.c (terminate_minimal_symbol_table): Add back
11274 initialization of MSYMBOL_TYPE.
11275
9fc9f5e2
AC
112762004-02-17 David Mosberger <davidm@hpl.hp.com>
11277
11278 Committed by Andrew Cagney.
11279 * Makefile.in (ia64_tdep_h): New macro.
11280 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11281 (ia64-tdep.o): Likewise.
11282 * ia64-tdep.h: New file.
11283 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11284 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11285 (ia64_aix_sigcontext_register_address): Likewise.
11286 (ia64_linux_getunwind_table): Delete declaration.
11287 * ia64-linux-tdep.c: Likewise.
11288
76cd2bd9
CV
112892004-02-17 Corinna Vinschen <vinschen@redhat.com>
11290
11291 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11292 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11293 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11294
634aa483
AC
112952004-02-17 Andrew Cagney <cagney@redhat.com>
11296
11297 * symtab.c (skip_prologue_using_sal): New function.
11298 * symtab.h (skip_prologue_using_sal): Declare.
11299 * frv-tdep.c: Include "symtab.h".
11300 (skip_prologue_using_sal): Delete function.
11301 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11302 * rs6000-tdep.c (refine_prologue_limit): Mention
11303 skip_prologue_using_sal.
11304 * ia64-tdep.c (refine_prologue_limit): Ditto.
11305 * Makefile.in: Update dependencies.
11306
113072004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11308
39ce7b3f
AC
11309 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11310 START_INFERIOR_TRAPS_EXPECTED.
11311 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11312 START_INFERIOR_TRAPS_EXPECTED.
11313 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11314 Delete macro.
11315 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11316 macro, moved to "nm-osf.h". Update copyright.
11317 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11318 update copyright.
11319
19772a2c
AC
11320 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11321 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11322 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11323 frameless_look_for_prologue.
11324 * frame.h (legacy_frameless_look_for_prologue): Rename
11325 frameless_look_for_prologue.
11326 * gdbarch.h, gdbarch.c: Re-generate.
11327 * sh64-tdep.c (sh64_gdbarch_init): Update.
11328 * sh-tdep.c (sh_gdbarch_init): Update.
11329 * s390-tdep.c (s390_gdbarch_init): Update.
11330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11331 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11332 * m68k-tdep.c (m68k_gdbarch_init): Update.
11333 (delta68_frame_args_address): Update.
11334 * m32r-tdep.c (m32r_gdbarch_init): Update.
11335 * hppa-tdep.c (hppa_gdbarch_init): Update.
11336 * h8300-tdep.c (h8300_gdbarch_init): Update.
11337 * frv-tdep.c (frv_gdbarch_init): Update.
11338 (frv_frameless_function_invocation): Update.
11339 * cris-tdep.c (cris_gdbarch_init): Update.
11340 (cris_frameless_function_invocation): Update.
11341 * avr-tdep.c (avr_gdbarch_init): Update.
11342 * arm-tdep.c (arm_gdbarch_init): Update.
11343 * stack.c (frame_info): Update, call predicate.
11344 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11345 * frame.c (legacy_get_prev_frame): Update, call predicate..
11346 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11347 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11348 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11349 invocation.
11350 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11351 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11352 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11353
11354 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11355 function.
11356
7dcaac91
DJ
113572004-02-16 Daniel Jacobowitz <drow@mvista.com>
11358
11359 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11360 initializations.
11361
88289b6e
AC
113622004-02-16 Andrew Cagney <cagney@redhat.com>
11363
11364 * tui/tui-windata.c: Include "gdb_string.h".
11365 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11366 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11367 * Makefile.in: Update dependencies.
11368
9f976b41
DJ
113692004-02-16 Daniel Jacobowitz <drow@mvista.com>
11370
11371 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11372 * infrun.c: Include "gdb_assert.h".
11373 (singlestep_ptid, saved_singlestep_ptid)
11374 (stepping_past_singlestep_breakpoint): New variables.
11375 (resume): Set singlestep_ptid. Check for singlestep thread
11376 hop.
11377 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11378 (handle_inferior_event): Handle singlestep thread hop.
11379
c324d747
AC
113802004-02-16 Andrew Cagney <cagney@redhat.com>
11381
f090b9b1
AC
11382 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11383 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11384 (dwarf2_frame_init_reg): Ditto.
11385
fd33e6cb
AC
11386 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11387 suggested by Joshua Neuheisel
11388
c324d747
AC
11389 * configure.in: Always check for curses, including pdcurses.
11390 Warn, instead of error, when no curses are found. Enable TUI when
11391 curses is available.
11392 * configure: Re-generate.
11393
b66ba949
CV
113942004-02-16 Corinna Vinschen <vinschen@redhat.com>
11395
11396 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11397 sh_sh4_register_convert_to_virtual.
11398 (sh_register_convert_to_raw): Rename from
11399 sh_sh4_register_convert_to_raw.
11400 (sh_pseudo_register_read): Accomodate above name change.
11401 (sh_pseudo_register_write): Ditto.
11402
b58cbbf2
CV
114032004-02-16 Corinna Vinschen <vinschen@redhat.com>
11404
11405 * sh-tdep.c (sh_generic_register_name): Remove.
11406 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11407
5929a910
AC
114082004-02-15 Andrew Cagney <cagney@redhat.com>
11409
4566dfcf
AC
11410 * configure.in (build_warnings): Add -Wunused-function.
11411 * configure: Re-generate.
11412
db11ed55
AC
11413 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11414 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11415
46ac7a5d
AC
11416 * procfs.c (procfs_init_inferior): Assume that
11417 START_INFERIOR_TRAPS_EXPECTED is defined.
11418 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11419 * config/ns32k/tm-nbsd.h: Delete file,
11420 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11421
ba801595
AC
11422 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11423 * config/vax/tm-vax.h: Delete file.
11424
5929a910
AC
11425 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11426 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11427 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11428 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11429 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11430 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11431 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11432
8f22cb90
MK
114332004-02-15 Mark Kettenis <kettenis@gnu.org>
11434
11435 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11436 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11437 (struct dwarf2_frame_ops): New.
11438 (dwarf2_frame_default_init_reg): New function, based on
11439 dwarf2_frame_init_reg.
11440 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11441 (dwarf2_frame_init_reg): Call architecture-specific function.
11442 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11443 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11444 instead of dwarf2_frame_data.
11445 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11446 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11447
8132723e
AC
114482004-02-15 Andrew Cagney <cagney@redhat.com>
11449
046a4708
AC
11450 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11451 register_gdbarch_swap.
11452 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11453 * f-lang.c (_initialize_f_language): Update, use
11454 DEPRECATED_REGISTER_GDBARCH_SWAP.
11455 * remote.c (_initialize_remote): Ditto.
11456 * regcache.c (_initialize_regcache): Ditto.
11457 * parse.c (_initialize_parse): Ditto.
11458 * infrun.c (_initialize_infrun): Ditto.
11459 * mi/mi-main.c (_initialize_mi_main): Ditto.
11460 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11461
549c1eea
AC
11462 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11463 poking .cacheable directly.
11464 * symfile.c (symfile_bfd_open): Ditto.
11465
0c0b39de
AC
11466 * Makefile.in: Update all dependencies.
11467
8132723e
AC
11468 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11469 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11470 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11471 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11472 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11473
b9d26eb9
AC
114742004-02-14 Andrew Cagney <cagney@redhat.com>
11475
8e1f669a
AC
11476 * arch-utils.c (legacy_convert_register_p): Check
11477 DEPRECATED_REGISTER_CONVERTIBLE_P.
11478 * findvar.c (value_of_register): Ditto.
11479
cd0bfa36
AC
11480 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11481 * gdbarch.h, gdbarch.c: Re-generate.
11482 * arch-utils.c (deprecated_register_convertible_not): Delete.
11483 * arch-utils.h (deprecated_register_convertible_not): Delete.
11484 * mi/mi-main.c (get_register): Update. Update copyright.
11485 * infcmd.c (default_print_registers_info): Update.
11486
b9d26eb9
AC
11487 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11488 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11489 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11490 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11491 * frame.c (deprecated_get_next_frame_hack): Delete function.
11492 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11493 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11494 Update.
11495 * infcall.c (call_function_by_hand): Update.
11496
9ab9195f
EZ
114972004-02-14 Elena Zannoni <ezannoni@redhat.com>
11498
11499 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11500 from here...
9ab9195f
EZ
11501 * objfiles.c (init_entry_point_info, entry_point_address):..to
11502 here.
11503 * symfile.h (init_entry_point_info, entry_point_address): Remove
11504 prototypes.
11505 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11506 prototypes.
9ab9195f
EZ
11507 * cris-tdep.c: Remove include of symfile.h. Add include of
11508 objfiles.h.
11509 * infcall.c: Ditto.
11510 * mcore-tdep.c: Ditto.
11511 * mn10300-tdep.c: Ditto.
11512 * sh64-tdep.c: Ditto.
11513 * v850-tdep.c: Ditto.
11514 * arm-tdep.c: Remove include of symfile.h.
11515 * blockframe.c: Ditto.
11516 * coffread.c: Ditto.
11517 * dbxread.c: Ditto.
11518 * dwarf2read.c: Ditto.
11519 * dwarfread.c: Ditto.
8a1dac83 11520 * frv-tdep.c: Ditto.
9ab9195f
EZ
11521 * ia64-tdep.c: Ditto.
11522 * mdebugread.c: Ditto.
11523 * mipsread.c: Ditto.
8a1dac83 11524 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11525 * s390-tdep.c: Ditto.
11526 * sh-tdep.c: Ditto.
8a1dac83 11527 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11528 * gdbarch.sh: Remove include of symfile.h.
11529 * gdbarch.c: Regenerate.
11530 * solib-irix.c (enable_break): Use entry_point_address().
11531 Add comment about include file.
11532 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11533 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11534 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11535 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11536 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11537 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11538
c4c5b7ba
AC
115392004-02-13 Andrew Cagney <cagney@redhat.com>
11540
11541 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11542 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11543 copyright.
11544 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11545
3e7879de
FF
115462004-02-12 Fred Fish <fnf@redhat.com>
11547
11548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11549 set_gdbarch_store_return_value.
11550
6a7760b6
AC
115512004-02-12 Andrew Cagney <cagney@redhat.com>
11552
11553 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11554 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11555 (interrupt_query): Ditto.
11556 (ofunc): Delete unused variable.
11557 * cris-tdep.c (cris_abi): Delete unused function.
11558 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11559 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11560 (cris_get_asr_quick_shift_steps): Ditto.
11561 (cris_skip_prologue_frameless_p): Ditto.
11562 * arm-tdep.c (arm_push_return_address): Delete unused function.
11563 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11564 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11565 * s390-tdep.c (s390_function_start): Delete unused function.
11566
31687c3c
AC
115672004-02-12 Andrew Cagney <cagney@redhat.com>
11568
11569 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11570 gdbarch.h, gdbarch.c: Re-generate.
11571 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11572 to generic_prologue_frameless_p.
11573 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11574 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11575
6de918a6
DJ
115762004-02-11 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * mips-linux-tdep.c: Include "frame.h".
11579 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11580 (mips_linux_skip_resolver): New functions.
11581 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11582 and set_gdbarch_in_solib_call_trampoline.
11583 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11584 to after set_gdbarch_in_solib_return_trampoline. Only set the
11585 solib hooks to mips16 functions if the OS ABI is unknown.
11586 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11587 including "config/tm-linux.h".
11588 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11589 * Makefile.in (mips-linux-tdep.o): Update.
11590
87b3ede8
DC
115912004-02-11 David Carlton <carlton@kealia.com>
11592
11593 * linespec.c (decode_compound): Only look for a class symbol when
11594 considering all but the rightmost component.
11595
5979bc46
AC
115962004-02-11 Andrew Cagney <cagney@redhat.com>
11597
11598 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11599 abi code are are separatly grouped.
11600
5867a2fb
AC
116012004-02-11 Andrew Cagney <cagney@redhat.com>
11602
11603 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11604 * gdbarch.h, gdbarch.c: Re-generate.
11605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11606 * v850-tdep.c (v850_gdbarch_init): Update.
11607 * sh64-tdep.c (sh64_gdbarch_init): Update.
11608 * sh-tdep.c (sh_gdbarch_init): Update.
11609 * s390-tdep.c (s390_gdbarch_init): Update.
11610 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11611 * mips-tdep.c (mips_gdbarch_init): Update.
11612 * mcore-tdep.c (mcore_gdbarch_init): Update.
11613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11614 * m32r-tdep.c (m32r_gdbarch_init): Update.
11615 * ia64-tdep.c (ia64_gdbarch_init): Update.
11616 * hppa-tdep.c (hppa_gdbarch_init): Update.
11617 * h8300-tdep.c (h8300_gdbarch_init): Update.
11618 * frv-tdep.c (frv_gdbarch_init): Update.
11619 * d10v-tdep.c (d10v_gdbarch_init): Update.
11620 * cris-tdep.c (cris_gdbarch_init): Update.
11621 * avr-tdep.c (avr_gdbarch_init): Update.
11622 * arm-tdep.c (arm_gdbarch_init): Update.
11623 * alpha-tdep.c (alpha_gdbarch_init): Update.
11624
026a72f8
CV
116252004-02-11 Corinna Vinschen <vinschen@redhat.com>
11626
11627 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11628 comma.
11629 (sh_sh4al_dsp_register_name): Ditto.
11630
3903d437
AC
116312004-02-10 Andrew Cagney <cagney@redhat.com>
11632
11633 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11634 (mips_init_frame_pc_first): Delete function.
11635 (mips_frame_saved_pc): Delete function.
11636 (mips_frame_chain): Delete function.
11637 (mips_init_extra_frame_info): Delete function.
11638 (mips_xfer_register): Delete unused variable "reg".
11639 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11640 (mips_n32n64_return_value): Delete unused variable "reg".
11641 (mips_n32n64_return_value): Delete unused variable "pos".
11642 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11643 (mips_o32_return_value): Delete unused variable "pos".
11644 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11645 (mips_print_fp_register): Delete unused variable "namelen"
11646 (mips_print_fp_register): Delete unused variable "flt2"
11647 (get_frame_pointer): Delete function.
11648 (cached_proc_desc): Delete static variable.
11649 (mips_pop_frame): Delete function.
11650 (mips_find_saved_regs): Delete function.
11651 (mips_get_saved_register): Delete function.
11652 (mips_saved_pc_after_call): Delete function.
11653 (SIGFRAME_BASE): Delete macro.
11654 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11655 (SIGFRAME_PC_OFF): Delete macro.
11656 (SIGFRAME_REGSAVE_OFF): Delete macro.
11657 (mips_dump_tdep): Do not print deleted macro definitions.
11658
b9fb98bd
AC
116592004-02-10 Andrew Cagney <cagney@redhat.com>
11660
11661 * Makefile.in (SFILES): Remove explictly listed tui files.
11662 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11663
78ced177 116642004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11665
78ced177
JJ
11666 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11667 to use paddr functions to format ia64 addresses and long values.
11668 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11669 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11670 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11671 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11672 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11673
6a83354a
AC
116742004-02-10 Andrew Cagney <cagney@redhat.com>
11675
11676 * defs.h: Do not include "tui.h".
11677 * gdb_curses.h: New file.
11678 * tui/tui-hooks.h: New file.
11679 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11680 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11681 (tui_initialize_io): Delete declaration.
11682 (tui_initialize_readline: Delete redundant declaration.
11683 (struct tui_point): Delete definition.
11684 * tui/tui-data.h (struct tui_point): Define.
11685 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11686 * utils.c: Include "tui/tui.h".
11687 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11688 * printcmd.c [TUI]: Include "tui/tui.h".
11689 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11690 * tui/tui-command.c: Include "gdb_curses.h".
11691 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11692 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11693 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11694 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11695 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11696 * Makefile.in: Update all dependencies.
11697 (tui_hooks_h, gdb_curses_h): Define.
11698 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11699
997470ef
EZ
117002004-02-10 Elena Zannoni <ezannoni@redhat.com>
11701
11702 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11703 auxf2. Add comments about some other rarely used fields.
11704
4ff2cc4d
AC
117052004-02-10 Andrew Cagney <cagney@redhat.com>
11706
11707 * Makefile.in (init.c): Fix script removing duplicates. Problem
11708 reported by Peter Schauer.
11709
1ab21617
EZ
117102004-02-09 Elena Zannoni <ezannoni@redhat.com>
11711
11712 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11713 obstack_specify_allocation.
11714 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11715 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11716 (allocate_rt_common_objfile): Ditto.
11717 * symfile.c (reread_symbols): Ditto.
11718 * gdb_obstack.h: Add comment.
11719
17763fd9
EZ
117202004-02-09 Elena Zannoni <ezannoni@redhat.com>
11721
11722 * linespec.c (decode_line_1, locate_first_half)
11723 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11724 commented out code.
11725
ec5cdd75
DJ
117262004-02-09 Daniel Jacobowitz <drow@mvista.com>
11727
11728 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11729 obstack_free.
11730
43b54b88
AC
117312004-02-09 Andrew Cagney <cagney@redhat.com>
11732
11733 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11734 fails, try find_pc_section. Fix PR c++/1267.
11735 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11736 instead of find_pc_mapped_section.
11737 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11738 not default to the section containing PC. Fix PR symtab/1519.
11739
edfae063
AC
117402004-02-09 Andrew Cagney <cagney@redhat.com>
11741
11742 * Makefile.in (mips-tdep.o): Update dependencies.
11743 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11744 "trad-frame.h".
11745 (mips_unwind_pc): Return the pseudo PC register.
11746 (mips_unwind_dummy_id): New function.
11747 (mips16_fetch_instruction): New function.
11748 (mips32_fetch_instruction): New function.
11749 (struct mips_frame_cache): Define.
11750 (mips_mdebug_frame_cache): New function.
11751 (mips_mdebug_frame_this_id): New function.
11752 (mips_mdebug_frame_prev_register): New function.
11753 (mips_mdebug_frame_unwind): Define.
11754 (mips_mdebug_frame_sniffer): New function.
11755 (mips_mdebug_frame_base_address): New function.
11756 (mips_mdebug_frame_base): Define.
11757 (mips_mdebug_frame_base_sniffer): New function.
11758 (mips_gdbarch_init): Append unwind and base sniffers. Set
11759 unwind_dummy_id.
11760
defc864c
AC
117612004-02-08 Andrew Cagney <cagney@redhat.com>
11762
6764ddad
AC
11763 * frame.c: Print both the register number and name.
11764
defc864c
AC
11765 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11766 and a sed into a single sed. Make .c and .o patterns more robust.
11767 (OBS): Delete.
11768 (INIT_FILES): Replace OBS with COMMON_OBS.
11769 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11770
645d6d10
MK
117712004-02-08 Mark Kettenis <kettenis@gnu.org>
11772
11773 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11774 the PT_WCOOKIE request.
11775
23e3c3fc
AC
117762004-02-08 Andrew Cagney <cagney@redhat.com>
11777
58dfe9ff
AC
11778 * mips-tdep.c (mips_unwind_pc): New function.
11779 (mips_gdbarch_init): Set mips_unwind_pc.
11780
1152e35e
AC
11781 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11782 (get_frame_id): Allow the UNKNOWN_FRAME.
11783 (frame_register_unwind, get_frame_type): Ditto.
11784
31b75dbf
AC
11785 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11786 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11787 unwind_dummy_id indicates a legacy frame.
11788
3483b318
AC
11789 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11790 * configure: Re-generate.
11791
23e3c3fc
AC
11792 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11793 methods.
11794
33f8ca73
AC
117952004-02-08 Andrew Cagney <cagney@redhat.com>
11796
11797 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11798 makefile macro.
11799 * configure: Re-generate.
11800 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11801 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11802 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11803 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11804 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11805 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11806 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11807 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11808 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11809 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11810
6ba8e26f 118112004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11812
20d286a5
AC
11813 * Makefile.in: Update all dependencies.
11814
d836ee13
AC
11815 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11816 * configure: Re-generate.
11817 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11818 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11819 (COMMON_OBS): Add "main.o" and "annotate.o".
11820 (ANNOTATE_OBS): Delete.
11821 (OBS): Remove ANNOTATE_OBS.
11822 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11823 CONFIG_INITS.
11824 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11825 against CONFIG_OBS and "main.o".
11826 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11827 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11828
d02c80cd
AC
11829 * tui/tui-command.c: Include "gdb_string.h", delete register
11830 attribute, use ISO-C function signatures.
11831 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11832 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11833 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11834 * tui/tui.c: Ditto.
6ba8e26f
AC
11835
11836 * tui/tui-command.c: Change variable and function names to lower
11837 case.
11838 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11839 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11840 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11841 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11842 * tui/tui-winsource.c, tui/tui.c: Ditto.
11843
4a146b47
EZ
118442004-02-07 Elena Zannoni <ezannoni@redhat.com>
11845
11846 * buildsym.c (free_pending_blocks, finish_block)
11847 (record_pending_block, make_blockvector, end_symtab): Replace
11848 symbol_obstack with objfile_obstack.
8a1dac83 11849 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11850 (coff_read_enum_type): Ditto.
8a1dac83 11851 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11852 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11853 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11854 (dwarf2_symbol_mark_computed): Ditto.
11855 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11856 * elfread.c (elf_symtab_read): Ditto.
11857 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11858 (hpread_read_enum_type, hpread_read_function_type)
11859 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11860 Ditto.
8a1dac83 11861 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11862 (java_link_class_type): Ditto.
8a1dac83 11863 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11864 (new_symbol): Ditto.
11865 * minsyms.c (install_minimal_symbols): Ditto.
11866 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11867 (terminate_minimal_symbol_table): Replace symbol_obstack with
11868 objfile_obstack.
11869 (free_objfile): Remove freeing of symbol_obstack.
11870 * objfiles.h: Remove symbol_obstack field.
11871 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11872 objfile_obstack.
11873 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11874 symbol_obstack.
11875 (solib_add_common_symbols): Replace symbol_obstack with
11876 objfile_obstack.
11877 * somsolib.c (som_solib_add): Ditto.
11878 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11879 (common_block_start, common_block_end): Ditto.
11880 * symfile.c (reread_symbols): Remove freeing and init of
11881 symbol_obstack.
11882 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11883 * symfile.h: Update comment.
11884 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11885 stats printing.
11886 * symtab.c (symbol_set_names): Replace symbol_obstack with
11887 objfile_obstack.
11888 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11889 Update comments.
11890 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11891 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11892 objfile_obstack.
11893
6d012f14
AC
118942004-02-07 Andrew Cagney <cagney@redhat.com>
11895
11896 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11897 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11898 fields and variables.
11899 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11900 (m_beInvisible): Delete macro.
11901 * tui/tui-data.h: Fix case case fields and variables.
11902 (m_genWinPtrIsNull): Delete macro.
11903 (tui_win_list): Rename winList.
11904 (TUI_SRC_WIN): Rename srcWin.
11905 (TUI_DISASM_WIN): Rename disassemWin.
11906 (TUI_DATA_WIN): Rename dataWin.
11907 (TUI_CMD_WIN): Rename cmdWin.
11908 (m_genWinPtrNotNull): Delete macro.
11909 (m_winPtrIsNull): Delete macro.
11910 (m_winPtrNotNull): Delete macro.
11911 (tui_win_is_source_type): Replace m_winIsSourceType
11912 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11913 (tui_win_has_locator): Replace m_hasLocator.
11914 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11915 m_setWinHighlightOff.
11916 * tui/tui-data.c: Update references.
11917 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11918 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11919 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11920 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11921 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11922 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11923 * tui/tui-winsource.c, tui/tui.c: Ditto.
11924
7d34766b
MK
119252004-02-07 Mark Kettenis <kettenis@gnu.org>
11926
1c800673
MK
11927 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11928 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11929 StackGhost.
11930
7d34766b
MK
11931 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11932 variable `i6' to `i7'.
11933 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11934
22940a24
AC
119352004-02-07 Andrew Cagney <cagney@redhat.com>
11936
11937 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11938 (TuiPoint, TuiPointPtr): Ditto.
11939 (TuiStatus, TuiStatusPtr): Ditto.
11940 (TuiWinType, TuiWinTypePtr): Ditto.
11941 (struct tui_point): Rename _TuiPoint.
11942 (tui_get_low_disassembly_address): Rename
11943 tuiGetLowDisassemblyAddress.
11944 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11945 (tuiFree): Delete declaration.
11946 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11947 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11948 * tui/tui.c (tuiFree): Delete function.
11949 * cli/cli-cmds.c (disassemble_command): Update references.
11950 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11951 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11952 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11953 * tui/tui-winsource.c: Ditto.
11954
8b92e4d5
EZ
119552004-02-07 Elena Zannoni <ezannoni@redhat.com>
11956
11957 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11958 coffstab_build_psymtabs, elfstab_build_psymtabs)
11959 (stabsect_build_psymtabs): Replace psymbol_obstack with
11960 objfile_obstack.
11961 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11962 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11963 Ditto.
11964 * dwarfread.c (scan_compilation_units): Ditto.
11965 * elfread.c (elfstab_offset_sections): Ditto.
11966 * hppa-tdep.c (read_unwind_info): Ditto.
11967 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11968 (hpread_end_psymtab): Ditto.
11969 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11970 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11971 Ditto.
11972 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11973 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11974 (build_objfile_section_table): Ditto.
11975 (allocate_objfile): Remove init of psymbol_obstack.
11976 (free_objfile): Remove freeing of psymbol_obstack.
11977 * objfiles.h (struct objfile): Remove field
11978 psymbol_obstack. Update comments.
11979 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11980 psymbol_obstack with objfile_obstack.
11981 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11982 psymbol_obstack.
11983 * somread.c (som_symfile_offsets, init_import_symbols)
11984 (init_export_symbols): Replace psymbol_obstack with
11985 objfile_obstack.
11986 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11987 * symfile.c (default_symfile_offsets, syms_from_objfile)
11988 (reread_symbols): Remove freeing and init of psymbol_obstack.
11989 (cashier_psymtab): Update comment.
11990 * symmisc.c (print_objfile_statistics): Don't report stats for
11991 psymbol obstack.
11992 * symtab.h (struct general_symbol_info, struct partial_symtab):
11993 Update comments.
11994 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11995 (xcoff_symfile_offsets): Replace psymbol_obstack with
11996 objfile_obstack.
11997
b99607ea
EZ
119982004-02-07 Elena Zannoni <ezannoni@redhat.com>
11999
12000 * objfiles.h (struct objfile): Add objfile_obstack field.
12001 Remove type_obstack field.
12002
12003 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12004 read_structure_scope read_enumeration, new_symbol): Replace
12005 type_obstack with objfile_obstack.
12006 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12007 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12008 (lookup_fundamental_type): Ditto.
12009 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12010 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12011 (hpread_read_doc_function_type, hpread_read_struct_type)
12012 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12013 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12014 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12015 (java_link_class_type): Ditto.
12016 * mdebugread.c (parse_type): Ditto.
12017 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12018 * solib-sunos.c (solib_add_common_symbols): Ditto.
12019 * stabsread.c (define_symbol, read_type, read_member_functions,
12020 read_cpp_abbrev, read_one_struct_field): Ditto.
12021 * symfile.c (reread_symbols): Ditto.
12022 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12023
2a8854a7
AC
120242004-02-07 Andrew Cagney <cagney@redhat.com>
12025
12026 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12027 (tui_exec_info_content): Rename TuiExecInfoContent.
12028 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12029 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12030 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12031 (TuiList, TuiListPtr): Ditto.
12032 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12033 (TuiDataType, TuiDataTypePtr): Ditto.
12034 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12035 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12036 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12037 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12038 (TuiDataElement, TuiDataElementPtr): Ditto.
12039 (TuiWinElement, TuiWinElementPtr): Ditto.
12040 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12041 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12042 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12043 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12044 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12045 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12046 * tui/tui-command.c, tui/tui-data.c: Update references.
12047 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12048 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12049 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12050 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12051
05cbe71a
MK
120522004-02-07 Mark Kettenis <kettenis@gnu.org>
12053
12054 * dwarf2-frame.h: Update copyright.
12055 (enum dwarf2_frame_reg_rule): New.
12056 (struct dwarf2_frame_state_reg): New.
12057 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12058 * dwarf2-frame.c: Update copyright.
12059 (enum dwarf2_reg_rule): Remove.
12060 (struct dwarf2_frame_state): Remove defenition of `struct
12061 dwarf2_frame_state_reg'.
12062 (read_reg): Call get_frame_arch to get the architecture instead of
12063 using CURRENT_GDBARCH.
12064 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12065 DWARF2_FRAME_.
12066 (dwarf2_frame_init_reg): New function.
12067 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12068 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12069 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12070 tags with DWARF2_FRAME_.
12071 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12072 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12073 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12074
ec7d9e56
AC
120752004-02-06 Andrew Cagney <cagney@redhat.com>
12076
dd1abb8c
AC
12077 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12078 (enum tui_data_type): Rename _TuiDataType.
12079 (struct tui_layout_def): Rename _TuiLayoutDef.
12080 (struct tui_source_element): Rename _TuiSourceElement.
12081 (struct tui_data_element): Rename _TuiDataElement.
12082 (struct tui_command_element): Rename _TuiCommandElement.
12083 (struct tui_locator_element): Rename _TuiLocatorElement.
12084 (union tui_which_element): Define.
12085 (struct tui_win_element): Rename _TuiWinElement.
12086 (struct tui_data_info): Rename _TuiDataInfo.
12087 (struct tui_source_info): Rename _TuiSourceInfo.
12088 (struct tui_command_info): Rename _TuiCommandInfo.
12089 (tui_initialize_static_data): Rename initializeStaticData.
12090 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12091 (tui_alloc_win_info): Rename allocWinInfo.
12092 (tui_init_generic_part): Rename initGenericPart.
12093 (tui_init_win_info): Rename initWinInfo.
12094 (tui_alloc_content): Rename allocContent.
12095 (tui_add_content_elements): Rename addContentElements.
12096 (tui_init_content_element): Rename initContentElement.
12097 (tui_free_window): Rename freeWindow.
12098 (tui_free_win_content): Rename freeWinContent.
12099 (tui_free_data_content): Rename freeDataContent.
12100 (tui_free_all_source_wins_content): Rename
12101 freeAllSourceWinsContent.
12102 (tui_del_window): Rename tuiDelWindow.
12103 (tui_del_data_windows): Rename tuiDelDataWindows.
12104 (tui_partial_win_by_name): Rename partialWinByName.
12105 (tui_win_name): Rename winName.
12106 (tui_current_layout): Rename currentLayout.
12107 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12108 (tui_term_height): Rename termHeight.
12109 (tui_set_term_height_to): Rename setTermHeightTo.
12110 (tui_term_width): Rename termWidth.
12111 (tui_set_term_width_to): Rename setTermWidthTo.
12112 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12113 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12114 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12115 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12116 (tui_source_windows): Rename sourceWindows.
12117 (tui_clear_source_windows): Rename clearSourceWindows.
12118 (tui_clear_source_windows_detail): Rename
12119 clearSourceWindowsDetail.
12120 (tui_clear_win_detail): Rename clearWinDetail.
12121 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12122 (tui_default_tab_len): Rename tuiDefaultTabLen.
12123 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12124 (tui_win_with_focus): Rename tuiWinWithFocus.
12125 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12126 (tui_layout_def): Rename tuiLayoutDef.
12127 (tui_win_resized): Rename tuiWinResized.
12128 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12129 (tui_next_win): Rename tuiNextWin.
12130 (tui_prev_win): Rename tuiPrevWin.
12131 (tui_add_to_source_windows): Rename addToSourceWindows.
12132 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12133 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12134 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12135 * tui/tui.c, tui/tui-data.c: Ditto.
12136 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12137 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12138
a358af15
AC
12139 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12140 (struct symtab): Declare.
12141 (tui_set_source_content): Rename tuiSetSourceContent.
12142 (tui_show_symtab_source): Rename tuiShowSource.
12143 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12144 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12145 * tui/tui-source.c: Update copyright. Update references.
12146 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12147 * tui/tui-stack.c: Update references.
12148
a21fcd8f
AC
12149 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12150 (struct tui_win_info): Declare.
12151 (tui_scroll_forward): Rename tuiScrollForward.
12152 (tui_scroll_backward): Rename tuiScrollBackward.
12153 (tui_scroll_left): Rename tuiScrollLeft.
12154 (tui_scroll_right): Rename tuiScrollRight.
12155 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12156 (tui_resize_all): Rename tuiResizeAll.
12157 (tui_refresh_all_win): Rename tuiRefreshAll.
12158 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12159 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12160 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12161 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12162
edae1ccf
AC
12163 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12164 (tui_erase_data_content): Rename tuiEraseDataContent.
12165 (tui_display_all_data): Rename tuiDisplayAllData.
12166 (tui_check_data_values): Rename tuiCheckDataValues.
12167 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12168 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12169 (tui_first_data_element_no_in_line): Rename
12170 tuiFirstDataElementNoInLine.
12171 (tui_delete_data_content_windows): Rename
12172 tuiDeleteDataContentWindows.
12173 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12174 (tui_display_data_from): Rename tuiDisplayDataFrom.
12175 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12176 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12177 * tui/tui-win.c, tui/tui-regs.c: Update references.
12178 * tui/tui-layout.c, tui/tui.c: Update references.
12179
ec7d9e56
AC
12180 * tui/tui-wingeneral.h: Update copyright.
12181 (m_allBeVisible): Delete macro.
8a1dac83 12182 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12183 (struct tui_gen_win_info): Declare.
12184 (struct tui_win_info): Declare.
12185 (tui_unhighlight_win): Rename unhighlightWin.
12186 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12187 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12188 (tui_make_window): Rename makeWindow.
12189 (tui_copy_win): Rename copyWin.
12190 (tui_box_win): Rename boxWin.
12191 (tui_highlight_win): Rename highlightWin.
12192 (tui_check_and_display_highlight_if_needed): Rename
12193 checkAndDisplayHighlightIfNeeded.
12194 (tui_refresh_all): Rename refreshAll.
12195 (tui_delete_win): Rename tuiDelwin.
12196 (tui_refresh_win): Rename tuiRefreshWin.
12197 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12198 (tui_make_visible, tui_make_invisible): New functions.
12199 (tui_make_all_visible, tui_make_all_invisible): New functions.
12200 (make_all_visible): Rename makeAllVisible.
12201 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12202 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12203 * tui/tui-windata.c, tui/tui-win.c: Update references.
12204 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12205 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12206
1e52e2eb
MK
122072004-02-06 Mark Kettenis <kettenis@gnu.org>
12208
12209 * proc-api.c (write_with_trace): Initialize local variable to
12210 silence compiler warning.
12211
f80bda8e
AC
122122004-02-06 Andrew Cagney <cagney@redhat.com>
12213
12214 * tui/tui-source.h: Do not include "defs.h".
12215 (struct tui_win_info): Declare.
12216 (tui_set_source_content_nil): Declare.
12217 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12218 (union tui_line_or_address): Rename _TuiLineOrAddress.
12219 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12220 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12221 (tui_update_source_window_as_is): Rename
12222 tuiUpdateSourceWindowAsIs.
12223 (tui_update_source_windows_with_addr): Rename
12224 tuiUpdateSourceWindowsWithAddr.
12225 (tui_update_source_windows_with_line): Rename
12226 tuiUpdateSourceWindowsWithLine.
12227 (tui_clear_source_content): Rename tuiClearSourceContent.
12228 (tui_erase_source_content): Rename tuiEraseSourceContent.
12229 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12230 (tui_show_source_content): Rename tuiShowSourceContent.
12231 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12232 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12233 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12234 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12235 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12236 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12237 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12238 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12239 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12240 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12241 (struct tui_win_info): Declare.
12242 * tui/tui-stack.c: Update references.
12243 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12244 * tui/tui-win.c, tui/tui-source.c: Ditto.
12245 * tui/tui.c, tui/tui-disasm.c: Ditto.
12246
9fbfb822
MK
122472004-02-06 Mark Kettenis <kettenis@gnu.org>
12248
12249 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12250 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12251
03cebad2
MK
122522004-02-05 Mark Kettenis <kettenis@gnu.org>
12253
12254 * infrun.c (handle_inferior_event): Allow for breakpoint
12255 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12256 and SIGEMT. Update comments.
12257 * NEWS (Revised SPARC target): Mention support for non-executable
12258 stack.
12259
290281b1
MK
122602004-02-04 Mark Kettenis <kettenis@gnu.org>
12261
12262 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12263 * inftarg.c: Update copyright year.
12264 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12265 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12266 (sparc_xfer_wcookie): New function.
12267 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12268 * Makefile.in (sparc-nat.o): Update dependencies.
12269 * config/sparc/nm-nbsd.h: Include "target.h".
12270 (NATIVE_XFER_WCOOKIE): New define.
12271 (sparc_xfer_wcookie): New prototype.
12272
212161df
AC
122732004-02-04 Andrew Cagney <cagney@redhat.com>
12274
12275 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12276 SYSCALL_TRAP function.
12277 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12278
6e4c6c91
DJ
122792004-02-04 Andrew Cagney <cagney@redhat.com>
12280 Daniel Jacobowitz <drow@mvista.com>
12281
12282 * objfiles.h: Delete comments refering to inside_entry_func and
12283 DEPRECATED_FRAME_CHAIN_VALID.
12284 * defs.h (inside_entry_func): Update prototype..
12285 * blockframe.c (inside_entry_func): Rename to
12286 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12287 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12288
cae688ec
JJ
122892004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12290
12291 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12292 outside of #ifdef SOLIB_ADD region.
12293 (do_restore_lang_radix_cleanup): Ditto.
12294 (resolve_pending_breakpoint): Ditto.
12295
19217676
AC
122962004-02-03 Andrew Cagney <cagney@redhat.com>
12297
12298 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12299 (process_note_abi_tag_sections): Delete unused function.
12300 (ia64_read_fp): Delete unused function.
12301 (gdbarch_extract_struct_value_address): Delete declaration.
12302
876753be
AC
123032004-02-02 Andrew Cagney <cagney@redhat.com>
12304
12305 * vax-tdep.c (vax_frame_chain): Delete call to
12306 deprecated_inside_entry_file.
12307 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12308
d4f10bf2
MK
123092004-02-02 Mark Kettenis <kettenis@gnu.org>
12310
12311 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12312 column that's "empty" or "same value" when eliminating REG_RA
12313 rules.
12314
cae688ec
JJ
123152004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12316
12317 * NEWS: Add information about new pending breakpoint support.
12318
0101ce28
JJ
123192004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12320
12321 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12322 and pending fields for pending breakpoint support.
12323 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12324 (condition_command): Only parse condition if not a pending
12325 breakpoint.
12326 (print_one_breakpoint): Add support for pending breakpoints.
12327 (describe_other_breakpoints): Add checks to verify we are not
12328 dealing with pending breakpoints.
12329 (check_duplicates): Don't check pending breakpoints.
12330 (set_raw_breakpoint): Initialize pending flag.
12331 (do_restore_lang_radix_cleanup): New cleanup routine.
12332 (resolve_pending_breakpoint): New function.
12333 (re_enable_breakpoints_in_shlibs): Try and resolve any
12334 pending breakpoints via resolve_pending_breakpoint.
12335 (mention): Add pending breakpoint support.
12336 (parse_breakpoint_sals): Add new parameter to pass to
12337 decode_line_1 to indicate silent errors when files or functions
12338 are not found. Change all callers.
12339 (do_captured_parse_breakpoint): New function.
12340 (break_command_1): Change prototype to return an rc value and to
12341 take an optional pending breakpoint pointer. Support creating
12342 a pending breakpoint if a "not found" form of error occurs when
12343 parsing the breakpoint. Also support resolving an existing pending
12344 breakpoint and be silent if the resolution fails.
12345 (create_breakpoints): Change prototype to take pending breakpoint
12346 pointer. When resolving a pending breakpoint, use the new pointer
12347 to provide a conditional or commands added by the end-user.
12348 (delete_breakpoint): Add appropriate check for pending.
12349 (breakpoint_re_set_one): Ditto.
12350 (do_enable_breakpoint): Ditto.
12351
8d577d32
DC
123522004-02-02 David Carlton <carlton@kealia.com>
12353
12354 * valops.c (enum oload_classification): New.
12355 (find_overload_match): Break implementation into separate
12356 functions; delete #if 0'd code; look for symbols within
12357 namespaces.
12358 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12359 (find_oload_champ,oload_method_static,classify_oload_match): New.
12360 * cp-support.h: Add declaration for cp_func_name; update
12361 declaration for make_symbol_overload_list.
12362 * cp-support.c (cp_func_name): New.
12363 (overload_list_add_symbol): Fix comment, use
12364 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12365 (make_symbol_overload_list): Take a function name and a namespace
12366 instead of a symbol; change implementation.
12367 (make_symbol_overload_list_using): New.
12368 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12369
22e8e3c7
FF
123702004-02-02 Fred Fish <fnf@redhat.com>
12371
12372 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12373 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12374 * remote-sim.c (gdb_os_write_stderr): Write output to
12375 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12376 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12377 gdb_stderr stream and update copyright years.
22e8e3c7 12378
6b753f60
DJ
123792004-02-01 Daniel Jacobowitz <drow@mvista.com>
12380
12381 * Makefile.in (mips-linux-nat.o): Update dependencies.
12382 * mips-linux-nat.c: Include mips-tdep.h.
12383
123842004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12385
12386 * sol-thread.c (sol_thread_xfer_partial): New function.
12387 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12388 (init_sol_core_ops): Likewise.
12389
12390 * procfs.c (procfs_xfer_partial): New function.
12391 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12392 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12393
12394 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12395 procfs_xfer_auxv function.
12396
12397 * procfs.c (procfs_make_note_section): If we can read
12398 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12399 * linux-proc.c (linux_make_note_section): Likewise.
12400
12401 * auxv.h: New file.
12402 * auxv.c: New file.
12403 * Makefile.in (auxv_h): New variable.
12404 (COMMON_OBS): Add auxv.o here.
12405 (auxv.o): New target.
12406
12407 * corelow.c (core_xfer_partial): New function.
12408 (init_core_ops): Use it for core_ops.to_xfer_partial.
12409
12410 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12411 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12412 macro if that is defined.
12413
fa5281d0
DJ
124142004-02-01 Daniel Jacobowitz <drow@mvista.com>
12415
12416 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12417 and check the specified thread for each breakpoint.
12418 * breakpoint.h (bpstat_stop_status): Update prototype.
12419 * infrun.c (handle_inferior_event): Update calls to
12420 bpstat_stop_status.
12421
26ee262d
DJ
124222004-02-01 Daniel Jacobowitz <drow@mvista.com>
12423
12424 * Makefile.in (cli-cmds.o): Add $(readline_h).
12425
d9b52655
DJ
124262004-02-01 Daniel Jacobowitz <drow@mvista.com>
12427
12428 * cli/cli-cmds.c: Include readline.h.
12429 (complete_command): Pass the start of the last word to
12430 complete_line.
12431
9709f61c
DJ
124322004-01-31 Daniel Jacobowitz <drow@mvista.com>
12433
12434 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12435 argument, and change first argument to a CORE_ADDR.
12436 * breakpoint.h (bpstat_stop_status): Update prototype.
12437 * infrun.c (adjust_pc_after_break): Add a new comment.
12438 (handle_inferior_event): Update calls to bpstat_stop_status.
12439
4f1280bb
DJ
124402004-01-31 Daniel Jacobowitz <drow@mvista.com>
12441
12442 * breakpoint.h: Update copyright years.
12443
4fa8626c
DJ
124442004-01-31 Daniel Jacobowitz <drow@mvista.com>
12445
12446 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12447 (bpstat_stop_status): Don't decrement PC.
12448 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12449 prototype.
12450 * infrun.c (adjust_pc_after_break): New function.
12451 (handle_inferior_event): Call it, early. Remove later references
12452 to DECR_PC_AFTER_BREAK.
12453 (normal_stop): Add commentary.
12454
fad0733a
DJ
124552004-01-31 Daniel Jacobowitz <drow@mvista.com>
12456
12457 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12458 2004-01-27 double-free fix.
12459
42cdca6c
MK
124602004-01-31 Mark Kettenis <kettenis@gnu.org>
12461
12462 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12463 (sparc32_frame_prev_register): Handle StackGhost.
12464 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12465
932d5416
RM
124662004-01-29 Roland McGrath <roland@redhat.com>
12467
12468 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12469 * configure: Regenerated.
12470
12471 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12472 * Makefile.in (procfs.o): Add dep.
12473
47d3492a
AC
124742004-01-28 Andrew Cagney <cagney@redhat.com>
12475
12476 * tui/tui-stack.h: Update copyright.
12477 (struct frame_info): Add opaque declaration.
12478 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12479 (tui_show_locator_content): Rename tuiShowLocatorContent.
12480 (tui_show_frame_info): Rename tuiShowFrameInfo.
12481 * tui/tui-stack.c: Update copyright. Update references.
12482 * tui/tui-winsource.c: Update references.
12483 * tui/tui-win.c: Update references.
12484 * tui/tui-layout.c: Update references.
12485 * tui/tui-hooks.c: Update copyright, update references.
12486 * tui/tui.c: Update copyright, update references.
12487 * tui/tui-disasm.c: Update references.
12488
5d51ca54
DC
124892004-01-28 David Carlton <carlton@kealia.com>
12490
12491 * dwarf2read.c (add_partial_structure): Use demangled name if
12492 namespace equals "".
12493
086ed43d
JB
124942004-01-27 Jim Blandy <jimb@redhat.com>
12495
12496 Clean up misapplied patch:
12497 * dwarf2read.c (determine_prefix): Change one of the two forward
12498 declarations for 'determine_prefix_aux' to a declaration for this.
12499 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12500 argument to 'die_specification'.
12501
2a35147e
JB
12502 * dwarf2read.c (read_func_scope): Re-indent comment.
12503
a355c7de 125042004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12505
a355c7de
AC
12506 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12507 b->exp to NULL after freeing so that error during re-parsing or
12508 evaluation of expressions associated with breakpoint don't
12509 eventually lead to re-freeing of storage.
12510 Committed by Andrew Cagney.
12511
63ff5125
AC
125122004-01-27 Andrew Cagney <cagney@redhat.com>
12513
12514 * source.c (ambiguous_line_spec): Delete undefined declaration.
12515 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12516 (m32r_set_server_address, m32r_set_download_path): Ditto.
12517 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12518
e142c38c
DJ
125192004-01-27 Daniel Jacobowitz <drow@mvista.com>
12520
12521 * dwarf2read.c: Update calls to changed and renamed functions, and
12522 references to moved variables.
12523
12524 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12525 language, language_defn, list_in_scope, and ftypes members.
12526 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12527 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12528 (baseaddr): Remove globals.
12529
12530 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12531 (set_cu_language, die_is_declaration, die_specification)
12532 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12533 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12534 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12535 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12536
12537 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12538 cu.list_in_scope. Don't initialize cu_header_offset.
12539 (add_partial_symbol): Add local baseaddr.
12540 (psymtab_to_symtab_1): Add local baseaddr. Use
12541 objfile->section_offsets for consistency. Don't initialize
12542 cu_header_offset; do initialize cu.header.offset and
12543 cu.list_in_scope.
12544 (read_file_scope, read_func_scope, read_lexical_block_scope)
12545 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12546
c6e06ede
MC
125472004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12548
fb328ecc 12549 * PROBLEMS: Add gdb/1516.
c6e06ede 12550
48184fd4
AC
125512003-12-29 Robert Millan <robertmh@gnu.org>
12552
12553 Patch committed by Andrw Cagney.
12554 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12555 * configure.tgt: Match knetbsd*-gnu.
12556
c1321b30
AC
125572004-01-26 Andrew Cagney <cagney@redhat.com>
12558
f3699be3
AC
12559 * breakpoint.c (catch_command_1): Delete #ifdef code.
12560 (catch_fork_command_1): Delete #ifdef wrapper.
12561 (catch_exec_command_1): Ditto.
12562 (catch_load_command_1): Ditto.
12563 (catch_unload_command_1): Ditto.
12564
c1321b30
AC
12565 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12566 (catch_breakpoint): Delete #if0ed function.
12567 (disable_catch_breakpoint): Ditto.
12568 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12569 (disable_catch, enable_catch, delete_catch): Ditto.
12570
b4501125
AC
125712004-01-26 Andrew Cagney <cagney@redhat.com>
12572
12573 * remote.c (echo_check, quit_flag): Delete variables.
12574 (cisco_kernel_mode): Delete variable.
12575 (minitelnet_return, tty_input, escape_count): Delete variables.
12576 (remote_cisco_mode): Delete variable.
12577 (remote_cisco_open, remote_cisco_close): Delete function.
12578 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12579 (init_remote_cisco_ops): Delete function.
12580 (_initialize_remote): Do not install "remote cisco" code.
12581 (read_frame): Delete cisco specific code.
12582 (remote_info_process): Delete function.
12583 (remote_wait): Delete cisco specific code.
12584 (remote_cisco_section_offsets): Delete function.
12585 (remote_cisco_objfile_relocate): Delete function.
12586 (remote_async_wait): Delete cisco specific code.
12587 (minitelnet, readtty, readsocket): Delete function.
12588
74055713
AC
125892004-01-26 Andrew Cagney <cagney@redhat.com>
12590
12591 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12592 comments mentioning extract_returned_value_address.
12593 * infcmd.c (print_return_value): Update. Add comments on
12594 extract_returned_value_address.
12595 * stack.c (return_command): Add comments on
12596 extract_returned_value_address.
12597 * values.c: Update comment.
12598 * m32r-tdep.c: Update comment.
12599 * sparc-tdep.c: Update comment.
12600 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12602 * sh64-tdep.c (sh64_gdbarch_init): Update.
12603 * sh-tdep.c (sh_gdbarch_init): Update.
12604 * s390-tdep.c (s390_gdbarch_init): Update.
12605 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12606 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12607 * m68k-tdep.c (m68k_gdbarch_init): Update.
12608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12609 * m32r-tdep.c (m32r_gdbarch_init): Update.
12610 * ia64-tdep.c (ia64_gdbarch_init): Update.
12611 * h8300-tdep.c (h8300_gdbarch_init): Update.
12612 * frv-tdep.c (frv_gdbarch_init): Update.
12613 * arm-tdep.c (arm_gdbarch_init): Update.
12614 * alpha-tdep.c (alpha_gdbarch_init): Update.
12615
a67af2b9
AC
126162004-01-26 Andrew Cagney <cagney@redhat.com>
12617
12618 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12619 SYMBOL_LOCATION_FUNCS
12620 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12621 "struct symbol_ops".
12622 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12623 type to "struct symbol_ops".
12624 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12625 (struct symbol): Replace ".aux_value.loc.funcs" and
12626 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12627 (SYMBOL_OBJFILE): Delete macro.
12628 (SYMBOL_LOCATION_FUNCS): Delete macro.
12629 (SYMBOL_LOCATION_BATON): Update.
12630 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12631 intead of SYMBOL_LOCATION_FUNCS.
12632 * ax-gdb.c (gen_var_ref): Ditto.
12633 * printcmd.c (address_info): Ditto.
12634 * findvar.c (read_var_value): Ditto.
12635 (symbol_read_needs_frame): Ditto.
12636
c034e007
AC
126372004-01-26 Andrew Cagney <cagney@redhat.com>
12638
12639 * dwarf2read.c (read_func_scope): Document frame-base hack.
12640
bb472c1e
MK
126412004-01-25 Mark Kettenis <kettenis@gnu.org>
12642
12643 * infcmd.c (print_return_value): Plug memory leak; delete
12644 ui_stream object. Rename argument `structure_return' to
12645 `struct_return'.
12646
c8e737d5
MK
126472004-01-25 Mark Kettenis <kettenis@gnu.org>
12648
f941662f
MK
12649 * infcmd.c (print_return_value): Wrap long lines.
12650 (finish_command_continuation, finish_command): Remove unused
12651 variable `funcaddr'. Fix some coding-standards problems.
12652
c558d81a 12653 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12654 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12655 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12656 TDEP->fpregset to zero.
12657
bf1e5861 12658 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12659 floating-point registers for traditional NetBSD core files.
12660 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12661 TDEP->sizeof_fpregset here.
12662
4c72d57a
MK
126632004-01-25 Mark Kettenis <kettenis@gnu.org>
12664
566626fa
MK
12665 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12666 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12667 function with code split out from
12668 sparc32nbsd_sigcontext_frame_cache.
12669 (sparc32nbsd_sigcontext_frame_cache): Use
12670 sparc32nbsd_sigcontext_saved_regs.
12671 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12672 OpenBSD.
12673 * sparcobsd-tdep.c: New file.
12674 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12675 (sparcobsd-tdep.o): New dependency.
12676 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12677 * config/sparc/obsd.mt: New file.
12678
4c72d57a
MK
12679 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12680 TDEP->fpregset to be initialized to enable core file register
12681 sets.
12682
7e5e9f88
MK
126832004-01-24 Mark Kettenis <kettenis@gnu.org>
12684
f0f207fd 12685 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12686 Add opaque declarations.
12687 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12688 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12689 function with code split out from
12690 sparc64nbsd_sigcontext_frame_cache.
12691 (sparc64nbsd_sigcontext_frame_cache): Use
12692 sparc64nbsd_sigcontext_saved_regs.
12693 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12694 OpenBSD.
12695 * sparc64obsd-tdep.c: New file.
12696 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12697 (sparc64obsd-tdep.o): New dependency.
12698 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12699 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12700 * config/sparc/obsd64.mt: New file.
12701
690668cc
MK
12702 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12703 read the instruction at PC.
12704
7e5e9f88
MK
12705 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12706 value of GDB_OSABI_DEFAULT.
12707 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12708 instead of GDB_OSABI_NETBSD_AOUT.
12709
68b6dce9
NR
127102004-01-24 Nick Roberts <nick@nick.uklinux.net>
12711
12712 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12713 copyright.
12714
080ce8c0
AC
127152004-01-23 Andrew Cagney <cagney@redhat.com>
12716
12717 * printcmd.c (display_command): Replace tui_set_display call with
12718 tui_set_layout_for_display_command.
12719 * tui/tui.h (enum tui_win_type): Define.
12720 (tui_set_layout): Delete declaration.
12721 (tui_set_layout_for_display_command): Rename set_tui_layout.
12722 * tui/tui-data.h (enum tui_layout_type): Define.
12723 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12724 "tui.h".
12725 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12726 (tui_default_win_height): Rename tuiDefaultWinHeight.
12727 (tui_default_win_viewport_height): Rename
12728 tuiDefaultWinViewportHeight.
12729 (tui_set_layout): RenametuiSetLayout.
12730 * tui/tui-layout.c: Update references.
12731 * tui/tui.c: Update references.
12732 * tui/tui-disasm.c: Update references.
12733
b368761e
DC
127342004-01-23 David Carlton <carlton@kealia.com>
12735
12736 Partial workaround for PR c++/1511:
12737 * cp-namespace.c: Include frame.h.
12738 (cp_lookup_transparent_type): New
12739 (cp_lookup_transparent_type_loop): New.
12740 * cp-support.h: Declare cp_lookup_transparent_type.
12741 * symtab.c (basic_lookup_transparent_type): Renamed from
12742 lookup_transparent_type.
12743 (lookup_transparent_type): Replace old body by a call to
12744 current_language->la_lookup_transparent_type.
12745 * symtab.h: Update copyright. Declare
12746 basic_lookup_transparent_type.
12747 * language.h: Update copyright.
12748 (struct language_defn): Add la_lookup_transparent_type.
12749 * language.c: Update copyright.
12750 (unknown_language_defn): Add basic_lookup_transparent_type.
12751 (auto_language_defn): Add basic_lookup_transparent_type.
12752 (local_language_defn): Add basic_lookup_transparent_type.
12753 * ada-lang.c: Update copyright.
12754 (ada_language_defn): Add basic_lookup_transparent_type.
12755 * c-lang.c: Update copyright.
12756 (c_language_defn): Add basic_lookup_transparent_type.
12757 (cplus_language_defn): Add basic_lookup_transparent_type.
12758 (asm_language_defn): Add basic_lookup_transparent_type.
12759 (minimal_language_defn): Add basic_lookup_transparent_type.
12760 * f-lang.c: Update copyright.
12761 (f_language_defn): Add basic_lookup_transparent_type.
12762 * jv-lang.c: Update copyright.
12763 (java_language_defn): Add basic_lookup_transparent_type.
12764 * m2-lang.c: Update copyright.
12765 (m2_language_defn): Add basic_lookup_transparent_type.
12766 * objc-lang.c: Update copyright.
12767 (objc_language_defn): Add basic_lookup_transparent_type.
12768 * p-lang.c: Update copyright.
12769 (p_language_defn): Add basic_lookup_transparent_type.
12770 * scm-lang.c: Update copyright.
12771 (scm_language_defn): Add basic_lookup_transparent_type.
12772 * Makefile.in (cp-namespace.o): Depend on frame.h.
12773
fdde2d81
DC
127742004-01-23 David Carlton <carlton@kealia.com>
12775
12776 Patch for PR c++/1520:
12777 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12778 properly if we have a specification die.
12779 (determine_prefix_aux): Rename from determine_prefix.
12780 (determine_prefix): Like the old determine_prefix, but never
12781 returns NULL.
12782
5b828b6b
TR
127832004-01-23 Theodore A. Roth <troth@openavr.org>
12784
12785 * avr-tdep.c: Update copyright.
12786 (avr_iaddr_p): Delete unused function.
12787 (avr_saddr_p): Delete unused function.
12788
a1b8c067
DC
127892004-01-23 David Carlton <carlton@kealia.com>
12790
12791 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12792 Fix for PR symtab/1534.
12793
f2cab569
MK
127942004-01-23 Mark Kettenis <kettenis@gnu.org>
12795
12796 * NEWS (New native configurations): Mention OpenBSD/sparc and
12797 OpenBSD/sparc64.
12798 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12799 * configure.host: Likewise.
12800 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12801 handler for OpenBSD.
12802 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12803
642d8300
MK
128042004-01-22 Mark Kettenis <kettenis@gnu.org>
12805
89aac506
MK
12806 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12807 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12808
36662fde
MK
12809 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12810 * cli/cli-cmds.c (shell_escape): Likewise.
12811
642d8300
MK
12812 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12813 OpenBSD .note.openbsd.ident sections.
12814
fae299cd
DC
128152004-01-22 David Carlton <carlton@kealia.com>
12816
12817 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12818 get_scope_pc_bounds.
12819 (read_file_scope): Ditto.
12820 (get_scope_pc_bounds): New function, produced by extracting code
12821 from the above two functions, consolidating it, and adding support
12822 for DW_TAG_namespace.
12823
a49d618c
MK
128242004-01-22 Mark Kettenis <kettenis@gnu.org>
12825
12826 * osabi.c (MAX_NOTESZ): New define.
12827 (check_note): New function.
12828 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12829 check_note.
12830
fe61caab
RM
128312004-01-21 Roland McGrath <roland@redhat.com>
12832
12833 * MAINTAINERS (write after approval): Add myself.
12834
ec145965
EZ
128352004-01-21 Eli Zaretskii <eliz@gnu.org>
12836
12837 * utils.c (init_page_info): Move declarations of `rows' and
12838 `cols' before the __GO32__-specific code. Move the closing brace
12839 outside the #ifdef __GO32__..#endif block.
12840 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12841
877522db
PB
128422004-01-21 Paul Brook <paul@codesourcery.com>
12843
12844 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12845 BPSTAT_WHAT_CHECK_SHLIBS.
12846
dbf5be1c
PB
128472004-01-21 Paul Brook <paul@codesourcery.com>
12848
12849 * MAINTAINERS: Add myself to write-after-approval.
12850
81f08b92
AC
128512004-01-20 Andrew Cagney <cagney@redhat.com>
12852
5a1efed7
AC
12853 * ax-gdb.c (print_axs_value): Delete unused function.
12854 * jv-lang.c (java_lookup_type): Delete unused function.
12855 * cli/cli-dump.c (dump_filetype): Delete unused function.
12856 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12857 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12858 (mips_getstring): Delete unused function.
12859 (pmon_insert_breakpoint): Delete #if0ed function.
12860 (PMON_MAX_BP): Delete #if0ed MACRO.
12861 (mips_pmon_bp_info): Delete #if0ed variable.
12862 (pmon_remove_breakpoint): Delete #if0ed function.
12863 * monitor.c (monitor_write_even_block): Delete unused function.
12864 (monitor_write_memory_block): Delete #if0ed code.
12865 * dink32-rom.c (dink32_load): Delete unused function.
12866 (_initialize_dink32_rom): Delete #if0ed code.
12867 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12868
b0a30fce
AC
12869 * tui/tui-command.c: Update references.
12870 * tui/tui-io.c: Update references.
12871 * tui/tui-command.h: Update copyright.
12872 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12873
81f08b92
AC
12874 * source.c (ambiguous_line_spec): Delete never-defined function.
12875 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12876 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12877 * cli/cli-cmds.c (validate_comname): Ditto.
12878
65f05602
AC
12879 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12880 "tui-data.h".
12881 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12882 (tui_show_disassem): Rename tuiShowDisassem.
12883 (tui_show_disassem_and_update_source): Rename
12884 tuiVerticalDisassemScroll.
12885 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12886 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12887 * tui/tui.h: Update copyright.
12888 (enum tui_status): Define.
12889 * tui/tui-data.h (enum tui_scroll_direction): Define.
12890 * tui/tui-disasm.c: Update copyright. Update references.
12891 * tui/tui-winsource.c: Update copyright. Update references.
12892 * tui/tui-win.c: Update references.
12893 * tui/tui-layout.c: Update references.
12894
6bb0384f
AC
128952004-01-20 Andrew Cagney <cagney@redhat.com>
12896
12897 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12898 sym2 to start of block.
12899
9175c9a3
MC
129002004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12901
12902 * MAINTAINERS: Delete mmalloc.
12903 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12904 * NEWS: Mention removal of --with-malloc.
12905 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12906 * config.in: Regenerate.
12907 * configure: Regenerate.
6bb0384f
AC
12908 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12909 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12910 * gdbinit.in: Remove mmalloc.
12911 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12912 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12913 * config/i386/go32.mh: Likewise.
12914 * config/i386/interix.mh: Likewise.
12915 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12916
4fcef00a
JJ
129172004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12918
12919 * linespec.c (decode_variable, symtab_from_filename): Call
12920 error_silent with error message instead of throwing an exception
12921 directly.
12922 * defs.h (error_silent, error_output_message): Add prototypes.
12923 (catch_exceptions_with_msg): Ditto.
12924 * utils.c (error_silent, error_output_message): New functions.
12925 * top.c (catch_exceptions_with_msg): New function.
12926
8e94b928
NR
129272004-01-20 Nick Roberts <nick@nick.uklinux.net>
12928
12929 * mi/mi-cmds.h (enum print_values): Add definition.
12930
12931 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12932 type and value for simple data types and just the name and type
12933 for complex ones, if required.
12934
12935 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12936 children, if required.
12937
a02d6af8
KB
129382004-01-19 Kevin Buettner <kevinb@redhat.com>
12939
12940 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12941 unused declarations.
12942
78a4a9b9
AC
129432004-01-19 Andrew Cagney <cagney@redhat.com>
12944
12945 * top.h (mapped_symbol_files): Delete declaration.
12946 * main.c (captured_main): Delete option "m" and "mapped".
12947 * objfiles.c (mapped_symbol_files): Delete variable.
12948 * symfile.c (symbol_file_command): Delete mmap code.
12949 (symbol_file_add_with_addrs_or_offsets): Ditto.
12950 (add_symbol_file_command, reread_separate_symbols): Ditto.
12951 * objfiles.h (OBJF_MAPPED): Delete.
12952 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12953 (free_objfile) [USE_MMALLOC]: Ditto.
12954 (open_existing_mapped_file): Delete function.
12955 (open_mapped_file): Delete function.
12956 (map_to_file): Delete function.
12957
2dbd5e30
KB
129582004-01-19 Kevin Buettner <kevinb@redhat.com>
12959
12960 * infrun.c (step_into_function): Account for possible breakpoint
12961 adjustment when computing ``stop_func_start''.
12962
437b434f
KB
129632004-01-19 Kevin Buettner <kevinb@redhat.com>
12964
12965 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12966 the region size against the size of a pointer, not the size of
12967 a register as given by DEPRECATED_REGISTER_SIZE.
12968
55fb0713
AC
129692004-01-19 Andrew Cagney <cagney@redhat.com>
12970
12971 * tui/tui-regs.h: Include "tui-data.h".
12972 (tuiFirstRegElementNoInLine): Delete declaration.
12973 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12974 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12975 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12976 (tui_calculate_regs_column_count): Rename
12977 tuiCalculateRegsColumnCount.
12978 (tui_check_register_values): Rename tuiCheckRegisterValues.
12979 (tui_show_registers): Rename tuiShowRegisters.
12980 (tui_display_registers_from_line): Rename
12981 tuiDisplayRegistersFromLine.
12982 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12983 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12984 (tui_first_reg_element_no_inline): Rename
12985 tuiFirstRegElementNoInLine.
12986 * tui/tui-data.h: Update copyright.
12987 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12988 * tui/tui-windata.c: Update copyright, update references.
12989 * tui/tui-regs.c: Update copyright, update references.
12990 * tui/tui-win.c: Update copyright, update references.
12991 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12992
cebe9500
AC
129932004-01-18 Andrew Cagney <cagney@redhat.com>
12994
bcdf1568
AC
12995 * tui/tui-io.c: Update copyright.
12996 (key_is_end_sequence, key_is_backspace): New functions.
12997 (key_is_command_char, key_is_start_sequence): New function.
12998 (tui_getc): Update references.
12999 * tui/tui-io.h: Update copyright.
13000 (m_tuiStartNewLine): Delete macro.
13001 (m_isBackspace, m_isDeleteChar): Delete macros.
13002 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13003 (m_isNextPage, m_isPrevPage): Delete macros.
13004 (m_isLeftArrow, m_isRightArrow): Delete macros.
13005 (m_isXdbStyleCommandChar): Delete macro.
13006 (key_is_start_sequence): Declare, replace m_isStartSequence.
13007 (key_is_end_sequence): Declare, replace m_isEndSequence.
13008 (key_is_backspace): Declare ,replace m_isBackspace.
13009 (key_is_command_char): Declare, replace m_isCommandChar.
13010 * tui/tui-command.c: Update copyright.
13011 (tuiDispatchCtrlChar): Update references.
13012
130d87e6
AC
13013 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13014 tuiSourceWin.h.
13015
d7b2e967
AC
13016 * tui/tui-command.c: Rename tui/tuiCommand.c.
13017 * tui/tui-command.h: Rename tui/tuiCommand.h.
13018 * tui/tui-data.c: Rename tui/tuiData.c.
13019 * tui/tui-data.h: Rename tui/tuiData.h.
13020 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13021 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13022 * tui/tui-io.c: Rename tui/tuiIO.c.
13023 * tui/tui-io.h: Rename tui/tuiIO.h.
13024 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13025 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13026 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13027 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13028 * tui/tui-source.c: Rename tui/tuiSource.c.
13029 * tui/tui-source.h: Rename tui/tuiSource.h.
13030 * tui/tui-stack.c: Rename tui/tuiStack.c.
13031 * tui/tui-stack.h: Rename tui/tuiStack.h.
13032 * tui/tui-win.c: Rename tui/tuiWin.c.
13033 * tui/tui-win.h: Rename tui/tuiWin.h.
13034 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13035 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13036 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13037 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13038 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13039 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13040 * tui/tui-file.c: Update includes.
13041 * tui/tui-hooks.c: Update includes.
13042 * tui/tui-interp.c: Update includes.
13043 * tui/tui.c: Update includes.
13044 * Makefile.in: Update all tui/ dependencies.
13045 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13046
b2100910
AC
13047 * Makefile.in: Update copyright. Update dependencies.
13048
cebe9500
AC
13049 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13050 problem.
13051
c6f0559b
AC
130522004-01-18 Andrew Cagney <cagney@redhat.com>
13053
43e9390b
AC
13054 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13055 instead of register_gdbarch_init.
13056
c6f0559b
AC
13057 * remote-sds.c (tohex): Delete unused function. Update copyright.
13058 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13059 * v850-tdep.c (v850_register_virtual_size): Ditto.
13060 * target.c (normal_target_post_startup_inferior): Ditto.
13061 * source.c (ambiguous_line_spec): Ditto.
13062 * remote.c (adapt_remote_get_threadinfo): Ditto.
13063 * mi/mi-out.c (out_field_fmt): Ditto.
13064 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13065 (output_control_change_notification): Ditto.
13066 * m68k-tdep.c (m68k_register_byte): Ditto.
13067 (m68k_remote_breakpoint_from_pc): Ditto.
13068 * ui-out.c (init_ui_out_state): Delete unused declaration.
13069 * stabsread.c (search_value): Ditto.
13070 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13071 * maint.c (print_section_table): Ditto.
13072 * infrun.c (set_follow_fork_mode_command): Ditto.
13073
a8504492
MK
130742004-01-18 Mark Kettenis <kettenis@gnu.org>
13075
13076 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13077 DW_CFA_def_cfa_exporession. Add support for
13078 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13079 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13080
0bd8997e
AC
130812004-01-18 Andrew Cagney <cagney@redhat.com>
13082
13083 * ocd.c: Update copyright.
13084 (bdm_read_register_command): Delete unused function.
13085 (_initialize_remote_ocd): Delete commented out reference.
13086 (get_quoted_char, reset_packet): Delete #if0ed function.
13087 (output_packet, put_quoted_char): Delete #if0ed function.
13088 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13089 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13090 (BDM_BREAKPOINT): Delete #if0ed macro.
13091 (remote_timeout): Delete #if0ed variable.
13092
31bb40e4
MK
130932004-01-18 Mark Kettenis <kettenis@gnu.org>
13094
13095 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13096 (core-sol2.o): Remove dependency.
13097 * core-sol2.c: Remove file.
13098
887432a5
AC
130992004-01-17 Andrew Cagney <cagney@redhat.com>
13100
13101 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13102 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13103 enums.
13104
29182b13
DJ
131052004-01-17 Daniel Jacobowitz <drow@mvista.com>
13106
13107 * remote.c: Update copyright years.
13108
2963ee1d
DJ
131092004-01-17 Daniel Jacobowitz <drow@mvista.com>
13110
13111 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13112
79d45cd4
AC
131132004-01-17 Andrew Cagney <cagney@redhat.com>
13114
ee300cd4
AC
13115 * mdebugread.c: Update copyright.
13116 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13117 (parse_type, parse_procedure): Ditto.
13118 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13119
fcacc9c2
AC
13120 * cris-tdep.c (cris_store_struct_return): Put back accidently
13121 deleted function.
13122
79d45cd4
AC
13123 * gdbarch.sh: Update copyright year.
13124 * gdbarch.h, gdbarch.c: Re-generate.
13125
b263358a
DJ
131262004-01-17 Daniel Jacobowitz <drow@mvista.com>
13127
13128 Suggested by George Anzinger.
13129 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13130 correct stack offset. Include unknown opcode numbers in the error
13131 message.
13132
931aecf5
AC
131332004-01-17 Andrew Cagney <cagney@redhat.com>
13134
13135 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13136 extract_struct_value_address, i386 does not set it.
13137 * sparc64-tdep.c (sparc64_init_abi): Do not set
13138 extract_struct_value_address, never called.
13139 (sparc64_extract_struct_value_address): Delete function.
13140 * m68hc11-tdep.c: Update copyright.
13141 (m68hc11_gdbarch_init): Delete redundant assignment of
13142 extract_struct_value_address.
13143 * i386-tdep.c: Update copyright.
13144 (i386_gdbarch_init): Do not set extract_struct_value_address,
13145 never called.
13146 (i386_extract_struct_value_address): Delete function.
13147 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13148 extract_struct_value_address, never called.
13149 (sparc32_extract_struct_value_address): #if 0 function. Add
13150 comments explaining its future.
13151
756fe439
DJ
131522004-01-17 Daniel Jacobowitz <drow@mvista.com>
13153
13154 * arm-tdep.c (arm_write_pc): New function.
13155 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13156
e74f0f02
DJ
131572004-01-17 Daniel Jacobowitz <drow@mvista.com>
13158
13159 * breakpoint.c (must_shift_inst_regs): Delete.
13160 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13161 and SHIFT_INST_REGS.
13162 * infcmd.c (step_1, step_1_continuation): Delete references to
13163 SHIFT_INST_REGS.
13164 * infrun.c (keep_going): Likewise.
13165 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13166 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13167
b6cb9035
AC
131682004-01-17 Andrew Cagney <cagney@redhat.com>
13169
444a1e2e
AC
13170 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13171 * gdbarch.h, gdbarch.c: Re-generate.
13172 * infcmd.c (print_return_value): Delete reference to
13173 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13174
def7e6ed
AC
13175 * cris-tdep.c (cris_gdbarch_init): Do not set
13176 deprecated_extract_struct_value_address.
13177
07be497a
AC
13178 * xstormy16-tdep.c: Update copyright.
13179 (xstormy16_extract_struct_value_address): Update to current
13180 extract struct value address interface.
13181 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13182 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13183 current extract struct value address interface.
13184 (sh64_gdbarch_init): Set extract_struct_value_address.
13185
6b4d5c91
AC
13186 * cris-tdep.c: Update copyright.
13187 (cris_extract_struct_value_address): Delete function.
13188 (struct_return_address): Delete variable.
13189 (cris_store_struct_return): Do not set struct_return_address.
13190
464e0365
AC
13191 * mcore-tdep.c: Update copyright.
13192 (mcore_extract_struct_value_address): Delete function. Update
13193 comments.
13194 (mcore_gdbarch_init): Update.
13195 * mn10300-tdep.c: Update copyright.
13196 (mn10300_extract_struct_value_address): Delete function.
13197 (mn10300_gdbarch_init): Update.
13198 * v850-tdep.c: Update copyright.
13199 (v850_extract_struct_value_address): Delete.
13200 (v850_gdbarch_init): Update.
13201 * ns32k-tdep.c: Update copyright.
13202 (ns32k_extract_struct_value_address): Delete.
13203 (ns32k_gdbarch_init): Update.
13204 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13205 (hppa_gdbarch_init): Update.
13206 * vax-tdep.c: Update copyright.
13207 (vax_extract_struct_value_address): Delete.
13208 (vax_gdbarch_init): Update.
13209
afb18d0f
AC
13210 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13211 * gdbarch.h, gdbarch.c: Re-generate.
13212 * procfs.c (procfs_fetch_registers): Delete reference to
13213 DEPRECATED_NPC_REGNUM.
13214 (procfs_store_registers): Ditto.
13215 * regcache.c (generic_target_write_pc): Simplify.
13216 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13217
a698f53e
AC
13218 * core-sol2.c (fetch_core_registers): Replace
13219 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13220
adc11376
AC
13221 * hppa-tdep.c: Update copyright year.
13222 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13223 NPC_REGNUM.
13224 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13225
b6cb9035
AC
13226 * mips-tdep.c (mips_write_pc): New function.
13227 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13228 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13229 (mips_find_saved_regs, mips_software_single_step: Ditto.
13230 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13231 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13232
6d82d43b
AC
132332004-01-17 Andrew Cagney <cagney@redhat.com>
13234
13235 * mips-tdep.c: Re-indent. Group functions by ABI.
13236
71bd6bd4
AC
132372004-01-17 Andrew Cagney <cagney@redhat.com>
13238
13239 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13240 * gdbarch.c: Re-generate.
13241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13242 DECR_PC_AFTER_BREAK to zero.
13243 * vax-tdep.c (vax_gdbarch_init): Ditto.
13244 * v850-tdep.c (v850_gdbarch_init): Ditto.
13245 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13246 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13247 * sh-tdep.c (sh_gdbarch_init): Ditto.
13248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13249 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13250 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13251 * mips-tdep.c (mips_gdbarch_init): Ditto.
13252 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13254 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13255 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13256 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13257 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13259 * frv-tdep.c (frv_gdbarch_init): Ditto.
13260 * cris-tdep.c (cris_gdbarch_init): Ditto.
13261 * avr-tdep.c (avr_gdbarch_init): Ditto.
13262 * arm-tdep.c (arm_gdbarch_init): Ditto.
13263 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13264
a02abb62
JB
132652004-01-17 J. Brobecker <brobecker@gnat.com>
13266
13267 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13268 Delete, no longer used.
13269 (read_subrange_type): New function, mostly extracted from
13270 read_array_type().
13271 (read_array_type): Replace extracted code by call to
13272 read_subrange_type().
13273 (dwarf2_get_attr_constant_value): New function.
13274 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13275 (add_partial_symbol): Likewise.
13276 (process_die): Likewise.
13277 (new_symbol): Likewise.
13278 (read_type_die): Likewise.
13279
cf5b2f1b
AC
132802004-01-16 Andrew Cagney <cagney@redhat.com>
13281
13282 * symfile.c: Update copyright year.
13283 (compare_symbols): Delete unused function.
13284 * stabsread.c: Update copyright year.
13285 (lrs_general_complaint): Delete unused function.
13286 (ref_search_value): Ditto.
13287 (get_substring): Delete declaration.
13288 * sh64-tdep.c: Update copyright year.
13289 (sh64_get_gdb_regnum): Delete unused function.
13290 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13291 Delete unused function.
13292
d33b9831
MK
132932004-01-17 Mark Kettenis <kettenis@gnu.org>
13294
13295 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13296 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13297
7aea86e6
AC
132982004-01-16 Andrew Cagney <cagney@redhat.com>
13299
13300 Changes from Peter Schauer.
13301 * rs6000-tdep.c: Update copyright year.
13302 (rs6000_push_dummy_call): Update the stack pointer before
13303 accessing the corresponding stack region.
13304 * rs6000-nat.c: Update copyright year.
13305 (set_host_arch): Set "info.abfd" to "exec_bfd".
13306
26b0da32
MK
133072004-01-15 Mark Kettenis <kettenis@gnu.org>
13308
13309 * blockframe.c: Update copyright year.
13310 (inside_entry_func): Don't treat a zero PC specially.
13311
86fbe6cc
EZ
133122004-01-14 Elena Zannoni <ezannoni@redhat.com>
13313
13314 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13315 variable.
13316 (gcore_create_callback): Ditto. Skip any memory segment that has
13317 no permissions set.
13318
63d06c5c
DC
133192004-01-14 David Carlton <carlton@kealia.com>
13320
13321 Change symbols for C++ nested types to contain the fully qualified
13322 name, if possible. (At least in the DWARF-2 case.) Partial fix
13323 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13324 c++/895.
13325 * c-exp.y (qualified_type): Handle types nested within classes.
13326 * cp-namespace.c: Update comments.
13327 (cp_set_block_scope): Delete #if 0.
13328 (cp_lookup_nested_type): Handle types nested within classes.
13329 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13330 when appropriate.
13331 (add_partial_symbol): Add the name of the enclosing namespace to
13332 types.
13333 (pdi_needs_namespace): New.
13334 (add_partial_namespace): Tweak comment.
13335 (add_partial_structure): New.
13336 (psymtab_to_symtab_1): Initialize processing_current_prefix
13337 here...
13338 (process_die): instead of here.
13339 (read_structure_scope): Try to figure out the name of the class or
13340 namespace that the structure might be defined within.
13341 (read_enumeration): Generate fully-qualified names, if possible.
13342 (read_namespace): Don't set name to NULL.
13343 (die_specification): New.
13344 (new_symbol): Generate fully-qualified names for types.
13345 (read_type_die): Determine appropriate prefix.
13346 (determine_prefix): New.
13347 (typename_concat): New.
13348 (class_name): New.
13349 * valops.c (value_aggregate_elt): Pass NOSIDE to
13350 value_struct_elt_for_reference.
13351 (value_struct_elt_for_reference): Make static, add NOSIDE
13352 parameter, call value_maybe_namespace_elt as a last resort.
13353 (value_namespace_elt): Break out code into
13354 value_maybe_namespace_elt.
13355 (value_maybe_namespace_elt): New.
13356
87783b8b
AC
133572004-01-12 Andrew Cagney <cagney@redhat.com>
13358
13359 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13360 cooked floating-point registers.
13361 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13362 and value_to_register.
13363
6503b91e
AC
133642004-01-13 Andrew Cagney <cagney@redhat.com>
13365
13366 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13367 * gdbarch.c: Re-generate.
13368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13369 FUNCTION_START_OFFSET.
13370 * v850-tdep.c (v850_gdbarch_init): Ditto.
13371 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13372 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13373 * sh-tdep.c (sh_gdbarch_init): Ditto.
13374 * s390-tdep.c (s390_gdbarch_init): Ditto.
13375 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13376 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13377 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13378 * mips-tdep.c (mips_gdbarch_init): Ditto.
13379 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13380 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13382 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13383 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13384 * i386-tdep.c (i386_gdbarch_init): Ditto.
13385 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13386 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13387 * frv-tdep.c (frv_gdbarch_init): Ditto.
13388 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13389 * cris-tdep.c (cris_gdbarch_init): Ditto.
13390 * avr-tdep.c (avr_gdbarch_init): Ditto.
13391 * arm-tdep.c (arm_gdbarch_init): Ditto.
13392 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13393
ea1dd7bc
DJ
133942004-01-13 Daniel Jacobowitz <drow@mvista.com>
13395
13396 * infrun.c (follow_fork_mode_ask): Remove.
13397 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13398 (follow_fork): Simplify and remove internal error for
13399 follow_fork_mode_ask.
13400 (_initialize_infrun): Update "set follow-fork-mode" help text.
13401
0f0cffd2
AC
134022004-01-13 Andrew Cagney <cagney@redhat.com>
13403
13404 * configure.in: Update copyright year.
13405 (build_warnings): Add -Wunused-label.
13406 * configure: Re-generate.
13407
de38af99
AC
134082004-01-12 Andrew Cagney <cagney@redhat.com>
13409
954a7fba
AC
13410 * exec.h (exec_ops): Make "extern".
13411
de38af99
AC
13412 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13413 the function is void.
13414 (mips_pseudo_register_write): Ditto.
13415
1a111ce3
AC
134162004-01-12 Andrew Cagney <cagney@redhat.com>
13417
13418 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13419 call. Never defined.
13420 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13421 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13422 (struct sparc_gregset, struct regcache): Ditto.
13423 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13424
48efe704
AC
134252004-01-12 Andrew Cagney <cagney@redhat.com>
13426
13427 * mi/ChangeLog: Delete file. Renamed to ...
13428 * mi/ChangeLog-1999-2003: New file.
13429 * tui/ChangeLog: Delete file. Renamed to ...
13430 * tui/ChangeLog-1998-2003: New file.
fe61caab 13431
a54124c5
MK
134322004-01-11 Mark Kettenis <kettenis@gnu.org>
13433
2ca62865
MK
13434 * sparc64nbsd-tdep.c: Include "regset.h".
13435 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13436 Remove variables.
13437 (fetch_core_registers): Remove function.
13438 (sparc64nbsd_core_fns): Remove variable.
13439 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13440 functions.
13441 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13442 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13443 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13444
ca9d58e9
MK
13445 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13446 sparc_extract_struct_value_address.
13447 (sparc32_gdbarch_init): Set extract_struct_value_address.
13448 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13449 function.
13450 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13451 return_value_on_stack.
13452
3cc87ec0
MK
13453 * NEWS: Mention that %cs and %ss have been added to the AMD64
13454 configurations
13455
5bf00f29
MK
13456 * frame.c: Update copyright year.
13457 (get_prev_frame): Improve comment.
13458
4f7ec84e
MK
13459 * sparc64fbsd-tdep.c: Include "regset.h".
13460 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13461 Remove variables.
13462 (fetch_core_registers): Remove function.
13463 (sparc64fbsd_core_fns): Remove variable.
13464 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13465 functions.
13466 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13467 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13468 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13469
4e7b0cd3
MK
13470 * sparcnbsd-tdep.c: Include "regset.h".
13471 (fetch_core_registers): Remove function.
13472 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13473 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13474 functions.
13475 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13476 TDEP->fpregset.
46b58ce9 13477 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13478
a54124c5
MK
13479 * sparc-tdep.h (struct regset): Provide opaque declaration.
13480 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13481 fpregset and sizeof_fpregset members.
13482 * sparc-tdep.c (struct regset): Provide opaque declaration.
13483 (sparc_regset_from_core_section): New function.
13484 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13485 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13486 Set regset_from_core_section when appropriate.
13487
29ff87c5
MK
134882004-01-10 Mark Kettenis <kettenis@gnu.org>
13489
79b1ab3d
MK
13490 * x86-64-tdep.c (amd64_non_pod_p): New function.
13491 (amd64_classify_aggregate): Return class memory for non-POD
13492 C++ structure types.
13493
6470d250
MK
13494 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13495 argument. Use it to reserve a register if necessary.
13496 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13497 amd64_push_arguments.
13498
562c50c2
MK
13499 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13500
af233647
MK
13501 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13502 register numbers in comments.
13503 * x86-64-tdep.h: Update copyright year.
13504 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13505 Adjust for addition of %cs and %ss.
13506 * amd64fbsd-nat.c: Update copyright year.
13507 (reg_offset): Add register offsets for %cs and %ss.
13508 * amd64fbsd-tdep.c: Update copyright year.
13509 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13510 (amd64fbsd_sc_reg_offset): Likewise.
13511 * x86-64-linux-nat.c: Update copyright year.
13512 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13513 and %ss.
13514 * amd64nbsd-nat.c: Update copyright year.
13515 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13516 * amd64nbsd-tdep.c: Update copyright year.
13517 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13518 * x86-64-linux-tdep.c: Update copyright year.
13519 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13520 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13521 * regformats/reg-x86-64.dat: Add %cs and %ss.
13522
29ff87c5
MK
13523 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13524 variables to prevent long lines. Update comments to reflect
13525 reality.
13526
38d518c9
EZ
135272004-01-09 David Carlton <carlton@kealia.com>
13528
13529 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13530 * dwarf2read.c (read_namespace): Pull out name-generating code
13531 into namespace_name. Rename previous_namespace to previous_prefix
13532 and processing_current_namespace to processing_current_prefix..
13533 (namespace_name): New function.
13534 (add_partial_symbol): Substitute uses of pdi->name with
13535 actual_name.
13536 * cp-support.h: Rename processing_current_namespace to
13537 processing_current_prefix.
13538 Update copyright year.
13539 * cp-namespace.c: Rename processing_current_namespace to
13540 processing_current_prefix.
13541 Update copyright year.
fe61caab 13542
1e4728e7
AC
135432004-01-09 Andrew Cagney <cagney@redhat.com>
13544
13545 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13546
c77c642a
MK
135472004-01-09 Mark Kettenis <kettenis@gnu.org>
13548
13549 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13550 complaining.
13551 (process_one_symbol): Deal with N_PATCH stabs.
13552
b44e9041
EZ
135532004-01-09 Elena Zannoni <ezannoni@redhat.com>
13554
13555 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13556 ifdeffed code.
13557 Update copyright year.
38d518c9 13558
eccfb640
MC
135592004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13560
13561 * config/pa/tm-hppa.h: Update extern declarations for
13562 hppa32_hpux_frame_saved_pc_in_sigtramp,
13563 hppa32_hpux_frame_base_before_sigtramp, and
13564 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13565
848c5feb
MC
135662004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13567
13568 * config/pa/tm-hppah.h: Update copyright years.
13569
3cc5d663
AC
135702004-01-08 Andrew Cagney <cagney@redhat.com>
13571
13572 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13573 (mips_o32_reg_struct_has_addr): Delete function.
13574 (mips_gdbarch_init): Update.
13575 (mips_extract_struct_value_address): Delete function.
13576
bfec0b41
JJ
135772004-01-08 David Mosberger <davidm@hpl.hp.com>
13578
13579 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13580 reality.
13581
16e109ca
AC
135822004-01-07 Andrew Cagney <cagney@redhat.com>
13583
6214a8a1
AC
13584 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13585 architecture's elf flags (when available).
13586
8d5838b5
AC
13587 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13588 FPU to the start, check the MIPS FPU when looking for an old
13589 architecture.
13590 (set_mipsfpu_single_command): Update the architecture.
13591 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13592
480d3dd2
AC
13593 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13594 (mips_mask_address_p): Add "tdep" parameter.
13595 (show_mask_address, mips_addr_bits_remove): Update.
13596 (mips_dump_tdep): Update.
13597 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13598 (MIPS_STACK_ARGSIZE): Delete macro.
13599 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13600 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13601 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13602 (mips_dump_tdep): Update.
13603 (MIPS_SAVED_REGSIZE): Delete macro.
13604 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13605 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13606 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13607 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13608 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13609 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13610 (mips_pop_frame, return_value_location): Update.
13611 (mips_n32n64_return_value, mips_dump_tdep): Update.
13612
ec03c1ac
AC
13613 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13614 MIPS ABI.
13615
16e109ca
AC
13616 * mips-tdep.c: Update copyright.
13617 (mips_gdbarch_init): Merge two code blocks handling the register
13618 name and number layout.
13619
15255275
MS
136202004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13621
13622 * tracepoint.c (validate_actionline): Fix segv at EOF
13623
9f9057da
MC
136242004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13625
13626 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13627 properly for static fields.
13628
0127c0d3 136292004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13630 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13631
13632 * disasm.c: Update copyright to include 2004.
13633 (do_mixed_source_and_assembly): For uiout asm list
13634 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13635 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13636 the tuple/list. Move check for whether to close off the
fe61caab 13637 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13638 on each loop iteration.
13639
5269965e
AC
136402004-01-05 Andrew Cagney <cagney@redhat.com>
13641
54f1137d
AC
13642 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13643 should be a switch case and not a label.
13644 * mips-tdep.c (mips32_next_pc): Delete unused labels
13645 "greater_equal_branch" and "less_zero_branch".
13646 * jv-valprint.c (java_print_value_fields): Delete unused label
13647 "flush_it".
13648
5269965e
AC
13649 * target.c (unpush_target): Only close a target that is in the
13650 target stack.
13651
dbc22fa1
MK
136522004-01-05 Mark Kettenis <kettenis@gnu.org>
13653
9515395e
MK
13654 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13655 address from [sp + 64] instead of %o2.
13656
dbc22fa1
MK
13657 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13658 fixes PR backtrace/1476.
13659
5439edaa
AC
136602004-01-05 Andrew Cagney <cagney@redhat.com>
13661
13662 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13663 move to start of file.
13664 * i386-tdep.h (struct regcache): Add opaque declaration.
13665 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13666 declaration.
13667 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13668 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13669 * win32-nat.c (fake_create_process): Use ISO C style definition.
13670 * stabsread.c (define_symbol): Delete #ifndef
13671 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13672 stabs_argument_has_addr call, macro never defined.
13673
19061abe
MC
136742004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13675
13676 * op50-rom.c: Delete.
13677 * w89k-rom.c: Delete.
13678 * Makefile.in: Remove references.
13679
e53bef9f
MK
136802004-01-04 Mark Kettenis <kettenis@gnu.org>
13681
13682 * x86-64-tdep.c: Update copyright year.
13683 (struct amd64_register_info): Rename from x86_64_register_info.
13684 (amd64_register_info): Rename from x86_64_register_info.
13685 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13686 (amd64_register_name): Rename from x86_64_register_name.
13687 (amd64_register_type): Rename from x86_64_register_type.
13688 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13689 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13690 (amd64_dwarf_reg_to_regnum): Rename from
13691 x86_64_dwarf_reg_to_regnum.
13692 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13693 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13694 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13695 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13696 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13697 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13698 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13699 (amd64_frame_cache): Rename from x86_64_frame_cache.
13700 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13701 (amd64_frame_prev_register): Rename from
13702 x86_64_frame_prev_register.
13703 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13704 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13705 (amd64_sigtramp_frame_cache): Rename from
13706 x86_64_sigtramp_frame_cache.
13707 (amd64_sigtramp_frame_prev_register): Rename from
13708 x86_64_sigtramp_frame_prev_register.
13709 (amd64_sigtramp_frame_unwind): Rename from
13710 x86_64_sigtramp_frame_unwind.
13711 (amd64_sigtramp_frame_sniffer): Rename from
13712 x86_64_sigtramp_frame_sniffer.
13713 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13714 (amd64_frame_base): Rename from x86_64_frame_base.
13715 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13716 (amd64_frame_align): Rename from x86_64_frame_align.
13717 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13718 (amd64_regset_from_core_section): Rename from
13719 x86_64_regset_from_core_section.
13720 (x86_64_init_abi): Update comments.
13721
fca6aa58
NR
137222004-01-04 Nick Roberts <nick@nick.uklinux.net>
13723
13724 * MAINTAINERS (write after approval): Add myself.
13725
8ada74e3
MK
137262004-01-04 Mark Kettenis <kettenis@gnu.org>
13727
13728 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13729 `float' arguments.
13730
5154b0cd
MK
137312004-01-04 Mark Kettenis <kettenis@gnu.org>
13732
13733 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13734 such that it mentions a specific version of GCC that exhibits this
13735 bug.
13736
fb316966
MK
137372004-01-03 Mark Kettenis <kettenis@gnu.org>
13738
200cc553
MK
13739 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13740 structure that has a single `float' member, store it in %f1 in
13741 addition to %f0.
13742
e226a4a0
MK
13743 * sparc-sol2-nat.c: Add missing '\'.
13744
b9d4c5ed
MK
13745 * sparc-tdep.c (sparc32_return_value): New function.
13746 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13747 Remove functions.
13748 (sparc32_gdbarch_init): Set return_value, don't set
13749 extract_return_value, store_return_value, use_struct_convention
13750 and return_value_on_stack.
13751
fb316966
MK
13752 * sparc-sol2-nat.c: Add missing ')'.
13753
1af510a8
JB
137542004-01-03 J. Brobecker <brobecker@gnat.com>
13755
13756 * infrun.c (handle_step_into_function): New function.
13757 (handle_inferior_event): Extract out some code into the new
13758 function above.
13759
5cf4d23a
JB
137602004-01-03 J. Brobecker <brobecker@gnat.com>
13761
13762 * infrun.c (handle_inferior_event): Move the declaration of
13763 real_stop_pc inside the if blocks where it is used.
13764
60af1db2
MK
137652004-01-03 Mark Kettenis <kettenis@gnu.org>
13766
13767 * sparc64-tdep.c (sparc64_16_byte_align_p)
13768 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13769 Use check_typedef to get subtypes of structures and unions.
13770 (sparc64_store_return_value): Fix calculation of the appropriate
13771 offset into VALBUF when storing a structure or union.
13772 (sparc64_return_value): New function.
13773 (sparc64_use_struct_convention): Remove function.
13774 (sparc64_init_abi): Set return_value, don't set
13775 extract_return_value, store_return_value and
13776 use_struct_convention.
13777
1a901d3f
EZ
137782004-01-03 Eli Zaretskii <eliz@elta.co.il>
13779
13780 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13781 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13782 gdb/config/alpha/xm-alphaosf.h,
13783 gdb/config/powerpc/tm-ppcle-eabi.h,
13784 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13785 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13786 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13787 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13788 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13789 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13790 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13791 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13792 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13793 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13794 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13795 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13796 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13797 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13798 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13799 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13800 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13801 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13802 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13803 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13804 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13805 Remove lines for .cvsignore files.
13806
ef52e463
JB
138072004-01-03 J. Brobecker <brobecker@gnat.com>
13808
13809 * infrun.c: Back out the previous change.
13810
cb1bf9dc
MK
138112004-01-03 Mark Kettenis <kettenis@gnu.org>
13812
f0424ef6
MK
13813 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13814 sparc-*-sunos4* to the list of REMOVED configurations.
13815
cb1bf9dc
MK
13816 * configure.tgt: Add back sparc-*-vxworks*.
13817 * remote-vxsparc.c: Remove all includes except for "defs.h",
13818 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13819 Include "sparc-tdep.h".
13820 (SPARC_R_G1): New define.
13821 (vxsparc_gregset): New variable.
13822 (ext_format_sparc): Remove extern declaration.
13823 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13824 sparc32_supply_fpregset.
13825 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13826 sparc_collect_rwindow and sparc32_collect_fpregset.
13827 * config/sparc/tm-vxworks.h: New file, based on recently removed
13828 tm-vxsparc.h.
13829 * config/sparc/vxworks.mt: New file, based on recently removed
13830 vxworks.mt.
fe61caab 13831
5e938f9f
JB
138322004-01-03 J. Brobecker <brobecker@gnat.com>
13833
13834 * infrun.c (handle_step_into_function): New function.
13835 (handle_inferior_event): Extract out some code into the new
13836 function above.
13837
386c036b
MK
138382004-01-02 Mark Kettenis <kettenis@gnu.org>
13839
13840 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13841 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13842 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13843 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13844 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13845 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13846 (sparc_nat_h): New variable.
13847 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13848 (tm-sun4os4.h): Remove dependency.
13849 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13850 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13851 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13852 sparc-tdep.o): Update dependencies.
13853 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13854 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13855 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13856 dependencies.
13857 * configure.host: Remove existing sparc-*-lynxos*,
13858 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13859 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13860 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13861 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13862 triplets.
13863 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13864 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13865 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13866 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13867 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13868 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13869 sparc64-*-solaris2* and sparc64-*-* triplets.
13870 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13871 "symtab.h" and "objfiles.h".
13872 (BIAS): Remove define.
13873 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13874 (X_DISP19): Remove macros.
13875 (sparc_fetch_instruction): Remove function.
13876 (struct gdbarch_tdep): Remove definition.
13877 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13878 (sparc_breakpoint_from_pc): Remove function.
13879 (struct sparc64_frame_cache): Remove definition.
13880 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13881 sparc64_unwind_pc): Remove functions.
13882 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13883 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13884 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13885 (sparc64_frame_cache): Change return type to `struct
13886 sparc_frame_cache *'. Simply call sparc_frame_cache.
13887 (sparc64_frame_this_id, sparc64_frame_prev_register,
13888 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13889 instead of `struct sparc64_frame_cache.
13890 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13891 sparc_analyze_control_transfer, sparc_software_single_step,
13892 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13893 _initialize_sparc64_tdep): Remove functions.
13894 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13895 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13896 macros.
13897 (sparc64_supply_gregset, sparc64_collect_gregset,
13898 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13899 (sparc64_init_abi): New function.
13900 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13901 inclusion guard. Include "sparc-tdep.h".
13902 (BIAS): Define.
13903 (r_tstate_offset, r_fprs_offset): New defines.
13904 (enum sparc_regnum): Remove defenition.
13905 (enum sparc64_regnum): Reformat.
13906 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13907 (sparc64_init_abi, sparc64_supply_gregset,
13908 sparc64_collect_gregset, sparc64_supply_fpregset,
13909 sparc64_collect_fpregset): New prototypes.
13910 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13911 Add extern declarations.
13912 (sparc64_sol2_init_abi): New prototype.
13913 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13914 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13915 prototypes.
13916 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13917 "sparnbsd-nat.h".
13918 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13919 functions.
13920 (_initialize_sparc64fbsd_nat): Remove initialization of
13921 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13922 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13923 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13924 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13925 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13926 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13927 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13928 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13929 (sparc64fbsd_r_y_offset): Remove variables.
13930 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13931 Make static and const.
13932 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13933 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13934 functions.
13935 (sparc64fbsd_gregset): New variable.
13936 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13937 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13938 and sparc64_supply_fpregset.
13939 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13940 (sparc64fbsd_sigtramp_frame_this_id)
13941 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13942 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13943 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13944 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13945 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13946 * sparcnbsd-tdep.c: Update copyright year. Include
13947 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13948 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13949 "value.h" and "sparcnbsd-tdep.h".
13950 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13951 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13952 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13953 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13954 defines.
13955 (sparcnbsd_gregset): New variable.
13956 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13957 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13958 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13959 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13960 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13961 variables.
13962 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13963 (sparc32nbsd_sigcontext_frame_this_id)
13964 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13965 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13966 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13967 (sparcnbsd_get_longjmp_target_32,
13968 sparcnbsd_get_longjmp_target_64): Remove functions.
13969 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13970 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13971 sparcnbsd_init_elf): Remove.
13972 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13973 (sparcnbsd_elf_init_abi): New functions.
13974 (_initialize_sparcnbsd_tdep): New prototype.
13975 (_initialize_sparnbsd_tdep): Update.
13976 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13977 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13978 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13979 * config/sparc/linux.mh: Update comment.
13980 (XM_FILE, HOST_IPC): Remove variables.
13981 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13982 sparc-linux-nat.o.
13983 * config/sparc/linux.mt: Update comment.
13984 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13985 * config/sparc/nbsd.mt: Reformat.
13986 * config/sparc/nbsd64.mh: Update comment.
13987 (NATDEPFILES): Add sparc-nat.o.
13988 * config/sparc/nbsd64.mt: Update comment.
13989 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13990 (TM_FILE): Set to tm-nbsd.h.
13991 * config/sparc/nbsdelf.mh: Update comment.
13992 (NATDEPFILES): Add sparc-nat.o.
13993 (XM_FILE): Delete.
13994 * config/sparc/nbsdaout.mh: Update comment.
13995 (NATDEPFILES): Add sparc-nat.o
13996 (XM_FILE): Delete.
13997 * config/sparc/nm-linux.h: Update copyright year. Don't include
13998 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13999 inclusion.
14000 (KERNEL_U_SIZE): Remove define.
14001 (kernel_u_size): Remove prototype.
14002 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14003 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14004 "regcache.h".
14005 (CHILD_PREPARE_TO_STORE): Remove define.
14006 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14007 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14008 sparcnbsd-nat.c: Rewrite files.
14009 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14010 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14011 sparcnbsd-tdep.h: Remove files.
14012 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14013 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14014 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14015 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14016 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14017 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14018 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14019 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14020 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14021 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14022 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14023 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14024 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14025 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14026 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14027 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14028 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14029 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14030 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14031
ee84457a
AC
140322004-01-02 Andrew Cagney <cagney@redhat.com>
14033
14034 From 2003-12-18 Kazuhiro Inaoka:
14035 * configure.host: Add m32r-linux target.
14036
0bc2134e
MC
140372004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14038
14039 * top.c (print_gdb_version): Update year to 2004.
14040
89a72f9c
MM
140412004-01-02 Mark Mitchell <mark@codesourcery.com>
14042
14043 * MAINTAINERS: Add myself to the write-after-approval category.
14044
86b013ed
DJ
140452004-01-02 Daniel Jacobowitz <drow@mvista.com>
14046
14047 From Bernardo Innocenti <bernie@develer.com>:
14048 * configure.tgt: Add uClinux target.
14049
e42c9534
AC
140502004-01-02 Andrew Cagney <cagney@redhat.com>
14051
14052 * utils.c (do_my_cleanups): Make static, add forward declaration.
14053 * defs.h (do_my_cleanups): Delete declaration.
14054
162467d3
EZ
140552004-01-02 Eli Zaretskii <eliz@elta.co.il>
14056
14057 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14058 bfd/ChangeLog-0203.
14059
78434e59
MK
140602004-01-02 Mark Kettenis <kettenis@gnu.org>
14061
14062 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14063 in <machine/reg.h>.
14064 * configure, config.in: Regenerate.
14065
48efe704
AC
14066For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14067tui/ChangeLog-1998-2003.
c906108c
SS
14068\f
14069Local Variables:
14070mode: change-log
14071left-margin: 8
14072fill-column: 74
14073version-control: never
14074End:
This page took 1.484381 seconds and 4 git commands to generate.