2004-11-10 msnyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
be723e22
MS
12004-11-10 msnyder <msnyder@redhat.com>
2
3 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
4 must invalidate lr_reg (so we don't try to save it again).
5 Ditto for cr_offset and cr_reg.
6
d6f7abdf
AC
72004-11-05 Jon Beniston <jon@beniston.com>
8
9 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
10 when an unexpected packet is received, as the target stubs
11 continually retransmit the same packet until ACKed.
12
1d225535
RC
132004-11-10 Randolph Chung <tausq@debian.org>
14
15 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 16 frame's type.
1d225535 17
2315ffec
RC
182004-11-10 Randolph Chung <tausq@debian.org>
19
20 * blockframe.c (inside_entry_func): Move to .....
21 * frame.c (inside_entry_func): ... here, and make static.
22 (backtrace_past_entry): New flag.
23 (get_prev_frame): Stop backtrace at the entry function if enabled
24 by flag. Update comments.
25 (_initialize_frame): Add command to set backtrace_past_entry flag.
26 * defs.h (inside_entry_func): Remove prototype.
27
917c78fc
MK
282004-11-10 Mark Kettenis <kettenis@gnu.org>
29
30 * dwarf2read.c: Fix formatting.
31
994b9211
AC
322004-11-10 Andrew Cagney <cagney@gnu.org>
33
34 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
35 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
36 macros with function declarations.
37 * value.c (coerce_ref, coerce_array, coerce_number)
38 (coerce_enum): New functions.
39 (value_as_long, value_as_address): Update.
40 * ada-lang.c (ada_coerce_ref, ada_value_binop)
41 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
42 * jv-lang.c (evaluate_subexp_java): Update.
43 * valarith.c (value_less, value_neg, value_complement)
44 (value_binop, value_add, value_subscript, value_x_binop)
45 (value_logical_not, value_sub): Update.
46 * valops.c (check_field, value_struct_elt, value_ind)
47 (value_find_oload_method_list, value_cast, value_assign): Update.
48 * eval.c (evaluate_subexp_standard): Update.
49
06987e64
MK
502004-11-10 Mark Kettenis <kettenis@gnu.org>
51
52 * mips-tdep.c (mips32_relative_offset): Change return type to
53 LONGEST, change argument type to ULONGEST. Fix sign-extension.
54
4a302917
RC
552004-11-10 Randolph Chung <tausq@debian.org>
56
57 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
58 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
59 (hppa_fetch_pointer_argument): Likewise.
60 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
61 deprecated_read_memory_nobpt.
62 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
63 add_set_cmd sequence with add_setshow_boolean_cmd.
64
390e974f
AC
652004-11-09 Andrew Cagney <cagney@gnu.org>
66
67 GDB 6.3 released from GDB 6.3 branch.
68
92e023d6
AC
692004-11-09 Andrew Cagney <cagney@gnu.org>
70
71 * values.c: Rename to ...
72 * value.c: ..., new file.
73 * Makefile.in: Update.
74
d10891d4
DJ
752004-11-09 Daniel Jacobowitz <dan@debian.org>
76
77 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
78 size.
79
00a4c844
AC
802004-11-09 Andrew Cagney <cagney@gnu.org>
81
c44523e7
AC
82 * TODO: Delete.
83
00a4c844
AC
84 * value.h (struct value): Delete field bfd_section.
85 (VALUE_BFD_SECTION): Delete macro.
86 (COERCE_REF): Update.
87 (value_at, value_at_lazy): Delete asection parameter.
88 * printcmd.c (print_formatted, x_command): Update.
89 (do_examine): Delete asection parameter.
90 (next_section): Delete variable.
91 * valops.c (value_cast, value_at, value_at_lazy)
92 (value_coerce_function, value_addr, value_ind, value_string)
93 (find_rt_vbase_offset, value_full_object): Update.
94 * hpacc-abi.c (hpacc_virtual_fn_field)
95 (hpacc_value_rtti_type): Update.
96 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
97 (gnuv3_baseclass_offset): Update.
98 * f-valprint.c (f_val_print): Update.
99 * c-valprint.c (c_val_print): Update.
100 * p-valprint.c (pascal_val_print): Update.
101 * jv-valprint.c (java_value_print): Update.
102 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
103 * ada-lang.c (ada_value_primitive_packed_val)
104 (ada_evaluate_subexp): Update.
105 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
106 * expprint.c (print_subexp_standard): Update.
107 * infcall.c (call_function_by_hand): Update.
108 * valarith.c (value_add): Update.
109 * eval.c (evaluate_subexp_standard): Update.
110 * values.c (allocate_value, value_copy, value_static_field): Update.
111 * findvar.c (read_var_value, locate_var_value): Update.
112
5cb2fe25
AC
1132004-11-09 Andrew Cagney <cagney@gnu.org>
114
115 * i386-linux-tdep.c: Include "dwarf2-frame.h".
116 * Makefile.in: Update all dependencies.
117
cbafadeb
AC
1182004-11-08 Andrew Cagney <cagney@gnu.org>
119
120 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
121 (sentinel_frame_unwinder): Add the prev_pc method.
122 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
123 available. Do not handle the sentinel-frame case.
124 * frame-unwind.h (frame_prev_register_ftype): Define.
125 (struct frame_unwind): Add prev_pc;
126
3b78cdbb
DA
1272004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
128
129 * configure.in: Check for ncurses/term.h.
130 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
131 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
132 * tui/tui.c: Don't include term.h.
133 * configure, config.in: Rebuilt.
134
bcfca652
MK
1352004-11-08 Mark Kettenis <kettenis@gnu.org>
136
137 * m68kbsd-nat.c: Include "inf-ptrace.h".
138 (_initialize_m68kbsd_nat): Fix pasto.
139 * Makefile.in (m68kbsd-nat.o): Update dependencies.
140
527159b7
RC
1412004-11-08 Randolph Chung <tausq@debian.org>
142
143 * infrun.c (debug_infrun): New variable.
144 (resume, proceed, wait_for_inferior): Annotate with debug messages.
145 (handle_inferior_event, keep_going): Likewise.
146 (_initialize_infrun): Register "set debug infrun" command.
147
c874c7fc
AS
1482004-11-08 Andreas Schwab <schwab@suse.de>
149
150 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
151 PTRACE_EVENT_VFORKDONE.
152 (child_follow_fork): Adjust.
153
3c8fa307
AC
1542004-11-08 Andrew Cagney <cagney@gnu.org>
155
5c26072a
AC
156 * README: Refer to 6.3, not 6.2, update directory listing droppng
157 references to intl/ and mmalloc/.
158 * PROBLEMS: Refer to 6.3 not 6.2.
159
3c8fa307
AC
160 * PROBLEMS: Delete no-longer applicable problems.
161
12b8a2cb
DJ
1622004-11-07 Andrew Cagney <cagney@redhat.com>
163 Daniel Jacobowitz <dan@debian.org>
164 Roland McGrath <roland@redhat.com>
165
166 * Makefile.in (symfile-mem.o): Update dependencies.
167 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
168 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
169 * inf-ptrace.c (inf_ptrace_attach): Call
170 observer_notify_inferior_created.
171 * inftarg.c (child_attach): Likewise.
172 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
173 (symbol_file_add_from_memory): Take NAME argument. Use it for
174 the new BFD's filename.
175 (add_symbol_file_from_memory_command): Update call to
176 symbol_file_add_from_memory.
177 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
178 (symbol_file_add_from_memory_wrapper): New.
179 (_initialize_symfile_mem): Register add_vsyscall_page as an
180 inferior_created observer.
181
abbc6945
MK
1822004-11-07 Mark Kettenis <kettenis@gnu.org>
183
184 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
185 fetch_inferior_registers. Make static.
186 (m68kbsd_store_inferior_registers): Rename from
187 store_inferior_registers. Make static.
188 (_initialize_m68kbsd_nat): Construct and add target vector.
189 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
190 inftarg.o. Add inf-ptrace.o.
191 (NAT_FILE): Set to tm-solib.h.
192 (LOADLIBES): New variable.
193 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
194 inftarg.o. Add inf-ptrace.o.
195 (NAT_FILE): Delete variable.
196 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
197 inftarg.o. Add inf-ptrace.o.
198 (NAT_FILE): Set to tm-solib.h.
199 * config/m68k/nm-nbsdaout.h: Remove file.
200
3ed09a32
DJ
2012004-11-07 Daniel Jacobowitz <dan@debian.org>
202
203 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
204 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
205 (dwarf2_signal_frame_unwind): New.
206 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
207 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
208
8e763687
MK
2092004-11-07 Mark Kettenis <kettenis@gnu.org>
210
4fb31ed0
MK
211 * Makefile.in (mips64obsd-tdep.o): Fix typo.
212
fabe86c8
MK
213 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
214 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
215 to only include the structure members we actually need.
216 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
217 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
218 only include the structure members we actually need.
219 (mipsnbsd_init_abi): Update.
220
366e93e8
MK
221 * mips64obsd-nat.c: Include "mips-tdep.h".
222 (MIPS64OBSD_NUM_REGS): Remove define.
223 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
224 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
225 floating-point registers correctly.
226 * Makefile.in (mips64obsd-nat.o): Update dependencies.
227
8e763687
MK
228 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
229 "gdb_assert.h".
230 (mips64obsd_sigframe_init): New function.
231 (mips64obsd_sigframe): New variable.
232 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
233 unwinder.
234 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
235
5f6a2351
JB
2362004-11-06 Joel Brobecker <brobecker@gnat.com>
237
238 * alpha-mdebug-tdep.c: #include mdebugread.h.
239 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
240 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
241
f059bf6f
AC
2422004-11-05 Andrew Cagney <cagney@gnu.org>
243
244 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
245 CFI and the init_reg method leave the register unspecified.
246 Include the register name in the "Incomplete CFI data" complaint.
247 Supress leading zeros in the address.
248
1234d960
MK
2492004-11-05 Mark Kettenis <kettenis@gnu.org>
250
251 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
252 skipping a personality routine in a CIE augmentation.
253
d75e3c94
JJ
2542004-11-05 Jeff Johnston <jjohnstn@redhat.com>
255
256 * defs.h (fatal, vfatal): New function prototypes.
257 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
258 via catch_errors.
259 (backtrace_command): Change to call backtrace_command_stub via
260 catch_errors instead of calling backtrace_command_1 directly.
261 (backtrace_full_command): Ditto.
262 * utils.c (error_stream_1): New static function.
263 (verror): Change to call error_stream_1 instead of error_stream.
264 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
265 (vfatal, fatal): New functions.
266
98f276a0
AC
2672004-11-05 Andrew Cagney <cagney@gnu.org>
268
269 * stack.c (parse_frame_specification_1): Clear selected_frame_p
270 when not using selected frame.
271
f724bf08
MK
2722004-11-05 Mark Kettenis <kettenis@jive.nl>
273
274 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
275 personality routine in a CIE augmentation.
276
c789492a
FL
2772004-11-05 Felix Lee <felix+log1@specifixinc.com>
278
279 * stack.c (set_current_sal_from_frame): New function.
280 (print_args_stub): Use it.
281 (print_frame_info): Don't set sal here.
282
a81b10ae
MK
2832004-11-04 Mark Kettenis <kettenis@gnu.org>
284
285 * dwarf2-frame.c (read_encoded_value): Change type of third
286 argument to `unsigned char *'. Add support for LEB128 encodings.
287
ad766c0a
JB
2882004-11-04 Jim Blandy <jimb@redhat.com>
289
290 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
291 prevent cross-objfile references.
292 (make_cv_type): Doc fix. Don't create cross-objfile references,
293 even for stub types.
294 (replace_type): Add assertion to prevent cross-objfile references.
295 (check_typedef): Never resolve a stub type by copying over a type
296 from another file.
297
c46b0409 2982004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 299
c46b0409
KI
300 * Makefile.in (m32r-tdep.o): Update dependencies.
301 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
302 ABI-specific overrides.
303
9f0b0322 3042004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 305
9f0b0322
KI
306 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
307 unnecessary parallel execution bit.
308 (m32r_memory_remove_breakpoint): Ditto.
309 (m32r_breakpoint_from_pc): Update.
310
d5c27f81
RC
3112004-11-03 Randolph Chung <tausq@debian.org>
312
313 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 314 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
315 (hppa_frame_this_id): Likewise.
316
4577593c
AC
3172004-11-03 Andrew Cagney <cagney@gnu.org>
318
319 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
320 packet, obsolete configurations, end-of-life deprecated_registers.
321
b04de778
MK
3222004-11-02 Mark Kettenis <kettenis@gnu.org>
323
324 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
325 encodings as well as unsigned encodings.
326
9f2feefc
AC
3272004-11-02 Andrew Cagney <cagney@gnu.org>
328
329 * value.h (COERCE_VARYING_ARRAY): Delete.
330 * valops.c (value_cast, value_slice): Delete use.
331 * valarith.c (value_subscript, value_concat): Delete use.
332
117ea3cf
PH
3332004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
334
335 * NEWS: GDB understands GNAT Ada.
336
0bbc026e
JM
3372004-11-01 Joseph S. Myers <joseph@codesourcery.com>
338
339 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
340 (amd64-sol2-tdep.o): Add dependencies.
341 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
342 config/i386/sol2-64.mt: New files.
343 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
344 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
345 (supply_gregset): Correct order of arguments to
346 amd64_supply_native_gregset.
347 (fill_gregset): Correct order of arguments to
348 amd64_collect_native_gregset.
349 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
350 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
351 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
352 for definition of NEW_PROC_API.
353 * configure: Regenerate.
354
3d38a0a5
JM
3552004-11-01 Joseph S. Myers <joseph@codesourcery.com>
356
357 * MAINTAINERS (Write After Approval): Add myself.
358
f81cd1cf
AC
3592004-11-01 Andrew Cagney <cagney@gnu.org>
360
361 * configure.tgt: Mark d10v-*-* as obsolete.
362 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
363
f4e88c8e
PH
3642004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
365
366 * values.c (modify_field): Correct handling of bit-fields that
367 don't fit in 32 bits. Use unsigned operations throughout and
368 simplify the code a bit. Document preconditions.
369
84674fe1
AC
3702004-10-31 Andrew Cagney <cagney@gnu.org>
371
96693b3a
AC
372 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
373 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
374 (in_plt_section): Delete.
375
6f296f8f
AC
376 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
377 (mips_gdbarch_init): Do not set same.
378
618501c0
AC
379 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
380 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
381
b22e8f02
AC
382 * gdbarch.sh (in_solib_call_trampoline): Delete.
383 * gdbarch.h, gdbarch.c: Re-generate.
384
84674fe1
AC
385 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
386 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
387 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
388 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
389 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
390
c6d1029f
MK
3912004-10-31 Mark Kettenis <kettenis@gnu.org>
392
393 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
394 (mipsnbsd_fetch_inferior_registers): Rename from
395 fetch_inferior_registers. Make static.
396 (mipsnbsd_store_inferior_registers): Rename from
397 store_inferior_registers. Make static.
398 (_initialize_mipsnbsd_nat): New function and prototype.
399 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
400 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
401 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
402 inf-ptrace.o.
403
bd9ca83f
AC
4042004-10-31 Andrew Cagney <cagney@gnu.org>
405
19d718a3
AC
406 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
407 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
408 delete corresponding unused function.
409 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
410 in_solib_call_trampoline.
411 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
412 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
413 * config/mips/tm-nbsd.h: Ditto.
414 * config/arm/tm-linux.h: Ditto.
415 * config/mips/tm-linux.h: Ditto.
416
e8ce19c0
AC
417 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
418 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
419 in_solib_call_trampoline, delete corresponding unused function.
420 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
421 (vaxnbsd_aout_init_abi): Ditto.
422 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
423 (sparc32nbsd_aout_init_abi): Ditto.
424 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
425 (ppc_linux_init_abi): Ditto.
426 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
427 (ns32knbsd_init_abi_aout): Ditto.
428 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
429 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
430 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
431 (m68kbsd_aout_init_abi): Ditto.
432 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
433 (i386_cygwin_init_abi): Ditto.
434 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
435 (i386bsd_init_abi): Ditto.
436
af380d61
AC
437 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
438 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
439 isn't used by this architecture.
440 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
441 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
442 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
443 * s390-tdep.c (s390_gdbarch_init): Ditto.
444 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
445 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
446 * i386-tdep.c (i386_svr4_init_abi): Ditto.
447 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
448 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
449 * amd64-tdep.c (amd64_init_abi): Ditto.
450
0528d9f7
AC
451 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
452 in_solib_call_trampoline to its default value of
453 generic_in_solib_call_trampoline.
454 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
455 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
456 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
457 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
458 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
459 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
460
f9f9eacb
AC
461 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
462
a4ffd1e7
AC
463 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
464
82e34d2f
AC
465 * config/mips/tm-mips.h: Delete file.
466 * remote-mips.c: Delete tm-mips.h from comment.
467 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
468 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
469 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
470 * config/mips/tm-linux.h: Don't include tm-mips.h.
471 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
472 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
473 * config/mips/tm-wince.h: Don't include.
474
75dec9cf
AC
475 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
476 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
477 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
478 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
479
bd9ca83f
AC
480 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
481 * mdebugread.c (ecoff_relocate_efi): Delete function.
482 * objfiles.c (objfile_relocate): Delete #ifdef
483 MDEBUG_EFI_SYMBOL_NAME code.
484
3352ef37
AC
4852004-10-31 Orjan Friberg <organ.friberg@axis.com>
486 Andrew Cagney <cagney@gnu.org>
487
488 * gdbarch.sh (single_step_through_delay): Add.
489 * gdbarch.h, gdbarch.c: Re-generate.
490 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
491 (mips_step_skips_delay): Delete.
492 * mips-tdep.c (mips_single_step_through_delay): Replace
493 mips_step_skips_delay.
494 (mips_gdbarch_init): Set single_step_through_delay.
495 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
496
2440b685
MK
4972004-10-31 Mark Kettenis <kettenis@gnu.org>
498
499 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
500 from TRAMP_FRAME frame type.
501
56a2fed5
AC
5022004-10-31 Andrew Cagney <cagney@gnu.org>
503
9b792b1d
AC
504 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
505
0a5e8d98
AC
506 * mips-tdep.c (mips_ignore_helper): Delete.
507 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
508 * infrun.c (handle_inferior_event): Delete #ifdef
509 DEPRECATED_IGNORE_HELPER_CALL code.
510
56a2fed5
AC
511 * config/mips/tm-mips.h (RA_REGNUM): Delete.
512
f69c55b2
MK
5132004-10-31 Mark Kettenis <kettenis@gnu.org>
514
515 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
516 (fill_fpregset): Do not compile for 64-bit systems.
517 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
518 * Makefile.in (i386-sol2-nat.o): Update dependencies.
519 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
520
d37cca3d
AC
5212004-10-30 Andrew Cagney <cagney@gnu.org>
522
36b8628e
AC
523 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
524 (struct mdebug_extra_func_info): Define.
525 * config/alpha/tm-alpha.h: Delete same.
526 * config/mips/tm-mips.h: Delete same.
527 * mdebugread.c: Delete same.
528 * Makefile.in: Update dependencies.
529 * mips-mdebug-tdep.c: Include "mdebugread.h".
530
5b123146
AC
531 * objfiles.c: Include "mdebugread.h".
532 * mdebugread.c: Include "mdebugread.h".
533 (ecoff_relocate_cfi): Delete.
534 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
535 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
536 * mdebugread.h (ecoff_relocate_efi): New file.
537 * Makefile.in: Update dependencies.
538
b9c3a7de
AC
539 * mips-tdep.c (struct frame_extra_info): Delete.
540 (temp_proc_desc): Delete.
541
f92761ec
AC
542 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
543 MIPS_EFI_SYMBOL_NAME.
544 (mips_extra_func_info_t, mips_extra_func_info): Delete.
545 (struct mdebug_extra_func_info): Replace struct
546 alpha_extra_func_info and alpha_extra_func_info_t.
547 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
548 MIPS_EFI_SYMBOL_NAME.
549 (struct mdebug_extra_func_info): Replace struct
550 alpha_extra_func_info and alpha_extra_func_info_t.
551 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
552 * mdebugread.c, alpha-mdebug-tdep.c:
553
0bb57b31
AC
554 Suggested by Mark Kettenis.
555 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
556 fields frame_adjust and high_addr.
557 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
558 (non_heuristic_proc_desc): Delete references.
559
a5c9623c
AC
560 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
561 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
562 * mips-tdep.c: Update.
563
607fc93c
AC
564 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
565 (MIPS_LAST_EMBED_REGNUM): Add.
566 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
567 (LAST_EMBED_REGNUM): Delete.
568 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
569
24e05951
AC
570 * config/mips/tm-mips.h (PS_REGNUM): Delete.
571 * mips-tdep.h (MIPS_PS_REGNUM): Add.
572 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
573 * mips-linux-nat.c: Update.
574
613e114f
AC
575 * mips-tdep.h: Add comments on registers.
576 (MIPS_UNUSED_REGNUM): Define.
577 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
578 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
579 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
580 * mips-linux-nat.c, remote-mips.c: Update.
581
d37cca3d
AC
582 * config/mips/tm-mips.h (t_insn): Delete.
583 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
584 Replace t_insn with ULONGEST.
585
ceb41096
MK
5862004-10-30 Mark Kettenis <kettenis@gnu.org>
587
d1180b0f
MK
588 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
589 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
590 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
591 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
592 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
593 (mipsnbsd_core_osabi_sniffer): New function.
594 (mipsnbsd_init_abi): Set regset_from_core_section.
595 (_initialize_mipsnbsd_tdep): Remove calls to
596 deprecated_add_core_fns.
597 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
598 (mipsnbsd_regset_from_core_section): New functions.
599 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
600 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
601
ceb41096
MK
602 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
603 Remove optimization for DEPRECATED_FP_REGNUM.
604
ec4045ea
AC
6052004-10-30 Andrew Cagney <cagney@gnu.org>
606
cd65c8f6
AC
607 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
608 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
609 (alpha_setup_arbitrary_frame): Delete.
610 * mips-tdep.c (setup_arbitrary_frame): Delete.
611 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
612 (setup_arbitrary_frame): Delete.
613 * stack.c (parse_frame_specification_1): When specified, call
614 create_new_frame with two parameters. Delete #ifdef
615 SETUP_ARBITRARY_FRAME.
616
95ac2dcf
AC
617 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
618 (MIPS_INSTLEN): Delete.
619 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
620 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
621 * remote-mips.c, mips-tdep.c: Update.
622
1a8da44d
AC
623 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
624 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
625 * mips-tdep.c (mips_mdebug_frame_cache)
626 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
627 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
628 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
629 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
630 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
631 (mips_gdbarch_init): Do not append mdebug sniffers.
632 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
633 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
634 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
635 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
636 * Makefile.in: Update dependencies.
637
e6bc2e8a
AC
638 * mips-tdep.h (mips_abi_regsize): Declare.
639 * mips-tdep.c (mips_abi_regsize): Make non-static.
640
ec4045ea
AC
641 * mips-tdep.c (gdb_print_insn_mips): Simplify.
642 (make_mips16_addr): Delete.
e6bc2e8a 643
6b16acab
MK
6442004-10-30 Mark Kettenis <kettenis@gnu.org>
645
646 * i386-sol2-nat.c: New file.
647 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
648 i386-sol2-tdep.c.
649 (i386-sol2-nat.o): Update dependencies.
650 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
651 i386-sol2-nat.o.
652
8b622e6a
AC
6532004-10-30 Andrew Cagney <cagney@gnu.org>
654
655 Total breakage identified by Joel Brobecker.
656 * mips-tdep.c (after_prologue): Delete.
657 (mips_skip_prologue): Use skip_prologue_using_sal.
658 (heuristic_proc_desc): Delete, unused.
659
772cf8be
MK
6602004-10-30 Mark Kettenis <kettenis@gnu.org>
661
662 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
663 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
664 Cleanup coding style.
665
9c8fdbfa
AC
6662004-10-30 Andrew Cagney <cagney@gnu.org>
667
0fe7e7c8
AC
668 * mips-tdep.h (mips_pc_is_mips16): Declare.
669 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
670 non-static. Update calls.
671
1b295c3d
AC
672 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
673 * command.h (add_setshow_enum_cmd): Declare.
674 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
675
6bcadd06
AC
676 * mips-tdep.c (_initialize_mips_tdep): Use
677 add_setshow_zinteger_cmd.
678
9c8fdbfa
AC
679 * mips-tdep.c (mips_eabi_extract_return_value)
680 (mips_o64_extract_return_value, mips_o64_store_return_value)
681 (return_value_location, mips_eabi_reg_struct_has_addr)
682 (mips_eabi_use_struct_convention)
683 (mips_eabi_store_return_value): Delete.
684 (mips_eabi_store_return_value): New function.
685 (mips_eabi_return_value): New function.
686 (mips_gdbarch_init): For O64 and EABI, delete
687 extract_return_value, store_return_value, use_struct_convention
688 and reg_struct_has_addr, add return_value.
689
1d93fe1a
AC
690 * mips-tdep.c (read_signed_register): Use
691 regcache_cooked_read_signed.
692
303d2914
MK
6932004-10-30 Mark Kettenis <kettenis@gnu.org>
694
695 * mipsread.c: Cleanup coding style.
696 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
697 (mipscoff_symfile_finish): Remove prototypes.
698
6992004-10-29 Mark Kettenis <kettenis@gnu.org>
700
701 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
702 (mips_mdebug_frame_cache, mips16_scan_prologue)
703 (mips32_scan_prologue, mips_stub_frame_cache)
704 (heuristic_proc_start, heuristic_proc_desc)
705 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
706 (mips_n32n64_return_value, mips_o32_push_dummy_call)
707 (mips_o32_return_value, mips_o64_push_dummy_call)
708 (mips_step_skips_delay, mips_skip_trampoline_code)
709 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
710 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
711 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
712 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
713 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
714 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
715 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
716 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
717 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
718 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
719 ZERO_REGNUM.
720 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
721 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
722 ZERO_REGNUM.
723 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
724 A0_REGNUM.
725 * mipsnbsd-nat.c: Include "mips-tdep.h".
726 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
727 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
728
1c8831c5
AC
7292004-10-29 Andrew Cagney <cagney@gnu.org>
730
731 * stack.c (parse_frame_specification_1): New function based on
732 parse_frame_specification. Add message and selected_frame_p
733 paramters. Truely always return non-NULL.
734 (parse_frame_specification): Call parse_frame_specification_1.
735 (frame_info): Update. Eliminate target_has_stack check.
736 (select_frame_command): Update.
737
b04f3ab4
AC
7382004-10-29 Andrew Cagney <cagney@gnu.org>
739
740 * frame.h (get_selected_frame): Add message parameter.
741 * frame.c (get_selected_frame): Add and use message parameter.
742 * stack.c (current_frame_command, return_command, locals_info)
743 (catch_info, args_info, up_silently_base, down_silently_base): Use
744 get_selected_frame with an explicit message.
745 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
746 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
747 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
748 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
749 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
750 * breakpoint.c: Update.
751
7522004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
753
754 * trad-frame.c (trad_frame_get_prev_register): Use
755 frame_unwind_register instead of frame_register_unwind, do not
756 recurse the register's location.
757 * xstormy16-tdep.c (xstormy16_frame_prev_register):
758 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
759 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
760 * sh-tdep.c (sh_frame_prev_register): Ditto.
761 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
762 * i386-tdep.c (i386_frame_prev_register): Ditto.
763 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
764 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
765
7a952542
MK
7662004-10-28 Mark Kettenis <kettenis@jive.nl>
767
c18c06be
MK
768 * proc-events.c: Fix several coding-style issues. Consistently
769 use #ifdef instead of #if defined().
770 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
771 ARRAY_SIZE.
772 (_initialize_proc_events): New prototype.
773
7a952542
MK
774 * proc-why.c: Fix several coding-style issues.
775 (proc_prettyfprint_why): Use ARRAY_SIZE.
776
fcad0fa4
JB
7772004-10-27 Jim Blandy <jimb@redhat.com>
778
779 * remote.c (fetch_register_using_p): Construct 'p' packet in a
780 manner independent of the host byte order.
781
c163184f
MK
7822004-10-27 Mark Kettenis <kettenis@gnu.org>
783
784 * mips-tdep.c (id_delayed): Remove prototype.
785
9c46b6f0
MK
7862004-10-26 Mark Kettenis <kettenis@gnu.org>
787
788 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
789 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
790 to enum with register numbers.
791 (enum mips_insn_size): New enum.
792
0d0266c6
AC
7932004-10-26 Andrew Cagney <cagney@gnu.org>
794
e7d6a6d2
AC
795 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
796 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
797 (mips_gdbarch_init): Update.
798 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
799
c5115f39
AC
800 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
801 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
802 IN_SOLIB_RETURN_TRAMPOLINE.
803 * mips-tdep.c (mips_dump_tdep): Do not print
804 IN_SOLIB_RETURN_TRAMPOLINE.
805 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
806 (mips_gdbarch_init): Update.
807
0d0266c6
AC
808 * mips-tdep.h (mips_software_single_step): Move to here ...
809 * config/mips/tm-mips.h: ... from here.
810 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
811 (SOFTWARE_SINGLE_STEP): Delete.
812 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
813
156a53ca
AC
8142004-10-25 Andrew Cagney <cagney@gnu.org>
815
816 * NEWS: Add Changes since GDB 6.3 section.
817
f27cf670
AS
8182004-10-23 Andreas Schwab <schwab@suse.de>
819
156a53ca
AC
820 * ada-lang.c (grow_vect): Return the new array instead of
821 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
822 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
823
121d8485
UW
8242004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
825
826 * s390-tdep.c (enum pv_boolean): Remove.
827 (pv_is_array_ref): Remove.
828 (s390_on_stack): Remove.
829 (S390_NUM_SPILL_SLOTS): Remove.
830 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
831 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
832 (s390_store): Track all stores of orginal incoming registers to the
833 stack constant offsets relative to the CFA, instead of only tracking
834 stores into specific spill slots.
835 (s390_load): Likewise.
836 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
837 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
838 defined as call-saved by the ABI.
839 (s390_push_dummy_call): Use bottom of dummy call argument save area
840 as return value, not the top. Do not store to the called function's
841 register save area.
842 (s390_unwind_dummy_id): Adapt accordingly.
843
0a6ddd08
AC
8442004-10-23 Andrew Cagney <cagney@gnu.org>
845
846 * objfiles.h (struct objfile): Rename obj_private to
847 deprecated_obj_private, sym_private to deprecated_sym_private, and
848 sym_stab_info to deprecated_sym_stab_info.
849 * gdb-stabs.h: Update.
850 * elfread.c: Update.
851 * dbxread.c: Update.
852 * coffread.c: Update.
853 * xcoffread.c: Update.
854 * symfile.c: Update.
855 * somread.c: Update.
856 * nlmread.c: Update.
857 * mdebugread.c: Update.
858 * hpread.c: Update.
859 * coffread.c: Update.
860
abc08782
MK
8612004-10-23 Mark Kettenis <kettenis@gnu.org>
862
863 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
864 * configure.host: Add mips64*-*-openbsd*.
865 * configure.tgt: Add mips64*-*-openbsd*.
866 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
867 mips64obsd-tdep.c.
868 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
869 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
870
fc062ac6
JB
8712004-10-21 Joel Brobecker <brobecker@gnat.com>
872
873 * symtab.c (symbol_search_name): Minor reformatting.
874
5bccb4d1
JB
8752004-10-20 Joel Brobecker <brobecker@gnat.com>
876
877 * symtab.h: Fix typo in comment.
878
a738430d
MK
8792004-10-19 Mark Kettenis <kettenis@gnu.org>
880
881 * dwarf2read.c (struct comp_unit_head): Fix coding style.
882 (dwarf_decode_line_header): Likewise.
883
f2cb65ca
MC
8842004-10-19 Michael Chastain <mec.gnu@mindspring.com>
885
886 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
887
09e55376
AC
8882004-10-19 Andrew Cagney <cagney@gnu.org>
889
890 GDB 6.3 branch created.
891 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
892
bc5f45f8
JB
8932004-10-15 Joel Brobecker <brobecker@gnat.com>
894
895 * dwarf2read.c (set_cu_language): Set language to Ada for
896 DW_LANG_Ada83 and DW_LANG_Ada95.
897
2941da8c
MC
8982004-10-15 Michael Chastain <mec.gnu@mindspring.com>
899
900 From Andreas Schwab <schwab@suse.de>:
901 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
902 for xmalloc and xrealloc.
903
34a17005
AC
9042004-10-15 Andrew Cagney <cagney@gnu.org>
905
906 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
907 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
908 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
909 Update dependencies.
910
714e53ab
PH
9112004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
912
913 * ada-lang.c (ada_lookup_symbol): Correct comment.
914 (ada_evaluate_subexp): Change error message for
915 OP_FUNCALL case so as not to indicate an internal error.
916
9172004-10-15 Joel Brobecker <brobecker@gnat.com>
918
919 Committed by Paul Hilfinger.
920 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
921 type sizes in XVE/XVU types, and emit a warning when that happens,
922 instead of rounding up the size of the resulting type.
923 Some minor reformatting.
924 (ada_is_aligner_type): Do not consider a type as an aligner type
925 if there is a corresponding XVS type as well.
926 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
927 have several levels of pointer indirection to the array.
928
9292004-10-15 Jerome Guitton <guitton@gnat.com>
930
931 Committed by Paul Hilfinger.
932 * ada-lang.c (check_size): New function.
933 (coerce_unspec_val_to_type): call check_size to make sure
934 that the object size is reasonable.
935 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
936 Implements the case when we get a reference when we evaluate
937 the expression of one of the bounds of the slice.
938 (ada_value_struct_elt): when a packed array field is
939 a reference, use ada_coerce_ref to dereference it; use
940 ada_value_ind only if it is a pointer.
941
29639122
JB
9422004-10-15 Joel Brobecker <brobecker@gnat.com>
943
944 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
945 a bit to avoid the necessity of an advance declaration. Remove
946 declaration.
947 (set_reg_offset): Move implemenation up.
948 (mips16_get_imm): Likewise.
949 (mips16_scan_prologue): Likewise.
950 (reset_saved_regs): Likewise.
951 (mips32_scan_prologue): Likewise.
952
a65bbe44
JB
9532004-10-14 Joel Brobecker <brobecker@gnat.com>
954
955 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
956 Remove sp as a parameter, compute it internally instead. Move
957 prologue scanning limit from heuristic_proc_desc to here.
958 (mips16_scan_prologue): Likewise.
959 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
960 by call to mips16_scan_prologue.
961 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
962 by call to mips32_scan_prologue.
963 (heuristic_proc_desc): Remove code that's no longer necessary.
964 Update calls to mips16_scan_prologue and mips32_scan_prologue.
965 (mips_skip_prologue): Update calls to mips16_scan_prologue
966 and mips32_scan_prologue.
967
1c645fec
JB
9682004-10-14 Joel Brobecker <brobecker@gnat.com>
969
970 * mips-tdep.c (mips16_scan_prologue): Merge code from
971 mips16_skip_prologue. Now return the address of the first
972 instruction past the function prologue.
973 (mips16_skip_prologue): Remove, no longer necessary.
974 (mips_skip_prologue): Replace call to mips16_skip_prologue
975 by call to mips16_scan_prologue.
976
98b4dd94
JB
9772004-10-14 Joel Brobecker <brobecker@gnat.com>
978
979 * mips-tdep.c (mips32_scan_prologue): Merge code from
980 mips32_skip_prologue. Now return the address of the first
981 instruction past the function prologue.
982 (mips32_skip_prologue): Remove. No longer necessary.
983 (mips16_skip_prologue): Add parameter end_pc instead of
984 computing it.
985 (mips_skip_prologue): Compute the upper limit for the
986 prologue scanning. Update call to mips16_skip_prologue.
987 Replace call to mips32_skip_prologue by call to
988 mips32_scan_prologue.
989
ad4c72d2
MK
9902004-10-14 Mark Kettenis <kettenis@gnu.org>
991
dfaf8edb
MK
992 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
993 NetBSD system call stubs that store %rp in the ERP slot of the
994 stack frame.
995
3e3a28f1
MK
996 * source.c: Always define O_BINARY to 0 if not defined already.
997 (openp): Unconditionally use O_BINARY.
998
ad4c72d2
MK
999 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1000 * event-top.c (gdb_readline2): Likewise.
1001
52bd1401
OF
10022004-10-14 Orjan Friberg <orjanf@axis.com>
1003
1004 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1005 deprecated_add_core_fns which was removed by mistake.
1006
e0e25c6c
KB
10072004-10-13 Kevin Buettner <kevinb@redhat.com>
1008
1009 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1010 references to deprecated_registers[] with equivalent code.
1011
9f335945
KB
10122004-10-13 Kevin Buettner <kevinb@redhat.com>
1013
1014 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1015 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1016 instead of explicit test and print statement.
1017
06c2338d
MK
10182004-10-12 Mark Kettenis <kettenis@gnu.org>
1019
1b9445c2
MK
1020 * sparc-nat.c: Include "inf-ptrace.h".
1021 (sparc_target): New function.
1022 * sparc-nat.h: Update copyright year.
1023 (sparc_target): New prototype.
1024 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1025 (_initialize_sparcnbsd_nat): Construct and add target vector.
1026 * sparc64nbsd-nat.c: Include "target.h".
1027 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1028 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1029 Update dependencies.
1030 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1031 inftarg.o, add inf-ptrace.o.
1032 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1033 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1034 (NAT_FILE): Set to nm-bsd.h.
1035 (LOADLIBES): New variable.
1036 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1037 infarg.o, add inf-ptrace.o.
1038 * config/sparc/nm-nbsdaout.h: Remove file.
1039 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1040 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1041 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1042
06c2338d
MK
1043 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1044 "fopen-same.h". Update comment.
1045
3303a276
MK
10462004-10-11 Mark Kettenis <kettenis@gnu.org>
1047
1048 * i386gnu-nat.c: Include "gdb_string.h".
1049 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1050 registers when the floating-point state isn't initialized.
1051 * Makefile.in (i386gnu-nat.o): Update dependencies.
1052
04c663e3
DA
10532004-10-11 David Anderson <davea@sgi.com>
1054
1055 * regcache.c (regcache_raw_read): Comment was missing "to".
1056 Extraneous ' removed.
1057 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1058 comment now describes use.
1059
a5f6c8f5
OF
10602004-10-11 Orjan Friberg <orjanf@axis.com>
1061
1062 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1063 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1064 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1065 (cris_sigtramp_frame_sniffer): New functions.
1066 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1067 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1068 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1069 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1070 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1071 command.
1072 (cris_version_update): Remove, replace with ...
1073 (set_cris_version): New function.
1074 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1075 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1076 (_initialize_cris_tdep): Remove CRIS mode command.
1077 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1078 cris-fpless-backtrace command.
1079 (cris_scan_prologue): Fix prologue scanning limit.
1080 (cris_register_type): Update to reflect actual registers.
1081 (cris_register_bytes_ok) Remove.
1082 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1083 Remove set_gdbarch_deprecated_register_size,
1084 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1085
77109804
AC
10862004-10-10 Andrew Cagney <cagney@gnu.org>
1087
1088 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1089 comment.
1090
25652d4f
JB
10912004-10-10 Joel Brobecker <brobecker@gnat.com>
1092
1093 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1094
1e05a7bf
JB
10952004-10-10 Joel Brobecker <brobecker@gnat.com>
1096
1097 * mips-tdep.c (mips16_scan_prologue): Renames
1098 mips16_heuristic_proc_desc. Update comment.
1099 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1100 (heuristic_proc_desc): Update calls to the 2 functions above.
1101
c68a4142
JB
11022004-10-10 Joel Brobecker <brobecker@gnat.com>
1103
1104 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1105 Update comments. Also immediately return empty cache when the start
1106 address of our function could not be found.
1107 (mips_insn32_frame_cache): Likewise.
1108
0fce0821
JB
11092004-10-10 Joel Brobecker <brobecker@gnat.com>
1110
1111 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1112 (mips_insn16_frame_cache): Pass frame cache in call to
1113 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1114 Remove code that became redundant as a consequence.
1115 (mips32_heuristic_proc_desc): No longer compute a fake
1116 procedure descriptor. Compute the full frame cache instead.
1117 Some minor comment reformatting.
1118
b672553e
JB
11192004-10-10 Jim Blandy <jimb@redhat.com>
1120
1121 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1122 reader, tracing bytecode stuff): Remove self.
1123
9cc52bde
MK
11242004-10-10 Mark Kettenis <kettenis@gnu.org>
1125
cc9784b6
MK
1126 * sparc64-linux-tdep.c: Update copyright year. Don't include
1127 "solib-svr4.h".
1128 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1129 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1130 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1131
ee8aef23
MK
1132 * sparc-linux-tdep.c: Update copyright year.
1133 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1134 to struct frame_info *. Use safe_frame_unwind_memory instead of
1135 deprecated_read_memory_nobpt.
1136 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1137 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1138 changed signature of sparc_linux_sigtramp_start.
1139 (sparc32_linux_pc_in_sigtramp): Remove function.
1140 (sparc32_linux_sigtramp_p): New function.
1141 (sparc32_linux_sigtramp_frame_sniffer): Use
1142 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1143
bc73f8cc
MK
1144 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1145 Remove function.
1146 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1147
a2249542
MK
1148 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1149 (decode_packed_array_type, value_subscript_packed)
1150 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1151 argument in call to lim_warning.
1152
9cc52bde
MK
1153 * configure.in: Really disable the TUI if an enhanced curses
1154 library isn't found.
1155 * configure: Regenerate.
1156
151fc45b
MK
11572004-10-09 Mark Kettenis <kettenis@gnu.org>
1158
1159 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1160 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1161 * config/i386/nm-nbsdaout.h: Remove file.
1162 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1163 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1164 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1165 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1166 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1167 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1168 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1169 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1170 (ldd, ld_un, ld_2): Remove defines.
1171 * config/i386/nm-obsd.h: Likewise.
1172
375c0479
PH
11732004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1174
1175 * ada-lex.l: Remove useless rule whose right-context clause
1176 causes unreferenced static function warning for yyrealloc.
1177 (ada_flex_use): Remove the artificial reference to yyrealloc.
1178
c8e73a31
AC
11792004-10-08 Andrew Cagney <cagney@gnu.org>
1180
1181 * target.h (struct target_ops): Rename to_xfer_memory to
1182 deprecated_xfer_memory.
1183 * target.c: Update.
1184 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1185 * wince.c: Update.
1186 * win32-nat.c: Update.
1187 * v850ice.c: Update.
1188 * uw-thread.c: Update.
1189 * thread-db.c: Update.
1190 * sol-thread.c: Update.
1191 * remote.c: Update.
1192 * remote-vx.c: Update.
1193 * remote-st.c: Update.
1194 * remote-sim.c: Update.
1195 * remote-sds.c: Update.
1196 * remote-rdp.c: Update.
1197 * remote-rdi.c: Update.
1198 * remote-mips.c: Update.
1199 * remote-m32r-sdi.c: Update.
1200 * remote-e7000.c: Update.
1201 * procfs.c: Update.
1202 * ppc-bdm.c: Update.
1203 * nto-procfs.c: Update.
1204 * monitor.c: Update.
1205 * linux-nat.c: Update.
1206 * inftarg.c: Update.
1207 * hpux-thread.c: Update.
1208 * go32-nat.c: Update.
1209 * gnu-nat.c: Update.
1210 * exec.c: Update.
1211 * corelow.c: Update.
1212 * bsd-kvm.c: Update.
1213 * aix-thread.c: Update.
1214
aa869812
AC
12152004-10-08 Andrew Cagney <cagney@gnu.org>
1216
1217 * target.c (debug_target): Move to near start of file.
1218 (target_stopped_data_address_p): Re-org logic, add casts.
1219
8dcef9cf
MK
12202004-10-02 Mark Kettenis <kettenis@gnu.org>
1221
1222 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1223 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1224 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1225 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1226 New defines.
1227
4aa7a7f5
JJ
12282004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1229
1230 * target.h (to_stopped_data_address): Change prototype to
1231 take a CORE_ADDR pointer and return an int.
1232 * target.c (update_current_target): Change to_stopped_data_address
1233 to match new prototype.
1234 (debug_to_stopped_data_address): Change appropriately.
1235 * breakpoint.c (bpstat_stop_status): Change call to
1236 target_stopped_data_address to use new prototype.
1237 * frv-tdep.c (frv_have_stopped_data_address): New function.
1238 (frv_stopped_data_address): Change to new prototype and
1239 functionality.
1240 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1241 prototype and functionality.
1242 (ia64_stopped_by_watchpoint): New function.
1243 * i386-nat.c (i386_stopped_data_address): Change to new
1244 prototype and functionality.
1245 (i386_stopped_by_watchpoint): New function.
1246 * remote.c (remote_stopped_data_address): Change to new prototype
1247 and functionality.
1248 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1249 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1250 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1251 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1252 new i386_stopped_by_watchpoint function.
1253 (i386_stopped_by_watchpoint): New prototype.
1254 (i386_stoppped_data_address): Change to new prototype.
1255 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1256 new ia64_stopped_by_watchpoint function.
1257 (ia64_stopped_by_watchpoint): New prototype.
1258 (ia64_stopped_data_address): Ditto.
1259
61ee279c
PH
12602004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1261
1262 * ada-typeprint.c (ada_print_type): Use int_string for printing
1263 modulus of modular type.
1264 * ada-lang.h (ada_modulus): Change return type to unsigned.
1265 * ada-lang.c (ada_language_arch_info): Correct type of
1266 string_char_type.
1267 (ada_modulus): Return unsigned result.
1268 (ada_lookup_symbol): Remove user disambiguation and modify comment
1269 accordingly.
1270
12712004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1272
1273 Committed by Paul Hilfinger.
1274 * ada-lang.c (decode_packed_array): On big-endian targets,
1275 left-justify the value if it comes with a modular type.
1276
12772004-10-08 Joel Brobecker <brobecker@gnat.com>
1278
1279 Committed by Paul Hilfinger.
1280 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1281 (is_name_suffix): Add support for "___JM" suffixes.
1282 (ada_check_typedef): Renames ada_completed_type.
1283 Update all users of CHECK_TYPEDEF, check_typedef, and
1284 ada_complete_type to call ada_check_typedef.
1285 * ada-typeprint.c: Likewise.
1286 * ada-valprint.c: Likewise.
1287
b6c25a56
CV
12882004-10-08 Corinna Vinschen <vinschen@redhat.com>
1289
1290 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1291
83ca6a46
NR
12922004-10-08 Nick Roberts <nickrob@snap.net.nz>
1293
1294 * MAINTAINERS: Update e-mail address.
1295
1fd8cd20
DJ
12962004-10-07 Daniel Jacobowitz <dan@debian.org>
1297
1298 From Maciej W. Rozycki <macro@mips.com>:
1299 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1300 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1301
cea15572
KI
13022004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1303
1304 * m32r-tdep.c (decode_prologue): Support functions written
1305 in assembler language. Recognize trap instructions as the
1306 end of prologue.
1307 (m32r_frame_unwind_cache): Ditto.
1308 (m32r_skip_prologue): Extend search limit. Quit analyzing
1309 prologue if pc's location is not readable.
1310
23485554
PH
13112004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1312
1313 * Makefile.in (.l.c): Do conversions of names of alloc and free
1314 functions that are done for .y.c files, plus special one
1315 for yy_flex_realloc. Also, correct missing-file tests here.
1316 * ada-lex.l (malloc, free): Remove macros.
1317 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1318 xrealloc.
1319 (ada_flex_use): Dummy definition to remove warnings about unused
1320 functions.
1321 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1322 to suppress warning.
1323
c0409442
CV
13242004-10-06 Corinna Vinschen <vinschen@redhat.com>
1325
1326 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1327 RETURN_VALUE.
1328 (sh_return_value_fpu): Ditto for CPUs with FPU.
1329 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1330 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1331 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1332 RETURN_VALUE functions.
1333
9bed62d7
CV
13342004-10-06 Corinna Vinschen <vinschen@redhat.com>
1335
1336 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1337 (sh_pseudo_register_write): Ditto.
1338
03131d99
CV
13392004-10-06 Corinna Vinschen <vinschen@redhat.com>
1340
1341 * sh-tdep.c (IS_MACL_STS): New define.
1342 (IS_MOVI20): Ditto.
1343 (IS_MACL_LDS): Ditto.
1344 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1345 instructions in prologue.
1346 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1347 instructions in epilogue.
1348
da962468
CV
13492004-10-06 Corinna Vinschen <vinschen@redhat.com>
1350
1351 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1352 (sh_sh_register_name): Add eight empty register names.
1353 (sh_sh3_register_name): Ditto.
1354 (sh_sh3e_register_name): Ditto.
1355 (sh_sh2e_register_name): Ditto.
1356 (sh_sh2a_register_name): New function, defining SH2A register set.
1357 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1358 in nofpu case.
1359 (sh_sh_dsp_register_name): Add eight empty register names.
1360 (sh_sh3_dsp_register_name): Ditto.
1361 (sh_sh4_register_name): Ditto.
1362 (sh_sh4_nofpu_register_name): Ditto.
1363 (sh_sh4al_dsp_register_name): Ditto.
1364 (sh2a_show_regs): New function.
1365 (sh2a_nofpu_show_regs): New function.
1366 (sh_sh2a_register_type): New function.
1367 (do_bank_register_info): New function.
1368 (sh_print_pseudo_register): Call do_bank_register_info.
1369 Call sh_print_pseudo_register for valid "bank" register.
1370 (sh_sh2a_register_sim_regno): New function.
1371 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1372 Increment pseudo register count by one for all sh variants with
1373 pseudo registers to accomodate pseudo bank register.
1374 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1375 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1376 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1377 Increment pseudo register numbers.
1378
1326e61b
CV
13792004-10-06 Corinna Vinschen <vinschen@redhat.com>
1380
1381 * dwarf2read.c (read_subroutine_type): Call make_function_type
1382 instead of lookup_function_type.
1383
146c42e3
JB
13842004-10-05 Jim Blandy <jimb@redhat.com>
1385
1386 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1387 (Previous change missed some uses.)
1388
1df84f13
AC
13892004-10-05 Andrew Cagney <cagney@gnu.org>
1390
1391 * target.h (deprecated_child_ops): Rename child_ops.
1392 * wince.c: Update copyright. Rename child_ops.
1393 * win32-nat.c: Rename child_ops.
1394 * target.c: Rename child_ops.
1395 * rs6000-nat.c: Rename child_ops.
1396 * linux-nat.c: Rename child_ops.
1397 * infttrace.c: Rename child_ops.
1398 * inftarg.c: Rename child_ops.
1399 * infptrace.c: Rename child_ops.
1400 * hppah-nat.c: Update copyright. Rename child_ops.
1401 * hpux-thread.c: Update copyright. Rename child_ops.
1402
21e3b9b9
DJ
14032004-10-05 Daniel Jacobowitz <dan@debian.org>
1404
1405 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1406
de83afe7
AC
14072004-10-05 Andrew Cagney <cagney@gnu.org>
1408
1409 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1410
10b3939b
DJ
14112004-10-05 Daniel Jacobowitz <dan@debian.org>
1412
1413 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1414 (die_ref_table): Remove.
1415 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1416 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1417 the usage of this type.
1418 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1419 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1420 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1421 (dwarf2_create_include_psymtab): Update comment.
1422 (find_partial_die): Remove third argument. Remove unreachable call
1423 to error ().
1424 (dwarf2_find_containing_comp_unit): Update comments. Change one
1425 assertion to an error. Remove an unreachable error.
1426 (dwarf2_find_comp_unit): Update comments.
1427 (type_at_offset): Remove dead code.
1428 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1429 (store_in_ref_table): Add CU argument.
1430 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1431 inter-compilation-unit references.
1432 (load_full_comp_unit, process_full_comp_unit): New functions, based
1433 on psymtab_to_symtab_1.
1434 (psymtab_to_symtab_1): Use them.
1435 (dwarf2_add_dependence): New function.
1436 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1437 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1438 (partial_die_parent_scope, guess_structure_name): Update for changes
1439 to find_partial_die.
1440 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1441 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1442 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1443 (read_die_and_children): Update call to store_in_ref_table.
1444 (do_free_die_list_cleanup): Remove.
1445 (fixup_partial_die): Update for changes to find_partial_die.
1446 (read_full_die): Handle queueing absolute references.
1447 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1448 (dwarf2_attr, die_specification, die_type)
1449 (die_containing_type, dwarf2_extension): Update calls to
1450 follow_die_ref.
1451 (dump_die): Update DW_FORM_ref* handling.
1452 (dwarf2_get_ref_die_offset): Likewise.
1453 (free_one_comp_unit): Release the dies list.
1454 (dwarf2_mark_helper): New function.
1455 (dwarf2_mark): Use it.
1456
998bdd68
MK
14572004-10-05 Mark Kettenis <kettenis@jive.nl>
1458
1459 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1460 when writing to memory.
1461
14588880
KI
14622004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1463
1464 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1465 (m32r_extract_struct_value_address): Delete function.
1466 (m32r_return_value): New function.
1467 (m32r_gdbarch_init): Instead of store_return_value,
1468 extract_return_value, deprecated_extract_struct_value_address
1469 and deprecated_use_struct_convention, set return_value.
1470
dd5e6932
DJ
14712004-10-03 Daniel Jacobowitz <dan@debian.org>
1472
1473 * dwarf2read.c (read_subrange_type): Add comment for variable
1474 sized arrays.
1475
7dc1ef8d
PH
14762004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1477
1478 * Makefile.in (.l.c): Modify rule for compatibility with recent
1479 versions of flex, and remove most command-line options.
1480 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1481 options.
1482
1f8173e6
PH
14832004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1484
1485 Turn on initial Ada support (mainly expression evaluation).
1486
1487 * Makefile.in (SFILES): Remove ada-tasks.c.
1488 (HFILES_NO_SRCDIR): Add ada-lang.h.
1489 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1490 (YYOBJ): Add ada-exp.o.
1491 (rule .l.c): Generalize to not mention ada.
1492 * symtab.c: Include ada-lang.h.
1493 (symbol_natural_name, symbol_demangled_name)
1494 (symbol_search_name): Add Ada case.
1495
cb85a953
AC
14962004-10-01 Andrew Cagney <cagney@gnu.org>
1497
3f3db248
AC
1498 * Makefile.in (COMMON_OBS): Add inf-child.o.
1499 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1500 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1501 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1502 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1503 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1504 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1505 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1506 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1507 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1508 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1509 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1510 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1511 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1512
cb85a953
AC
1513 * target.c (xfer_using_stratum): Change return type to LONGEST.
1514 On each iteration offset, readbuf and writebuf.
1515 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1516 partial_length, and read/modify/write predicate, update comments.
1517 Pass buffer.word to ptrace write.
1518
963a6417
PH
15192004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1520
1521 * symfile.c (init_filename_language_table): Add extensions for
1522 Ada.
1523 * defs.h (enum language): Add language_ada.
1524 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1525 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1526 (add_symbols_from_enclosing_procs): Make a no-op for now.
1527 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1528 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1529 (find_line_in_linetable, find_next_line_in_linetable)
1530 (read_all_symtabs, is_plausible_func_for_line)
1531 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1532 (is_runtime_sym_defined, check_size): Remove declaration.
1533 (function_name_from_pc, ada_translate_error_message)
1534 (ada_lookup_minimal_symbol): Remove definition.
1535 (ada_add_block_symbols): Remove useless label.
1536 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1537 useless declaration.
1538 (ada_is_exception_sym): Likewise.
1539
9b32d526
KI
15402004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1541
1542 Add m32r-linux support.
1543 * configure.tgt: Add m32r*-*-linux*.
1544 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1545 and m32r-linux-tdep.c.
1546 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1547 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1548 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1549 m32r-linux-tdep.c.
1550 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1551 config/m32r/linux.mh, config/m32r/linux.mt,
1552 config/m32r/nm-linux.h: New files.
1553
2de118d3
JB
15542004-09-30 Joel Brobecker <brobecker@gnat.com>
1555
1556 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1557 (mips32_fetch_instruction): Remove, unused.
1558
a9fe69d1
JB
15592004-09-30 Joel Brobecker <brobecker@gnat.com>
1560
1561 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1562 conditions that will always be true.
1563
bc8ffc12
MK
15642004-09-30 Mark Kettenis <kettenis@gnu.org>
1565
ba0cd111
MK
1566 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1567 (vaxbsd_fetch_inferior_registers): Rename from
1568 fetch_inferior_registers. Make static.
1569 (vaxbsd_store_inferior_registers): Rename from
1570 store_inferior_registers. Make static.
1571 (_initialize_vaxbsd_nat): Construct and add target vector.
1572 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1573 inftarg.o. Add inf-child.o and inf-ptrace.o.
1574 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1575 inftarg.o. Add inf-child.o and inf-ptrace.o.
1576 (NAT_FILE): Remove.
1577 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1578 inftarg.o. Add inf-child.o and inf-ptrace.o.
1579 (NAT_FILE): Remove.
1580 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1581
bc8ffc12
MK
1582 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1583 (m88kbsd_fetch_inferior_registers): Rename from
1584 fetch_inferior_registers. Make static.
1585 (m88kbsd_store_inferior_registers): Rename from
1586 store_inferior_registers. Make static.
1587 (_initialize_m88kbsd_nat): New prototype and function.
1588 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1589 inftarg.o. Add inf-child.o and inf-ptrace.o.
1590 (NAT_FILE): Remove.
1591 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1592
27394598
AC
15932004-09-30 Andrew Cagney <cagney@gnu.org>
1594
1595 * target.c (target_xfer_partial): New function.
1596 (target_read_memory_partial, target_write_memory_partial)
1597 (default_xfer_partial, target_read_partial, target_write_partial)
1598 (xfer_using_stratum): Use.
1599 (debug_to_xfer_partial): Delete function.
1600 (setup_target_debug): Do not override to_xfer_partial.
1601
74a4fe32
MK
16022004-09-30 Mark Kettenis <kettenis@chello.nl>
1603
1604 * fork-child.c: Update copyright year. Fix coding style.
1605
982526a1
MK
16062004-09-29 Mark Kettenis <kettenis@gnu.org>
1607
1608 * defs.h (msavestring, mstrsave): Remove prototypes.
1609 * utils.c (msavestring, mstrsave): Remove functions.
1610 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1611 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1612 of mstrsave.
1613 * source.c (find_and_open_source): Use xstrdup instead of
1614 mstrsave.
1615
b8eb5af0
AC
16162004-09-30 Andrew Cagney <cagney@gnu.org>
1617
0779438d
AC
1618 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1619 (inf_ptrace_xfer_memory): Delete.
1620 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1621 (target_read_memory, target_write_memory): Use xfer_using_stratum
1622 when target_xfer_partial_p.
1623 (debug_target): Move to start of file.
1624 (target_read_memory_partial, target_write_memory_partial): Use
1625 to_xfer_partial when target_xfer_partial_p.
1626
f929a579
AC
1627 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1628 inf_ptrace_xfer_memory with equivalent code.
1629 * inftarg.c (child_xfer_partial): When performing a write, pass
1630 writebuf to child_xfer_memory.
1631
b8eb5af0
AC
1632 * target.c (target_read_string): Use target_read_memory instead of
1633 target_xfer_memory.
1634
ee21b650
AC
16352004-09-29 Andrew Cagney <cagney@gnu.org>
1636
d3e05d0d
AC
1637 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1638 the address of status.
1639
ee21b650
AC
1640 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1641 (kill_inferior): Inline ptrace_wait call.
1642 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1643 * inftarg.c (child_wait): Inline ptrace_wait call.
1644
a182eed6
AC
1645 * target.h (struct target_ops): Delete field to_post_wait.
1646 (target_post_wait): Delete macro.
1647 (child_post_wait): Delete declaration.
1648 * target.c (update_current_target, update_current_target)
1649 (debug_to_post_wait, setup_target_debug): Delete functions and
1650 references.
1651 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1652 * inftarg.c (child_post_wait): Delete.
1653 (init_child_ops): Do not set to_post_wait.
1654 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1655 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1656 * inf-child.c (inf_child_post_wait): Delete.
1657 (inf_child_target): Do not set to_post_wait.
1658 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1659 (inf_ptrace_target): Do not set to_post_wait.
1660
ba0c540b
AC
1661 * wince.c (child_ops): Delete.
1662 * win32-nat.c (child_ops): Delete.
1663
81977402
AC
1664 * inftarg.c (inftarg_set_find_memory_regions)
1665 (inftarg_set_make_corefile_notes): Delete functions.
1666 (_initialize_linux_nat): Inline calls.
1667
5ac10fd1
AC
1668 * target.h (child_ops): Declare.
1669 * inftarg.c (child_ops): Move from here ...
1670 * target.c (child_ops): ... to here.
1671 * wince.c (child_ops): Delete extern declaration.
1672 * win32-nat.c (child_ops): Delete extern declaration.
1673 * linux-nat.c (child_ops): Delete extern declaration.
1674 * hpux-thread.c (child_ops): Delete extern declaration.
1675
663408c2 16762004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1677
1678 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1679
0dad8a66
MK
16802004-09-28 Mark Kettenis <kettenis@gnu.org>
1681
1682 * configure.in: Only set host_makefile_frag when building a native
1683 debugger.
1684 * configure: Regenerate.
e8d74ed3
MK
1685
1686 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1687 for OpenBSD ELF.
1688
dba24537
AC
16892004-09-28 Andrew Cagney <cagney@gnu.org>
1690
e979516b
AC
1691 Problem identified by Paul Hilfinger.
1692 * Makefile.in (ada_lex_c): Define.
1693 (ada-lex.o): Delete rule.
1694
dba24537
AC
1695 * linux-proc.c: Delete file.
1696 * Makefile.in: Update.
1697 * config/sparc/linux64.mh (NATDEPFILES):
1698 * config/sparc/linux.mh (NATDEPFILES): Update.
1699 * config/s390/s390.mh (NATDEPFILES): Update.
1700 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1701 * config/powerpc/linux.mh (NATDEPFILES): Update.
1702 * config/pa/linux.mh (NATDEPFILES): Update.
1703 * config/mips/linux.mh (NATDEPFILES): Update.
1704 * config/m68k/linux.mh (NATDEPFILES): Update.
1705 * config/ia64/linux.mh (NATDEPFILES): Update.
1706 * config/i386/linux64.mh (NATDEPFILES): Update.
1707 * config/i386/linux.mh (NATDEPFILES): Update.
1708 * config/arm/linux.mh (NATDEPFILES): Update.
1709 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1710 * linux-nat.c: Update copyright. Include <sys/param.h>,
1711 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1712 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1713 (O_LARGEFILE): Possibly define.
1714 (_initialize_linux_nat, linux_proc_pending_signals)
1715 (add_line_to_sigset, linux_proc_xfer_memory)
1716 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1717 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1718 (struct linux_corefile_thread_data)
1719 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1720 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1721
d6b0e80f
AC
17222004-09-16 Andrew Cagney <cagney@gnu.org>
1723
1724 * lin-lwp.c: Delete file.
1725 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1726 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1727 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1728 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1729 (linux_nat_attach, detach_callback, linux_nat_detach)
1730 (resume_callback, resume_clear_callback, linux_nat_resume)
1731 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1732 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1733 (status_callback, running_callback, count_events_callback)
1734 (select_singlestep_lwp_callback, select_event_lwp_callback)
1735 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1736 (child_wait, stop_and_resume_callback, linux_nat_wait)
1737 (kill_callback, kill_wait_callback, linux_nat_kill)
1738 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1739 (linux_nat_xfer_memory, linux_nat_thread_alive)
1740 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1741 (_initialize_linux_nat): New functions.
1742 * Makefile.in: Update all dependencies.
1743 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1744 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1745 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1746 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1747 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1748 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1749 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1750 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1751 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1752 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1753 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1754 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1755 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1756
5a174d79
MK
17572004-09-27 Mark Kettenis <kettenis@gnu.org>
1758
2f604c28
MK
1759 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1760 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1761
5a174d79
MK
1762 * configure.in: Don't comment out NATDEPFILES in the generated
1763 Makefile if NAT_FILE is unset.
1764 * configure: Regenerate.
1765
b2ed1746
AC
17662004-09-27 Andrew Cagney <cagney@gnu.org>
1767
44cbf7b5
AC
1768 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1769 (insert_step_resume_breakpoint): Delete.
1770 (insert_step_resume_breakpoint_at_frame): New function.
1771 (insert_step_resume_breakpoint_at_sal): New function.
1772 (handle_inferior_event, step_into_function)
1773 (insert_step_resume_breakpoint): Simplify by using same.
1774
b2ed1746
AC
1775 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1776
3691b3be
MK
17772004-09-26 Mark Kettenis <kettenis@gnu.org>
1778
36f391e8
MK
1779 * fbsd-proc.c: Remove file.
1780 * Makefile.in (fbsd-proc.o): Remove dependency.
1781
771e236c
MK
1782 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1783 code together.
1784
3691b3be
MK
1785 * config/i386/nm-fbsd64.h: Remove file.
1786 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1787
6a5c78a3
MK
17882004-09-26 Mark Kettenis <kettenis@gnu.org>
1789
1790 * amd64-nat.h: Update copyright year.
1791 (amd64bsd_target): New prototype.
1792 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1793 (amd64bsd_target): New function.
1794 (amd64bsd_fetch_inferior_registers): Rename from
1795 fetch_inferior_registers. Make static.
1796 (amd64bsd_store_inferior_registers): Rename from
1797 store_inferior_registers. Make static.
1798 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1799 (_initialize_amd64fbsd_nat): Construct and add target vector.
1800 * amd64nbsd-nat.o: Include "target.h".
1801 (_initialize_amd64nbsd_nat): Construct and add target vector.
1802 * amd64obsd-nat.c: Include "target.h".
1803 (_initialize_amd64obsd_nat): Construct and add target vector.
1804 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1805 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1806 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1807 fbsd-nat.o.
1808 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1809 Remove infptrace.o and inftarg.o. Add inf-child.o and
1810 inf-ptrace.o.
1811 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1812 (amd64obsd-nat.o): Update dependencies.
1813
27acbe61
MK
18142004-09-25 Mark Kettenis <kettenis@gnu.org>
1815
509a5e7d
MK
1816 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1817 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1818 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1819 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1820 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1821
6e1e94ea
MK
1822 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1823 Inline attach call.
1824 (inf_ptrace_detach): Inline detach call.
1825
8b9cf735
MK
1826 * configure.in: Check for waddstr instead of mvwaddstr when
1827 searching for curses library. Check for wborder.
1828 * configure, config.in: Regenerate.
1829 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1830 available.
1831
27acbe61
MK
1832 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1833
b96ec7ac
AC
18342004-09-24 Robert Picco <Robert.Picco@hp.com>
1835
1836 Committed by Andrew Cagney.
1837 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1838 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1839 configuration.
1840 (fetch_register_using_p): Implement 'p' packet. Based on code by
1841 Fernando Nasser.
1842 (remote_fetch_registers): Call fetch_register_using_p.
1843 (init_all_packet_configs, show_remote_cmd)
1844 (_initialize_remote): Add p-packet.
1845
62ece330
MK
18462004-09-24 Mark Kettenis <kettenis@gnu.org>
1847
1848 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1849 instead of call_ptrace. Call wait directly instead of
1850 ptrace_wait.
1851 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1852 (inf_ptrace_wait): Inline ptrace_wait call.
1853
00937274
PH
18542004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1855
1856 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1857 rolled back instead.
1858
3f2c7a45
PH
18592004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1860
1861 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1862 the new argument order.
1863
b6fcb393
CV
18642004-09-23 Corinna Vinschen <vinschen@redhat.com>
1865
1866 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1867 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1868 (struct gdbarch_tdep): Remove.
1869 (struct xstormy16_frame_cache): New frame cache structure.
1870 (xstormy16_register_byte, xstormy16_register_raw_size)
1871 (xstormy16_reg_virtual_type, xstormy16_register_type)
1872 (xstormy16_push_arguments, xstormy16_push_return_address)
1873 (xstormy16_pop_frame, xstormy16_store_struct_return)
1874 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1875 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1876 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1877 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1878 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1879 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1880 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1881 (xstormy16_extract_return_value, xstormy16_store_return_value):
1882 Regcachify. Drop useless struct convention handling.
1883 (xstormy16_register_type, xstormy16_return_value)
1884 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1885 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1886 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1887 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1888 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1889 (xstormy16_unwind_dummy_id) : New functions.
1890 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1891 of xstormy16_scan_prologue.
1892 (xstormy16_frame_unwind): New frame_unwind structure.
1893 (xstormy16_frame_base): New frame_base structure.
1894 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1895 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1896
1285b746
MK
18972004-09-22 Mark Kettenis <kettenis@gnu.org>
1898
1899 * language.c (language_gdbarch_post_init): Fix off-by one error.
1900
1c379e20
DJ
19012004-09-21 Daniel Jacobowitz <dan@debian.org>
1902
1903 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1904 (struct dwarf2_offset_and_type): New.
1905 (set_die_type, reset_die_and_siblings_types, get_die_type)
1906 (offset_and_type_hash, offset_and_type_eq): New functions.
1907 (read_structure_type, read_enumeration_type, read_array_type)
1908 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1909 (read_tag_reference_type, read_tag_const_type)
1910 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1911 (read_typedef, read_base_type, read_subrange_type): Use
1912 set_die_type.
1913
ae038cb0
DJ
19142004-09-20 Daniel Jacobowitz <dan@debian.org>
1915
1916 * Makefile.in (dwarf2read.o): Update dependencies.
1917 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1918 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1919 and read_in_chain.
1920 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1921 mark, and has_form_ref_addr.
1922 (struct dwarf2_per_cu_data): New.
1923 (dwarf2_max_cache_age): New.
1924 (dwarf2_build_psymtabs_hard): Free cached compilation units
1925 after loading. Create and manage the list of compilation units.
1926 Remove unnecessary NULL initialization. Fix indentation.
1927 (psymtab_to_symtab_1): Initialize all of CU.
1928 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1929 (find_partial_die): Use dwarf2_find_containing_comp_unit
1930 and load_comp_unit.
1931 (free_stack_comp_unit): Update comments. Clear the per-cu
1932 pointer. Handle aging.
1933 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1934 (age_cached_comp_units, free_one_cached_comp_unit)
1935 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1936 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1937 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1938 (show_dwarf2_cmd): New.
1939 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1940 and "maint show dwarf2 max-cache-age".
1941 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1942 externs.
1943 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1944 global.
1945
987504bb
JJ
19462004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1947
1948 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1949 and dwarf2_cu struct pointer as arguments. Change function to use
1950 obstack if provided and use dwarf2_cu to determine language-specific
1951 separator.
1952 (partial_die_parent_scope): Change comment to include java. Use
1953 new version of typename_concat instead of obconcat.
1954 (partial_die_full_name): Use typename_concat.
1955 (read_namespace): Ditto.
1956 (read_enumeration_type): Use typename_concat instead of obconcat.
1957 (new_symbol): Ditto.
1958 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1959 (guess_structure_name): Ditto.
1960 (read_subroutine_type): Ditto.
1961 (read_structure_type): Ditto.
1962 (is_vtable_name): Add Java support.
1963 (determine_class_name): Switch to new typename_concat call.
1964 (determine_prefix): Switch to new typename_concat call.
1965 * jv-exp.y (FuncStart): New pattern.
1966 (MethodInvocation): Add support for simple function calls. Change
1967 warning message for other forms of inferior call currently not
1968 supported.
1969 * valarith.c (value_subscript): Treat an array with upper-bound
1970 of -1 as unknown size.
1971
d9c8471e
DJ
19722004-09-20 Daniel Jacobowitz <dan@debian.org>
1973
1974 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1975 (lookup_partial_symtab): Use symtab_to_fullname.
1976
d73f140a
JB
19772004-09-19 Jim Blandy <jimb@redhat.com>
1978
1979 * minsyms.c (lookup_minimal_symbol): Doc fix.
1980
adbef1f0
AC
19812004-09-20 Andrew Cagney <cagney@gnu.org>
1982
1983 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1984 CHILD_RESUME.
1985 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1986 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1987 KILL_INFERIOR.
1988 * infptrace.c: Update.
1989
d092d1a2
DJ
19902004-09-19 Daniel Jacobowitz <dan@debian.org>
1991
1992 * symtab.c (output_source_filename): Mark first argument as const.
1993 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1994 for "info sources" output.
1995
86d9e1d7
MK
19962004-09-20 Mark Kettenis <kettenis@gnu.org>
1997
1998 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1999 <machine/vmparam.h>.
2000 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2001 (register_u_addr): Remove prototype.
2002
9a6c8ef4
MK
20032004-09-19 Mark Kettenis <kettenis@gnu.org>
2004
9692934b
MK
2005 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2006 (i386bsd_fetch_inferior_registers): Rename from
2007 fetch_inferior_registers. Make static.
2008 (i386bsd_store_inferior_registers): Rename from
2009 store_inferior_registers. Make static.
2010 (i386bsd_target): New function.
2011 * i386bsd-nat.h: New file.
2012 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2013 "i386bsd-nat.h".
2014 (i386fbsd_resume): Rename from child_resume. Make static.
2015 (_initialize_i386fbsd_nat): Construct and add target vector.
2016 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2017 (_initialize_i386nbsd_nat): Construct and add target vector.
2018 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2019 Remove defines.
2020 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2021 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2022 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2023 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2024 (LOADLIBES): New variable.
2025 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2026 inf-ptrace.o. Remove inftarg.o.
2027 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2028 inf-ptrace.o. Remove inftarg.o.
2029 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2030 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2031 (LOADLIBES): New variable.
2032 * Makefile.in (i386bsd_nat_h): New variable.
2033 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2034 dependencies.
2035
3510d1f2
MK
2036 * sparc64nbsd-tdep.c: Include "objfiles.h".
2037 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2038 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2039 svr4_lp64_fetch_link_map_offsets.
2040 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2041 "nbsd-tdep.h".
2042 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2043 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2044 svr4_lp64_fetch_link_map_offsets.
2045 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2046 dependencies.
2047
578c1c03
MK
2048 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2049 * fbsd-nat.h: New file.
2050 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2051 (fbsd_nat_h): New variable.
2052 (fbsd-nat.o): New dependency.
2053
7a7b73b7
MK
2054 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2055 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2056
9a6c8ef4
MK
2057 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2058 comment.
2059
72d5681a
PH
20602004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2061
2062 * ada-exp.y (type_int): New function to add layer of abstraction
2063 around references to expression types.
2064 (type_long): Ditto.
2065 (type_long_long): Ditto.
2066 (type_float): Ditto.
2067 (type_double): Ditto.
2068 (type_long_double): Ditto.
2069 (type_char): Ditto.
2070 (type_system_address): Ditto.
2071 (simple_exp): Use type_* functions in place of builtin_*
2072 variables.
2073 (exp): Ditto.
2074 (write_var_from_name): Ditto.
2075 (write_object_renaming): Ditto.
2076 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2077 declaration.
2078 (build_ada_types): Remove, replacing with...
2079 (ada_language_arch_info): New function to initialize primitive
2080 type vector in language_arch_info.
2081 (ada_array_length): Remove use of builtin_type_ada_int.
2082 (value_pos_atr): Ditto.
2083 (ada_evaluate_subexp): Ditto.
2084 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2085 builtin_type_ada_long_long, builtin_type_ada_char,
2086 builtin_type_ada_float, builtin_type_ada_double,
2087 builtin_type_ada_long_double, builtin_type_ada_natural,
2088 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2089 (ada_builtin_types): Remove.
2090 (ada_language_defn): Remove entries for la_builtin_type_vector and
2091 string_char_type and use ada_language_arch_info.
2092 (_initialize_ada_language): Do type-vector initialization along
2093 the lines of c-lang.c.
2094 (ada_create_fundamental_type): Break up line.
2095 (ada_dump_symtab): Remove unused function.
2096 (enum ada_primitive_types): Define.
2097 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2098 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2099 builtin_type_ada_float, builtin_type_ada_double,
2100 builtin_type_ada_long_double, builtin_type_ada_natural,
2101 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2102 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2103 (processInt): Ditto.
2104 (processReal): Ditto.
2105 (name_lookup): Ditto.
2106 * ada-typeprint.c (print_range): Use builtin_type_int, not
2107 builtin_type_ada_int.
2108
4f0be353
MK
21092004-09-18 Mark Kettenis <kettenis@gnu.org>
2110
30b0e2d8
MK
2111 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2112
4f0be353
MK
2113 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2114 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2115 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2116 * configure.in: Improve checks for curses library by checking for
2117 mvwaddstr instead of initscr. Drop HP curses in favour of
2118 standard curses on HP-UX.
2119 * configure: Regenerated.
2120
72d5681a 21212004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2122
2123 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2124 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2125 Minor formatting changes.
2126 (empty_array): Slight rewrite for formatting.
2127 (emit_char,parse,ada_language_defn,build_ada_types,
2128 ada_is_exception_sym, _initialize_ada_language): Move
2129 definitions around.
2130 (ada_dump_symtab): Remove unused definition.
2131 (ada_maybe_exception_partial_symbol): Remove unused definition.
2132
1c8c7407
AC
21332004-09-16 Andrew Cagney <cagney@gnu.org>
2134
7681f339
AC
2135 * inf-child.c: Include "gdb_string.h".
2136 (inf_child_core_file_to_sym_file): Delete.
2137 (inf_child_target): Set to_fetch_registers and to_store_registers.
2138 * inf-ptrace.c: Include "gdb_string.h".
2139 * Makefile.in: Update all dependencies.
2140
1c8c7407
AC
2141 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2142 problem.
2143
65596487
JB
21442004-09-14 Joel Brobecker <brobecker@gnat.com>
2145
2146 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2147 call to heuristic_proc_desc. Remove code that became redundant
2148 as a consequence.
2149 (read_next_frame_reg): Remove special case for SP_REGNUM.
2150 (set_reg_offset): Fix small typo.
2151 (reset_saved_regs): New procedure.
2152 (mips32_heuristic_proc_desc): No longer compute a fake
2153 procedure descriptor. Compute the full frame cache instead.
2154 Some minor comment reformatting.
2155
95575b2e
AC
21562004-09-14 Andrew Cagney <cagney@gnu.org>
2157
f200c492
AC
2158 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2159 maintainer.
2160
95575b2e
AC
2161 * thread-db.c (thread_db_new_objfile): Assume that there is a
2162 child process.
2163
69657671
JB
21642004-09-13 Jim Blandy <jimb@redhat.com>
2165
2166 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2167 so that its storage isn't referenced after its lifetime ends.
2168
6c4182dd
JB
2169 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2170 and never assigned to. Delete it, and the 'if (use_buffer)'
2171 clauses. Delete 'raw_buffer', since it is now unused.
2172
ee31a58d
AC
21732004-09-13 Andrew Cagney <cagney@gnu.org>
2174
2c0fc042
AC
2175 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2176 * configure: Re-generate.
2177 * nlm/Makefile.in (TAGS): Update.
2178 * Makefile.in (TAGS): Update.
2179 * config/vax/nbsd.mt (TM_FILE): Update.
2180 * config/sparc/vxworks.mt (TM_FILE): Update.
2181 * config/sparc/sol2.mt (TM_FILE): Update.
2182 * config/sparc/sol2-64.mt (TM_FILE): Update.
2183 * config/sparc/obsd64.mt (TM_FILE): Update.
2184 * config/sparc/obsd.mt (TM_FILE): Update.
2185 * config/sparc/nbsd64.mt (TM_FILE): Update.
2186 * config/sparc/nbsd.mt (TM_FILE): Update.
2187 * config/sparc/linux64.mt (TM_FILE): Update.
2188 * config/sparc/linux.mt (TM_FILE): Update.
2189 * config/sparc/fbsd.mt (TM_FILE): Update.
2190 * config/sh/wince.mt (TM_FILE): Update.
2191 * config/sh/nbsd.mt (TM_FILE): Update.
2192 * config/sh/linux.mt (TM_FILE): Update.
2193 * config/sh/embed.mt (TM_FILE): Update.
2194 * config/s390/s390.mt (TM_FILE): Update.
2195 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2196 * config/rs6000/rs6000.mt (TM_FILE): Update.
2197 * config/rs6000/aix4.mt (TM_FILE): Update.
2198 * config/powerpc/vxworks.mt (TM_FILE): Update.
2199 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2200 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2201 * config/powerpc/obsd.mt (TM_FILE): Update.
2202 * config/powerpc/nbsd.mt (TM_FILE): Update.
2203 * config/powerpc/linux.mt (TM_FILE): Update.
2204 * config/powerpc/aix.mt (TM_FILE): Update.
2205 * config/pa/obsd.mt (TM_FILE): Update.
2206 * config/pa/linux.mt (TM_FILE): Update.
2207 * config/pa/hppahpux.mt (TM_FILE): Update.
2208 * config/pa/hppa64.mt (TM_FILE): Update.
2209 * config/pa/hppa.mt (TM_FILE): Update.
2210 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2211 * config/mips/wince.mt (TM_FILE): Update.
2212 * config/mips/vxmips.mt (TM_FILE): Update.
2213 * config/mips/nbsd.mt (TM_FILE): Update.
2214 * config/mips/linux.mt (TM_FILE): Update.
2215 * config/mips/irix6.mt (TM_FILE): Update.
2216 * config/mips/irix5.mt (TM_FILE): Update.
2217 * config/mips/embed.mt (TM_FILE): Update.
2218 * config/m68k/vxworks68.mt (TM_FILE): Update.
2219 * config/m68k/st2000.mt (TM_FILE): Update.
2220 * config/m68k/os68k.mt (TM_FILE): Update.
2221 * config/m68k/obsd.mt (TM_FILE): Update.
2222 * config/m68k/nbsd.mt (TM_FILE): Update.
2223 * config/m68k/monitor.mt (TM_FILE): Update.
2224 * config/m68k/linux.mt (TM_FILE): Update.
2225 * config/m68k/cisco.mt (TM_FILE): Update.
2226 * config/ia64/linux.mt (TM_FILE): Update.
2227 * config/ia64/aix.mt (TM_FILE): Update.
2228 * config/ia64/ia64.mt (TM_FILE): Update.
2229 * config/i386/vxworks.mt (TM_FILE): Update.
2230 * config/i386/obsd64.mt (TM_FILE): Update.
2231 * config/i386/obsd.mt (TM_FILE): Update.
2232 * config/i386/nto.mt (TM_FILE): Update.
2233 * config/i386/nbsd64.mt (TM_FILE): Update.
2234 * config/i386/nbsd.mt (TM_FILE): Update.
2235 * config/i386/linux64.mt (TM_FILE): Update.
2236 * config/i386/linux.mt (TM_FILE): Update.
2237 * config/i386/i386sol2.mt (TM_FILE): Update.
2238 * config/i386/i386lynx.mt (TM_FILE): Update.
2239 * config/i386/fbsd64.mt (TM_FILE): Update.
2240 * config/i386/fbsd.mt (TM_FILE): Update.
2241 * config/i386/cygwin.mt (TM_FILE): Update.
2242 * config/h8300/h8300.mt (TM_FILE): Update.
2243 * config/frv/frv.mt (TM_FILE): Update.
2244 * config/cris/cris.mt (TM_FILE): Update.
2245 * config/arm/wince.mt (TM_FILE): Update.
2246 * config/arm/nbsd.mt (TM_FILE): Update.
2247 * config/arm/linux.mt (TM_FILE): Update.
2248 * config/arm/embed.mt (TM_FILE): Update.
2249 * config/alpha/nbsd.mt (TM_FILE): Update.
2250 * config/alpha/fbsd.mt (TM_FILE): Update.
2251 * config/alpha/alpha.mt (TM_FILE): Update.
2252 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2253 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2254
362646f5
AC
2255 Eliminate event_loop_p, always has the value 1.
2256 * defs.h (event_loop_p): Delete macro.
2257 * breakpoint.c (until_break_command): Simplify.
2258 * utils.c (prompt_for_continue): Simplify.
2259 * tracepoint.c (read_actions): Simplify.
2260 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2261 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2262 (set_prompt, init_main): Simplify.
2263 (init_signals, disconnect): Delete, unused.
2264 * remote.c (remote_async_resume)
2265 (extended_remote_async_create_inferior): Simplify.
2266 * mi/mi-interp.c (mi_input): Delete, unused.
2267 (mi_interpreter_resume, mi_command_loop): Simplify.
2268 * interps.c (current_interp_command_loop): Simplify.
2269 * infrun.c (proceed): Simplify.
2270 * infcmd.c (run_command, continue_command, step_1, jump_command)
2271 (until_command, advance_command, finish_command)
2272 (interrupt_target_command): Simplify.
2273 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2274
ee31a58d
AC
2275 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2276 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2277 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2278 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2279 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2280 * mips-tdep.c (mips_dump_tdep): Do not print same.
2281
b7ffc4a8
AC
22822004-09-12 Andrew Cagney <cagney@gnu.org>
2283
2bfb72ee
AC
2284 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2285 const.
2286 * Makefile.in (valprint.o): Delete explict rule.
2287
4f17c3c1
AC
2288 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2289 reported by Dave Anderson.
2290
f810308b
AC
2291 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2292
b7ffc4a8
AC
2293 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2294
28b41c52
AC
22952004-09-12 Salvador E. Tropea <set@users.sf.net>
2296 Andrew Cagney <cagney@gnu.org>
2297
2298 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2299 (mi_cmd_data_list_register_values)
2300 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2301 the register number computation.
2302
5bf970f9
AC
23032004-09-12 Andrew Cagney <cagney@gnu.org>
2304
2305 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2306 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2307 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2308 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2309 target.
2310 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2311 inf-ptrace.o and inf-child.o.
2312 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2313 * Makefile.in: Update dependencies.
2314
0759e0bf
AC
23152004-09-11 Andrew Cagney <cagney@gnu.org>
2316
2317 * language.c (hex_string, hex_string_custom): Move from here ...
2318 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2319 (CELLSIZE): Increase to 50.
2320 * language.h (hex_string, hex_string_custom): Move from here ...
2321 * defs.h: ... to here.
2322 * Makefile.in: Update all dependencies.
2323
bb599908
PH
23242004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2325
2326 * language.c (local_hex_format_custom): Remove.
2327 (local_hex_string): Rename to hex_string, use C format, and move to
2328 utils.c
2329 (local_hex_string_custom): Rename to hex_string_custom and change
2330 interface. Now uses C format. Move to utils.c
2331 (local_octal_format_custom): Remove.
2332 (local_decimal_format_custom): Remove.
2333 (unknown_language_defn): Remove language-specific number
2334 formatting entries.
2335 (auto_language_defn): Ditto.
2336 (local_language_defn): Ditto.
2337 * language.h (struct language_format_info): Delete declaration.
2338 (struct language_defn): Remove language_format_info fields
2339 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2340 (local_binary_format): Remove macro.
2341 (local_binary_format_prefix): Remove macro.
2342 (local_binary_format_specifier): Remove macro.
2343 (local_binary_format_suffix): Remove macro.
2344 (local_octal_format): Remove macro.
2345 (local_octal_format_prefix): Remove macro.
2346 (local_octal_format_specifier): Remove macro.
2347 (local_octal_format_suffix): Remove macro.
2348 (local_decimal_format): Remove macro.
2349 (local_decimal_format_prefix): Remove macro.
2350 (local_decimal_format_specifier): Remove macro.
2351 (local_decimal_format_suffix): Remove macro.
2352 (local_hex_format): Remove macro.
2353 (local_hex_format_prefix): Remove macro.
2354 (local_hex_format_specifier): Remove macro.
2355 (local_hex_format_suffix): Remove macro.
2356 (local_decimal_format_custom): Remove.
2357 (local_octal_format_custom): Remove.
2358 (local_hex_format_custom): Remove.
2359 (local_hex_string): Rename to hex_string and move to defs.h.
2360 (local_hex_string_custom): Rename to hex_string_custom, change
2361 interface, and move to defs.h.
2362 * utils.c: (int_string): New function.
2363 (hex_string): New function (from language.c).
2364 (hex_string_custom): New function (from language.c).
2365 (octal2str): New function.
2366 (decimal2str): Add width parameter.
2367 (paddr_u): Use new decimal2str interface.
2368 (paddr_d): Ditto.
2369 * defs.h (hex_string): Declare.
2370 (hex_string_custom): Declare.
2371 (int_string): Declare.
2372 * printcmd.c (print_scalar_formatted): Remove localized binary
2373 formatting.
2374 * valprint.c (print_longest): Use int_string.
2375 (print_floating): Use C hex format.
2376 (print_hex_chars): Ditto.
2377 (print_binary_chars): Remove language-specific formatting.
2378 (print_octal_chars): Use C octal format.
2379 (print_decimal_chars): Delocalize format.
2380 (print_decimal): Remove.
2381 * ada-lang.c (ada_language_defn): Remove language-specific number
2382 formatting entries.
2383 * p-lang.c (pascal_language_defn): Ditto.
2384 * c-lang.c (c_language_defn): Ditto.
2385 (cplus_language_defn): Ditto.
2386 (asm_language_defn): Ditto.
2387 (minimal_language_defn): Ditto.
2388 * f-lang.c (f_language_defn): Ditto.
2389 * jv-lang.c (java_language_defn): Ditto.
2390 * m2-lang.c (m2_language_defn): Ditto.
2391 * scm-lang.c (scm_language_defn): Ditto.
2392 * objc-lang.c (objc_language_defn): Ditto.
2393 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2394 new interface.
2395 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2396 * ui-out.c (ui_out_field_core_addr): Ditto.
2397 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2398 * exec.c (print_section_info): Ditto.
2399 * i387-tdep.c (print_i387_status_word): Ditto.
2400 (print_i387_control_word): Ditto.
2401 (i387_print_float_info): Ditto.
2402 * maint.c (maint_print_section_info): Ditto.
2403 * solib.c (info_sharedlibrary_command): Ditto.
2404 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2405 * symtab.c (print_msymbol_info): Ditto.
2406 * tracepoint.c (tracepoints_info): Ditto.
2407 * solib-frv.c (lm_base): Ditto.
2408 (frv_current_sos): Ditto.
2409 (enable_break2): Ditto.
2410 (enable_break): Ditto.
2411 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2412 (process_one_symbol): Ditto.
2413 * infcmd.c (program_info): Ditto.
2414 * mdebugread.c (parse_partial_symbols): Ditto.
2415 * symfile.c (add_symbol_file_command): Ditto.
2416 * cli/cli-cmds.c (edit_command): Ditto.
2417 (list_command): Ditto.
2418 * infcall.c (call_function_by_hand): Ditto.
2419 * remote-vx.c (vx_run_files_info): Ditto.
2420 (vx_wait): Ditto.
2421 (vx_attach): Ditto.
2422 (vx_detach): Ditto.
2423 (vx_kill): Ditto.
2424 * aix-thread.c (pdc_symbol_addrs): Ditto.
2425 (pdc_read_regs): Ditto.
2426 (pdc_write_regs): Ditto.
2427 (pdc_read_data): Ditto.
2428 (pdc_write_data): Ditto.
2429 * d10v-tdep.c (display_trace): Ditto.
2430 * rs6000-nat.c (find_toc_address): Ditto.
2431 * aix-thread.c: Don't include language.h.
2432 * buildsym.c: Ditto.
2433 * dbxread.c: Ditto.
2434 * mdebugread.c: Ditto.
2435 * rs6000-nat.c: Ditto.
2436 * buildsym.c (make_blockvector): Use renamed hex_string.
2437
33f2d567
JM
24382004-09-10 Jason Molenda (jmolenda@apple.com)
2439
2440 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2441 chars after 'if' or 'while' commands in user-defined commands.
2442
7b90c3f9
JB
24432004-09-08 Jim Blandy <jimb@redhat.com>
2444
2445 Fix bug reported and analyzed by Olivier Crete:
2446 * symfile.c (copy_section_addr_info): New function.
2447 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2448 original set of address arguments, instead of handwritten code
2449 that uses one length to allocate and a different length to
2450 initialize. Use make_cleanup_free_section_addr_info.
2451 * symfile.h (copy_section_addr_info): New declaration.
2452 * utils.c: #include "symfile.h".
2453 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2454 New functions.
2455 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2456 * Makefile.in (utils.o): Update dependencies.
2457
b26a6851
AC
24582004-09-08 Andrew Cagney <cagney@gnu.org>
2459
2460 * thread-db.c (keep_thread_db): Delete.
2461 (thread_db_new_objfile, thread_db_create_inferior)
2462 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2463
be24b061
MK
24642004-09-08 Mark Kettenis <kettenis@gnu.org>
2465
f6792ef4
MK
2466 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2467 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2468 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2469 (i386_frameless_signal_p): Remove prototype.
2470 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2471 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2472 I386_SSE_NUM_REGS.
2473 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2474 instead of FP0_REGNUM.
2475 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2476 of FP0_REGNUM and FPC_REGNUM.
2477
eeefdaa7
MK
2478 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2479 (sunos_solib_create_inferior_hook): Don't call
2480 sunos_relocate_main_executable.
2481
be24b061
MK
2482 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2483 solib_svr4_fetch_link_map_offsets to
2484 svr4_ilp32_fetch_link_map_offsets.
2485 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2486 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2487 svr4_ilp32_fetch_link_map_offsets.
2488 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2489
7c679d16
JB
24902004-09-07 Jim Blandy <jimb@redhat.com>
2491
2492 * frame.h (frame_register): Doc fix.
2493
1f04aa62
AC
24942004-09-07 Andrew Cagney <cagney@gnu.org>
2495
2496 * vx-share/wait.h: Delete #ifdef USG.
2497 * utils.c (request_quit): Ditto.
2498 * tui/tui.c (tui_reset): Ditto.
2499 * remote.c: Ditto.
2500 * remote-sds.c: Ditto.
2501 * remote-rdi.c: Ditto.
2502 * mdebugread.c: Ditto.
2503 * m68klinux-nat.c: Ditto.
2504 * infttrace.c: Ditto.
2505 * infptrace.c: Ditto.
2506 * i386v-nat.c: Ditto.
2507 * exec.c: Ditto.
2508 * dbxread.c: Ditto.
2509 * core-aout.c: Ditto.
2510
90edbfbc
JB
25112004-09-05 Joel Brobecker <brobecker@gnat.com>
2512
2513 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2514 heuristic_proc_desc.
2515 (mips_insn32_frame_cache): Likewise.
2516
01f4bf2b
JB
25172004-09-04 Joel Brobecker <brobecker@gnat.com>
2518
2519 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2520 left behind by error.
2521
8511a048
JB
25222004-09-04 Joel Brobecker <brobecker@gnat.com>
2523
2524 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2525 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2526
649dfe9f
JB
25272004-09-04 Joel Brobecker <brobecker@gnat.com>
2528
2529 * config/rs6000/xm-aix4.h: Remove this file.
2530 * config/rs6000/aix4.mh (XM_FILE): Delete.
2531
6e50f889
JB
25322004-09-04 Joel Brobecker <brobecker@gnat.com>
2533
2534 * config/rs6000/xm-rs6000.h: Remove this file.
2535 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2536
b8c4aece
AC
25372004-09-03 Andrew Cagney <cagney@gnu.org>
2538
fb603883
AC
2539 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2540 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2541 only use.
2542
c9343fd1
AC
2543 * mips-tdep.c (temp_saved_regs): Delete.
2544 (set_reg_offset): Replace saved_regs parameter with this_cache.
2545 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2546 (mips32_heuristic_proc_desc): Add this_cache parameter.
2547 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2548 (after_prologue): Pass a NULL this_cache.
2549
9733cfe1
AC
2550 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2551 non-kernel trap prologues.
2552
0d5febcc
AC
2553 * mips-tdep.c (find_proc_desc): Delete function.
2554 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2555 simplify.
2556 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2557 mips_insn32_frame_cache.
2558
9733cfe1 2559 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2560 Simplify as NEXT_FRAME is NULL.
2561 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2562
177f84a3
AC
2563 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2564 local variable.
2565 (mips_skip_prologue): Update.
2566
465f7520
AC
2567 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2568 "cur_frame" parameter.
177f84a3
AC
2569 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2570 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2571
e38b8658
AC
2572 * config/vax/nm-obsd.h: Delete file.
2573 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2574 * config/vax/nm-nbsd.h: Delete file.
2575 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2576 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2577 * config/sh/nm-nbsd.h: Delete file.
2578 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2579 * config/rs6000/nm-rs6000ly.h: Delete file.
2580 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2581 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2582 * config/powerpc/nm-obsd.h: Delete file.
2583 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2584 * config/powerpc/nm-nbsd.h: Delete file.
2585 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2586 * config/pa/nm-obsd.h: Delete file.
2587 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2588 * config/mips/nm-nbsd.h: Delete file.
2589 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2590 * config/m88k/nm-obsd.h: Delete file.
2591 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2592 * config/m68k/nm-nbsd.h: Delete file.
2593 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2594 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2595 * config/i386/nm-nbsd.h: Delete file.
2596 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2597 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2598 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2599 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2600 * config/i386/nm-i386lynx.h: Delete file.
2601 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2602 * config/arm/nm-nbsd.h: Delete file.
2603 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2604 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2605
be1ed680
AC
2606 * config/i386/tm-fbsd.h: Delete file.
2607 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2608 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2609
4b392b26
AC
2610 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2611 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2612 * config/rs6000/aix4.mt (TM_FILE): Set to
2613 config/rs6000/tm-rs6000.h.
2614 * config/powerpc/tm-ppc-aix.h: Delete file.
2615 * config/powerpc/aix.mt (TM_FILE): Set to
2616 config/rs6000/tm-rs6000.h.
2617 * config/m68k/tm-linux.h: Delete file.
2618 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2619 * config/i386/tm-linux64.h: Delete file.
2620 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2621 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2622
f3219c75
AC
2623 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2624 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2625 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2626 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2627 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2628 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2629 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2630 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2631 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2632
b8c4aece
AC
2633 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2634 gdb_host_cpu.
2635
8ac2e020
JB
26362004-09-02 Joel Brobecker <brobecker@gnat.com>
2637
2638 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2639 Minor reformatting. Some code factoring.
2640
c185a355
AC
26412004-09-02 Andrew Cagney <cagney@gnu.org>
2642
63f22f0d
AC
2643 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2644 * config/vax/tm-nbsd.h: Delete file.
2645 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2646 * config/sparc/tm-vxworks.h: Delete file.
2647 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2648 * config/sparc/tm-nbsd.h: Delete file.
2649 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2650 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2651 * config/sparc/tm-linux.h: Delete file.
2652 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2653 * config/s390/tm-linux.h: Delete file.
2654 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2655 * config/pa/tm-bsd.h: Delete file.
2656 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2657 * config/m68k/tm-obsd.h: Delete file.
2658 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2659 * config/m68k/tm-nbsd.h: Delete file.
2660 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2661 * config/i386/tm-vxworks.h: Delete file.
2662 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2663 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2664 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2665 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2666 * config/i386/tm-nbsd.h: Delete file.
2667 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2668 * config/i386/tm-i386lynx.h: Delete file.
2669 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2670 * config/cris/tm-cris.h: Delete file.
2671
0f475e27
AC
2672 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2673 * configure: Re-generate.
2674 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2675 * config/arm/tm-nbsd.h: Delete file.
2676
458ed000
AC
2677 * config/powerpc/tm-ppcle-sim.h: Delete.
2678 * config/powerpc/tm-ppcle-eabi.h: Delete.
2679 * config/powerpc/tm-nbsd.h: Delete.
2680 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2681 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2682 tm-ppcle-eabi.h.
2683
f14375f3
AC
2684 * config/i386/nto.mh (NAT_FILE): Delete.
2685 * config/i386/nm-nto.h: Delete.
2686
c34d127c
AC
2687 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2688 * config/m68k/tm-os68k.h: Ditto.
2689 * config/m68k/tm-monitor.h: Ditto.
2690 * config/m68k/tm-cisco.h: Ditto.
2691 * config/m68k/st2000.mt (TM_FILE): Delete.
2692 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2693 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2694 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2695 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2696
f7f0fe03
AC
2697 * config/m68k/tm-st2000.h: Delete.
2698 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2699 * config/sparc/fbsd.mt (TM_FILE): Delete.
2700 * config/sparc/tm-fbsd.h: Delete.
2701
a2558533
AC
2702 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2703 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2704 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2705
b78960be
AC
2706 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2707 GDB_TM_FILE and GDB_XM_FILE.
2708 * gdbarch.c: Re-generate.
2709 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2710 quotes in macro definition.
2711 * configure.in: Re-generate.
2712
4d60522e
AC
2713 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2714 validating architecture methods.
2715 * gdbarch.c: Re-generate.
2716
5010d38b
AC
2717 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2718 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2719 GDB_MULTI_ARCH_PARTIAL.
2720 * gdbarch.h: Re-generate.
2721
c185a355
AC
2722 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2723 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2724 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2725 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2726 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2727 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2728 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2729 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2730 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2731 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2732 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2733 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2734
14aaa6ab
AC
27352004-09-01 Andrew Cagney <cagney@gnu.org>
2736
2737 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2738 and main_func_highpc.
2739 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2740 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2741 * nlmread.c (nlm_symfile_read): Update.
2742
a343eb3c
JB
27432004-09-01 Joel Brobecker <brobecker@gnat.com>
2744
2745 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2746 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2747 (find_proc_desc): Remove dead code.
2748
4fbbbd07
JB
27492004-09-01 Joel Brobecker <brobecker@gnat.com>
2750
2751 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2752
84acb35a
JJ
27532004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2754
2755 * observer.sh: Add struct so_list declaration.
2756 * Makefile.in: Add dependencies on observer.h for solib.c and
2757 breakpoint.c.
2758 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2759 function.
2760 (_initialize_breakpoint): Register
2761 disable_breakpoints_in_unloaded_shlib as an observer of the
2762 "solib unloaded" observation event.
2763 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2764 call decode_line_1 so unfound breakpoint errors are silent.
2765 * solib.c (update_solib_list): When a solib is discovered to have
2766 been unloaded by the program, notify all observers of the
2767 "solib unloaded" observation event.
2768
c8cd9f6c
AC
27692004-09-01 Andrew Cagney <cagney@gnu.org>
2770
2771 * frame.c: Include "objfiles.h".
2772 (inside_main_func): New function.
2773 (get_prev_frame): Use new inside_main_func.
2774 * Makefile.in (frame.o): Update dependencies.
2775 * defs.h (inside_main_func): Delete declaration.
2776 * blockframe.c (inside_main_func): Delete function.
2777
1168df01
JB
27782004-08-31 Jim Blandy <jimb@redhat.com>
2779
2780 * dwarf2read.c (is_vtable_name): New function, based on logic from
2781 read_structure_type, but passing the correct length to strncmp,
2782 and using 'sizeof' instead of 'strlen'.
2783 (read_structure_type): Call it.
2784
f14f9744
JB
27852004-08-31 Joel Brobecker <brobecker@gnat.com>
2786
2787 * config/powerpc/aix.mh: Add comment.
2788
386d4518
PG
27892004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2790
2791 * MAINTAINERS: Add self to Write-After-Approval.
2792
7d97d5e2
MI
27932004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2794
2795 * MAINTAINERS: Add self to Write-After-Approval.
2796
68f53502
AC
27972004-08-30 Andrew Cagney <cagney@gnu.org>
2798
2799 Fix PR breakpoints/1757.
2800 * infrun.c (struct execution_control_state): Replace
2801 remove_breakpoints_on_following_step with
2802 step_after_step_resume_breakpoint.
2803 (init_execution_control_state): Update.
2804 (handle_inferior_event): For signals, when stepping off a
2805 breakpoint, set step_after_step_resume_breakpoint. When
2806 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2807 (keep_going): Delete code handling
2808 remove_breakpoints_on_following_step.
2809
7ca2d3a3
DL
28102004-08-29 David Lecomber <david@streamline-computing.com>
2811
2812 Fix PR gdb/648
2813 * language.h (enum array_ordering): New enum.
2814 * language.h (struct language_defn): New la_array_ordering
2815 attribute.
2816 * language.c (unknown_language_defn, auto_language_defn)
2817 (local_language_defn): Ditto.
2818 * ada-lang.c (ada_language_defn): Ditto.
2819 * c-lang.c (c_language_defn, cplus_language_defn)
2820 (asm_language_defn, minimal_language_defn): Ditto.
2821 * f-lang.c (f_language_defn): Ditto.
2822 * jv-lang.c (java_language_defn): Ditto.
2823 * m2-lang.c (f_language_defn): Ditto.
2824 * objc-lang.c (objc_language_defn): Ditto.
2825 * p-lang.c (pascal_language_defn): Ditto.
2826 * scm-lang.c (scm_language_defn): Ditto.
2827 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2828 oriented large to small in type structure.
2829 * dwarf2read.c (read_array_order): New function.
2830 (read_array_type): Use read_array_order to check row/column
2831 major ordering.
2832
e354df01
NW
28332004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2834
2835 * target.c (target_resize_to_sections): Check
2836 current_target.to_sections for an old value when updating.
2837
9185ddce
JB
28382004-08-27 Joel Brobecker <brobecker@gnat.com>
2839
2840 * procfs.c (dbx_link_bpt_addr): New static global variable.
2841 (dbx_link_shadow_contents): New static global variable.
2842 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2843 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2844 if we just hit it.
2845 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2846 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2847 from run to run.
2848 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2849 after the inferior has been forked.
2850 (remove_dbx_link_breakpoint): New function.
2851 (dbx_link_addr): New function.
2852 (insert_dbx_link_bpt_in_file): New function.
2853 (insert_dbx_link_bpt_in_region): New function.
2854 (insert_dbx_link_breakpoint): New function.
2855 (proc_trace_syscalls_1): New function, extracted from
2856 proc_trace_syscalls.
2857 (proc_trace_syscalls): Replace extract code by call to
2858 proc_trace_syscalls_1.
2859 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2860 is no longer valid.
2861
e6742ace
JB
28622004-08-25 Jim Blandy <jimb@redhat.com>
2863
2864 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2865
8fb3e588
AC
28662004-08-25 Andrew Cagney <cagney@gnu.org>
2867
629a41ee
AC
2868 * infrun.c (struct execution_control_state): Delete field
2869 "stepping_through_sigtramp".
2870 (init_execution_control_state): Do not set same.
2871 (context_switch): Do not pass same to save_infrun_state and
2872 load_infrun_state.
2873 * gdbthread.h (struct thread_info): Delete field
2874 stepping_through_sigtramp.
2875 (save_infrun_state, load_infrun_state): Delete parameter
2876 stepping_through_sigtramp.
2877 * thread.c (load_infrun_state, save_infrun_state): Update.
2878
8fb3e588
AC
2879 * infrun.c: Re-indent. Move expression operators to the beginning
2880 of the line. Remove long disabled #if 0 code.
2881
49c54768
AC
28822004-08-24 Andrew Cagney <cagney@gnu.org>
2883
2884 * doublest.h (floatformat_ieee_quad): Rename
2885 floatformat_ia64_quad.
2886 * doublest.c (floatformat_ieee_quad): Rename
2887 floatformat_ia64_quad.
2888 (_initialize_doublest): Update.
2889
5ca2e327
JB
28902004-08-24 Jim Blandy <jimb@redhat.com>
2891
87808bd6
JB
2892 * dwarf2expr.h (struct dwarf_expr_context): New members
2893 'num_pieces' and 'pieces', for returning the result of an
2894 expression that uses DW_OP_piece.
2895 (struct dwarf_expr_piece): New struct type.
2896 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2897 pieces.
2898 (free_dwarf_expr_context): Free pieces, if any.
2899 (add_piece): New function.
2900 (execute_stack_op): Implement DW_OP_piece.
2901 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2902 expression is a list of pieces, print an error message.
2903 (dwarf2_loc_desc_needs_frame): If the expression yields
2904 pieces, and any piece is in a register, then we need a frame.
2905
5ca2e327
JB
2906 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2907 the stack until we've decided what sort of result the evaluation
2908 has produced. Use separate variables, with more specific names.
2909
2afeb6b8
RE
29102004-08-23 Richard Earnshaw <rearnsha@arm.com>
2911
2912 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2913 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2914 (arm_netbsd_init_abi_common): Register them.
2915
5885ab49
MK
29162004-08-22 Mark Kettenis <kettenis@gnu.org>
2917
fda820a6
MK
2918 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2919
1c5bf419
MK
2920 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2921 safe_frame_unwind_memory instead of target_read_memory.
2922
8cbba7c8
MK
2923 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2924 Reorder includes.
2925 (fetch_register, store_register): Remove prototypes.
2926 (child_resume): Reorganize code and comments such that it is
2927 grouped a bit more logically.
2928 (attach): Explicitly compare errno against 0.
2929 (detach): Likewise. Use perror_with_name instead of
2930 print_sys_errmsg.
2931 * Makefile.in (infptrace.o): Update dependencies.
2932
c5fa4245
MK
2933 * ia64-linux-nat.c: Update copyright year.
2934 (fetch_debug_register, store_debug_register)
2935 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2936 PTRACE_TYPE_ARG3.
2937 * config/ia64/nm-linux.h: Update copyright year.
2938 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2939
387c058c
MK
2940 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2941 from CORE_ADDR to struct frame_info *. Use
2942 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2943 (amd64_linux_sigtramp_p): Adjust for changed signature of
2944 and64_linux_sigtramp_start
2945
277215a6
MK
2946 * gdb_ptrace.h: GNU/Linux.
2947
25f6178e
MK
2948 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2949 Remove defines.
2950
652fc137
MK
2951 * infptrace.c: Include "gdb_assert.h".
2952 (PTRACE_XFER_TYPE): Remove define.
2953 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2954 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2955 Tweak comment.
2956 (fetch_inferior_registers, store_inferior_registers): Remove
2957 redundant culry braces. Tweak comment. s/regno/regnum.
2958 * Makefile.in (infptrace.o): Update dependencies.
2959
5885ab49
MK
2960 * configure.in: Change test for return type of ptrace to default
2961 to `long' instead of `int'.
2962 * configure: Regenerate.
2963
11003ae3
MK
29642004-08-21 Mark Kettenis <kettenis@gnu.org>
2965
6b95110c
MK
2966 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2967
bcb3dc3d
MK
2968 * configure.in: Check for ttrace function.
2969 * configure, config.in: Regenerate.
2970
11003ae3
MK
2971 * gdb_ptrace.h: New file.
2972 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2973 <sys/ptrace.h>.
2974 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2975 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2976 (attach): Don't define PT_ATTACH.
2977 (detach): Don't define PT_DETACH.
2978 * Makefile.in (gdb_ptrace_h): New variable.
2979 (infptrace.o): Update dependencies.
2980
f8707cac
MK
29812004-08-16 Mark Kettenis <kettenis@gnu.org>
2982
2983 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2984 instead of `int' if not already defined.
2985 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2986 PTRACE_TYPE_ARG3.
2987 * infptrace.c (call_ptrace): Revert change that replaced
2988 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2989
655c5466
MK
29902004-08-15 Mark Kettenis <kettenis@gnu.org>
2991
156e5ba7
MK
2992 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2993 Remove defines.
2994
de9a9e51
MK
2995 * linux-nat.c (kill_inferior): Add missing third and fourth
2996 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2997
88800403
MK
2998 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2999 PTRACE_TYPE_RET.
3000
849a1d7c
MK
3001 * proc-why.c (proc_prettyfprint_why): Fix format string.
3002
61ad16d1
MK
3003 * solib-osf.c (osf_current_sos): Remove unsused label.
3004
a6ed5501
MK
3005 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3006 curses headers.
3007 * configure, config.in: Regenerate.
3008 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3009 <ncurses/ncurses.h>.
3010
016ddeca
MK
3011 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3012 * config/nm-nbsd.h: Update copyright year.
3013 (PTRACE_ARG3_TYPE): Remove define.
3014
49ec097f
MK
3015 * sparc-nat.c (fetch_inferior_registers)
3016 (store_inferior_registers, sparc_xfer_wcookie):
3017 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3018
9f8e0089
MK
3019 * alphabsd-nat.c (fetch_inferior_registers):
3020 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3021 PTRACE_TYPE_ARG3.
3022 * amd64bsd-nat.c (fetch_inferior_registers)
3023 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3024 PTRACE_TYPE_ARG3.
3025 * armnbsd-nat.c: Update copyright year.
3026 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3027 (store_register, store_regs, store_fp_register, store_fp_regs):
3028 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3029 * hppabsd-nat.c (fetch_inferior_registers)
3030 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3031 PTRACE_TYPE_ARG3.
3032 * i386bsd-nat.c (fetch_inferior_registers)
3033 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3034 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3035 * m68kbsd-nat.c (fetch_inferior_registers)
3036 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3037 PTRACE_TYPE_ARG3.
3038 * m88kbsd-nat.c (fetch_inferior_registers)
3039 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3040 PTRACE_TYPE_ARG3.
3041 * mipsnbsd-nat.c: Update copyright year.
3042 (fetch_inferior_registers, store_inferior_registers):
3043 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3044 * ns32knbsd-nat.c: Update copyright year.
3045 (fetch_inferior_registers, store_inferior_registers):
3046 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3047 * ppcnbsd-nat.c (fetch_inferior_registers):
3048 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3049 PTRACE_TYPE_ARG3.
3050 * ppcobsd-nat.c (fetch_inferior_registers):
3051 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3052 PTRACE_TYPE_ARG3.
3053 * shnbsd-nat.c: Update copyright year.
3054 (fetch_inferior_registers, store_inferior_registers):
3055 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3056 * vaxbsd-nat.c (fetch_inferior_registers)
3057 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3058 PTRACE_TYPE_ARG3.
3059
655c5466
MK
3060 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3061 PTRACE_TYPE_ARG3.
3062 * infptrace.c (call_ptrace, child_resume, attach, detach)
3063 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3064 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3065 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3066 PTRACE_TYPE_ARG3.
3067
c40d0d10
MK
30682004-08-14 Mark Kettenis <kettenis@gnu.org>
3069
5cb0ff31
MK
3070 * defs.h: Remove out-of-date comment.
3071 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3072 [!GETENV_PROVIDED] (getenv): Remove prototype.
3073
5f0f34cb
MK
3074 * standalone.c: Remove file.
3075 * Makefile.in (standalone.o): Remove dependency.
3076
7532965f
MK
3077 * i386-linux-nat.c (dummy_sse_values): Remove function and
3078 prototype.
3079 (i386_linux_dr_get): Fix typo in comment.
3080 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3081
1bdc6c53
MK
3082 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3083
c40d0d10
MK
3084 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3085 from declaration.
3086 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3087 from definition.
3088
64218d3e
MK
30892004-08-13 Mark Kettenis <kettenis@gnu.org>
3090
3091 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3092 parenthesis in definition.
3093 * configure: Regenerated.
3094
926c94e7
MC
30952004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3096
3097 * PROBLEMS: Mention build/1411.
3098
69489883
NN
30992004-08-09 Robert Millan <robertmh@gnu.org>
3100
3101 Committed by Nathanael Nerode.
3102 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3103 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3104
ebb7c577
AC
31052004-08-12 Andrew Cagney <cagney@gnu.org>
3106
3107 * NEWS: Mention fixes in GDB 6.2.1.
3108 * PROBLEMS: Remove mention of mips-irix.
3109
232d697c
JB
31102004-08-11 Joel Brobecker <brobecker@gnat.com>
3111
3112 * config/powerpc/xm-aix.h: Delete.
3113 * config/powerpc/aix.mh (MH_FILE): Remove.
3114 * config/powerpc/aix432.mh (MH_FILE): Remove.
3115
72f4e82b
JB
31162004-08-11 Joel Brobecker <brobecker@gnat.com>
3117
3118 * config/powerpc/aix.mh: Remove obsolete comment.
3119 * config/powerpc/aix432.mh: Likewise.
3120
0687ccb2
JB
31212004-08-11 Joel Brobecker <brobecker@gnat.com>
3122
3123 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3124
dbf3ada7
JB
31252004-08-11 Joel Brobecker <brobecker@gnat.com>
3126
e08e1886
JB
3127 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3128 this file is now empty.
3129 * config/xm-aix4.h: Remove, this file is no longer included
3130 anywhere.
3131
31322004-08-11 Joel Brobecker <brobecker@gnat.com>
3133
3134 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3135 that file is now empty.
dbf3ada7
JB
3136 (termdef): Remove prototype, function no longer used.
3137
4c525ef6
JB
31382004-08-11 Joel Brobecker <brobecker@gnat.com>
3139
3140 * doc/gdbint.texinfo (Host Definition): Remove documentation
3141 for USE_O_NOCTTY, no longer used.
3142 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3143 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3144
82e0b968
JB
31452004-08-11 Joel Brobecker <brobecker@gnat.com>
3146
3147 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3148 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3149 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3150
f2acbe1c
MK
31512004-08-11 Mark Kettenis <kettenis@gnu.org>
3152
daa98270
MK
3153 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3154 instead of FIVE_ARG_PTRACE.
3155
f2acbe1c
MK
3156 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3157 (new_tty): Use O_NOCTTY unconditionally.
3158
cc377e6b
MK
31592004-08-10 Mark Kettenis <kettenis@gnu.org>
3160
3161 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3162 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3163 fflush on stdout.
3164
3bcc18fa
JB
31652004-08-10 Joel Brobecker <brobecker@gnat.com>
3166
3167 * xcoff_symfile_finish: Replace last call to xmfree by call
3168 to xfree.
3169
7936743b
AC
31702004-08-10 Andrew Cagney <cagney@gnu.org>
3171
cc503c8a
AC
3172 * main.c (captured_main): Delete call to init_malloc.
3173 * defs.h (init_malloc): Delete declaration.
3174 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3175 (init_malloc): Delete functions.
3176
2dc74dc1
AC
3177 * defs.h (xmfree): Delete.
3178 * utils.c (xmfree): Delete function.
3179 (xfree): Inline calls to xmfree and mfree.
3180 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3181 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3182 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3183 * somread.c (som_symfile_finish): Ditto.
3184 * objfiles.c (allocate_objfile, free_objfile):
3185 * nlmread.c (nlm_symfile_finish): Ditto.
3186 * hpread.c (hpread_symfile_finish): Ditto.
3187 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3188 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3189 * coffread.c (coff_symfile_finish): Ditto.
3190
aa2ee5f6
AC
3191 * defs.h (xmcalloc): Delete declaration.
3192 * utils.c (xmcalloc): Delete.
3193 (xcalloc): Inline calls to xmcalloc and mcalloc.
3194 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3195 xcalloc and xfree.
3196 * symtab.c (create_demangled_names_hash): Ditto.
3197
0efffb96
AC
3198 * defs.h (xmrealloc): Delete.
3199 * utils.c (xmrealloc): Delete.
3200 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3201 * symmisc.c (extend_psymbol_list): Use xrealloc.
3202 * source.c (find_source_lines): Ditto.
3203 * hpread.c (hpread_lookup_type): Ditto.
3204 * dbxread.c (add_bincl_to_list): Ditto.
3205
7936743b
AC
3206 * utils.c (xmmalloc): Delete.
3207 (xmalloc): Inline xmmalloc and mmalloc calls.
3208 (msavestring): Use xmalloc.
3209 * defs.h (xmmalloc): Delete declaration.
3210 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3211 xmmalloc.
3212 * symmisc.c (extend_psymbol_list): Ditto.
3213 * symfile.c (init_psymbol_list): Ditto.
3214 * source.c (find_source_lines): Ditto.
3215 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3216 * elfread.c (elf_symtab_read): Ditto.
3217 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3218 * coffread.c (coff_symfile_init): Ditto.
3219
252ab814
DC
32202004-08-10 David Carlton <carlton@bactrian.org>
3221
3222 * MAINTAINERS: Remove David Carlton from c++ testsuite
3223 maintainers.
3224
8f5ba92b
JG
32252004-08-10 Jerome Guitton <guitton@gnat.com>
3226
3227 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3228 print a line feed before the prompt.
3229
21749010
MK
32302004-08-10 Mark Kettenis <kettenis@gnu.org>
3231
3232 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3233
1f011ce2
JB
32342004-08-09 Joel Brobecker <brobecker@gnat.com>
3235
3236 General cleanup of the AIX xm include file:
3237 * config/xm-aix4.h (fd_set): Remove undefine.
3238 Remove include of <sys/select.h>.
3239 (HAVE_TERMIO): Remove define.
3240 (USG): Likewise.
3241 (NULL): Remove redefine.
3242 (alloca): Remove #pragma.
3243 (vfork): Remove define.
3244 (termdef): Remove.
3245 (SIGWINCH_HANDLER): Remove.
3246 (SIGWINCH_HANDLER_BODY): Remove.
3247
cf4e7692
MK
32482004-08-09 Mark Kettenis <kettenis@gnu.org>
3249
3250 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3251 GDB_OSABI_OPENBSD_ELF.
3252
ac5754fa
MK
32532004-08-07 Robert Millan <robertmh@gnu.org>
3254
3255 * bsd-kvm.c: Check for nlist.h before including it.
3256
086ec9eb
MK
32572004-08-09 Mark Kettenis <kettenis@gnu.org>
3258
bbe06c74
MK
3259 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3260 sigcontext' offset consistency checks for ancient BSD.
3261
3aa7b3b3
MK
3262 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3263
086ec9eb
MK
3264 * configure.in: Check for <sys/types.h>. Check return and
3265 argument types of ptrace.
3266 * configure, config.in: Regenerate.
3267
09991fa0
JB
32682004-08-09 Jim Blandy <jimb@redhat.com>
3269
3270 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3271 rs6000_register_sim_regno): Doc fixes.
3272
fed7ba43
JB
32732004-08-08 Joel Brobecker <brobecker@gnat.com>
3274
3275 * mips-tdep.c: Include "floatformat.h".
3276 (n32n64_floatformat_always_valid): New function.
3277 (floatformat_n32n64_long_double_big): New constant.
3278 (mips_gdbarch_init): Set size and format of long double
3279 for N32 and N64 ABIs.
3280 * Makefile.in (mips-tdep.o): Update dependencies.
3281
456fcf94
AC
32822004-08-08 Andrew Cagney <cagney@gnu.org>
3283
2f9b146e
AC
3284 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3285 print. Improve script's error messages.
3286 * gdbarch.h: Re-generate.
3287
456fcf94
AC
3288 * gdbarch.sh (pformat): New function.
3289 (float_format, double_format, long_double_format): List with bit
3290 members. Use pformat when printing.
3291 * gdbarch.c, gdbarch.h: Re-generate.
3292
69e9e646
NW
32932004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3294
3295 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3296 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3297 (ppcnbsd_supply_pcb): New function.
3298 (_initialize_ppcnbsd_nat): New prototype and function.
3299 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3300 (LOADLIBES): New variable.
3301 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3302
5ef2d0aa
AC
33032004-08-08 Andrew Cagney <cagney@gnu.org>
3304
3305 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3306 (builtin_type_ieee_double, builtin_type_ia64_quad)
3307 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3308 BE/LE floating-point types.
3309 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3310 (builtin_type_ieee_double, builtin_type_ia64_quad)
3311 (builtin_type_ia64_spill): Declare.
3312 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3313 (floatformat_ieee_double, floatformat_arm_ext)
3314 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3315 of LE/BE floatformats.
3316 * doublest.h: (struct floatformat, floatformat_ieee_single)
3317 (floatformat_ieee_double, floatformat_arm_ext)
3318 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3319
5c7f2947
MK
33202004-08-08 Mark Kettenis <kettenis@gnu.org>
3321
ecac404d
MK
3322 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3323
9b8607ce
MK
3324 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3325 instead of regcache_raw_supply when storing the registers.
3326
f6052080
MK
3327 * i386gnu-nat.c: Update copyright year.
3328 (gnu_store_registers): Don't use deprecated_registers and
3329 deprecated_registers_valid. Use regcache_valid_p and
3330 regcache_raw_supply instead.
3331
17777823
MK
3332 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3333 frame_pc_unwind.
3334
5240ceac
MK
3335 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3336 variables. Incapitalized "process".
3337
5c7f2947
MK
3338 * configure.in: Add cursesX to the list of possible curses libs.
3339 Add cursesX.h to the list of possible curses headers.
3340 * configure, config.in: Regenerate.
3341
da7d81e3
NW
33422004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3343
3344 * configure.in: Test for struct lwp in <sys/lwp.h>.
3345 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3346 the offset of l_addr in struct lwp.
3347
7f245d65
NW
33482004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3349
3350 * bsd-kvm.c: Include "gdbcore.h"
3351 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3352
47b3f456
AC
33532004-08-07 Andrew Cagney <cagney@gnu.org>
3354
70bd8e24
AC
3355 * gdbtypes.c (build_flt, build_complex): New functions.
3356 (gdbtypes_post_init): Use.
3357
9b0dea39
AC
3358 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3359
5cf7abac
AC
3360 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3361 through to builtin_type_uint128.
3362
64d2b26d
AC
3363 * c-exp.y: Use builtin_type function to obtain builtin types.
3364
7ad6570d
AC
3365 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3366 builtin_uint128.
3367 * gdbtypes.c (gdbtypes_post_init): Update.
3368 (build_gdbtypes): Move initialization of builtin_type_int0
3369 through to builtin_type_uint128 from here ...
3370 (_initialize_gdbtypes): ... to here.
3371 * d10v-tdep.c (d10v_register_type): Update.
3372
47b3f456
AC
3373 * doublest.c: Update copyright.
3374 (floatformat_from_length): Call error when floatformat is NULL.
3375 (extract_floating_by_length): Remove NULL fmt check.
3376 (store_floating_by_length): Ditto.
3377
0a8146bf
AC
33782004-08-07 Andrew Cagney <cagney@gnu.org>
3379
3380 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3381 that the register is valid.
3382
c0ccb908
MK
33832004-08-05 Mark Kettenis <kettenis@chello.nl>
3384
8e6bed05
MK
3385 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3386 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3387 struct frame_info *. Use safe_frame_unwind_memory instead of
3388 deprecated_read_memory_nobpt.
3389 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3390 changed signature of i386_linux_sigtramp_start and
3391 i386_linux_rt_sigtramp_start.
3392
24f9f5e3
MK
3393 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3394 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3395 instead of deprecated_read_memory_nobpt.
3396 (i386nbsd_sigtramp_p): Adjust for changed signature of
3397 i386nbsd_sigtramp_offset.
3398
c822af0c
MK
3399 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3400 safe_frame_unwind_memory instead of target_read_memory.
3401
c0ccb908
MK
3402 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3403 !NO_SYS_FILE.
3404 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3405 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3406 (_initialize_kernel_u_addr): Remove prototype and function.
3407 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3408 !NO_SYS_FILE.
3409 * xcoffread.c: Likewise.
3410
b9e1c0d6
MK
34112004-08-06 Mark Kettenis <kettenis@gnu.org>
3412
3413 * vax-nat.c: New file.
3414 * vaxbsd-nat.c: Tweak comment.
3415 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3416 vaxnbsd-tdep.c.
3417 (vax-nat.o): New dependency.
3418 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3419 (vax-*-ultrix2*): Remove.
3420 * config/vax/vax.mh: New file.
3421 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3422 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3423 (vax_register_u_addr): New prototype.
3424 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3425 * config/vax/vaxult2.mh: Remove file.
3426 * config/vax/vaxult.mh: Remove file.
3427 * config/vax/vaxbsd.mh: Remove file.
3428 * config/vax/vax.mt (TM_FILE): Remove.
3429 * config/vax/tm-vaxbsd.h: Remove file.
3430
9ad7bec7
JB
34312004-08-06 Joel Brobecker <brobecker@gnat.com>
3432
3433 * aix-thread.c (get_signaled_thread): New function.
3434 (iter_trap): Delete, no longer used.
3435 (iter_tid): New function.
3436 (pd_update): Find the thread that received the SIGTRAP signal
3437 by first locating the kernel thread, and then finding its
3438 associated thread.
3439
bf0d233d
UW
34402004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3441
3442 * lin-lwp.c (child_wait): Continue inferior after processing
3443 PTRACE_EVENT_CLONE event.
3444
d0f853e1
NN
34452004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3446
3447 * MAINTAINERS: Add self to Write-After-Approval.
3448
ab14aeb0
JJ
34492004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3450
3451 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3452 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3453
9c8dbfa9
AC
34542004-08-05 Andrew Cagney <cagney@gnu.org>
3455
c8f3ca46
AC
3456 * config/xm-sysv4.h: Delete file.
3457 * config/mips/xm-irix5.h: Delete file.
3458 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3459 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3460 * config/ia64/xm-aix.h: Delete file.
3461 * config/ia64/aix.mh (XM_FILE): Delete.
3462 * config/pa/xm-hppah.h: Delete file.
3463 * config/pa/hpux11w.mh (XM_FILE): Delete.
3464 * config/pa/hpux11.mh (XM_FILE): Delete.
3465 * config/pa/hpux1020.mh (XM_FILE): Delete.
3466 * config/pa/hppahpux.mh (XM_FILE): Delete.
3467
5f7daaff
AC
3468 * config/alpha/xm-alphalinux.h: Delete file.
3469 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3470 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3471 * config/alpha/xm-alphaosf.h: Delete file.
3472 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3473 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3474 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3475 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3476
69babf95
AC
3477 * config/i386/xm-i386v.h: Delete file.
3478 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3479 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3480 * config/i386/xm-i386sco.h: Delete file.
3481 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3482 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3483 * config/i386/xm-i386v4.h: Delete file.
3484 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3485 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3486 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3487 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3488
6f009c8a
AC
3489 * config/vax/xm-vax.h: Delete file.
3490 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3491 * config/vax/xm-vaxult2.h: Delete file.
3492 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3493 * config/vax/vaxult2.mh (XM_FILE): Delete.
3494 * config/vax/xm-vaxult.h: Delete file.
3495 * config/vax/vaxult.mh (XM_FILE): Delete.
3496 * config/vax/xm-vaxbsd.h: Delete file.
3497 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3498
9c8dbfa9
AC
3499 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3500 * gdbarch.h, gdbarch.c: Re-generate.
3501 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3502 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3503 * frame.h: Delete deprecated_read_fp from comments.
3504 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3505 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3506
84367a3e
MK
35072004-08-04 Mark Kettenis <kettenis@gnu.org>
3508
9c8e3411
MK
3509 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3510 trampoline in OpenBSD 3.5-current.
3511
b87bc0d8
MK
3512 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3513 SSE registers.
3514
84367a3e
MK
3515 * Makefile.in: Remove embedded page breaks.
3516
a44bddec
JB
35172004-08-04 Jim Blandy <jimb@redhat.com>
3518
7ab3286f
JB
3519 * regcache.c (regcache_raw_read): Assert that, after calling
3520 target_fetch_registers, the register we're reading is cached.
3521
a44bddec
JB
3522 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3523 a call to 'internal_error', with a more helpful error message.
3524 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3525 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3526
35124113
AC
35272004-08-04 Andrew Cagney <cagney@gnu.org>
3528
3529 * Makefile.in: Update dependencies.
3530
9f643768
JB
35312004-08-04 Jim Blandy <jimb@redhat.com>
3532
6ced10dd
JB
3533 Change the layout of the PowerPC E500 raw register cache to allow
3534 the lower 32-bit halves of the GPRS to be their own raw registers,
3535 not pseudoregisters.
3536 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3537 add ppc_ev0_upper_regnum flag.
3538 * rs6000-tdep.c: #include "reggroups.h".
3539 (spe_register_p): Recognize the ev upper half registers as SPE
3540 registers.
3541 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3542 registers.
3543 (e500_move_ev_register): New function.
3544 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3545 vector registers are the pseudo-registers now, formed by splicing
3546 together the gprs and the upper-half registers.
3547 (e500_register_reggroup_p): New function.
3548 (P): Macro deleted.
3549 (P8, A4): New macro.
3550 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3551 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3552 macros.
3553 (registers_e500): Rearrange register set so that the raw register
3554 set contains 32-bit GPRs and upper-half registers, and the SPE
3555 vector registers become pseudo-registers.
3556 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3557 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3558 register numbers are now the same for the E500 as they are for
3559 other PowerPC variants. Register e500_register_reggroup_p as the
3560 register group function for the E500.
3561 * Makefile.in (rs6000-tdep.o): Update dependencies.
3562
3563 Adapt PPC E500 native support to the new raw regcache layout.
3564 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3565 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3566 (fetch_spe_register, store_spe_register): Handle fetching/storing
3567 all the SPE registers at once, if regno == -1. These now take
3568 over the job of fetch_spe_registers and store_spe_registers.
3569 (fetch_spe_registers, store_spe_registers): Deleted.
3570 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3571 unconditionally; they're always raw. Fetch/store SPE upper half
3572 registers, if present, instead of ev registers.
3573 (fetch_register, store_register): Remove sanity checks: gprs are
3574 never pseudo-registers now, so we never need to even mention any
3575 registers that are ever pseudoregisters.
3576
9f643768
JB
3577 Use a fixed register numbering when communicating with the PowerPC
3578 simulator.
3579 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3580 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3581 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3582 New functions.
3583 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3584 init_sim_regno_table.
3585 * Makefile.in (gdb_sim_ppc_h): New variable.
3586 (rs6000-tdep.o): Update dependencies.
3587
1e2279c8
AC
35882004-08-02 Andrew Cagney <cagney@gnu.org>
3589
1d94326f
AC
3590 * cris-tdep.c (cris_register_size): Restore function, still used
3591 locally.
3592
331ae7ed
AC
3593 * gdbarch.sh (deprecated_target_read_fp)
3594 (deprecated_frame_locals_address, deprecated_frame_args_address)
3595 (deprecated_frame_chain_valid, deprecated_frame_chain)
3596 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3597 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3598 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3599 * gdbarch.h, gdbarch.c: Re-generate.
3600 * regcache.c (deprecated_read_fp): Do not call
3601 DEPRECATED_TARGET_READ_FP_P.
3602 * infcmd.c (default_print_registers_info): Do not call
3603 DEPRECATED_DO_REGISTERS_INFO.
3604 * frame-base.c (default_frame_locals_address): Do not call
3605 DEPRECATED_FRAME_LOCALS_ADDRESS.
3606 (default_frame_args_address): Do not call
3607 DEPRECATED_FRAME_ARGS_ADDRESS.
3608
1e2279c8
AC
3609 * gdbarch.sh (deprecated_register_raw_size)
3610 (deprecated_register_virtual_size:int): Delete.
3611 * gdbarch.h, gdbarch.c: Re-generate.
3612 * cris-tdep.c (cris_register_size): Delete.
3613 (cris_gdbarch_init): Update.
3614 * alpha-tdep.c (alpha_register_raw_size)
3615 (alpha_register_virtual_size): Delete.
3616 (alpha_gdbarch_init): Update.
3617
a90c06b4
AC
3618 * gdbarch.sh (deprecated_register_virtual_type)
3619 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3620 (deprecated_dummy_write_sp): Delete.
3621 * gdbarch.h, gdbarch.c: Re-generate.
3622
f42accbe
AC
3623 * gdbarch.sh (deprecated_register_bytes): Delete.
3624 * gdbarch.h, gdbarch.c: Re-generate.
3625 * regcache.c (deprecated_register_bytes): New function.
3626 * regcache.h (deprecated_register_bytes): Declare.
3627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3628 * v850-tdep.c (v850_gdbarch_init): Update.
3629 * sh64-tdep.c (sh64_gdbarch_init): Update.
3630 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3631 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3632 * mcore-tdep.c (mcore_gdbarch_init): Update.
3633 * cris-tdep.c (cris_gdbarch_init): Update.
3634 * arm-tdep.c (arm_gdbarch_init): Update.
3635 * remote.c (init_remote_state): Update.
3636 * remote-vx.c (vx_prepare_to_store): Update.
3637 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3638 * irix5-nat.c (fetch_core_registers): Update.
3639 * cris-tdep.c (cris_register_bytes_ok): Update.
3640 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3641
45c9dd44
AC
3642 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3643 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3644 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3645 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3646 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3647 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3648 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3649 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3650 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3651 with mips_insn16 and mips_insn32.
3652
3acba339
AC
3653 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3654 * rs6000-tdep.c (rs6000_push_dummy_call)
3655 (rs6000_extract_return_value): Use register_size.
3656 * xstormy16-tdep.c (xstormy16_get_saved_register)
3657 (xstormy16_extract_return_value): Ditto.
3658 * valops.c (value_assign): Ditto.
3659 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3660 * v850-tdep.c (v850_extract_return_value): Ditto.
3661 * tracepoint.c (collect_symbol): Ditto.
3662 * target.c (debug_print_register): Ditto.
3663 * stack.c (frame_info): Ditto.
3664 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3665 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3666 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3667 (store_register_using_P): Ditto.
3668 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3669 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3670 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3671 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3672 * regcache.c (deprecated_read_register_bytes)
3673 (deprecated_write_register_bytes, read_register)
3674 (write_register): Ditto.
3675 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3676 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3677 * monitor.c (monitor_supply_register, monitor_fetch_register)
3678 (monitor_store_register): Ditto.
3679 * mn10300-tdep.c (mn10300_pop_frame_regular)
3680 (mn10300_print_register): Ditto.
3681 * mipsv4-nat.c (fill_fpregset): Ditto.
3682 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3683 (mips64_fill_fpregset): Ditto.
3684 * mi/mi-main.c (register_changed_p, get_register)
3685 (mi_cmd_data_write_register_values): Ditto.
3686 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3687 * irix5-nat.c (fill_gregset, fetch_core_registers):
3688 * infrun.c (write_inferior_status_register): Ditto.
3689 * infptrace.c (fetch_register, store_register): Ditto.
3690 * infcmd.c (default_print_registers_info): Ditto.
3691 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3692 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3693 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3694 * hpux-thread.c (hpux_thread_fetch_registers)
3695 (hpux_thread_store_registers): Ditto.
3696 * hppah-nat.c (store_inferior_registers, fetch_register):
3697 * findvar.c (value_from_register): Ditto.
3698 * dve3900-rom.c (fetch_bitmapped_register):
3699 * cris-tdep.c (cris_gdbarch_init): Ditto.
3700 * alpha-tdep.h: Ditto.
3701 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3702
01e1877c
AC
3703 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3704 DEPRECATED_REGISTER_RAW_SIZE from comments.
3705 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3706 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3707 DEPRECATED_REGISTER_RAW_SIZE.
3708 * findvar.c (value_of_register): Simplify by assuming that the
3709 registers raw and virtual sizes are identical.
3710 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3711 comment.
3712 * arch-utils.c (generic_register_size): Simplify by assuming
3713 register_type.
3714
73f458fb
AC
3715 * regcache.c (legacy_read_register_gen, real_register)
3716 (legacy_write_register_gen): Delete, not used.
3717
336a3131
AC
3718 * regcache.c (struct regcache_descr): Delete legacy_p.
3719 (init_legacy_regcache_descr): Delete function.
3720 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3721 Do not use deprecated register functions.
3722 (regcache_raw_read, deprecated_write_register_gen):
3723 (deprecated_read_register_gen, regcache_raw_write): Delete code
3724 predicated on legacy_p.
3725 (register_size): Delete check against register raw size.
3726
c1d546cd
AC
3727 * cris-tdep.c (cris_register_type): Replace
3728 cris_register_virtual_type.
3729 (cris_gdbarch_init): Update, set register_type.
3730
48c2c0a6
AC
3731 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3732 * gdbarch.h, gdbarch.c: Re-generate.
3733 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3734 (arm_gdbarch_init) Do not set frameless function invocation.
3735 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3736 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3737 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3738 (frv_gdbarch_init): Do not set frameless function invocation.
3739 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3740 * sh-tdep.c (sh_gdbarch_init): Ditto.
3741 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3742 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3743 * avr-tdep.c (avr_gdbarch_init): Ditto.
3744
474093a6
AC
3745 * blockframe.c (legacy_frame_chain_valid): Delete function.
3746
3c109c8b
AC
3747 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3748 and pc. Update comments.
3749 (pc_in_dummy_frame): Delete function.
3750 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3751 use the "id".
3752 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3753 call_hi, top and pc, use the id.
3754 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3755
96860204
AC
3756 * dummy-frame.c: Include "gdb_string.h".
3757 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3758 (generic_save_dummy_frame_tos): Delete.
3759 (dummy_frame_push): New function, replaces above.
3760 * dummy-frame.h: Update copyright.
3761 (dummy_frame_push): Declare.
3762 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3763 (generic_save_call_dummy_addr): Delete declarations.
3764 * infcall.c: Include "dummy-frame.h".
3765 (call_function_by_hand): Add locals caller_regcache,
3766 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3767 with call to frame_save_as_regcache plus cleanup. Delete calls to
3768 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3769 Move clear_proceed_status to just before the resume, add call to
3770 dummy_frame_push (discard cleanup).
3771 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3772 (dummy-frame.o): Add $(gdb_string_h).
3773
d67ec5db
AC
37742004-08-01 Andrew Cagney <cagney@gnu.org>
3775
3776 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3777 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3778 * dummy-frame.c (find_dummy_frame): Delete.
3779 (struct dummy_frame_cache, dummy_frame_sniffer)
3780 (dummy_frame_prev_register, dummy_frame_this_id)
3781 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3782 frame unwinder using a dummy_frame_cache.
3783
a81dcb05
AC
37842004-08-01 Andrew Cagney <cagney@gnu.org>
3785
3786 * frame.h (frame_save_as_regcache): Declare.
3787 * frame.c (frame_save_as_regcache): New function.
3788 (do_frame_read_register): Replace do_frame_unwind_register.
3789 (frame_pop): Use frame_save_as_regcache.
3790 * dummy-frame.c (generic_push_dummy_frame): Use
3791 frame_save_as_regcache.
3792
aa495d11
JB
37932004-08-01 Joel Brobecker <brobecker@gnat.com>
3794
3795 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3796 file as included until we record the first line in the linetable.
3797
ff65ac78
AC
37982004-08-01 Andrew Cagney <cagney@gnu.org>
3799
3800 * frame.h (deprecated_pop_dummy_frame)
3801 (deprecated_read_register_dummy)
3802 (deprecated_generic_find_dummy_frame): Delete.
3803 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3804 (deprecated_read_register_dummy)
3805 (deprecated_find_dummy_frame_regcache)
3806 (discard_innermost_dummy)
3807 (deprecated_pop_dummy_frame): Delete.
3808 (dummy_frame_this_id): Simplify.
3809 (struct dummy_frame): Delete "fp" and "sp".
3810 (find_dummy_frame): Simplify.
3811 (generic_push_dummy_frame): Do not set "fp" or "sp".
3812 (fprint_dummy_frames): Do not print "fp" and "sp"
3813
37bdc87e
MK
38142004-08-01 Mark Kettenis <kettenis@gnu.org>
3815
3816 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3817 (struct i386_insn): New structure.
3818 (i386_match_insn): New function.
3819 (i386_frame_setup_skip_insns): New variable.
3820 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3821 array i386_frame_setup_insns of instructions that should be
3822 skipped inside the frame setup sequence.
3823
8241eaa6
AC
38242004-08-01 Andrew Cagney <cagney@gnu.org>
3825
5bc602c7
AC
3826 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3827 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3828 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3829 * stack.c (frame_info): Delete references to
3830 DEPRECATED_FRAME_INIT_SAVED_REGS and
3831 deprecated_get_frame_saved_regs.
3832 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3833 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3834 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3835 (frame_unwind_register_signed)
3836 (frame_unwind_register_unsigned)
3837 (frame_unwind_unsigned_register): Use register_size.
3838 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3839 (deprecated_frame_xmalloc_with_cleanup)
3840 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3841 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3842
03d363a1
AC
3843 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3844 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3845 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3846 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3847
8241eaa6
AC
3848 * infcall.c (call_function_by_hand): Do not use
3849 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3850 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3851 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3852 DEPRECATED_STACK_ALIGN.
3853
f00df8b7
AC
38542004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3855
3856 Committed by Andrew Cagney.
3857 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3858
eec63939
AC
38592004-08-01 Andrew Cagney <cagney@gnu.org>
3860
3861 * mips-tdep.c (mips16_frame_cache)
3862 (mips16_frame_this_id, mips16_frame_prev_register)
3863 (mips16_frame_unwind, mips16_frame_sniffer)
3864 (mips16_frame_base_address, mips16_frame_base)
3865 (mips16_frame_base_sniffer, mips32_frame_cache)
3866 (mips32_frame_this_id, mips32_frame_prev_register)
3867 (mips32_frame_unwind, mips32_frame_sniffer)
3868 (mips32_frame_base_address, mips32_frame_base)
3869 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3870 separate heuristic mips16 and mips32 unwinders.
3871 (mips_stub_frame_cache, mips_stub_frame_this_id)
3872 (mips_stub_frame_prev_register)
3873 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3874 (mips_stub_frame_base_address, mips_stub_frame_base)
3875 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3876 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3877 match true mdebug frames.
3878 (non_heuristic_proc_desc): Add forward declaration.
3879
e66299b3
AC
38802004-08-01 Andrew Cagney <cagney@gnu.org>
3881
83cbbf3e
AC
3882 * config/mips/tm-irix6.h: Delete file.
3883 * config/mips/tm-irix5.h: Delete file.
3884 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3885 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3886
22d41b37
AC
3887 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3888 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3889 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3890 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3891 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3892 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3893 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3894 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3895 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3896 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3897 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3898 (TARGET_SIGNAL_RAW_VALUES): Delete.
3899 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3900 Delete.
3901 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3902 (TARGET_HW_WATCH_LIMIT): Delete.
3903 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3904 * minimon.h: Delete file.
3905
e66299b3
AC
3906 * trad-frame.c (trad_frame_get_this_base)
3907 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3908 functions.
3909 * trad-frame.h (trad_frame_set_this_base)
3910 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3911
1f67027d
AC
39122004-07-31 Andrew Cagney <cagney@gnu.org>
3913
3914 * trad-frame.c (trad_frame_get_prev_register): Rename
3915 trad_frame_get_prev_register.
3916 * vax-tdep.c (vax_frame_prev_register): Update.
3917 * trad-frame.h: Update.
3918 * trad-frame.c (trad_frame_get_register): Update.
3919 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3920 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3921 Update.
3922 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3923 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3924 Update.
3925 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3926 Update.
3927 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3928 Update.
3929 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3930 Update.
3931 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3932 Update.
3933 * s390-tdep.c (s390_frame_prev_register)
3934 (s390_stub_frame_prev_register)
3935 (s390_sigtramp_frame_prev_register): Update.
3936 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3937 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3938 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3939 * m88k-tdep.c (m88k_frame_prev_register)
3940 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3941 * m32r-tdep.c (m32r_frame_prev_register): Update.
3942 * hppa-tdep.c (hppa_frame_prev_register_helper)
3943 * frv-tdep.c (frv_frame_prev_register): Update.
3944 * d10v-tdep.c (d10v_frame_prev_register): Update.
3945 * cris-tdep.c (cris_frame_prev_register): Update.
3946 * avr-tdep.c (avr_frame_prev_register): Update.
3947 * arm-tdep.c (arm_prologue_prev_register)
3948 (arm_sigtramp_prev_register): Update.
3949
c1bf6f65
AC
39502004-07-31 Andrew Cagney <cagney@gnu.org>
3951
3952 * frame.h (legacy_saved_regs_unwind)
3953 (legacy_frame_chain_valid, legacy_frame_p)
3954 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3955 * dummy-frame.c (dummy_frame_this_id): Simplify.
3956 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3957 * frame.c (struct frame_info): Delete the field "type".
3958 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3959 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3960 (legacy_saved_regs_unwind, legacy_frame_p)
3961 (frame_type_from_pc): Delete.
3962 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3963 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3964
dc856692
MK
39652004-07-31 Mark Kettenis <kettenis@gnu.org>
3966
5a5effe1
MK
3967 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3968 indentation.
3969
d4fd50a6
MK
3970 * mips-nat.c: Remove file.
3971 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3972 (mips-nat.o): Remove dependency.
3973
2689df5a
MK
3974 * infptrace.c: Update copyright year.
3975 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3976 explicitly setting the buffer to all zeroes.
3977
dc856692
MK
3978 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3979 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3980
763910e0
AC
39812004-07-30 Andrew Cagney <cagney@gnu.org>
3982
3983 * GDB 6.2 released from gdb_6_2-branch.
3984
0b66e38c
EZ
39852004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3986
3987 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3988
3989 * exec.c (exec_file_attach):
3990 * nto-tdep.c (nto_find_and_open_solib):
3991 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3992 * solib.c (solib_open):
3993 * somsolib.c (som_solib_sizeof_symbol_table):
3994 * source.c (is_regular_file, openp, open_source_file):
3995 * symfile.c (symfile_bfd_open):
3996 * wince.c (upload_to_device): Differentiate between the search for
3997 binary and source files.
3998
be7d7357
AC
39992004-07-30 Andrew Cagney <cagney@gnu.org>
4000
4001 * complaints.c (_initialize_complaints): Pass NULL to
4002 add_setshow_zinteger_cmd for help_doc.
4003 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4004
ddc9cd0f
AC
40052004-07-30 Andrew Cagney <cagney@gnu.org>
4006
4007 Fix PR i18n/761.
4008 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4009 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4010 $(PACKAGE).pot and update-po.
4011 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4012 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4013 (update-po): New rules.
4014 (localedir): Define using autoconf.
4015 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4016 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4017 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4018 * configure.in: Generate CATALOGS and LINGUAS from contents of
4019 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4020 * configure: Re-generate.
4021 * po/gdbtext: New file
4022
e92f3704
JG
40232004-07-30 Jerome Guitton <guitton@gnat.com>
4024
4025 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4026 order.
4027
b0f35d58
DL
40282004-07-30 David Lecomber <dsl@sources.redhat.com>
4029
4030 * dwarf2read.c (read_file_scope): Set producer if attribute
4031 present.
4032 (struct dwarf2_cu): Added new member producer.
4033
ce7d4522
JG
40342004-07-30 Jerome Guitton <guitton@gnat.com>
4035
4036 * inflow.c (kill_command): release file handles in BFD.
4037 * exec.c (exec_file_attach): Ditto.
4038 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4039
05ee07c7
AC
40402004-07-29 Andrew Cagney <cagney@gnu.org>
4041
4042 * PROBLEMS (mips-irix): Note that it is broken.
4043
62eceb47
AC
40442004-07-29 Andrew Cagney <cagney@gnu.org>
4045
e57b8d41
AC
4046 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4047 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4048
d334389b
AC
4049 * config/xm-nbsd.h: Delete file.
4050 * config/arm/xm-nbsd.h: Delete file.
4051 * config/i386/xm-nbsd.h: Delete file.
4052 * config/ns32k/xm-nbsd.h: Delete file.
4053 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4054 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4055 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4056 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4057 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4058
e910f676
AC
4059 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4060 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4061 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4062 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4063 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4064 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4065
6fa856b9
AC
4066 * config/powerpc/xm-linux.h: Delete empty file.
4067 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4068 * config/powerpc/linux.mh (XM_FILE): Delete.
4069 * config/m68k/xm-linux.h: Delete empty file.
4070 * config/m68k/linux.mh (XM_FILE): Delete.
4071 * config/ia64/xm-linux.h: Delete empty file.
4072 * config/ia64/linux.mh (XM_FILE): Delete.
4073 * config/arm/xm-linux.h: Delete empty file.
4074 * config/arm/linux.mh (XM_FILE): Delete.
4075
471ae5ae
AC
4076 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4077 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4078 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4079 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4080 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4081 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4082 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4083 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4084
62eceb47
AC
4085 * config/m68k/xm-m68k.h: Delete file.
4086 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4087 copyright.
4088 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4089 * config/pa/xm-linux.h: Delete empty file.
4090 * config/pa/linux.mh (XM_FILE): Delete.
4091 * config/i386/xm-i386.h: Delete empty file.
4092 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4093 "i386/xm-i386.h".
4094 * config/i386/obsdaout.mh (XM_FILE): Delete.
4095 * config/i386/obsd64.mh (XM_FILE): Delete.
4096 * config/i386/fbsd64.mh (XM_FILE): Delete.
4097 * config/i386/nto.mh (XM_FILE): Delete.
4098 * config/i386/obsd.mh (XM_FILE): Delete.
4099 * config/i386/linux64.mh (XM_FILE): Delete.
4100 * config/i386/linux.mh (XM_FILE): Delete.
4101 * config/i386/i386sol2.mh (XM_FILE): Delete.
4102 * config/i386/i386gnu.mh (XM_FILE): Delete.
4103 * config/i386/fbsd.mh (XM_FILE): Delete.
4104 * config/i386/nbsd64.mh (XM_FILE): Delete.
4105
c35f4ffc
AC
41062004-07-29 Andrew Cagney <cagney@gnu.org>
4107
4108 * config/pa/xm-linux.h: Do not include "floatformat.h".
4109 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4110 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4111 * config/i386/xm-i386.h: Do not include "floatformat.h".
4112 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4113 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4114 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4115 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4116 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4117 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4118 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4119 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4120 * configure, config.in: Regenerate.
4121 * configure.host (gdb_host_float_format, gdb_host_double_format)
4122 (gdb_host_long_double_format): Set according to the host.
4123
624a44a3
AC
41242004-07-29 Andrew Cagney <cagney@gnu.org>
4125
4126 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4127
0dea2468
AC
41282004-07-28 Andrew Cagney <cagney@gnu.org>
4129
4130 * PROBLEMS: Mention threads/1650.
4131 * NEWS: Mention the NPTL fix.
4132
b3f42336
AC
41332004-07-28 Andrew Cagney <cagney@gnu.org>
4134
4135 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4136 (add_setshow_cmd_full): Make static.
4137 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4138 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4139 * cli/cli-decode.c (add_setshow_filename_cmd)
4140 (add_setshow_string_cmd): New functions.
4141 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4142 * mips-tdep.c (_initialize_mips_tdep): Update.
4143 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4144 * cli/cli-logging.c (_initialize_cli_logging): Update.
4145 * complaints.c (_initialize_complaints): Update.
4146 * remote.c (_initialize_remote): Update.
4147
3b64bf98
AC
41482004-07-28 Andrew Cagney <cagney@gnu.org>
4149
4150 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4151 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4152 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4153 print parameters. Make string parameters constant.
4154 * command.h: Update. Update copyright.
4155 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4156 * observer.c (_initialize_observer): Ditto.
4157 * frame.c (_initialize_frame): Ditto.
4158 * complaints.c (_initialize_complaints): Ditto.
4159 * maint.c (_initialize_maint_cmds): Ditto.
4160 * target.c (initialize_targets): Ditto.
4161 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4162 * infcall.c (_initialize_infcall): Ditto.
4163 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4164 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4165 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4166 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4167 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4168
e9667a65
AC
41692004-07-28 Andrew Cagney <cagney@gnu.org>
4170
54a5b07d
AC
4171 * gdbtypes.c (lookup_primitive_typename): Delete function.
4172 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4173 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4174 * gdbtypes.c (lookup_typename): Ditto.
4175 * f-exp.y (yylex): Ditto.
4176 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4177
e9667a65
AC
4178 * scm-lang.c (c_builtin_types): Delete extern declaration.
4179 (scm_language_defn): Replace
4180 string_char_type and primitive_type_vector with
4181 la_language_arch_info.
4182 * jv-lang.c (java_language_defn): Replace
4183 string_char_type and primitive_type_vector with
4184 la_language_arch_info.
4185 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4186 c_builtin_types in comment.
4187 * c-lang.h (struct language_arch_info): Declare opaque.
4188 (c_language_arch_info): Declare.
4189 (c_builtin_types): Delete declaration.
4190 * c-lang.c (c_language_arch_info): Set string_char_type to
4191 builtin_char, not builtin_true_char. Make global.
4192 (c_builtin_types): Delete array.
4193 (asm_language_defn, minimal_language_defn): Replace
4194 string_char_type and primitive_type_vector with
4195 la_language_arch_info.
4196
685419e2
AC
41972004-07-28 Andrew Cagney <cagney@gnu.org>
4198
4199 * gdbtypes.h (struct builtin_type): Rename true_char to
4200 builtin_true_char.
4201 * gdbtypes.c (gdbtypes_post_init): Update.
4202 * c-lang.c (arch_info): New function.
4203 (enum c_primitive_types): New enum.
4204 (c_language_defn): Instead of string_char_type and
4205 primitive_type_vector set la_language_arch_info.
4206
5a44ea29
AC
42072004-07-28 Andrew Cagney <cagney@gnu.org>
4208
4209 * language.h (struct language_arch_info): Fix typo
4210 s/primative/primitive/.
4211 * gdbtypes.c (lookup_primitive_typename): Ditto.
4212 * language.c (language_lookup_primitive_type_by_name)
4213 (unknown_language_arch_info): Ditto.
4214
f290d38e
AC
42152004-07-27 Andrew Cagney <cagney@gnu.org>
4216
4217 * defs.h (enum language): Add nr_languages.
4218 * language.h (struct language_arch_info): Define.
4219 (struct language_defn): Add la_language_arch_info.
4220 (language_lookup_primative_type_by_name): Declare.
4221 (language_string_char_type): Declare.
4222 * language.c (_initialize_language, language_gdbarch_post_init)
4223 (struct language_gdbarch, language_gdbarch_data): Implement
4224 per-architecture language information.
4225 (unknown_language_arch_info, language_string_char_type)
4226 (language_lookup_primative_type_by_name): New functions.
4227 (unknown_language_defn, auto_language_defn)
4228 (local_language_defn): Set la_language_arch_info to
4229 unknown_language_arch_info.
4230 (unknown_builtin_types): Delete.
4231 * gdbtypes.c (lookup_primitive_typename): Use
4232 language_lookup_primative_type_by_name.
4233 (create_string_type): Use language_string_char_type.
4234 * values.c (value_from_string): Use language_string_char_type.
4235 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4236 * p-lang.c (pascal_language_defn): Ditto.
4237 * m2-lang.c (m2_language_defn): Ditto.
4238 * jv-lang.c (java_language_defn): Ditto.
4239 * objc-lang.c (objc_language_defn): Ditto.
4240 * f-lang.c (f_language_defn): Ditto.
4241 * c-lang.c (c_language_defn, cplus_language_defn)
4242 (asm_language_defn, minimal_language_defn): Ditto.
4243
000177f0
AC
42442004-07-27 Andrew Cagney <cagney@gnu.org>
4245
4246 * gdbtypes.h (struct builtin_type): Declare.
4247 (builtin_type): Declare.
4248 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4249 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4250 (gdbtypes_post_init): New function.
4251 (builtin_type): New function.
4252
e22f895c
KI
42532004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4254
4255 * remote-m32r-sdi.c: Fix breakpoint bug.
4256 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4257 recv_char_data, recv_long_data): New functions to replace communication
4258 sequences.
4259
536517dd
MC
42602004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4261
4262 Document PR threads/1650.
4263 * PROBLEMS (Threads): Document problem with many threads
4264
a0a44d18
AC
42652004-07-26 Andrew Cagney <cagney@gnu.org>
4266
4267 * gdb-mi.el: Move from here ...
4268 * mi/gdb-mi.el: ... to here.
4269
7ac4ac06
AC
42702004-07-26 Andrew Cagney <cagney@gnu.org>
4271
4272 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4273 * main.c (captured_main): When in batch mode always detach.
4274
a1b461bf
AC
42752004-07-26 Andrew Cagney <cagney@gnu.org>
4276
4277 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4278 and h8300 as broken.
4279 * NEWS: END-OF-LIFE frame compatibility module.
4280 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4281 specific comments.
4282
cb1a6d5f
AC
42832004-07-26 Andrew Cagney <cagney@gnu.org>
4284
4285 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4286 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4287 * wince.c (_initialize_wince): Update.
4288 * win32-nat.c (_initialize_win32_nat): Update.
4289 * varobj.c (_initialize_varobj): Update.
4290 * valops.c (_initialize_valops): Update.
4291 * utils.c (initialize_utils, initialize_utils): Update.
4292 * tui/tui-win.c (_initialize_tui_win): Update.
4293 * top.c (init_main): Update.
4294 * symfile.c (_initialize_symfile): Update.
4295 * source.c (_initialize_source): Update.
4296 * somsolib.c (_initialize_som_solib): Update.
4297 * solib.c (_initialize_solib): Update.
4298 * solib-frv.c (_initialize_frv_solib): Update.
4299 * serial.c (_initialize_serial): Update.
4300 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4301 * remote.c (_initialize_remote, _initialize_remote): Update.
4302 * remote-vx.c (_initialize_vx): Update.
4303 * remote-utils.c (_initialize_sr_support): Update.
4304 * remote-sds.c (_initialize_remote_sds): Update.
4305 * remote-mips.c (_initialize_remote_mips): Update.
4306 * remote-e7000.c (_initialize_remote_e7000): Update.
4307 * proc-api.c (_initialize_proc_api): Update.
4308 * printcmd.c: Update.
4309 * parse.c (_initialize_parse): Update.
4310 * pa64solib.c (_initialize_pa64_solib): Update.
4311 * p-valprint.c (_initialize_pascal_valprint): Update.
4312 * monitor.c (_initialize_remote_monitors): Update.
4313 * mips-tdep.c (_initialize_mips_tdep): Update.
4314 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4315 * maint.c (_initialize_maint_cmds): Update.
4316 * lin-lwp.c (_initialize_lin_lwp): Update.
4317 * language.c (_initialize_language): Update.
4318 * kod.c (_initialize_kod): Update.
4319 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4320 * i386-tdep.c (_initialize_i386_tdep): Update.
4321 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4322 * gdbarch.sh: Update.
4323 * gdbarch.c: Re-generate.
4324 * gdb-events.sh: Update.
4325 * gdb-events.c: Re-generate.
4326 * frame.c (_initialize_frame): Update.
4327 * exec.c: Update.
4328 * demangle.c (_initialize_demangler): Update.
4329 * dcache.c (_initialize_dcache): Update.
4330 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4331 * cp-valprint.c (_initialize_cp_valprint): Update.
4332 * corefile.c (_initialize_core): Update.
4333 * command.h: Update.
4334 * cli/cli-decode.h: Update.
4335 * cli/cli-cmds.c (init_cli_cmds): Update.
4336 * charset.c (_initialize_charset): Update.
4337 * breakpoint.c (_initialize_breakpoint): Update.
4338 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4339 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4340 * aix-thread.c (_initialize_aix_thread): Update.
4341
b4632131
MK
43422004-07-24 Mark Kettenis <kettenis@gnu.org>
4343
4344 Partial fix for PR backtrace/1718.
4345 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4346 that GCC migrates into the prolugue. Don't handle any
4347 instructions that clobber %ebx.
4348
822c9732
AC
43492004-07-23 Andrew Cagney <cagney@gnu.org>
4350
4351 Use regcache_raw_collect instead of regcache_collect.
4352 * regcache.h (regcache_collect): Delete declaration.
4353 * regcache.c (regcache_colect): Delete function.
4354 * win32-nat.c (do_child_store_inferior_registers): Update.
4355 * sol-thread.c (sol_thread_store_registers): Update.
4356 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4357 * rs6000-nat.c (store_register): Update.
4358 * remote.c (store_register_using_P, remote_store_registers): Update.
4359 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4360 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4361 (fill_vrregset, store_spe_registers, fill_gregset)
4362 (fill_gregset): Update.
4363 * nto-procfs.c (procfs_store_registers): Update.
4364 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4365 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4366 * m68klinux-nat.c (store_register, fill_gregset): Update.
4367 * m68k-tdep.c (fill_gregset): Update.
4368 * infptrace.c (store_register): Update.
4369 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4370 * i386-linux-nat.c (store_register, fill_gregset): Update.
4371 * hppa-linux-nat.c (fill_gregset): Update.
4372 * go32-nat.c (store_register): Update.
4373 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4374 (store_fp_regs): Update.
4375 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4376 (store_nwfpe_extended, store_fpregister, store_fpregs)
4377 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4378 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4379 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4380 (store_regs_user_thread, store_regs_kernel_thread): Update.
4381
32b05c07
MK
43822004-07-24 Mark Kettenis <kettenis@gnu.org>
4383
4384 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4385 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4386 encoding.
4387 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4388 member of `struct comp_unit'.
4389
8567c30f
AC
43902004-07-23 Andrew Cagney <cagney@gnu.org>
4391
4392 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4393 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4394
f6da8dd8
MH
43952004-07-23 Martin Hunt <hunt@redhat.com>
4396 Kevin Buettner <kevinb@redhat.com>
4397
4398 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4399 alignment was being added to the offset instead of multiplied.
4400
bd921882
MK
44012004-07-23 Mark Kettenis <kettenis@gnu.org>
4402
24f033e8
MK
4403 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4404 changed signal trampoline in OpenBSD 3.5-current.
4405
90f3cecd
MK
4406 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4407 <machine/pcb.h> and "bsd-kvm.h".
4408 (sparc64nbsd_supply_pcb): New function.
4409 (_initialize_sparc64nbsd_nat): Renamed from
4410 _initialize_sparcnbsd_nat. Enable libkvm interface.
4411 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4412 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4413 (LOADLIBES): New variable.
4414
a4954a62
MK
4415 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4416
bd921882
MK
4417 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4418
23a6d369
AC
44192004-07-21 Andrew Cagney <cagney@gnu.org>
4420
4421 Use regcache_raw_supply instead of supply_register.
4422 * regcache.h (supply_register): Delete declaration.
4423 * regcache.c (supply_register): Delete function.
4424 * wince.c (do_child_fetch_inferior_registers): Update.
4425 * win32-nat.c (do_child_fetch_inferior_registers)
4426 (fetch_elf_core_registers): Update.
4427 * v850ice.c (v850ice_fetch_registers): Update.
4428 * thread-db.c (thread_db_store_registers): Update.
4429 * sol-thread.c (sol_thread_store_registers): Update.
4430 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4431 * rs6000-nat.c (fetch_register): Update.
4432 * rom68k-rom.c (rom68k_supply_one_register): Update.
4433 * remote.c (remote_wait, remote_async_wait): Update.
4434 * remote-st.c (get_hex_regs): Update.
4435 * remote-sim.c (gdbsim_fetch_register): Update.
4436 * remote-sds.c (sds_fetch_registers): Update.
4437 * remote-rdp.c (remote_rdp_fetch_register): Update.
4438 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4439 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4440 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4441 * remote-hms.c (init_hms_cmds): Update.
4442 * remote-est.c (init_est_cmds): Update.
4443 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4444 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4445 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4446 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4447 (fetch_register, supply_vrregset, supply_vrregset)
4448 (fetch_spe_registers): Update.
4449 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4450 * monitor.c (monitor_supply_register): Update.
4451 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4452 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4453 (mipsnbsd_supply_fpreg): Update.
4454 * mips-nat.c (fetch_inferior_registers)
4455 (fetch_core_registers): Update.
4456 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4457 (supply_fpregset, mips64_supply_gregset)
4458 (mips64_supply_fpregset): Update.
4459 * m68klinux-nat.c (fetch_register, supply_gregset)
4460 (supply_fpregset): Update.
4461 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4462 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4463 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4464 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4465 * infptrace.c (fetch_register): Update.
4466 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4467 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4468 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4469 (gnu_fetch_registers, gnu_store_registers): Update.
4470 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4471 * i386-linux-nat.c (fetch_register, supply_gregset)
4472 (dummy_sse_values): Update.
4473 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4474 * hppah-nat.c (fetch_register): Update.
4475 * hppa-linux-nat.c (fetch_register, supply_gregset)
4476 (supply_fpregset): Update.
4477 * go32-nat.c (fetch_register): Update.
4478 * dve3900-rom.c (fetch_bitmapped_register)
4479 (_initialize_r3900_rom): Update.
4480 * cris-tdep.c (supply_gregset): Update.
4481 * abug-rom.c (init_abug_cmds): Update.
4482 * core-aout.c (fetch_core_registers): Update.
4483 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4484 (fetch_register, fetch_fp_register): Update.
4485 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4486 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4487 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4488 * alphanbsd-tdep.c (fetch_core_registers): Update.
4489 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4490 * alpha-nat.c (fetch_osf_core_registers)
4491 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4492 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4493 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4494
73cc75f3
AC
44952004-07-21 Andrew Cagney <cagney@gnu.org>
4496
4497 * PROBLEMS: Mention breakpoints/1702.
4498 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4499 that is known to work.
4500
a53c66de
AC
45012004-07-21 Andrew Cagney <cagney@gnu.org>
4502
4503 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4504 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4505 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4506 (handle_inferior_event): Wrap call to deprecated
4507 IGNORE_HELPER_CALL in #ifdef.
4508 * config/mips/tm-nbsd.h: Update.
4509
708ff411
JB
45102004-07-20 Jim Blandy <jimb@redhat.com>
4511
412b3060
JB
4512 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4513 bfd_mach_ppc has no segment registers.
4514
13ac140c
JB
4515 Include PowerPC SPR numbers for special-purpose registers.
4516 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4517 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4518 new member in initializer.
4519 (S, S4, SN4, S64): New macros for defining special-purpose
4520 registers.
4521 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4522 registers_403, registers_403GC, registers_505, registers_860,
4523 registers_601, registers_602, registers_603, registers_604,
4524 registers_750, registers_e500): Use them.
4525
708ff411
JB
4526 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4527 replace references with expression used to initialize variable.
4528
1f602b35
AC
45292004-07-20 Andrew Cagney <cagney@gnu.org>
4530
4531 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4532 read_memory_nobpt.
4533 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4534 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4535 (s390_sigtramp_frame_sniffer): Update.
4536 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4537 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4538 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4539 (mips32_fetch_instruction): Update.
4540 * mcore-tdep.c (get_insn): Update.
4541 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4542 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4543 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4544 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4545 (i386_linux_rt_sigtramp_start): Update.
4546 * i386-linux-nat.c (child_resume): Update.
4547 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4548 * hppa-linux-tdep.c (insns_match_pattern): Update.
4549 * gdbcore.h: Update.
4550 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4551 * frame.c (safe_frame_unwind_memory): Update.
4552 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4553 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4554 * alpha-tdep.c (alpha_read_insn): Update.
4555
2cd8546d
AC
45562004-07-20 Andrew Cagney <cagney@gnu.org>
4557
4558 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4559 containing both bytes and mask. Add "frame_type".
4560 * tramp-frame.c (tramp_frame_start): Update.
4561 (tramp_frame_prepend_unwinder): Update.
4562 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4563 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4564 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4565 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4566
f928dd62
EZ
45672004-07-19 Eli Zaretskii <eliz@gnu.org>
4568
4569 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4570 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4571 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4572 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4573
d5c560f7
AC
45742004-07-17 Andrew Cagney <cagney@gnu.org>
4575
860660cb
AC
4576 * NEWS, PROBLEMS: Update for 6.2.
4577
8c266f54
AC
4578 * README: Update to 6.2.
4579
a552edd9
AC
4580 * utils.c (xvasprintf): Call xstrvprintf.
4581
c4a172b5
AC
4582 * parse.c: Update copyright.
4583 (null_post_parser): Eliminate ARGSUSED.
4584
da745b36
AC
4585 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4586 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4587 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4588
9cbc6ef0
AC
4589 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4590 * ppc-linux-nat.c: Use "Linux kernel".
4591 * hppa-linux-tdep.c: Use GNU/Linux.
4592 * hppa-linux-nat.c: Use GNU/Linux.
4593 * dwarfread.c: Add [sic] to use of Linux.
4594
1b89295f
AC
4595 * hppa-linux-nat.c: Do not include <string.h>.
4596 (supply_fpregset): Remove "register" attribute.
4597
d5c560f7
AC
4598 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4599
7ddd7709
MK
46002004-07-17 Mark Kettenis <kettenis@gnu.org>
4601
b1d19a62
MK
4602 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4603 * configure, config.in: Regenerated.
4604
7ddd7709
MK
4605 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4606 "bsd-kvm.h".
4607 (vaxbsd_supply_pcb): New function.
4608 (_initialize_vaxbsd_nat): New prototype and function.
4609 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4610 solib-sunos.o.
4611 (LOADLIBES): New variable.
4612 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4613 (LOADLIBES): New variable.
4614 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4615 (LOADLIBES): New variable.
4616 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4617
2c07db7a
AC
46182004-07-16 Andrew Cagney <cagney@gnu.org>
4619
4620 * defs.h (event_loop_p): Replace variable declaration with macro,
4621 always 1.
4622 * main.c (captured_main): Delete options "-async" and "-noasync".
4623 (event_loop_p): Delete variable.
4624 * NEWS: Mention that "-async" and "-noasync" were removed.
4625
717eb1cf
AC
46262004-07-16 Andrew Cagney <cagney@gnu.org>
4627
4628 * remote-m32r-sdi.c: Re-indent.
4629
c101bc14
JB
46302004-07-16 Jim Blandy <jimb@redhat.com>
4631
5109a438
JB
4632 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4633 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4634 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4635 missing MPC823 SPRs.
4636 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4637 incorrect. (This was corrected in GDB's register name tables on
4638 2004-07-14.)
4639
c101bc14
JB
4640 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4641 should be "esasrr" ("ESA Save and Restore Register").
4642
7ce450bd
AC
46432004-07-16 Andrew Cagney <cagney@gnu.org>
4644
4645 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4646 calls, no longer applicable. Update comments and rename parameter
4647 "step_frame" to "return_frame".
4648
ca73dd9d
AC
46492004-07-16 Andrew Cagney <cagney@gnu.org>
4650
4651 * frame.c (fprint_field): New function.
4652 (fprint_frame_id): Use fprint_field.
4653
31941f6d
JB
46542004-07-15 Joel Brobecker <brobecker@gnat.com>
4655
4656 * ada-lang.c (ada_language_defn): Remove commented out code.
4657
f86a7158
JB
46582004-07-15 Jim Blandy <jimb@redhat.com>
4659
4660 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4661 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4662
c24791ec
JB
46632004-07-14 Jim Blandy <jimb@redhat.com>
4664
29bb1356
JB
4665 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4666
cc98b5cc
JB
4667 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4668
8f088af7
JB
4669 * ppc-tdep.h (ppc_num_srs): New enum constant.
4670
0ea0ec5f
JB
4671 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4672 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4673 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4674 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4675 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4676 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4677 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4678 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4679 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4680 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4681 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4682 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4683 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4684 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4685 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4686 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4687 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4688 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4689 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4690 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4691 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4692 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4693 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4694 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4695 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4696 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4697 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4698 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4699 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4700 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4701 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4702 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4703 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4704 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4705 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4706 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4707 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4708 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4709 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4710 special-purpose register numbers.
4711
c24791ec
JB
4712 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4713 manual mentions 'md_twb', but many mention 'm_twb', and at that
4714 point in the register list.)
4715
d833db3b
AC
47162004-07-14 Andrew Cagney <cagney@gnu.org>
4717
4718 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4719 instead of "internal-error".
4720
080228b2
JB
47212004-07-10 Joel Brobecker <brobecker@gnat.com>
4722
4723 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4724 that was inserted inside a comment.
4725
c268433a
RC
47262004-07-10 Randolph Chung <tausq@debian.org>
4727
4728 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4729 function.
4730 (hppa_hpux_push_dummy_code): New function.
4731 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4732 Set find_global_pointer method.
4733
71009278
MK
47342004-07-10 Mark Kettenis <kettenis@gnu.org>
4735
4736 * NEWS: Mention BSD libkvm interface.
4737
b2fa5097
MS
47382004-07-10 Michael Snyder <msnyder@redhat.com>
4739
4740 * symfile.c (generic_load): Comment typo.
4741 * stack.c (get_selected_block): Ditto.
4742 * regcache.c (regcache_cooked_read): Ditto.
4743 * monitor.c (monitor_debug): Ditto.
4744 * mips-tdep.c (mips_read_pc): Ditto.
4745 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4746 * gdb_mbuild.sh: Ditto.
4747 * gdbarch.sh: Ditto.
4748 * gdbarch.h: Ditto.
4749
c3e5cd34
PH
47502004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4751
8a2225b2
PH
4752 * ada-tasks.c: Remove file.
4753
c3e5cd34
PH
4754 Remove ARI problems:
4755
4756 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4757 beginning of line.
4758
4759 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4760 Add comment.
4761 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4762 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4763 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4764 (UMIN_OF_SIZE): Remove.
4765 (max_of_type): New function to replace orphan macro in gdbtypes.h
4766 (min_of_type): Ditto.
4767 (discrete_type_high_bound): Use max_of_type.
4768 (discrete_type_low_bound): Use min_of_type.
4769 (possible_user_operator_p): Move operator to beginning of line.
4770 (ada_is_variant_part): Ditto.
4771 (ensure_lval): Rewrite to avoid deprecated operations.
4772 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4773 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4774 (ada_enum_name): Remove assignments in 'if' statements.
4775 (build_ada_types): Add gdbarch parameter.
4776 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4777 with gdbarch_data_register_post_init.
4778 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4779 add_show_from_set.
4780
4781 * ada-valprint.c (inspect_it): Remove declaration.
4782 (repeat_count_threshold): Remove declaration.
4783 (ada_print_floating): Remove assignments in 'if' statements.
4784 (print_str): Move operator to beginning of line.
4785
61ce229a
JB
47862004-07-08 Jim Blandy <jimb@redhat.com>
4787
4788 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4789
09bcec80
BR
47902004-07-08 Bob Rossi <bob@brasko.net>
4791
4792 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4793
31c27f77
JJ
47942004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4795
4796 * language.h (struct_language_defn): Add new function pointer:
4797 la_class_name_from_physname. Also add new prototype for
4798 language_class_name_from_physname.
4799 * language.c (language_class_name_from_physname): New function.
4800 (unk_lang_class_name): Ditto.
4801 (unknown_language_defn, auto_language_defn): Change
4802 to add unk_lang_class_name function pointer for
4803 la_class_name_from_physname.
4804 (local_language_defn): Ditto.
4805 * dwarf2read.c (guess_structure_name): Change to call
4806 language_class_name_from_physname.
4807 (determine_class_name): Ditto.
4808 * cp-support.c (class_name_from_physname): Renamed.
4809 (cp_class_name_from_physname): New name of function.
4810 * cp-support.h: Ditto.
4811 * c-lang.c (c_language_defn): Change to add NULL
4812 for class_name_from_physname function pointer.
4813 (cplus_language_defn): Change to add cp_class_name_from_physname.
4814 * jv-lang.c (java_class_name_physname): New function.
4815 (java_find_last_component): New static routine.
4816 (java_language_defn): Add java_class_name_from_physname pointer.
4817 * ada-lang.c (ada_language_defn): Change to add NULL
4818 for class_name_from_physname function pointer.
4819 * f-lang.c (f_language_defn): Ditto.
4820 * m2-lang.c (m2_language_defn): Ditto.
4821 * objc-lang.c (objc_language_defn): Ditto.
4822 * p-lang.c (pascal_language_defn): Ditto.
4823 * scm-lang.c (scm_language_defn): Ditto.
4824
ee28ca0f
AC
48252004-07-06 Andrew Cagney <cagney@gnu.org>
4826
4827 Patch from Bart Robinson.
4828 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4829 (O_LARGEFILE): Define to 0, if not defined.
4830
fdb1bf9d
MK
48312004-07-03 Mark Kettenis <kettenis@gnu.org>
4832
cb162ff6
MK
4833 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4834 <machine/pcb.h> and "bsd-kvm.h".
4835 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4836 (m68kbsd_supply_pcb): New function.
4837 (_initialize_m68kbsd_nat): New prototype and function.
4838 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4839 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4840 (LOADLIBES): New variable.
4841 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4842 (LOADLIBES): New variable.
4843
fdb1bf9d
MK
4844 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4845
963c4174
MK
48462004-07-03 Mark Kettenis <kettenis@gnu.org>
4847
4848 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4849 <sys/proc.h>.
4850 (bsd_kvm_cmdlist): New variable.
4851 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4852 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4853 command and "kvm proc" command.
4854 * Makefile.in (bsd-kvm.o): Update dependencies.
4855
533f1d8f
MK
48562004-07-02 Mark Kettenis <kettenis@gnu.org>
4857
4858 * osabi.c: Update copyright year.
4859 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4860 notes if EI_OSABI is set to ELFOSABI_HPUX.
4861
6780dcde
MS
48622004-07-01 Michael Snyder <msnyder@redhat.com>
4863
4864 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4865 that seems to have gotten whacked out of line.
4866
67bebe79
MK
48672004-07-01 Mark Kettenis <kettenis@gnu.org>
4868
4869 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4870 code.
4871
0b5d8877
PH
48722004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4873
4874 * ada-lang.c (decode_packed_array): Minor change to comment.
4875 (ada_value_slice_ptr): New function.
4876 (ada_value_slice): New function.
4877 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4878 test. Don't know why it is there.
4879 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4880 to avoid dereferencing huge arrays from which one is slicing.
4881 (empty_array): Correct to return an array rather than
4882 a subrange value.
4883 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4884 on empty arrays (let'em use 'FIRST instead).
4885
19c1ef65
PH
48862004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4887
4888 Address complaints from gdb_ari.sh:
4889
4890 * ada-exp.y: Include gdb_string.h rather than string.h.
4891 (convert_char_literal): Reformat declaration.
4892 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4893 * ada-lex.l: Change use of free to xfree (the macro would do so
4894 anyway, but this is harmless).
4895 Include gdb_string.h rather than string.h.
4896 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4897
4898 * ada-lang.c (parse): Remove K&Rism in parameter list.
4899 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4900
d81cbc94
MK
49012004-06-30 Mark Kettenis <kettenis@gnu.org>
4902
4903 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4904 dead code.
4905
07681759
MK
49062004-06-30 Mark Kettenis <kettenis@gnu.org>
4907
4908 * alphabsd-nat.c: Update copyright year.
4909 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4910
f7948b5f
JB
49112004-06-29 Joel Brobecker <brobecker@gnat.com>
4912
6e0cdd28 4913 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4914 (i386_cygwin_in_solib_call_trampoline): New function.
4915 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4916 and skip_trampoline_code gdbarch methods.
4917
8f113c9a
JB
49182004-06-29 Jim Blandy <jimb@redhat.com>
4919
4920 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4921 name actually used in the dependency lists.
4922
97dc871c
RC
49232004-06-29 Randolph Chung <tausq@debian.org>
4924
4925 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4926
47216e51
CV
49272004-06-29 Corinna Vinschen <vinschen@redhat.com>
4928
4929 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4930 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4931 functionality.
4932
e623b504
AC
49332004-06-28 Andrew Cagney <cagney@gnu.org>
4934
4935 * defs.h (xstrvprintf): Declare.
4936 * utils.c (xstrvprintf): New function.
4937 (internal_vproblem, xstrprintf, xasprintf)
4938 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4939 * serial.c (serial_printf): Ditto.
4940 * complaints.c (vcomplaint): Ditto.
4941
79acc9b3
CV
49422004-06-29 Corinna Vinschen <vinschen@redhat.com>
4943
4944 * infcmd.c (attach_command): Move call to target_terminal_inferior
4945 behind loading symbol table.
4946
1daf35d9
AC
49472004-06-28 Andrew Cagney <cagney@gnu.org>
4948
4949 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4950 change - add back extern deprecated_ui_loop_hook declaration.
4951
b435e160
AC
49522004-06-28 Andrew Cagney <cagney@gnu.org>
4953
4954 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4955 xstrprintf.
4956 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4957 (c_value_of_variable): Ditto.
4958 * utils.c (internal_vproblem): Ditto.
4959 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4960 * remote.c (add_packet_config_cmd): Ditto.
4961 * remote-rdp.c (rdp_set_command_line): Ditto.
4962 * regcache.c (regcache_dump): Ditto.
4963 * frv-tdep.c (new_variant, new_variant): Ditto.
4964 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4965 (fbsd_find_memory_regions): Ditto.
4966 * breakpoint.c (create_thread_event_breakpoint)
4967 (create_breakpoints): Ditto.
4968 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4969 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4970
06d5cf63
JB
49712004-06-28 Joel Brobecker <brobecker@gnat.com>
4972
4973 * ada-lang.c: Re-indent file, with some massaging to help indent
4974 a bit when the result is otherwise really too ugly.
4975
35809fad
UW
49762004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4977
4978 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4979 code_addr_p and special_addr_p to 'unsigned int'.
4980
40e20472
MK
49812004-06-27 Mark Kettenis <kettenis@gnu.org>
4982
4983 * i386v4-nat.c: Update copyright year and tweak comment.
4984 (regmap): Remove trailing comma.
4985 (supply_gregset): Rename local variable i to regnum. Call
4986 regcache_raw_supply instead of supply_register.
4987 (fill_gregset): Rename argument regno to regnum. Call
4988 regcache_raw_collect instead of regcache_collect.
4989
12b0b6de
UW
49902004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4991
4992 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4993 and special_addr_p.
4994 (frame_id_build, frame_id_build_special): Update comments.
4995 (frame_id_build_wild): New prototype.
4996 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4997 struct frame_id fields.
4998 (frame_id_build_wild): New function.
4999 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5000
47b42a3e
MK
50012004-06-27 Mark Kettenis <kettenis@gnu.org>
5002
5003 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5004 hppabsd-tdep.c.
5005
1265e4aa
JB
50062004-06-27 Joel Brobecker <brobecker@gnat.com>
5007
5008 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5009
76a01679
JB
50102004-06-27 Joel Brobecker <brobecker@gnat.com>
5011
5012 * ada-lang.c: Re-indent file.
5013
7aca490a
JB
50142004-06-27 Joel Brobecker <brobecker@gnat.com>
5015
5016 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5017 (no_symtab_msg): Likewise.
5018
5e987968
AS
50192004-06-27 Andreas Schwab <schwab@suse.de>
5020
5021 * source.c: Fix whitespace.
5022
315c4276
MK
50232004-06-27 Mark Kettenis <kettenis@gnu.org>
5024
d15be926
MK
5025 * configure.in: Include <sys/param.h> for td_pcb test.
5026 * configure: Regenerated.
5027
9062529b
MK
5028 * i386nbsd-nat.c: New file.
5029 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5030 i386obsd-nat.c and i386obsd-tdep.c.
5031 (i386nbsd-nat.o): New dependency.
5032 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5033 bsd-kvm.o.
5034 (LOADLIBES): New variable.
5035 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5036 bsd-kvm.o.
5037 (LOADLIBES): New variable.
5038
8010310e
MK
5039 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5040 (LOADLIBES): New variable.
5041
efe1d7b9
MK
5042 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5043 fetching from BSD_KVM_PADDR. Correctly lookup address for
5044 "_thread0".
5045
315c4276
MK
5046 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5047 "bsd-kvm.h".
5048 (amd64fbsd_supply_pcb): New funcion.
5049 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5050
399cfac6
DL
50512004-06-27 <david@streamline-computing.com>
5052
5053 Partial fix for PR cli/1056.
5054 * valarith.c: Check for zero in division and remainder
5055 evaluation.
5056
6235f9c8
MK
50572004-06-27 Mark Kettenis <kettenis@gnu.org>
5058
5059 * i387-tdep.c: Remove excessive whitespace.
5060
2726dafc
AC
50612004-06-26 Andrew Cagney <cagney@gnu.org>
5062
5063 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5064 * gdb-events.h, gdb-events.c: Re-generate.
5065 * tui/tui-hooks.c (tui_install_hooks): Update.
5066 (tui_remove_hooks): Update.
5067 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5068
0e56aeaf
MK
50692004-06-26 Mark Kettenis <kettenis@gnu.org>
5070
cb461069
MK
5071 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5072 (gregset_t, fpregset_t): Remove typedefs.
5073 (REG_OFFSET): Rename argument.
5074 (amd64bsd_r_reg_offset): Rename from reg_offset.
5075 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5076 Remove functions.
5077 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5078 of reg_offset.
5079 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5080
ecba89de
MK
5081 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5082
4cd80476
MK
5083 * vax-tdep.c: Tweak comment.
5084
0e56aeaf
MK
5085 Add OpenBSD/hppa support.
5086 * NEWS (New native configurations): Mention OpenBSD/hppa.
5087 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5088 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5089 files.
5090 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5091 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5092 * configure.host: Add hppa*-*-openbsd*.
5093 * configure.tgt: Add hppa*-*-openbsd*.
5094
98bbd631
AC
50952004-06-25 Andrew Cagney <cagney@gnu.org>
5096
5097 * defs.h (deprecated_ui_loop_hook): Deprecated.
5098 * wince.c (child_wait): Update.
5099 * win32-nat.c (child_wait): Update.
5100 * v850ice.c (v850ice_wait): Update.
5101 * top.c (deprecated_ui_loop_hook): Update.
5102 * serial.h: Update.
5103 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5104 (do_unix_readchar): Update.
5105 * ser-tcp.c (net_open): Update.
5106 * remote-sim.c (gdb_os_poll_quit): Update.
5107 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5108
769d7dc4
AC
51092004-06-24 Andrew Cagney <cagney@gnu.org>
5110
5111 * defs.h (deprecated_pre_add_symbol_hook)
5112 (deprecated_post_add_symbol_hook): Deprecated.
5113 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5114 (symbol_file_add_with_addrs_or_offsets): Update references.
5115
11c949aa
AC
51162004-06-24 Andrew Cagney <cagney@gnu.org>
5117
5118 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5119 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5120 * wince.c (ui_loop_hook): Delete extern declaration.
5121 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5122 * v850ice.c (ui_loop_hook): Delete extern declaration..
5123 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5124 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5125 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5126 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5127 ui_loop_hook declaration.
5128
eedc19af
AC
51292004-06-24 Andrew Cagney <cagney@gnu.org>
5130
5131 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5132 entry_func_highpc fields.
5133 * objfiles.c (init_entry_point_info): Do not clear
5134 entry_func_lowpc and entry_func_highpc.
5135 (objfile_relocate): Do not relocate entry_func_lowpc and
5136 entry_func_highpc.
5137 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5138 entry_func_highpc.
5139 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5140 entry_func_highpc.
5141 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5142 entry_func_lowpc and entry_func_highpc with call to
5143 inside_entry_func.
5144
d47079be
MK
51452004-06-24 Mark Kettenis <kettenis@gnu.org>
5146
5147 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5148 quad-precision floating point arguments in registers.
5149
2107e348
MK
51502004-06-24 Mark Kettenis <kettenis@gnu.org>
5151
5152 From Michael Mueller <m.mueller99@kay-mueller.de>:
5153 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5154 account.
5155
46587c42
JJ
51562004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5157
5158 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5159 to -1.
5160 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5161 untriggered watchpoints to a separate if clause. Update function
5162 comment regarding STOPPED_BY_WATCHPOINT argument.
5163
226f5cf4
JB
51642004-06-22 Jim Blandy <jimb@redhat.com>
5165
5166 * gdbarch.sh: Doc fix.
5167
f10683bb
MH
51682004-06-21 Martin Hunt <hunt@redhat.com>
5169 Kevin Buettner <kevinb@redhat.com>
5170
5171 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5172 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5173 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5174 to set_gdbarch_sp_regnum(). Use cooked register number.
5175 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5176
412d5987
AC
51772004-06-21 Andrew Cagney <cagney@gnu.org>
5178
5179 * gdbarch.sh: When the macro field is empty, do not generate a
5180 macro definition. When the macro field is "=", generate the macro
5181 name from the upper-case function name.
5182 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5183 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5184 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5185 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5186 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5187 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5188 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5189 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5190 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5191 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5192 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5193 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5194 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5195 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5196 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5197 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5198 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5199 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5200 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5201 (DEPRECATED_USE_STRUCT_CONVENTION)
5202 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5203 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5204 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5205 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5206 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5207 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5208 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5209 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5210 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5211 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5212 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5213 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5214 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5215 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5216 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5217 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5218 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5219 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5220
68908a3e
AC
52212004-06-21 Andrew Cagney <cagney@gnu.org>
5222
48f7351b
AC
5223 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5224 macro name, and the function rather than macro value. Only wrap
5225 macro print statements in #ifdef. Move format logic to where it
5226 is needed.
5227 * gdbarch.c: Re-generate.
5228
283354d8
AC
5229 * gdbarch.sh (read): Delete "print_p" and "description", add
5230 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5231 Delete references to print_p.
5232 (TARGET_ARCHITECTURE): Delete print predicate.
5233 * gdbarch.c: Re-generate.
5234
68908a3e
AC
5235 * gdbarch.sh: Check that multi-arch methods do not provide a
5236 macro.
5237 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5238 (print_registers_info, print_float_info, print_vector_info)
5239 (adjust_breakpoint_address, remote_translate_xfer_address)
5240 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5241 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5242 name from the multi-arch definition.
5243
a2428dbe
AC
52442004-06-20 Andrew Cagney <cagney@gnu.org>
5245
5246 * gdbarch.sh: Sort by the function, instead of macro name.
5247 * gdbarch.c: Re-generate.
5248
750eb019
AC
52492004-06-20 Andrew Cagney <cagney@gnu.org>
5250
66d659b1
AC
5251 * gdbarch.sh: Use the function, instead of macro name in
5252 errors and the log file.
5253 (return_value): Remove stray ":" in spec.
5254
750eb019
AC
5255 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5256 * gdbarch.h, gdbarch.c: Re-generate.
5257 * Makefile.in (arch-utils.o): Update dependencies.
5258 * values.c (using_struct_return): Move code calling
5259 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5260 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5261 to legacy_return_value, simplify.
5262 * infcmd.c (print_return_value): Move code calling
5263 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5264 to legacy_return_value, simplify.
5265 * infcall.c (call_function_by_hand): Move code calling
5266 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5267 * arch-utils.c: Update copyright. Include "gdbcore.h".
5268 (legacy_return_value): New function.
5269 * arch-utils.h: Update copyright.
5270 (legacy_return_value): Declare.
5271
b5622e8d
AC
52722004-06-20 Andrew Cagney <cagney@gnu.org>
5273
5274 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5275 * gdbarch.h, gdbarch.c: Re-generate.
5276 * values.c (using_struct_return): Update call.
5277 * mcore-tdep.c: Update comment.
5278 * infcall.c (call_function_by_hand): Update comment.
5279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5280 * arch-utils.h (always_use_struct_convention): Update.
5281 * v850-tdep.c (v850_gdbarch_init): Update.
5282 * sh64-tdep.c (sh64_gdbarch_init): Update.
5283 * sh-tdep.c (sh_gdbarch_init): Update.
5284 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5285 * mips-tdep.c (mips_gdbarch_init): Update.
5286 * mcore-tdep.c (mcore_gdbarch_init): Update.
5287 * m32r-tdep.c (m32r_gdbarch_init): Update.
5288 * ia64-tdep.c (ia64_gdbarch_init): Update.
5289 * h8300-tdep.c (h8300_gdbarch_init): Update.
5290 * frv-tdep.c (frv_gdbarch_init): Update.
5291 * cris-tdep.c (cris_gdbarch_init): Update.
5292 * arm-tdep.c (arm_gdbarch_init): Update.
5293 * alpha-tdep.c (alpha_gdbarch_init): Update.
5294
5191de37
MC
52952004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5296
5297 * PROBLEMS: Add more specific information, and a work-around,
5298 for PR gdb/1458.
5299
782263ab
AC
53002004-06-18 Andrew Cagney <cagney@gnu.org>
5301
5302 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5303 * gdbarch.h, gdbarch.c: Re-generate.
5304 * ada-lang.c (ada_finish_decode_line_1): Update.
5305 * infrun.c (handle_inferior_event): Update.
5306 * infcall.c (find_function_addr): Update.
5307 * linespec.c (minsym_found): Update.
5308 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5309 Update.
5310 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5311 * cli/cli-cmds.c (disassemble_command): Update.
5312 * vax-tdep.c (vax_gdbarch_init): Update.
5313
2f305df1
MK
53142004-06-18 Mark Kettenis <kettenis@gnu.org>
5315
5316 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5317
e5fe55f7
AC
53182004-06-17 Andrew Cagney <cagney@gnu.org>
5319
5320 GDB 6.1.1 released from the GDB 6.1 branch.
5321 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5322 * PROBLEMS: Ditto.
5323
473b7be6
DJ
53242004-06-16 Daniel Jacobowitz <dan@debian.org>
5325
5326 PR gdb/1658
5327 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5328 operation as a uleb128. Found by Michael Coulter.
5329
96d887e8
PH
53302004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5331
5332 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5333 make it non-static.
5334 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5335 to ada-lang.h; this is needed to be able to implement the kill command
5336 in multi-task mode.
5337 (task_ptid): Ditto.
5338 (task_entry): Ditto.
5339 (task_list): Ditto.
5340 (ada_build_task_list): Ditto.
5341
5342 * ada-lang.c: Conditionalize routines and data structures related
5343 to breakpoints, exceptions, completion, and symbol caching on
5344 GNAT_GDB, since these are not yet used in the submitted public sources.
5345 (ada_main_name): Editorial: Move definition out of exception-related
5346 code.
5347
31eef181
AC
53482004-06-15 Andrew Cagney <cagney@gnu.org>
5349
5350 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5351 deprecated_pc_in_call_dummy.
5352
2c500098
AM
53532004-06-15 Alan Modra <amodra@bigpond.net.au>
5354
5355 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5356 bfd_get_section_size_before_reloc or _raw_size.
5357 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5358 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5359 (dwarf2_read_section): Likewise.
5360 * elfread.c (elf_locate_sections): Likewise.
5361 * gcore.c (derive_heap_segment): Likewise.
5362 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5363 * remote-e7000.c (e7000_load): Likewise.
5364 * remote-m32r-sdi.c (m32r_load): Likewise.
5365 * remote-mips.c (mips_load_srec): Likewise.
5366 (pmon_load_fast): Likewise.
5367 * remote.c (compare_sections_command): Likewise.
5368 * symfile.c (add_section_size_callback): Likewise.
5369 (load_section_callback): Likewise.
5370 (pc_in_unmapped_range): Likewise.
5371 (pc_in_mapped_range): Likewise.
5372 (sections_overlap): Likewise.
5373 (list_overlays_command): Likewise.
5374 (simple_overlay_update_1): Likewise.
5375 (simple_overlay_update): Likewise.
5376 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5377 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5378
90f943f1
RC
53792004-06-14 Randolph Chung <tausq@debian.org>
5380
5381 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5382 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5383 static.
5384 (hppa_hpux_inferior_created): New function.
5385 (hppa_hpux_init_abi): Register observer.
5386 * symfile.c (hp_cxx_exception_support_initialized)
5387 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5388 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5389
700c15aa
RC
53902004-06-14 Randolph Chung <tausq@debian.org>
5391
3973a7d3
AC
5392 * MAINTAINERS (Write After Approval): Alphabetize my entry
5393 correctly.
700c15aa 5394
cea4838c
AC
53952004-06-14 Andrew Cagney <cagney@gnu.org>
5396
5397 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5398 testsuite maintainer.
5399
97092415
AC
54002004-06-13 Andrew Cagney <cagney@gnu.org>
5401
e8c3165b
AC
5402 * infcmd.c (print_return_value): Fix logic, allow
5403 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5404
bceabdd8
AC
5405 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5406 defining any macros.
5407 * gdbarch.h: Re-generate.
5408
57010b1c
AC
5409 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5410 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5411 * gdbarch.h: Re-generate.
5412
bc87dfa0
AC
5413 * values.c (generic_use_struct_convention): Don't check gcc_p.
5414
15ac804d
AC
5415 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5416 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5417 * gdbarch.h, gdbarch.c: Regenerate.
5418 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5419 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5421 deprecated_max_register_raw_size and
5422 deprecated_max_register_virtual_size.
5423 * v850-tdep.c (v850_gdbarch_init): Ditto.
5424 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5425 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5426 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5427 * cris-tdep.c (cris_gdbarch_init): Ditto.
5428
97092415
AC
5429 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5430 * gdbarch.h, gdbarch.c: Re-generate.
5431 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5432 (m68hc11_use_struct_convention): Delete function.
5433 (m68hc11_extract_struct_value_address): Delete function.
5434 (m68hc11_return_value): New function.
5435 (m68hc11_gdbarch_init): Instead of store_return_value,
5436 extract_return_value, return_value_on_stack,
5437 deprecated_extract_struct_value_address and use_struct_convention,
5438 set return_value.
5439 * values.c (using_struct_return): Do not call
5440 RETURN_VALUE_ON_STACK.
5441 * arch-utils.h (generic_return_value_on_stack_not): Delete
5442 declaration.
5443 * arch-utils.c (generic_return_value_on_stack_not): Delete
5444 function.
5445
44e5158b
AC
54462004-06-12 Andrew Cagney <cagney@gnu.org>
5447
5448 * values.c (register_value_being_returned): Delete function.
5449 * infcmd.c (legacy_return_value): Delete function.
5450 * infcall.c (call_function_by_hand): Inline
5451 "register_value_being_returned", simplify.
5452 * values.c (using_struct_return): Update comment, refer to
5453 print_return_value instead of register_value_being_returned.
5454 * infcmd.c (print_return_value): Inline calls to
5455 register_value_being_returned and legacy_return_value. Simplify.
5456
b887c273
RC
54572004-06-11 Randolph Chung <tausq@debian.org>
5458
5459 * somread.c (som_symtab_read): Exclude gcc local symbols.
5460
1b2bfbb9
RC
54612004-06-11 Randolph Chung <tausq@debian.org>
5462
3973a7d3
AC
5463 * infrun.c (handle_inferior_event): Handle the case when a
5464 trampoline ends up in the runtime resolver, and if the trampoline
5465 has no name. Rearrange the code so that all the trampoline
5466 processing happens before other step-out-of-range handling.
1b2bfbb9 5467
a9d61c86
MH
54682004-06-11 Martin Hunt <hunt@redhat.com>
5469
5470 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5471 has no fpu.
5472
2c87cf5a
AC
54732004-06-10 Andrew Cagney <cagney@gnu.org>
5474
5475 * blockframe.c (legacy_inside_entry_func): Delete.
5476 (legacy_frame_chain_valid): Inline call to
5477 legacy_inside_entry_func, simplify.
5478
0b67b468 54792004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5480
5481 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5482 * dwarf2read.c (partial_die_info): Add dirname field.
5483 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5484 (read_partial_die): Save away DW_AT_comp_dir.
5485 * defs.h (symtab_to_filename): Removed.
5486 * source.c (find_and_open_source): Added.
57c22c6c 5487 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5488 (symtab_to_filename): Removed.
5489 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5490 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5491 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5492 symtab_to_filename.
5493 * symtab.h (partial_symtab): Add dirname field.
5494 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5495 (mi_cmd_file_list_exec_source_file): Call new function
5496 symtab_to_fullname to find fullname.
57c22c6c 5497 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5498 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5499 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5500
9a1dd1ad
AC
55012004-06-10 Andrew Cagney <cagney@gnu.org>
5502
239ae8c7
AC
5503 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5504 to generic_use_struct_convention, the default value.
5505
fc720350
AC
5506 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5507 of abort.
5508
9a1dd1ad
AC
5509 * ns32k-tdep.c (ns32k_push_arguments): New function.
5510 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5511 * infcall.c (call_function_by_hand): Call error instead of
5512 legacy_push_arguments.
5513 * value.h (legacy_push_arguments): Delete declaration.
5514 * valops.c (legacy_push_arguments): Delete function.
5515 (value_push): Delete function.
5516
fea25152
BF
55172004-06-10 Brian Ford <ford@vss.fsi.com>
5518
5519 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5520 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5521 info.
5522 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5523
30a4a8e0
AC
55242004-06-10 Andrew Cagney <cagney@gnu.org>
5525
5526 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5527 * gdbarch.h, gdbarch.c: Re-generate.
5528 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5529 parameters.
5530 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5531 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5532 deprecated_pc_in_call_dummy instead of
5533 DEPRECATED_PC_IN_CALL_DUMMY.
5534 (arm_skip_prologue): Ditto.
5535 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5536 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5537 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5538 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5539 Ditto.
5540 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5541 (sh64_init_extra_frame_info, sh64_get_saved_register)
5542 (sh64_pop_frame): Ditto.
5543 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5544 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5545 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5546 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5547 (h8300_pop_frame): Ditto.
5548 * blockframe.c (legacy_inside_entry_func)
5549 (legacy_frame_chain_valid): Ditto.
5550 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5551 to deprecated_pc_in_call_dummy.
5552
81cfbe54
AC
55532004-06-09 Andrew Cagney <cagney@gnu.org>
5554
a1f4a1b6
AC
5555 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5556 provide a default value.
5557 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5558 * gdbarch.h, gdbarch.c: Re-generate.
5559 * arch-utils.c (generic_convert_register_p): Rename
5560 legacy_convert_register_p
5561 (legacy_register_to_value, legacy_value_to_register): Delete
5562 functions.
5563 * arch-utils.h (generic_convert_register_p): Rename
5564 legacy_convert_register_p.
5565 (legacy_register_to_value, legacy_value_to_register): Delete
5566 declarations.
5567
9730f241
AC
5568 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5569 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5570 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5571 * gdbarch.h, gdbarch.c: Re-generate.
5572 * infcmd.c (default_print_registers_info): Simplify.
5573 * findvar.c (value_of_register): Simplify.
5574 * mi/mi-main.c (get_register): Simplify.
5575 * arch-utils.c (legacy_convert_register_p): Always return 0.
5576 (legacy_register_to_value, legacy_value_to_register): Always call
5577 internal_error.
5578
8a1bf479
AC
5579 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5580 #ifdef CLEAR_INSN_CACHE code.
5581 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5582 Delete #ifdef CLEAR_DEFERRED_STORES code.
5583
4b38d6f1
AC
5584 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5585
2d62ecc7
AC
5586 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5587 copyright.
5588 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5589
be4f7469
AC
5590 * config/mips/mipsv4.mh: Delete file.
5591
81cfbe54
AC
5592 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5593 unreferenced macro.
5594 (hpread_adjust_stack_address): Delete declaration.
5595
d966f0cb
AC
55962004-06-08 Andrew Cagney <cagney@gnu.org>
5597
5598 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5599 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5600 PTRACE_ATTACH / PTRACE_DETACH available call error.
5601 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5602 * infttrace.c (update_thread_state_after_attach, attach, detach):
5603 Remove #ifdef wrappers.
5604 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5605 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5606 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5607 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5608 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5609 * config/nm-linux.h (ATTACH_DETACH): Delete.
5610 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5611 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5612 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5613 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5614 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5615
d91670b9
CV
56162004-06-08 Corinna Vinschen <vinschen@redhat.com>
5617
5618 * configure.in: Set $configdir to the right OS specific value.
5619 Use value when setting $tcldir and $tkdir.
5620 * configure: Regenerate.
5621
28ba0b33
PB
56222004-06-06 Paul Brook <paul@codesourcery.com>
5623
5624 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5625 records.
5626
f26caa11
PH
56272004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5628
5629 * ada-lang.c (lookup_symbol_in_language): New function to allow
5630 re-use of another language's symbol lookup code. (Placed here
5631 temporarily while Ada support is being integrated into the public
5632 tree).
5633 (restore_language): New auxiliary function for
5634 lookup_symbol_in_language.
5635 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5636 temporarily while Ada support is being integrated into the public
5637 tree).
5638
d560a54b
AO
56392004-06-08 Alexandre Oliva <aoliva@redhat.com>
5640
e75d110c
AO
5641 * Makefile.in (check//%): New.
5642
d560a54b
AO
5643 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5644 (mn10300_store_return_value): Rewrite.
5645 (mn10300_type_align): New.
5646 (mn10300_use_struct_convention): Rewrite.
5647 (mn10300_return_value): New, using all of the above.
5648 (mn10300_pop_frame_regular): Add saved_regs_size.
5649 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5650
a72fbdb7
AO
5651 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5652 regs if PC is on movm.
5653
01904826
JB
56542004-06-07 Jim Blandy <jimb@redhat.com>
5655
5656 Add native Linux support for the PowerPC E500.
5657 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5658 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5659 all architectures except the E500.
5660 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5661 #definitions.
5662 (struct gdb_evrregset_t): New type.
5663 (have_ptrace_getsetevrregs): New variable.
5664 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5665 fetch_spe_registers): New functions.
5666 (fetch_register): Call fetch_spe_register as appropriate.
5667 Assert that we're only passed raw register numbers.
5668 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5669 Don't fetch gprs if they're pseudoregisters.
5670 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5671 store_spe_registers): New functions.
5672 (store_register): Call store_spe_register as appropriate.
5673 Assert that we're only passed raw register numbers.
5674 (store_ppc_registers): Call store_spe_registers as appropriate.
5675 Don't store gprs if they're pseudoregisters.
5676
f90ef764
JJ
56772004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5678
5679 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5680 struct if one exists, even if we are dealing with a zombie thread.
5681
45b75230
AC
56822004-06-07 Andrew Cagney <cagney@gnu.org>
5683
5684 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5685 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5686 Rename PC_REQUIRES_RUN_BEFORE_USE.
5687 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5688 #ifdef.
5689
1658da49
RC
56902004-06-07 Randolph Chung <tausq@debian.org>
5691
5692 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5693 unwinding after sp has been saved to the stack but before the end
5694 of the prologue, and after the fp has been modified but before it has
5695 been saved to the stack.
5696 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5697 Remove superfluous definitions.
5698 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5699
9a727a3c
RC
57002004-06-07 Guy Martin <gmsoft@gentoo.org>
5701
5702 Committed by Randolph Chung.
5703 * hppa-linux-nat.c: Include the correct version of the header file
5704 depending on the kernel version.
5705
9e500012
RC
57062004-06-06 Randolph Chung <tausq@debian.org>
5707
5708 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5709 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5710
3388d7ff
RC
57112004-06-06 Randolph Chung <tausq@debian.org>
5712
5713 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5714 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5715 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5716 * hppa-tdep.c (hppa_symbol_address): New function definition.
5717 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5718
d49771ef
RC
57192004-06-06 Randolph Chung <tausq@debian.org>
5720
5721 * hppa-tdep.h (struct value): Forward declaration.
5722 (gdbarch_tdep): Define tdep find_global_pointer method.
5723 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5724 associated with the function we are trying to call, and write it
5725 to the gp register.
5726 (hppa32_convert_from_funct_ptr_addr): New function.
5727 (hppa_find_global_pointer): New function.
5728 (hppa_gdbarch_init): Set default find_global_pointer method; set
5729 convert_from_func_ptr_addr method.
5730 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5731 (hppa_linux_init_abi): Set find_global_pointer method.
5732 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5733
7d9b040b
RC
57342004-06-06 Randolph Chung <tausq@debian.org>
5735
5736 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5737 to struct value *function.
5738 * gdbarch.c: Regenerate.
5739 * gdbarch.h: Likewise.
5740 * infcall.c (call_function_by_hand): Pass entire function value
5741 to push_dummy_call.
5742
5743 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5744 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5745 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5746 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5747 * arm-tdep.c (arm_push_dummy_call): Likewise.
5748 * avr-tdep.c (avr_push_dummy_call): Likewise.
5749 * cris-tdep.c (cris_push_dummy_call): Likewise.
5750 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5751 * frv-tdep.c (frv_push_dummy_call): Likewise.
5752 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5753 * hppa-tdep.c (hppa32_push_dummy_call)
5754 (hppa64_push_dummy_call): Likewise.
5755 * i386-tdep.c (i386_push_dummy_call): Likewise.
5756 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5757 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5758 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5759 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5760 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5761 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5762 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5763 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5764 (ppc64_sysv_abi_push_dummy_call): Likewise.
5765 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5766 (ppc64_sysv_abi_push_dummy_call): Likewise.
5767 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5768 * s390-tdep.c (s390_push_dummy_call): Likewise.
5769 * sh-tdep.c (sh_push_dummy_call_fpu)
5770 (sh_push_dummy_call_nofpu): Likewise.
5771 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5772 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5773 * vax-tdep.c (vax_push_dummy_call): Likewise.
5774
4a19ea35
JB
57752004-06-04 Jim Blandy <jimb@redhat.com>
5776
8327ccee
JB
5777 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5778 gdbarch argument to register_size.
5779
a3c001ce
JB
5780 * rs6000-tdep.c (rs6000_store_return_value): Use
5781 regcache_cooked_write_part instead of
5782 deprecated_write_register_bytes.
5783 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5784 not gdbarch_deprecated_store_return_value.
5785
4a19ea35
JB
5786 * ppc-linux-nat.c (store_register, fetch_register): Remove
5787 incorrect assertions. Simplify and generalize handling of
5788 transfers whose sizes are not multiples of, or less than, sizeof
5789 (PTRACE_XFER_TYPE).
5790
b9b5d7ea
JJ
57912004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5792
5793 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5794 as a new thread event.
720c7d64 5795 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5796 zombie, return TD_THR_ZOMBIE.
720c7d64 5797 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5798 TD_THR_ZOMBIE, check if the thread is still on the thread list
5799 and return a -1 ptid if not found.
5800 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5801 change the status to TARGET_WAITKIND_SPURIOUS.
5802
c8a3b559
CV
58032004-06-03 Corinna Vinschen <vinschen@redhat.com>
5804
5805 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5806 double values in little endian mode.
5807
20605361
AC
58082004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5809
5810 Committed by Andrew Cagney.
5811 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5812 after last enum constant to avoid error from IBM C
5813 compiler.
5814
bc97b3ba
JB
58152004-06-02 Jim Blandy <jimb@redhat.com>
5816
5817 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5818 to 'message', and make it local to the lone block that uses it.
5819
1da28ab0
JB
5820 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5821
4c4b4cd2
PH
58222004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5823
8a2225b2
PH
5824 * ada-exp.y: Update copyright notice.
5825 Include block.h.
5826
5827 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5828 SPECIAL_VARIABLE and unify the treatment of these cases.
5829
5830 (write_attribute_call0): Remove.
5831 (write_attribute_call1): Remove.
5832 (write_attribute_calln): Remove.
5833 (save_qualifier): Add missing semicolon.
5834
5835 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5836 temporarily disabled to allow compilation with FSF head version.
5837
5838 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5839 use individual operators (OP_*) for all attributes.
5840 (exp syntax): Use write_int.
5841 Handle STRING literals with OP_STRING.
5842 (variable syntax): Add limit parameter to calls to
5843 write_object_renaming.
5844
5845 (temp_parse_space): New definition to hold entities that need
5846 only live until the next call to ada_parse.
5847 (string_to_operator): Rename fields of ada_opname_table entries.
5848
5849 (write_var_from_sym): Record block.
5850 (write_var_from_name): Minor reformatting.
5851 Make sure saved name is properly encoded in the case of multiple
5852 matches, and set its language to Ada.
5853 Update comment.
5854 Modify to indicate unresolved name as symbol in the UNRESOLVED
5855 namespace, allocated in temp_parse_space.
5856 (write_int): New function.
5857
5858 (write_object_renaming): Add max_depth parameter to limit
5859 chains of object renamings.
5860 Handle case where root of renaming expression is itself a renaming.
5861 Use temp_parse_space for temporary name buffer.
5862 Handle renamings to dereferenced pointers (___XEXA suffices).
5863
5864 (ada_parse, yyerror, string_to_operator,
5865 write_var_from_sym, write_var_from_name, write_attribute_call0,
5866 write_attribute_call1, write_attribute_calln,
5867 write_object_renaming): Protoize.
5868
5869 (_initialize_ada_exp): New function.
5870
5871 * ada-lang.c: Update copyright notice.
5872 General terminology change to conform to GNAT compiler usage:
5873 mangle => encode, demangle => decode
5874 Include gdb_obstack.h.
5875 Include gdb_regex.h
5876 Include frame.h
5877 Include hashtab.h
5878 Include completer.h
5879 Include gdb_stat.h
5880 Include block.h
5881 Include infcall.h
5882
5883 (ADA_RETAIN_DOTS): Make sure this is defined.
5884 (TRUNCATION_TOWARDS_ZERO): Define.
5885 (struct string_vector): Define.
5886 (unresolved_names): Remove definition.
5887 (xnew_string_vector): New function.
5888 (string_vector_append): New function.
5889 (extract_string): Make static.
5890 (ada_unqualified_name): New function.
5891 (add_angle_brackets): New function.
5892 (function_name_from_pc): New function.
5893 (place_on_stack): Rename to ensure_lval.
5894
5895 (ensure_lval): Renamed from place_on_stack.
5896 Make identity on lvals.
5897 Update comment.
5898 (is_nonfunction): New interface.
5899 Only symbols in LOC_CONST class can be enumerals.
5900 (fill_in_ada_prototype): Remove; now independent of language.
5901 (add_defn_to_vec): Add obstack and symtab arguments.
5902 Use obstack to hold collected definitions.
5903 (num_defns_collected): New function.
5904 (defns_collected): New function.
5905 (ada_resolve_subexp): Rename to resolve_subexp.
5906 (resolve_subexp): Renamed from ada_resolve_subexp.
5907 (ada_op_name): Return non-const result.
5908 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5909 other purposes.
5910
5911 (to_fixed_array_type): Add declaration.
5912 (coerce_unspec_val_to_type): Remove offset parameter.
5913 (find_sal_from_funcs_and_line): New interface.
5914 (find_line_in_linetable): Ditto.
5915
5916 (all_sals_for_line): Rename to ada_sals_for_line and make
5917 global.
5918 Add new parameter. When set, do not ask the user to choose the
5919 instance, but use the first one found instead.
5920 Use given line number in returned sals.
5921 Fix comment.
5922 Skip the prologue if funfirstline is set.
5923 Correct for memory leak when 0 lines found.
5924
5925 (value_pos_atr): Use pos_atr.
5926 (pos_atr): New function.
5927 (standard_lookup): Add block parameter.
5928
5929 (makeTimeStart): Remove declaration and uses.
5930 (makeTimeStop): Remove declaration and uses.
5931
5932 (ada_completer_word_break_characters): Allow for VMS.
5933 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5934 (raise_sym_name): New constant.
5935 (raise_unhandled_sym_name): New constant.
5936 (raise_assert_sym_name): New constant.
5937 (process_raise_exception_name): New constant.
5938 (longest_exception_template): New constant.
5939 (warning_limit): New variable to limit warnings during expression
5940 evaluation.
5941 (warnings_issued): New variable to keep track of warnings issued.
5942 (known_runtime_file_name_patterns): New constant.
5943 (known_auxiliary_function_name_patterns): New constant.
5944 (symbol_list_obstack): New variable.
5945
5946 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5947 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5948 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5949 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5950 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5951 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5952 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5953 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5954 and strcmp.
5955
5956 (ada_get_field_index): New function.
5957 (lim_warning): New function.
5958 (ada_translate_error_message): New function.
5959 (MAX_OF_SIZE): New function.
5960 (MIN_OF_SIZE): New function.
5961 (UMAX_OF_SIZE): New function.
5962 (UMIN_OF_SIZE): New function.
5963 (discrete_type_high_bound): New function.
5964 (discrete_type_low_bound): New function.
5965 (base_type): New function.
5966 (do_command): Remove.
5967
5968 (ada_update_initial_language): Use language_ada, not language_unknown.
5969 (ada_encode): Renamed from ada_mangle.
5970 Obey ADA_RETAIN_DOTS.
5971 (ada_decode): Renamed from ada_demangle.
5972 Update coding conventions.
5973 (decoded_names_store): New hash table.
5974 (ada_decode_symbol): New function.
5975 (ada_la_decode): New function.
5976
5977 (modify_general_field): Correct computations of offset and bit
5978 position.
5979 (desc_base_type): Handle ref types, too.
5980 (ada_is_direct_array_type): New function.
5981
5982 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5983 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5984 (ada_is_bogus_array_descriptor,ada_type_of_array,
5985 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5986 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5987 ada_is_array_descriptor_type.
5988
5989 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5990 (ada_is_packed_array_type): Handle pointers or
5991 references to packed arrays as well.
5992 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5993 (decode_packed_array_type): Search for the packed array type
5994 symbol in the currently selected block and associated
5995 superblocks too.
5996 Use lookup_symbol again.
5997
5998 (decode_packed_array): Handle pointers and references.
5999 Update call to coerce_unspec_val_to_type.
6000 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6001 (ada_value_primitive_packed_val): Improve comment.
6002
6003 (ada_index_type): Substitute int type for "undefined".
6004 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6005 ada_array_langth, ada_is_string_type): Use renamed
6006 ada_is_simple_array_type.
6007 (empty_array): New function.
6008
6009 (ada_resolve): Rename to resolve.
6010 (resolve): Make static.
6011 Call renamed resolve_subexp.
6012 Update comment.
6013 (ada_resolve_subexp): Rename to resolve_subexp.
6014 (resolve_subexp): Update comment.
6015 Decomment disabled code.
6016 Add LOC_COMPUTED* cases.
6017 Modify to use temporary struct symbols (marked as being in
6018 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6019 OP_UNRESOLVED_VALUE.
6020 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6021 Add OP_STRING case.
6022 Remove OP_ARRAY.
6023 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6024 Use new ada_lookup_symbol_list interface.
6025 Use new ada_resolve_function interface.
6026 Remove OP_TYPE case.
6027
6028 (ada_args_match): Idiot proof against null actuals.
6029 Use intermediate variables to clarify.
6030 (ada_resolve_function): Update comment and interface.
6031 (mangled_ordered_before): Rename to encoded_ordered_before and
6032 update comment.
6033 (sort_choices): Update comment and interface.
6034 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6035 (user_select_syms): New interface.
6036 Use new sort_choices interface.
6037 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6038 (possible_user_operator_p): Idiot-proof against null values.
6039 (ada_simple_renamed_entity): Don't make cleanup; rely on
6040 caller to free result string.
6041 Remove const from return type.
6042 (make_array_descriptor): Rename uses of place_on_stack to
6043 ensure_lval.
6044 Make sure that arrays are on stack.
6045
6046 (HASH_SIZE): Define.
6047 (struct cache_entry): Define.
6048 (cache_space): Define.
6049 (cache): Define.
6050 (clear_ada_sym_cache): New function.
6051 (find_entry): New function.
6052 (lookup_cached_symbol): New function.
6053 (defn_vector_size): Define.
6054 (cache_symbol): New function.
6055 (defn_symbols): Remove.
6056
6057 (standard_lookup): Use lookup_symbol_in_language to get effect of
6058 C lookup.
6059 Cache results.
6060
6061 (symbol_completion_match): New function.
6062 (symbol_completion_add): New function.
6063 (ada_make_symbol_completion_list): New function.
6064
6065 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6066 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6067 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6068 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6069
6070 (ada_lookup_simple_minsym): New function.
6071 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6072
6073 (add_symbols_from_enclosing_procs): New interface.
6074 Conditionalize more helpfully.
6075 Don't bother if program isn't running.
6076 Use new interface to get_frame_block.
6077 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6078
6079 (remove_extra_symbols): New interface.
6080 (xget_renaming_scope): New function.
6081 (is_package_name): New function.
6082 (renaming_is_visible): New function.
6083 (remove_out_of_scope_renamings): New function.
6084
6085 (ada_lookup_symbol_list): New interface.
6086 Properly reinitialize the symbol list obstack.
6087 Don't call add_symbols_from_enclosing_procs if we start from a
6088 static or global block.
6089 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6090 add_symbols_from_enclosing_procs.
6091 Add symtab data to cached entries.
6092 Handle symbols prefixed with
6093 "standard__" specially; strip prefix and don't look in local symbols.
6094 Do not include out of scope renaming symbols in list of
6095 symbols returned.
6096 Add const to block parameter.
6097 Move check for non-local, non-global symbols earlier.
6098 Remove timing stuff.
6099 (ada_lookup_symbol): New interface.
6100 Find symtab as well.
6101 (ada_lookup_symbol_nonlocal): New function.
6102
6103 (is_name_suffix): Enhance suffix detection to recognize
6104 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6105 (is_dot_digits_suffix): New function.
6106 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6107
6108 (ada_add_block_symbols): New interface. Use obstack to return results
6109 in a vector of struct ada_symbol_infos. Add symtab argument.
6110 Use new interface to add_defn_to_vec.
6111 Remove calls to fill_in_ada_prototype.
6112 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6113
6114 (ada_finish_decode_line_1): Add const qualification to local to fix
6115 warning.
6116 Start looking in static block for functions to avoid attempts
6117 to search frame chain for up-level variables.
6118 Adapt to new ada_sals_for_line interface.
6119 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6120 Handle quoting of the function name inside the spec string.
6121 Skip prologue when funfirstline is set and update the
6122 function documentation to that effect.
6123
6124 (debug_print_lines, debug_print_block, debug_print_blocks,
6125 debug_print_symtab): Remove.
6126
6127 (ada_main_name): New function.
6128 (ada_exception_breakpoint_type): New function.
6129 (is_known_support_routine): New function.
6130 (ada_find_printable_frame): Renamed from find_printable_frame and made
6131 global.
6132 Remove level parameter.
6133 Use new interface to select_frame.
6134
6135 (begin_command): Remove.
6136 (ada_adjust_exception_stop): New function.
6137 (ada_print_exception_stop): New function.
6138 (exception_name_from_cond): New function.
6139 (ada_report_exception_break): Replace disabled code with
6140 conditionalization on GNAT_GDB.
6141 Get the exception name from the condition string.
6142 Remove and move functionality into new functions
6143 ada_print_exception_breakpoint_task and
6144 ada_print_exception_breakpoint_nontask.
6145 (error_breakpoint_runtime_sym_not_found): New function.
6146 (is_runtime_sym_defined): New function.
6147 (ada_breakpoint_rewrite): Uncomment suppressed code.
6148 Use symbolic error-message and runtime-symbol names.
6149 Surround runtime symbol names in quotes.
6150 Allow non-specific breakpoints on exceptions and assertions before
6151 program starts.
6152
6153 (ada_is_tagged_type): Add parameter.
6154 (ada_is_tag_type): New function.
6155 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6156 (ada_variant_discrim_type): Ditto.
6157 (value_tag_from_contents_and_address): New function.
6158 (type_from_tag): New function.
6159 (struct tag_args): New structure used to communicate with
6160 ada_tag_name_1.
6161 (ada_tag_name_1): New function.
6162 (ada_tag_name): New function.
6163
6164 (ada_scan_number): Update comment.
6165 (find_struct_field): New function.
6166 (ada_search_struct_field): Make static.
6167 (ada_value_struct_elt): New version that returns references when
6168 given pointers or references to structs.
6169 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6170 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6171 interface.
6172 (ada_value_ind): Use new ada_to_fixed_value interface.
6173 (ada_coerce_ref): Ditto.
6174 (field_offset): Remove.
6175
6176 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6177 (ada_find_renaming_symbol): New function.
6178 (ada_prefer_type): Prefer named types over unnamed ones.
6179 (variant_field_index): New function.
6180 (contains_variant_part): Removed: subsumed by variant_field_index.
6181 (ada_template_to_fixed_record_type): New function, mostly from
6182 template_to_fixed_record_type.
6183 (template_to_fixed_record_type):
6184 Do not scan the type fields beyond the last one; prevents a
6185 potential SEGV.
6186 Handle case where variant field is listed BEFORE discriminant it
6187 depends on.
6188 Fix calculation of record length when bit length is
6189 not evenly divisible by char length.
6190 Move code to ada_template_to_fixed_record_type and call it.
6191
6192 (template_to_static_fixed_type): Revise comment.
6193 Modify to work on ordinary record types as well as templates,
6194 so as to handle fields that use ___XVE or ___XVU encodings.
6195 (to_record_with_fixed_variant_part): Fill out comment.
6196 Initialize C++ stuff in right type.
6197 Allow case where DVAL is null.
6198 Handle case where variant field is not last.
6199 Fix typo concerning record length.
6200 (to_fixed_record_type): Decomment disabled code.
6201 (to_fixed_record_type): Use variant_field_index instead of
6202 contains_variant_part.
6203 (to_fixed_variant_branch_type): Ditto.
6204 (to_fixed_array_type): Decomment disabled code.
6205 (ada_to_fixed_type): Convert tagged types to the specific type.
6206 Deactivate the size-check for array types in order to avoid
6207 some false size alarms.
6208 (to_static_fixed_type): Decomment disabled code.
6209 Modify to call template_to_static_fixed_type
6210 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6211 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6212 Remove valaddr argument, as it is never really used.
6213 (ada_to_fixed_value): Change interface to act on single struct value*
6214 operand.
6215 (adjust_pc_past_prologue): New function.
6216 (ada_attribute_name): Modify to take enum exp_opcode argument.
6217
6218 (ada_enum_name): Recognize new homonym-distinguishing convention.
6219 Adjust local variable's type to remove compiler warning.
6220 Fix a small problem in the part that unqualifies the enumeration name.
6221 (ada_value_binop): New function.
6222 (ada_value_equal): New function.
6223
6224 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6225 Don't give error message when not doing normal evaluation
6226 and a tagged type doesn't seem to contain a structure member.
6227 Give error message for packed arrays.
6228 For indexing arrays, handle pointers to packed arrays correctly.
6229 Handle case of 'first and 'last attributes of bare integral type
6230 without encoded subtype info.
6231 Remove some unnecessary casts.
6232 Fix uninitialized value of type in computing 'first, 'last, or 'length
6233 of array object.
6234 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6235 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6236 calls.
6237 Attributes are now exp_opcode values.
6238 Correct treatment of 'modulus.
6239 Better error message for taking 'length of wrong kind of type;
6240 improve comment.
6241 Change EVAL_NORMAL to noside for consistency.
6242 Use ada_value_binop for DIV, MOD, REM.
6243 Make special case out of array of length 0, since an argument
6244 of 0 upsets some platforms' malloc.
6245 Use OP_STRING instead of OP_ARRAY.
6246 For slice, add check that we have an array type before extracting
6247 a slice out of it. Avoids a SEGV.
6248 When evaluating an array slice, if the array type is a reference to
6249 an aligner type, then replace the aligner type by the actual type.
6250 Decomment disabled code.
6251 Remove some dead code.
6252 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6253 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6254 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6255 and UNOP_MBR to UNOP_IN_RANGE.
6256 If an array type has a parallel ___XVE type, then use it.
6257 Turn arrays into pointers for lvalue arrays.
6258 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6259 bounds error and handle 0-length slices.
6260 Use lim_warning.
6261 When selecting fields, apply ada_to_fixed_value (because the fields
6262 might have ___XVU or ___XVE encodings even if not dynamic.)
6263 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6264 (ada_is_system_address_type): New function.
6265
6266 (get_var_value): Use new interface to ada_lookup_symbol_list.
6267 (get_int_var_value): New interface.
6268 (to_fixed_range_type): Allow unknown bound, with warning.
6269 (ada_is_modular_type): Decomment disabled code.
6270 (ADA_OPERATORS): New definition.
6271 (ada_operator_length): New function.
6272 (ada_expr_op_name): New function.
6273 (ada_forward_operator_length): New function.
6274 (ada_dump_subexp_body): New function.
6275 (ada_print_subexp): New function.
6276 (ada_exp_descriptor): New constant.
6277 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6278 (ada_language_defn): Add ada_exp_descriptor entry.
6279 Change ada_parse => parse.
6280 Add post-parser entry.
6281 Use ada-specific non-local symbol lookup.
6282 Don't use C-style arrays.
6283 String lower-bound is 1.
6284 Decomment disabled code.
6285 (parse): New function.
6286 New fields ada_translate_error_message, ada_lookup_symbol,
6287 ada_lookup_minimal_symbol.
6288
6289 * ada-lang.h: Update copyright dates.
6290 Replace the mangle/demangle terminology throughout by the
6291 more appropriate encode/decode one.
6292 Include breakpoint.h.
6293 Forward declare struct partial_symbol, struct block.
6294 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6295 (EXTRACT_ADDRESS): Remove.
6296 (EXTRACT_INT): Remove.
6297 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6298 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6299 (MAX_RENAMING_CHAIN_LENGTH): Define.
6300 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6301
6302 (enum task_states): Remove.
6303 ada_task_states: Remove.
6304 (fat_string): Remove.
6305 (struct entry_call): Remove.
6306 (struct task_fields): Remove.
6307 (struct task_entry): Remove.
6308
6309 (struct ada_symbol_info): Define.
6310 (enum ada_attribute): Remove.
6311 (enum ada_operator): Define.
6312
6313 (ada_get_field_index): Declare.
6314 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6315 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6316 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6317 (ada_lookup_symbol_list): New interface.
6318 (ada_decode_symbol): Declare.
6319 (ada_decode): Declare.
6320 (ada_lookup_symbol): New interface.
6321 (ada_update_initial_language): Declare.
6322 (ada_lookup_simple_minsym): Declare.
6323 (user_select_syms): New interface.
6324 (ada_sals_for_line): Declare.
6325 (ada_is_tagged_type): New interface.
6326 (ada_tag_name): Declare.
6327 (ada_lookup_struct_elt_type): Remove declaration.
6328 (ada_search_struct_field): Remove declaration.
6329 (ada_attribute_name): New interface.
6330 (ada_is_system_address_type): Declare.
6331 (ada_to_fixed_value): Remove declaration.
6332 (ada_template_to_fixed_record_type_1): Declare.
6333 (get_int_var_value): New interface.
6334 (ada_find_any_symbol): Declare.
6335 (ada_find_renaming_symbol): Declare.
6336 (ada_mangle): Rename to ada_encode.
6337 (ada_simple_renamed_entity): Remove const.
6338 (ada_main_name): Declare.
6339 (get_current_task): Rename to ada_get_current_task.
6340 (get_entry_number): Remove declaration.
6341 (ada_report_exception_break): Remove declaration.
6342 (ada_print_exception_breakpoint_nontask): Declare.
6343 (ada_print_exception_breakpoint_task): Declare.
6344 (ada_find_printable_frame): Declare.
6345
6346 * ada-lex.l: Update copyright notices.
6347 Use xmalloc and xfree instead of malloc and free.
6348 Use new interface to name_lookup.
6349 Use new interface to
6350 ada_mangle=>ada_encode.
6351 Redo handling of '$...' variable to parallel current treatment
6352 in c-exp.y.
6353 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6354 digit_to_int, strtoulst, processInt, processReal, processId,
6355 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6356 yywrap): Protoize.
6357
6358 (processInt): Use cast to remove harmless warning.
6359 (processReal): Modify to get rid of compiler warning on scan formats.
6360
6361 (processId): Replace xmalloc with obstack_alloc for name and remove
6362 call to ada_name_string_cleanup.
6363 Remove obsolete disabled code.
6364 (name_lookup): Ditto.
6365 New interface.
6366 Use obsavestring on temp_parse_space instead of savestring
6367 on name, and remove call to ada_name_string_cleanup.
6368 Free string returned from ada_simple_renamed_entity.
6369 Use new interface to ada_lookup_symbol_list.
6370 Decomment disabled code.
6371 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6372 not types.
6373 When a type name lookup succeeds as a result of
6374 lookup_primitive_typename, check for regular type entry that has not
6375 yet been read in.
6376 Limit length of chain of renamed symbols we are willing to follow.
6377 Do not break names beginning with "standard__" into segments.
6378 (block_lookup): Use new interface to ada_lookup_symbol_list.
6379
6380 * ada-typeprint.c: Update copyright notice.
6381 (demangled_type_name): Rename to decoded_type_name.
6382 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6383 (print_range_bound): Correct handling of negative
6384 bounds that make the index type looked unsigned under STABS.
6385 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6386 (print_range_type_named): Use the builtin int type if no type
6387 corresponding to the given type name could be found.
6388 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6389 Add some bullet-proofing.
6390 (print_variant_clauses): Allow for variant branches with ___XVU
6391 encodings that are not dynamic fields.
6392 Use new interface to ada_is_tagged_type.
6393 (print_record_type): Allow for fields with ___XVE encodings that
6394 are not dynamic fields.
6395 Use new interface to ada_is_tagged_type.
6396 (ada_print_type): ada_is_array_descriptor =>
6397 ada_is_array_descriptor_type.
6398
6399 * ada-valprint.c: Update copyright notice.
6400 Include gdb_string.h
6401 Include infcall.h
6402 (ui_memcpy): New function.
6403 (ada_print_floating): New function.
6404 (ada_print_str): Order arguments correctly.
6405 Correct handling of empty arrays and arrays of 0-length items.
6406 ada_is_array_descriptor => ada_is_array_descriptor_type
6407 Print values of type System.Address in hexadecimal format.
6408 Use ada_print_floating to print floating-point numbers in Ada format.
6409 Print class tag values with type names.
6410 No longer print the address of reference values. Avoids
6411 a potential confusion.
6412 (ada_value_print): Stop printing the object type for reference
6413 values, but preserve that behavior for access types. Avoids
6414 a potential confusion.
6415 Simplify one conditional expression, as the first part is now
6416 necessarily true.
6417 ada_is_array_descriptor => ada_is_array_descriptor_type
6418 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6419
f65f91b5
JB
64202004-06-01 Jim Blandy <jimb@redhat.com>
6421
6422 * ppc-tdep.h: Delete unused 'regoff' member.
6423 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6424
d4687fa0
MC
64252004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6426
6427 Fix PR symtab/1661.
6428 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6429 (hpread_read_struct_type): Likewise.
6430
de169ec9
AC
64312004-06-01 Andrew Cagney <cagney@gnu.org>
6432
c6902d46
AC
6433 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6434 instead of xasprintf.
6435 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6436 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6437 (mi_cmd_data_list_register_names)
6438 (mi_cmd_data_list_changed_registers)
6439 (mi_cmd_data_list_register_values)
6440 (get_register, mi_cmd_data_write_register_values)
6441 (mi_cmd_data_write_register_values)
6442 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6443 (mi_cmd_target_download, mi_cmd_target_select)
6444 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6445 (mi_execute_cli_command, mi_execute_async_cli_command)
6446 (mi_execute_async_cli_command): Ditto.
6447 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6448 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6449
6085fc2d
AC
6450 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6451 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6452 error_last_message instead of mi_error_last_message.
6453 * mi/mi-main.c (mi_error_last_message): Delete function.
6454
de169ec9
AC
6455 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6456 "invalid number of columns" error. Delete redundant "out of
6457 memory" check.
6458
1fc7d519
MK
64592004-05-31 Mark Kettenis <kettenis@gnu.org>
6460
6cfb2041
MK
6461 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6462 (gregset_t, fpregset_t): Remove typedefs.
6463 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6464 (REG_OFFSET): Rename argument.
6465 (i386bsd_r_reg_offset): Rename from reg_offset.
6466 (REG_ADDR): Remove macro.
6467 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6468 functions.
6469 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6470 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6471 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6472 instead of supply_gregset.
6473 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6474 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6475 instead of fill_gregset.
6476 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6477
1fc7d519
MK
6478 * i386bsd-nat.c: Don't include "gregset.h".
6479 (supply_gregset, fill_gregset): Make static.
6480 (supply_fpregset, fill_fpregset): Remove.
6481 * Makefile.in (i386bsd-nat.o): Update dependencies.
6482
2c34abbe
MK
64832004-05-30 Mark Kettenis <kettenis@gnu.org>
6484
448724fb
MK
6485 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6486 "gdb_assert.h". Con't include "gregset.h".
6487 (fbsd_make_corefile_notes): Use regset-based core file support
6488 instead off fill_gregset and fill_fpregset.
6489 * Makefile.in (fbsd-proc.o): Update dependencies.
6490
5ca8ca7c
MK
6491 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6492 instructions.
6493 (m88k_frame_prev_register): Simplify code a bit.
6494
593adc23
MK
6495 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6496 (amd64_collect_fpregset): New function.
6497 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6498
8d1b517b
MK
6499 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6500
7fdafb5a
MK
6501 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6502 (i386_collect_gregset): New function.
6503 (i386_supply_fpregset): Adjust comment.
6504 (i386_collect_fpregset): New function.
6505 (i386_regset_from_core_section): Use i386_collect_gregset and
6506 i386_collect_fpregset.
6507
8693c419
MK
6508 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6509 handle VALUEP being null.
6510
2c34abbe
MK
6511 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6512
45d134d8
MK
65132004-05-29 Mark Kettenis <kettenis@gnu.org>
6514
1698f4e7
MK
6515 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6516
45d134d8
MK
6517 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6518 assembler in OpenBSD 3.5-current.
6519 (amd64obsd_sigcontext_addr): Likewise.
6520
691d145a
JB
65212004-05-28 Jim Blandy <jimb@redhat.com>
6522
6523 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6524 register set, so our regcache isn't declared "legacy" and our E500
6525 pseudoregister read and write functions aren't ignored.
6526 (rs6000_register_byte, rs6000_register_raw_size,
6527 rs6000_register_virtual_type, rs6000_register_convertible,
6528 rs6000_register_convert_to_virtual,
6529 rs6000_register_convert_to_raw): Deleted.
6530 (rs6000_register_type, rs6000_convert_register_p,
6531 rs6000_register_to_value, rs6000_value_to_register): New
6532 functions.
6533 (rs6000_gdbarch_init): Don't register
6534 gdbarch_deprecated_register_size,
6535 gdbarch_deprecated_register_bytes,
6536 gdbarch_deprecated_register_byte,
6537 gdbarch_deprecated_register_raw_size,
6538 gdbarch_deprecated_register_virtual_type,
6539 gdbarch_deprecated_register_convertible,
6540 gdbarch_deprecated_register_convert_to_virtual, or
6541 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6542 register gdbarch_register_type, gdbarch_convert_register_p,
6543 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6544
18ed0c4e
JB
65452004-05-26 Jim Blandy <jimb@redhat.com>
6546
6547 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6548 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6549 functions, updated to match the register numberings used in GCC.
6550 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6551 rs6000_dwarf2_reg_to_regnum as register number conversions
6552 functions for STABS and Dwarf2.
6553
779af9e3
RC
65542004-05-26 Randolph Chung <tausq@debian.org>
6555
6556 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6557 in header file.
6558
c23968a2
JB
65592004-05-25 Joel Brobecker <brobecker@gnat.com>
6560
6561 * NEWS: Document new "start" command.
6562
3a7d1c27
RC
65632004-05-25 Randolph Chung <tausq@debian.org>
6564
6565 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6566 hppa-linux.
6567
43613416
RC
65682004-05-25 Randolph Chung <tausq@debian.org>
6569
6570 * hppa-hpux-tdep.c (offsetof): Define.
6571 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6572 (hppa32_hpux_frame_base_before_sigtramp)
6573 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6574 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6575 (hppa64_hpux_frame_base_before_sigtramp)
6576 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6577 functions.
6578 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6579 (hppa_hpux_sigtramp_frame_unwind_cache)
6580 (hppa_hpux_sigtramp_frame_this_id)
6581 (hppa_hpux_sigtramp_frame_prev_register)
6582 (hppa_hpux_sigtramp_frame_unwind)
6583 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6584 (hppa_hpux_init_abi): Register sigtramp unwinder.
6585 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6586
6d1be3f1
RC
65872004-05-25 Randolph Chung <tausq@debian.org>
6588
6589 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6590 and multiple stack unwinds.
6591 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6592
97c34f65
AC
65932004-05-25 Andrew Cagney <cagney@gnu.org>
6594
6595 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6596 * symfile-mem.h: Delete file.
6597 * symfile-mem.c: Do not include "symfile-mem.h".
6598 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6599 "struct bfd_section". When an error do not bother returning NULL.
6600 (add_symbol_file_from_memory_command): Use "struct bfd" and
6601 "struct bfd_section".
6602 * Makefile.in (symfile_mem_h): Delete.
6603 (symfile-mem.o): Update dependencies.
6604
e23cbd82
NR
66052004-05-25 Nick Roberts <nickrob@gnu.org>
6606
6607 * gdb-mi.el: New file.
6608
20d2ca3e
AC
66092004-05-25 Andrew Cagney <cagney@gnu.org>
6610
6611 * inftarg.c: Include "observer.h".
6612 (child_attach, child_create_inferior): Notify inferior_created.
6613 * corelow.c: Include "observer.h".
6614 (core_open): Notify inferior_created.
6615 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6616
c27cda74
AC
66172004-05-25 Andrew Cagney <cagney@gnu.org>
6618
6619 * target.h (struct target_ops): Add from_tty to
6620 to_create_inferior.
6621 (target_create_inferior, find_default_create_inferior): Update.
6622 * infcmd.c (run_command): Update.
6623 * wince.c (child_create_inferior): Update.
6624 * win32-nat.c (child_create_inferior): Update.
6625 * uw-thread.c (uw_thread_create_inferior): Update.
6626 * thread-db.c (thread_db_create_inferior): Update.
6627 * target.c (debug_to_create_inferior)
6628 (find_default_create_inferior): Update.
6629 (maybe_kill_then_create_inferior): Update.
6630 * sol-thread.c (sol_thread_create_inferior): Update.
6631 * remote.c (extended_remote_async_create_inferior)
6632 (extended_remote_create_inferior): Update.
6633 * remote-vx.c (vx_create_inferior): Update.
6634 * remote-st.c (st2000_create_inferior): Update.
6635 * remote-sim.c (gdbsim_create_inferior): Update.
6636 * remote-sds.c (sds_create_inferior): Update.
6637 * remote-rdp.c (remote_rdp_create_inferior): Update.
6638 * remote-rdi.c (arm_rdi_create_inferior): Update.
6639 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6640 * remote-e7000.c (e7000_create_inferior): Update.
6641 * procfs.c (procfs_create_inferior): Update.
6642 * ocd.c (ocd_create_inferior): Update.
6643 * ocd.h (ocd_create_inferior): Update.
6644 * nto-procfs.c (procfs_create_inferior): Update.
6645 * monitor.c (monitor_create_inferior): Update.
6646 * lin-lwp.c (lin_lwp_create_inferior): Update.
6647 * inftarg.c (child_create_inferior): Update.
6648 * hpux-thread.c (hpux_thread_create_inferior): Update.
6649 * gnu-nat.c (gnu_create_inferior): Update.
6650
1db2a798
AC
66512004-05-25 Andrew Cagney <cagney@gnu.com>
6652
6653 * MAINTAINERS: Update e-mail address.
6654
007d08bb
RC
66552004-05-24 Randolph Chung <tausq@debian.org>
6656
6657 * thread.c (info_threads_command, thread_apply_all_command)
6658 (thread_apply_command, thread_command, do_captured_thread_select):
6659 Remove HPUXHPPA-specific code.
6660
69e7b95e
RC
66612004-05-24 Randolph Chung <tausq@debian.org>
6662
6663 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6664 unused symbols.
6665 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6666 references.
6667
a4d5f2e0
JB
66682004-05-24 Joel Brobecker <brobecker@gnat.com>
6669
6670 * infcmd.c (kill_if_already_running): New function, extracted
6671 from run_command().
6672 (run_command): Replace extracted code by call to
6673 kill_if_already_running().
6674 (start_command): New function.
6675 (_initialize_infcmd): Add "start" command.
6676
bf2ca189
MK
66772004-05-24 Mark Kettenis <kettenis@gnu.org>
6678
6679 Add OpenBSD/m88k support.
6680 * NEWS (New native configurations): Mention OpenBSD/m88k.
6681 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6682 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6683 * Makefile.in (m88k_tdep_h): New variable.
6684 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6685 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6686 * configure.host: Add m88*-*-openbsd*.
6687 * configure.tgt: Add m88*-*-openbsd*.
6688
80fadb11
JB
66892004-05-24 Jim Blandy <jimb@redhat.com>
6690
6691 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6692 to approve changes.
6693
19e2d14b
KB
66942004-05-24 Kevin Buettner <kevinb@redhat.com>
6695
6696 * symtab.c (fixup_section): Search section table when lookup by
6697 name fails.
6698
1b07b470
RC
66992004-05-24 Randolph Chung <tausq@debian.org>
6700
6701 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6702 be "small_struct".
6703
368702b1
MK
67042004-05-24 Mark Kettenis <kettenis@gnu.org>
6705
5df97fde
MK
6706 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6707 register number in regcache_raw_collect call.
6708 (m68kbsd_collect_fpregset): Likewise.
6709 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6710
368702b1
MK
6711 * regset.h (struct regset): Add back `regset' member.
6712
a770d4ec
MK
67132004-05-23 Mark Kettenis <kettenis@gnu.org>
6714
70f9f479
MK
6715 * configure.in: Check for td_pcb in `struct thread'.
6716 * configure, config.in: Regenerated.
6717
2e16d79e
MK
6718 * dpx2-nat.c: Remove file.
6719 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6720 (dpx2-nat.o): Remove dependencies.
6721
492cf391
MK
6722 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6723 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6724 (amd64obsd_supply_pcb): New function.
6725 (_initialize_amd64obsd_nat): Enable libkvm interface.
6726 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6727 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6728 (LOADLIBES): New variable.
6729
a770d4ec
MK
6730 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6731 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6732 (sparc32nbsd_supply_pcb): New function.
6733 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6734 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6735 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6736 (LOADLIBES): New variable.
6737
9ea75c57
MK
67382004-05-22 Mark Kettenis <kettenis@gnu.org>
6739
2e0c3539
MK
6740 * bsd-kvm.c, bsd-kvm.h: New files.
6741 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6742 "bsd-kvm.h".
6743 (i386fbsd_supply_pcb): New function.
6744 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6745 (i386fbsd-nat.o): Update dependencies.
6746 (bsd_kvm_h): New variable.
6747 (bsd-kvm.o): New dependency.
6748 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6749 (LOADLIBES): New variable.
6750
9ea75c57
MK
6751 * regset.c: Tweak comment.
6752 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6753 macro.
6754 * regset.h: Update copyright year.
6755 (struct regset): Remove `descr' member, add `gdbarch' member.
6756 (regset_alloc): Adjust prototype and comment.
6757 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6758 (i386_supply_fpregset): Likewise.
6759 (i386_regset_from_core_section): Update call to regset_alloc.
6760 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6761 REGSET->arch.
6762 (i386obsd_aout_regset_from_core_section): Update call to
6763 regset_alloc.
6764 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6765 REGSET->arch.
6766 (i386nbsd_aout_regset_from_core_section): Update call to
6767 regset_alloc.
6768 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6769 REGSET->arch.
6770 (amd64_regset_from_core_section): Update call to regset_alloc.
6771 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6772 REGSET->arch.
6773 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6774 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6775 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6776 (sparc32nbsd_init_abi): Update call to regset_alloc.
6777 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6778 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6779 (sparc64obsd_init_abi): Update call to regset_alloc.
6780 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6781 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6782 (sparc64nbsd_init_abi): Update call to regset_alloc.
6783 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6784 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6785 (sparc64fbsd_init_abi): Update call to regset_alloc.
6786
867e2dc5
JB
67872004-05-22 Jim Blandy <jimb@redhat.com>
6788
6789 * ppc-tdep.h (spe_register_p): New declaration.
6790 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6791 ppc_spefscr_regnum.
6792 * rs6000-tdep.c (spe_register_p): New function.
6793 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6794 spefscr.
6795 (rs6000_gdbarch_init): Initialize the new members of the tdep
6796 structure.
6797
617a4cba
JB
67982004-05-21 Jim Blandy <jimb@redhat.com>
6799
0397dee1
JB
6800 * ppc-linux-nat.c (fetch_register): Move code back to be next
6801 to the comment that describes it. (Moved code, instead of
6802 comment, for symmetry with store_register.)
6803
617a4cba
JB
6804 Allocate regset structures in the gdbarch's obstack, not using
6805 xmalloc.
6806 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6807 Add 'arch' argument. Allocate the regset on arch's obstack, not
6808 using xmalloc.
6809 * regset.h (regset_alloc): Update declaration.
6810 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6811 gdbarch argument.
6812 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6813 * i386-tdep.c (i386_regset_from_core_section): Same.
6814 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6815 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6816 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6817 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6818 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6819 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6820
9aa3914d
JB
68212004-05-21 Joel Brobecker <brobecker@gnat.com>
6822
6823 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6824
99c87dab
JB
68252004-05-21 Jim Blandy <jimb@redhat.com>
6826
6827 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6828 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6829
c2b6b4aa
JB
68302004-05-20 Jim Blandy <jimb@redhat.com>
6831
6832 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6833
144529d0
MK
68342004-05-20 Mark Kettenis <kettenis@gnu.org>
6835
6836 * regset.h: Make prototype const-correct.
6837 * regset.c (regset_xmalloc): Make const-correct.
6838
4725b721
PH
68392004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6840
6841 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6842 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6843 (symbol_search_name): Declare.
6844
6845 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6846 (iter_name_next_hashed): Ditto.
6847 (iter_name_next_linear): Ditto.
6848 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6849
6850 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6851 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6852 (symbol_search_name): New function.
6853
6854 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6855
6856 * minsyms.c (build_minimal_symbol_hash_tables): Change
6857 test for adding to demangled hash table to check for difference
6858 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6859
be07a590
JB
68602004-05-19 Jim Blandy <jimb@redhat.com>
6861
6862 Use a constructor function to create regset structures.
6863 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6864 (struct regset): Use supply_regset_ftype. Add new
6865 'collect_regset' member.
6866 (regset_xmalloc): New declaration.
6867 * regset.c: New file.
6868 * am64-tdep.c (amd64_regset_from_core_section): Use
6869 regset_xmalloc to construct regset structures.
6870 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6871 * i386-tdep.c (i386_regset_from_core_section): Same.
6872 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6873 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6874 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6875 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6876 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6877 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6878 * Makefile.in (COMMON_OBS): Add regset.o.
6879 (regset.o): New rule.
6880
604368f5
JB
68812004-05-19 Joel Brobecker <brobecker@gnat.com>
6882
6883 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6884 and pthread_cond_wait.c.
6885
82d69f8b
JB
68862004-05-18 Jim Blandy <jimb@redhat.com>
6887
6888 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6889 before the mach-specific switch, and then let the individual cases
6890 override the defaults, rather than leaving them uninitialized
6891 until the switch and then setting them in each case.
6892
5859efe5
RC
68932004-05-18 Randolph Chung <tausq@debian.org>
6894
6895 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6896 millicode functions.
6897
9ca80cf8
RC
68982004-05-18 Randolph Chung <tausq@debian.org>
6899
6900 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6901 references to dld_flags_buffer consistent.
6902
ed70ba00
RC
69032004-05-18 Randolph Chung <tausq@debian.org>
6904
6905 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6906 it for unwinding the stack.
6907
63100632
RC
69082004-05-18 Randolph Chung <tausq@debian.org>
6909
6910 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6911 Undefine these so we can overide them using gdbarch.
6912
090ccbb7
RC
69132004-05-18 Randolph Chung <tausq@debian.org>
6914
6915 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6916 handling for 64-bit HPUX (elf).
6917
594706e6
DJ
69182004-05-18 Daniel Jacobowitz <dan@debian.org>
6919
6920 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6921 constants.
6922 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6923 * ia64-tdep.c (examine_prologue): Likewise.
6924 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6925 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6926
e5483145
MK
69272004-05-18 Mark Kettenis <kettenis@gnu.org>
6928
6929 * vax-tdep.c (vax_return_value): Implement
6930 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6931
caed1a45
MK
69322004-05-17 Mark Kettenis <kettenis@gnu.org>
6933
6934 * vax-tdep.c (vax_return_value): Fix typo.
6935
3c0b7db2
AC
69362004-05-17 Andrew Cagney <cagney@redhat.com>
6937
5aae53e5
AC
6938 * MAINTAINERS: Mark Salter was also responsible for
6939 testsuite/config/
6940
3c0b7db2
AC
6941 * NEWS: Mention signal fixes.
6942
22b0923d
RC
69432004-05-17 Randolph Chung <tausq@debian.org>
6944
6945 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6946 check to see if we are unwinding an export stub. Export stubs clobber
6947 the %rp in the call path and stores the original rp in a stack slot.
6948
22f2b2f3
JB
69492004-05-17 Jim Blandy <jimb@redhat.com>
6950
6951 * MAINTAINERS: Update address for J.T. Conklin.
6952
cea96d64
RC
69532004-05-17 Randolph Chung <tausq@debian.org>
6954
6955 * hppa-tdep.c: Remove superfluous #include's.
6956 * Makefile.in (hppa-tdep.o): Update dependencies.
6957
f08f6a4a
RC
69582004-05-17 Randolph Chung <tausq@debian.org>
6959
6960 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6961 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6962 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6963 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6964 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6965 Remove static function declarations.
6966
51da707a
MK
69672004-05-17 Mark Kettenis <kettenis@gnu.org>
6968
caed1a45
MK
6969 * alphabsd-nat.c: Update copyright year.
6970 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6971
c0c2b0db
MK
6972 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6973 and M68K_A2_REGNUM.
6974
51da707a
MK
6975 * m68k-tdep.c (m68k_svr4_return_value): Implement
6976 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6977
8d027a04
MK
69782004-05-16 Mark Kettenis <kettenis@gnu.org>
6979
6980 * sol-thread.c Update copyright year. Fix various coding
6981 standards violations. Tweak a few comments.
6982 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6983 Delete prototypes.
6984
0d99fdb9
RC
69852004-05-15 Randolph Chung <tausq@debian.org>
6986
6987 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6988 as pointer instead of array reference since HPUX compiler does
6989 not accept unsized array arguments.
6990 * somsolib.c (dld_flags_buffer): Use constant array size.
6991
f7e3843a
MK
69922004-05-15 Mark Kettenis <kettenis@gnu.org>
6993
0fe85704
MK
6994 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6995 offset with decimal offset.
6996 (amd64obsd_sigcontext_addr): Return correct address for entire
6997 signal trampoline.
6998
a54f9a00
MK
6999 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7000 instead of get_frame_base.
7001
feae6502
MK
7002 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7003 (fill_gregset): Use regcache_raw_collect.
7004
0382d099
MK
7005 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7006 ppcobsd-tdep.c.
7007
f7e3843a
MK
7008 * config/sparc/tm-nbsd64.h: Remove file.
7009 * config/tm-sunos.h: Remove file.
7010
773df3e5
JB
70112004-05-15 Joel Brobecker <brobecker@gnat.com>
7012
7013 * rs6000-tdep.c (store_param_on_stack_p): New function,
7014 an improved version of some code extracted from skip_prologue().
7015 (skip_prologue): Use store_param_on_stack_p() to detect
7016 instructions saving a parameter on the stack. Detect when r0
7017 is used to save a parameter.
7018 Do not mark "li rx, SIMM" instructions as part of the prologue,
7019 unless the following instruction is also part of the prologue.
7020
95918acb
AC
70212004-05-14 Andrew Cagney <cagney@redhat.com>
7022
06f32659
AC
7023 * infrun.c (handle_inferior_event): Simplify
7024 STEP_OVER_UNDEBUGGABLE.
7025
95918acb
AC
7026 * infrun.c (handle_step_into_function): Delete function.
7027 (handle_inferior_event): Inline calls to
7028 handle_step_into_function.
7029
40711ff1 70302004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7031
7032 * rs6000-nat.c: Fix a comment.
7033
02f60eae
JB
70342004-05-12 David Anderson <davea@sgi.com>
7035
7036 Committed by Jim Blandy <jimb@redhat.com>:
7037 * regcache.c (struct regcache_descr): fix comment spelling.
7038
552e377b
JB
70392004-05-13 J. Brobecker <brobecker@gnat.com>
7040
7041 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7042 Fixes a link link failure.
7043
349766b2
JB
70442004-05-13 J. Brobecker <brobecker@gnat.com>
7045
7046 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7047 error that was causing the build to fail.
7048
0d4d5484
JB
70492004-05-13 J. Brobecker <brobecker@gnat.com>
7050
7051 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7052 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7053
0b30808c
AC
70542004-05-13 Andrew Cagney <cagney@redhat.com>
7055
7056 * infrun.c (handle_inferior_event): Check for
7057 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7058 calls. Update comments.
7059
cdf2c5f5
JB
70602004-05-13 Jim Blandy <jimb@redhat.com>
7061
063715bf
JB
7062 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7063 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7064 (store_regs_user_thread, store_regs_kernel_thread): Use
7065 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7066 * ppc-linux-nat.c (fill_gregset): Same.
7067 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7068 (ppc_linux_sigtramp_cache): Same.
7069 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7070 (ppcnbsd_sigtramp_cache_init): Same.
7071 * rs6000-nat.c (fetch_core_registers): Same.
7072 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7073 (rs6000_frame_cache): Same.
7074
cdf2c5f5
JB
7075 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7076 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7077 of assuming that the gprs are numbered starting with zero.
7078 * ppc-linux-nat.c (fill_gregset): Same.
7079 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7080 * ppcnbsd-nat.c (getregs_supplies): Same.
7081 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7082 * rs6000-nat.c (fetch_core_registers): Same.
7083 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7084
450bd37b
MS
70852004-05-07 Michael Snyder <msnyder@redhat.com>
7086
7087 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7088 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7089
4a72a2a6
AC
70902004-05-13 Andrew Cagney <cagney@redhat.com>
7091
7092 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7093
8edfa926
BM
70942004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7095
7096 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7097 base_address for shared libraries.
7098
723e0e3d
BM
70992004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7100
7101 * MAINTAINERS (write after approval): Add myself.
7102
00d4360e
UW
71032004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7104
7105 * breakpoint.c (bpstat_stop_status): Add new argument
7106 STOPPED_BY_WATCHPOINT. Use it instead of testing
7107 target_stopped_data_address agaist 0 to check whether
7108 or not we stopped due to a hardware watchpoint.
7109 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7110 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7111 with new argument.
7112
ec76baa5
JB
71132004-05-12 Jim Blandy <jimb@redhat.com>
7114
7115 * configure.in: When checking whether we should use the -bbigtoc
7116 option, don't forget to restore the original value of LDFLAGS.
7117 * configure: Regenerated.
7118
f2c9ca08
AC
71192004-05-12 Andrew Cagney <cagney@redhat.com>
7120
7121 * thread.c (load_infrun_state): Delete step_sp.
7122 * infrun.c (context_switch): Ditto.
7123 * inferior.h (step_sp): Ditto.
7124 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7125 * gdbthread.h (struct thread_info, save_infrun_state)
7126 (restore_infrun_state): Ditto.
7127
090ddb2a
UW
71282004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7129
7130 * MAINTAINERS (write after approval): Add myself.
7131
8aad930b
AC
71322004-05-12 Andrew Cagney <cagney@redhat.com>
7133
7134 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7135 eliminate reference to step_sp.
7136 (struct execution_control_state, init_execution_control_state)
7137 (handle_inferior_event, keep_going): Delete update_step_sp and
7138 step_sp.
7139 * infcmd.c (step_sp): Note that variable is unused.
7140
922d5ae0
AC
71412004-05-11 Andrew Cagney <cagney@redhat.com>
7142
7143 * infrun.c (step_over_function): Delete function.
7144 (handle_step_into_function): Use insert_step_resume_breakpoint.
7145 (insert_step_resume_breakpoint): Fix assertion.
7146
017c5ca5
NR
71472004-05-11 Nick Roberts <nickrob@gnu.org>
7148
7149 * utils.c (defaulted_query): Just use the normal query input type
7150 when printing the annotations.
7151
42edda50
AC
71522004-05-11 Andrew Cagney <cagney@redhat.com>
7153
7154 * infrun.c (handle_inferior_event): Simplify code handling
7155 step-into or return-from a signal trampoline.
7156
d28b44a7
AC
71572004-05-11 Andrew Cagney <cagney@redhat.com>
7158
7159 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7160 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7161
383f0f5b
JB
71622004-05-10 Jim Blandy <jimb@redhat.com>
7163
d0b57c3a
JB
7164 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7165 with a call to internal_error.
7166
383f0f5b
JB
7167 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7168 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7169 processor variant lacks those registers.
7170 (ppc_floating_point_unit_p): Change description to make it clear
7171 that this returns info about the ISA, not the ABI.
7172 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7173 return true or false by checking tdep->ppc_fp0_regnum and
7174 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7175 arch/mach switching done in rs6000_gdbarch_init; it's better to
7176 keep that logic there, and just check the results here.
7177 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7178 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7179 floating-point registers.
7180 (ppc_supply_fpregset, ppc_collect_fpregset)
7181 (rs6000_push_dummy_call, rs6000_extract_return_value)
7182 (rs6000_store_return_value): Assert that we have floating-point
7183 registers.
7184 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7185 (rs6000_frame_cache): Don't note the locations at which
7186 floating-point registers were saved if we have no fprs.
7187 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7188 registers.
7189 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7190 (store_regs_user_thread, store_regs_kernel_thread): Only call
7191 supply_fprs / fill_fprs if we actually have floating-point
7192 registers.
7193 (special_register_p): Check ppc_fpscr_regnum before matching
7194 against it.
7195 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7196 supply / collect fpscr if we don't have it.
7197 * ppc-bdm.c: #include "gdb_assert.h".
7198 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7199 have floating-point registers, since I can't test this code on
7200 FP-free systems to adapt it.
7201 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7202 fpscr and floating point register numbers if they don't exist.
7203 (fetch_register): Assert that we have floating-point registers
7204 before we reach the code that handles them.
7205 (store_register): Same. And use tdep instead of calling
7206 gdbarch_tdep again.
7207 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7208 don't have them.
7209 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7210 fprs and fpscr if we don't have them.
7211 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7212 don't have them.
7213 * ppcnbsd-nat.c: #include "gdb_assert.h".
7214 (getfpregs_supplies): Assert that we have floating-point registers.
7215 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7216 * ppcobsd-tdep.c: #include "gdb_assert.h".
7217 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7218 have floating-point registers.
7219 * rs6000-nat.c (regmap): Don't match against the fpscr and
7220 floating point register numbers if they don't exist.
7221 (fetch_inferior_registers, store_inferior_registers,
7222 fetch_core_registers): Only fetch / store / supply the
7223 floating-point registers and the fpscr if we have them.
7224 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7225 (ppcobsd-tdep.o): Update dependencies.
7226
15960608
AC
72272004-05-10 Andrew Cagney <cagney@redhat.com>
7228
7229 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7230 (context_switch): Do not switch through_sigtramp_breakpoint.
7231 * gdbthread.h (save_infrun_state, load_infrun_state)
7232 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7233 and structure member.
7234 * thread.c (load_infrun_state, save_infrun_state): Update.
7235
5ab5aa0f
MK
72362004-05-10 Mark Kettenis <kettenis@gnu.org>
7237
7238 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7239
da78b0e7
DJ
72402004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7241
7242 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7243 throughout.
7244 * aclocal.m4: Regenerate.
7245
cca0d3b0
NW
72462004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7247
7248 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7249
d303a6c7
AC
72502004-05-10 Andrew Cagney <cagney@redhat.com>
7251
7252 * infrun.c (check_sigtramp2): Delete function.
7253 (handle_inferior_event): When single stepping, and taking a
7254 signal, set a breakpoint at the signal return address. Delete
7255 redundant calls to check_sigtramp2.
7256 (insert_step_resume_breakpoint): New function.
7257 (through_sigtramp_breakpoint, handle_inferior_event)
7258 (follow_exec, wait_for_inferior, fetch_inferior_event)
7259 (currently_stepping, keep_going): Delete most uses of
7260 through_sigtramp_breakpoint, not that it should be deleted.
7261 (delete_breakpoint_current_contents): Delete function.
7262
03f4cc20
RC
72632004-05-10 Randolph Chung <tausq@debian.org>
7264
7265 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7266 target.
7267 * config/pa/tm-linux.h: New file.
7268
37fc812e
DJ
72692004-05-10 Daniel Jacobowitz <drow@mvista.com>
7270
7271 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7272 of prefixes. Don't print the prefix twice in the CLI.
7273
26c0b942
JB
72742004-05-10 Jim Blandy <jimb@redhat.com>
7275
2e56e9c1
JB
7276 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7277 collect all the gprs.
7278
26c0b942
JB
7279 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7280 loop collecting gprs.
7281
dc497459
AC
72822004-05-09 Andrew Cagney <cagney@redhat.com>
7283
7284 * remote-vx.c (net_step): Delete step-range code.
7285 * remote.c (remote_resume, init_all_packet_configs)
7286 (set_remote_protocol_E_packet_cmd)
7287 (show_remote_protocol_E_packet_cmd)
7288 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7289 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7290 (show_remote_protocol_e_packet_cmd): Ditto.
7291
0543f387
MK
72922004-05-09 Mark Kettenis <kettenis@gnu.org>
7293
c481d1ca
MK
7294 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7295
f626a069
MK
7296 * hppa-tdep.h: Update copyright year.
7297 (struct trad_frame_saved_reg): Add opaque declaration.
7298
6fa57a7d
MK
7299 * amd64-tdep.c (amd64_return_value): Implement
7300 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7301
e47577ab
MK
7302 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7303 (m68k_value_to_register): New functions.
7304 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7305 value_to_register.
7306
31db7b6c
MK
7307 * defs.h (enum return_value_convention): Add
7308 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7309 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7310 * infcmd.c (legacy_return_value): New function.
7311 (print_return_value): Rwerite to implement
7312 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7313 * values.c (using_struct_return): Check for inequality to
7314 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7315 RETURN_VALUE_STRUCT_CONVENTION.
7316 * i386-tdep.c (i386_return_value): Implement
7317 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7318
0543f387
MK
7319 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7320 include "symtab.h", "opcode/vax.h" and "inferior.h".
7321 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7322 to read_memory_unsigned_integer.
7323 (vax_gdbarch_init): Reorder.
7324 (_initialize_vax_tdep): Spell out prototype.
7325 * Makefile.in (vax-tdep.o): Update dependencies.
7326
0c93b7b6
AC
73272004-05-08 Andrew Cagney <cagney@redhat.com>
7328
e6b55ae2
AC
7329 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7330 * target.c (target_detach, target_disconnect): Ditto.
7331
1ac839b8
AC
7332 * infcall.c (call_function_by_hand): When no
7333 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7334 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7335 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7336 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7337 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7338
28954179
AC
7339 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7340 * gdbarch.h, gdbarch.c: Re-generate.
7341 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7342 deprecated_fix_call_dummy.
7343 * v850-tdep.c (v850_gdbarch_init): Ditto.
7344 * infcall.c (call_function_by_hand): Do not call
7345 DEPRECATED_FIX_CALL_DUMMY.
7346
434b87dd
AC
7347 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7348 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7349 * gdbarch.h, gdbarch.c: Re-generate.
7350 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7351 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7352 deprecated_sizeof_call_dummy_words.
7353 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7355 * v850-tdep.c (v850_gdbarch_init): Ditto.
7356 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7357 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7358 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7359 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7360 * arch-utils.h (legacy_call_dummy_words)
7361 (legacy_sizeof_call_dummy_words): Delete declarations.
7362 * arch-utils.c (legacy_call_dummy_words)
7363 (legacy_sizeof_call_dummy_words): Delete variables.
7364
58d28df8
AC
7365 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7366 * gdbarch.h, gdbarch.c: Re-generate.
7367 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7368 * infcall.c (call_function_by_hand): Eliminate call to
7369 DEPRECATED_PUSH_DUMMY_FRAME.
7370 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7371 push_dummy_frame.
7372 (ns32k_push_dummy_frame): Delete function.
7373
e4a2df64
AC
7374 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7375 deprecated_call_dummy_breakpoint_offset or
7376 deprecated_call_dummy_start_offset.
7377 * dummy-frame.c, arm-tdep.c: Update comments.
7378 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7379 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7380 * gdbarch.h, gdbarch.c: Re-generate.
7381
d3712828
AC
7382 * infcall.c (legacy_push_dummy_code): Delete function.
7383 (push_dummy_code): Delete call.
7384
7a882905
AC
7385 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7386 * gdbarch.h, gdbarch.c: Re-generate.
7387 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7388 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7389 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7390 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7391
0ec5872b
AC
7392 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7393 (struct frame_info): Delete opaque declaration.
7394 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7395 * frame.c (get_frame_type): Delete call.
7396
0c93b7b6
AC
7397 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7398 pc_in_call_dummy.
7399 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7400 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7401
75536971
MK
74022004-05-08 Mark Kettenis <kettenis@gnu.org>
7403
527ca6bb
MK
7404 * alphanbsd-tdep.c: Include "gdb_string.h".
7405 * armnbsd-tdep.c: Update copyright year.
7406 Include "gdb_string.h".
7407 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7408 dependencies.
7409
d39fdc61
MK
7410 * delta68-nat.c: Remove file.
7411 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7412 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7413 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7414 (delta68-nat.o): Remove dependency.
7415
75536971
MK
7416 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7417 function.
7418 (m68k_gdbarch_init): Don't set
7419 deprecated_frameless_function_invocation.
7420
f4ca1d1f
RC
74212004-05-07 Randolph Chung <tausq@debian.org>
7422
7423 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7424 read_memory_nobpt for code reading when doing frame unwinding.
7425 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7426
2f0e8c7a
RC
74272004-05-07 Randolph Chung <tausq@debian.org>
7428
7429 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7430 instead of sp, handle sigaltstack case.
7431 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7432 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7433 signal handler and not that of the caller.
7434 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7435 hppa_linux_sigtramp_find_sigcontext.
7436
959464ff
RC
74372004-05-07 Randolph Chung <tausq@debian.org>
7438
7439 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7440 hppa-linux-nat.c.
7441 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7442 * hppa-linux-nat.c (fetch_register, store_register): Define.
7443 (fetch_inferior_registers, store_inferior_registers): Define.
7444 (supply_gregset): Add comment and clean up some unneeded code.
7445 (fill_gregset): Add comment and fix so that it saves registers in
7446 the right place in the gregset.
7447 (fill_fpregset): Fix buffer overrun problem.
7448 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7449
0da28f8a
RC
74502004-05-07 Randolph Chung <tausq@debian.org>
7451
7452 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7453 do common handling of the pcoqt register.
7454 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7455 to use helper function.
7456 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7457 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7458 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7459 generic fallback unwinder when all else fails.
7460 (hppa_gdbarch_init): Add fallback sniffer.
7461 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7462 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7463 to use helper function.
7464
b9ec757a
JB
74652004-05-08 Joel Brobecker <brobecker@gnat.com>
7466
7467 * config/djgpp/fnchange.lst: Add translation rules for
7468 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7469
756e95f1
MK
74702004-05-08 Mark Kettenis <kettenis@gnu.org>
7471
7472 * frame.c (get_prev_frame_1): Work around GCC bug.
7473 * frame.h: Add comment about GCC bug.
7474
2b4855ab
AC
74752004-05-07 Andrew Cagney <cagney@redhat.com>
7476
7477 * observer.c: Include "commands.h" and "gdbcmd.h".
7478 (observer_debug, _initialize_observer): Add the
7479 command "set/show debug observer".
7480 * observer.sh: When observer debugging, log notify calls.
7481 * Makefile.in (observer.o): Update dependencies.
7482
ba3e8e46
JM
74832004-05-07 Jason Molenda (jmolenda@apple.com)
7484
7485 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7486
16796152
JB
74872004-05-07 Jim Blandy <jimb@redhat.com>
7488
daf6dc85
JB
7489 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7490 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7491 to recognize gpr regnums, instead of assuming that
7492 tdep->ppc_fp0_regnum marks the end of the general-purpose
7493 registers.
7494
16796152
JB
7495 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7496 the given architecture has floating-point registers.
7497
c69b8bfc
AC
74982004-05-07 Andrew Cagney <cagney@redhat.com>
7499
7500 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7501 macro defined to 1.
7502 * gdbarch.h, gdbarch.c: Re-generate.
7503 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7504 deprecated_use_generic_dummy_frames.
7505
7243600a
BF
75062004-05-07 Brian Ford <ford@vss.fsi.com>
7507
7508 * NEWS: Mention Cygwin DWARF 2 support.
7509
73c1e0a1
AC
75102004-05-07 Andrew Cagney <cagney@redhat.com>
7511
7512 * objfiles.h (struct entry_info): Delete unused fields
7513 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7514 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7515 * mipsread.c (mipscoff_symfile_read): Update.
7516 * mdebugread.c (parse_partial_symbols): Update.
7517 * dwarfread.c (read_file_scope): Update.
7518 * dwarf2read.c (read_file_scope): Update.
7519 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7520 * coffread.c (complete_symtab): Update.
7521
1d3056ac
MK
75222004-05-07 Mark Kettenis <kettenis@gnu.org>
7523
7524 * infcall.c (_initialize_infcall): Fix typo.
7525
15170568
AC
75262004-05-07 Andrew Cagney <cagney@redhat.com>
7527
7528 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7529 * command.h (add_setshow_zinteger_cmd): Declare.
7530
34f75cc1
RC
75312004-05-06 Randolph Chung <tausq@debian.org>
7532
7533 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7534 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7535 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7536 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7537 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7538 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7539 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7540 definitions ...
7541 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7542 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7543 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7544 (hppa64_hpux_frame_find_saved_regs_in_sig)
7545 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7546 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7547 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7548 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7549 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7550 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7551 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7552 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7553 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7554 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7555 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7556 (hppa32_register_type, hppa_cannot_store_register)
7557 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7558 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7559 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7560 * pa64solib.c (pa64_solib_have_load_event)
7561 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7562 (pa64_solib_unloaded_library_pathname): Likewise.
7563 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7564 (som_solib_library_pathname): Likewise.
7565
0a5e7efe
JI
75662004-05-05 Jim Ingham <jingham@apple.com>
7567
7568 * breakpoint.c (create_breakpoints): Copy the ignore count and
7569 thread id over from the pended breakpoint to the actual
7570 breakpoint.
7571
10a4b113
AC
75722004-05-05 Andrew Cagney <cagney@redhat.com>
7573
7574 * gdbarch.sh (PARM_BOUNDARY): Delete.
7575 gdbarch.h, gdbarch.c: Re-generate.
7576 * valops.c (PARM_BOUNDARY): Delete macro.
7577 (value_push): Delete PARM_BOUNDARY code.
7578 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7579
366f009f
JB
75802004-05-04 Jim Blandy <jimb@redhat.com>
7581
32b99774
JB
7582 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7583 Don't assume that the gprs, fprs, and UISA sprs are
7584 contiguous, start at register number zero, and end with fpscr.
7585 Instead, use the numbers from the tdep structure.
7586
366f009f
JB
7587 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7588 should no longer be used in code specific to the RS6000 and its
7589 derivatives.
7590 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7591 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7592 tdep->ppc_fp0_regnum.
7593 (ppc_supply_fpregset, ppc_collect_fpregset)
7594 (rs6000_push_dummy_call, rs6000_extract_return_value)
7595 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7596 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7597 FP0_REGNUM.
7598 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7599 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7600 Same.
7601 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7602 bdm_ppc_store_registers): Same.
7603 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7604 (store_register, fill_fpregset): Same.
7605 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7606 (ppc_linux_supply_fpregset): Same.
7607 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7608 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7609 Same.
7610 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7611 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7612 ppc64_sysv_abi_return_value): Same.
7613 * rs6000-nat.c (regmap, fetch_inferior_registers)
7614 (store_inferior_registers, fetch_core_registers): Same.
7615
827f338d
MK
76162004-05-01 Mark Kettenis <kettenis@gnu.org>
7617
7618 * m68knbsd-nat.c: Remove file.
7619 * m68knbsd-tdep.c: Remove file.
7620 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7621 dependencies.
7622 * configure.host: Add m68k-*-netbsdelf*.
7623 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7624 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7625 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7626 (XM_FILE): Remove.
7627 * config/m68k/nbsdelf.mh: New file.
7628 * config/m68k/nbsd.mt: New file.
7629 * config/m68k/nbsdaout.mt: Remove file.
7630 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7631 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7632 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7633 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7634 (use_struct_convention): Remove prototype.
7635 (USE_STRUCT_CONVENTION): Remove define.
7636 * config/m68k/xm-nbsd.h: Remove file.
7637
66894781
MS
76382004-05-04 Michael Snyder <msnyder@redhat.com>
7639
7640 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7641 reg_struct_return method (as gcc usually does for cross targets).
7642
f0f63663
AC
76432004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7644
7645 Committed by Andrew Cagney.
7646 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7647 alignment padding when accessing ucontext struct members.
7648
edf61169
JB
76492004-05-04 Jim Blandy <jimb@redhat.com>
7650
8bf659e8
JB
7651 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7652 'ppc_gplast_regnum' member.
7653 (ppc_num_gprs): New enum constant.
7654 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7655 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7656 * rs6000-nat.c (regmap, fetch_inferior_registers,
7657 store_inferior_registers): Same.
7658 * rs6000-tdep.c (e500_pseudo_register_read)
7659 (e500_pseudo_register_write): Same.
7660 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7661
b967e06f
JB
7662 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7663 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7664 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7665 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7666 FPLAST_REGNUM.
7667 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7668 Same.
7669 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7670 * rs6000-nat.c (regmap, fetch_inferior_registers)
7671 (store_inferior_registers): Same.
7672
edf61169
JB
7673 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7674 with FPLAST_REGNUM.
7675
58a9656e
JB
76762004-05-03 Joel Brobecker <brobecker@gnat.com>
7677
7678 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7679 failure detected by recent versions of GCC.
7680 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7681 to be consistent with the usage in dwarf2_create_include_psymtab.
7682
dc305454
MS
76832004-05-03 Michael Snyder <msnyder@redhat.com>
7684
7685 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7686 (heuristic_proc_start): Whitespace cleanup.
7687
29972665
MK
76882004-05-04 Mark Kettenis <kettenis@gnu.org>
7689
6b57680d
MK
7690 * sun3-nat.c: Remove file.
7691 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7692 dependencies.
7693 (ALLDEPFILES): Remove sun3-nat.c.
7694 (sun3-nat.o): Remove dependencies.
7695
29972665
MK
7696 * i386-interix-nat.c, i386-interix-tdep.c,
7697 config/i386/nm-interix.h, config/i386/interix.mh,
7698 config/i386/interix.mt: Remove files.
7699 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7700 dependencies.
7701
f595cb19
MK
77022004-05-03 Mark Kettenis <kettenis@gnu.org>
7703
7704 * m68k-tdep.h (struct gdbarch_tdep): Add member
7705 struct_value_regnum.
7706 (m68k_svr4_init_abi): New prototype.
7707 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7708 different calling conventions.
7709 (m68k_extract_return_value): Remove code dealing with single-field
7710 structs.
7711 (m68k_store_return_value): Remove code dealing with single-field
7712 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7713 (m68k_extract_struct_value_address): Remove function.
7714 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7715 (m68k_reg_struct_return_p, m68k_return_value)
7716 (m68k_svr4_return_value): New functions.
7717 (m68k_use_struct_convention): Remove function.
7718 (m68k_push_dummy_call): Use new struct_value_regnum member of
7719 `struct gdbarch_tdep' instead of hardcoded register number to
7720 store STRUCT_ADDR.
7721 (m68k_svr4_init_abi): New function.
7722 (m68k_gdbarch_init): Don't set extract_return_value,
7723 store_return_values, deprecated_extract_struct_value_address and
7724 use_struct_convention. Set return_value instead. Initialize new
7725 struct_value_regnum member of `struct gdbarch_tdep'.
7726 * m68klinux-tdep.c: Update copyright year.
7727 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7728 (m68k_linux_extract_struct_value_address): Remove function.
7729 (m68k_linux_init_abi): Don't set extract_return_value,
7730 store_return_values, deprecated_extract_struct_value_address and
7731 use_struct_convention. Call m68k_svr4_init_abi but override the
7732 new struct_value_regnum member of `struct gdbarch_tdep'.
7733 * Makefile.in (m68k-tdep.o): Update dependencies.
7734
aaa75496
JB
77352004-05-03 J. Brobecker <brobecker@gnat.com>
7736
7737 * dwarf2read.c (line_header): Add new included_p field in
7738 field file_names.
7739 (partial_die_info): New field has_stmt_list. New field line_offset.
7740 (dwarf2_create_include_psymtab): New function.
7741 (dwarf2_build_include_psymtabs): New function.
7742 (add_file_name): Add forward declaration. Initialize new field.
7743 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7744 to be able to determine the list of files included by the
7745 given unit, and build their associated psymtabs.
7746 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7747 files as well.
7748 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7749 (read_file_scope): Update call to dwarf_decode_lines.
7750 (read_partial_die): Handle DW_AT_stmt_list attributes.
7751
c848556f
MC
77522004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7753
7754 Unfix PR gdb/1626.
7755 * configure.in: Revert special case for osf5.*.
7756 * configure: Regenerate.
7757
eb4556d7
JB
77582004-05-02 Jim Blandy <jimb@redhat.com>
7759
7760 Move the symbol-file-from-memory functions into their own file.
7761 * symfile-mem.c, symfile-mem.h: New files.
7762 * symfile.c (symbol_file_add_from_bfd): New function.
7763 (symbol_file_add): Call symbol_file_add_from_bfd.
7764 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7765 Moved to symfile-mem.c.
7766 (_initialize_symfile): Move definition of
7767 add-symbol-file-from-memory command to symfile-mem.c.
7768 * symfile.h (symbol_file_add_from_bfd): New declaration.
7769 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7770 * config/powerpc/linux.mt (TDEPFILES): Same.
7771 * Makefile.in (SFILES): Add symfile-mem.c.
7772 (symfile_mem_h): New variable.
7773 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7774 (symfile-mem.o): New rule.
7775
80bb239e
AC
77762004-05-01 Andrew Cagney <cagney@redhat.com>
7777
7789d0fa
AC
7778 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7779 frame_find_by_id instead of frame_relative_level.
7780 (do_enable_breakpoint): Ditto.
7781 * thread.c: Update copyright.
7782 (info_threads_command): Ditto, simplify.
7783
80bb239e
AC
7784 * frame.c (deprecated_generic_get_saved_register): Delete
7785 function, moved to "xstormy16-tdep.c".
7786 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7787 deprecated_generic_get_saved_register from "frame.c".
7788 (xstormy16_frame_saved_register): Call
7789 xstormy16_get_saved_register.
7790 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7791 static.
7792 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7793 * frame.h (deprecated_generic_get_saved_register): Delete.
7794
b2a871dd
MC
77952004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7796
7797 * dwarfread.c: Update documentation on the state of dwarf-1.
7798
0e100dab
AC
77992004-05-01 Andrew Cagney <cagney@redhat.com>
7800
acd8056e
AC
7801 * stack.c (select_frame_command): Delete call to
7802 frame_relative_level.
7803 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7804 Delete #if0 code.
7805 (frame_info): Do not print FRAMELESS.
7806 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7807 (catch_info): Delete #if0 code.
7808
0e100dab
AC
7809 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7810 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7811 of frame_relative_level.
7812 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7813 to SENTINEL_FRAME.
7814 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7815 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7816 frame_relative_level.
7817
55699d59
AC
7818 * frame.h (deprecated_set_frame_type): Delete declaration.
7819 * frame.c (deprecated_set_frame_type): Delete function, update
7820 comments.
7821
fcf70625
AC
7822 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7823 * gdbarch.h, gdbarch.c: Re-generate.
7824 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7825 (shnbsd_pc_in_sigtramp): Delete.
7826 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7827 pc_in_sigtramp.
7828 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7829 pc_in_sigtramp.
7830 * frame.h: Update comments.
7831 * ppc-linux-tdep.c: Update comments.
7832 * breakpoint.c (bpstat_what): Update comments.
7833
ac5eccb7
AC
7834 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7835 m68klinux-tdep.o's dependencies, were previously added to
7836 m68klinux-nat.o.
7837
f2524b93
AC
7838 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7839 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7840 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7841 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7842 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7843
17e20bce
AC
7844 * Makefile.in (m68klinux-nat.o): Update dependencies.
7845 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7846 (m68k_linux_sigtramp_frame_cache)
7847 (m68k_linux_sigtramp_frame_this_id)
7848 (m68k_linux_sigtramp_frame_prev_register)
7849 (m68k_linux_sigtramp_frame_unwind)
7850 (m68k_linux_sigtramp_frame_sniffer)
7851 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7852 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7853 names, use trad-frame.h.
7854 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7855 (struct m68k_sigtramp_info): Delete.
7856 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7857 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7858 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7859 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7860 "m68klinux-tdep.c".
7861
c8864fa2
AC
7862 * infrun.c (check_sigtramp2): Delete check for
7863 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7864
511dd2cd
MK
78652004-05-01 Mark Kettenis <kettenis@gnu.org>
7866
7867 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7868
8c6b0e06
AC
78692004-05-01 Andrew Cagney <cagney@redhat.com>
7870
9df0bb3f
AC
7871 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7872 (frv_linux_sigtramp_frame_cache)
7873 (frv_linux_sigtramp_frame_this_id)
7874 (frv_linux_sigtramp_frame_prev_register)
7875 (frv_linux_sigtramp_frame_unwind)
7876 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7877 include "linux" in function and variable names, directly call
7878 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7879 the latest trad-frame code.
7880 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7881 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7882 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7883 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7884 * frv-tdep.c (frv_sigtramp_frame_cache)
7885 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7886 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7887 frv-linux-tdep.c.
7888 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7889 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7890 (frv_set_sigcontext_reg_addr): Delete function.
7891
8c6b0e06
AC
7892 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7893 (DEPRECATED_SIGTRAMP_END): Delete.
7894 * gdbarch.h, gdbarch.c: Re-generate.
7895 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7896 * config/vax/tm-vaxbsd.h: Update copyright.
7897 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7898 (DEPRECATED_IN_SIGTRAMP): Define.
7899 * config/m68k/tm-nbsd.h: Update copyright.
7900 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7901 (DEPRECATED_IN_SIGTRAMP): Define.
7902
50ea7769
MK
79032004-05-01 Mark Kettenis <kettenis@gnu.org>
7904
03ac2a74
MK
7905 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7906 encondings. Fixes PR gdb/1628.
7907
50ea7769
MK
7908 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7909 DW_CFA_restore state without a matching DW_CFA_remember_state
7910 instead of aborting. Fixes PR backtrace/1589.
7911
9a5d7be1
JB
79122004-04-30 Joel Brobecker <brobecker@gnat.com>
7913
7914 * MAINTAINERS: Add self as AIX maintainer.
7915 Update my e-mail address in write-after-approval section.
7916
2593d1cd
AC
79172004-04-30 Andrew Cagney <cagney@redhat.com>
7918
ce12bbf9
AC
7919 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7920 (legacy_get_prev_frame): Ditto.
7921
36710c63
AC
7922 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7923 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7924 * mipsread.c (sigtramp_address): Delete extern variable.
7925 (mipscoff_new_init): Delete reference.
7926 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7927 (fixup_sigtramp): Delete function.
7928 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7929 (fixup_sigtramp): Delete declarations.
7930
2593d1cd
AC
7931 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7932 deprecated_pc_in_sigtramp.
7933 (ppcnbsd_pc_in_sigtramp): Delete function.
7934
2a25f91c
MK
79352004-05-01 Mark Kettenis <kettenis@gnu.org>
7936
7937 * config/m68k/nm-nbsd.h: Tweak comments.
7938 * config/m68k/nm-nbsdaout.h: Likewise.
7939
0b281939
AC
79402004-04-30 Andrew Cagney <cagney@redhat.com>
7941
7942 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7943 legacy_pc_in_sigtramp.
7944 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7945
8f2d3ea0
MK
79462004-05-01 Mark Kettenis <kettenis@gnu.org>
7947
7948 Add OpenBSD/m68k support.
7949 * NEWS (New native configurations): Mention OpenBSD/m68k.
7950 * m68kbsd-tdep.c: New file.
7951 * m68kbsd-nat.c: New file.
7952 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7953 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7954 * configure.host: Add m68k-*-openbsd.
7955 * configure.tgt: Add m68k-*-openbsd.
7956 * config/m68k/tm-obsd.h: New file.
7957 * config/m68k/obsd.mt: New file.
7958 * config/m68k/obsd.mh: New file.
7959 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7960 m68kbsd-tdep.c.
7961
c40f49a4
AC
79622004-04-30 Andrew Cagney <cagney@redhat.com>
7963
7964 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7965 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7966
e81554cd
MK
79672004-04-30 Mark Kettenis <kettenis@gnu.org>
7968
7969 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7970 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7971
d4dc1a91
BF
79722004-04-30 Brian Ford <ford@vss.fsi.com>
7973
7974 Revert 2004-04-16 change.
7975 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7976 (i386_coff_init_abi): Remove.
7977 * i386-tdep.h (i386_coff_init_abi): Remove.
7978 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7979
2f72f850
AC
79802004-04-30 Andrew Cagney <cagney@redhat.com>
7981
e492f9d6
AC
7982 * blockframe.c (find_pc_partial_function): Delete use of
7983 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7984 DEPRECATED_SIGTRAMP_END.
7985
7b7adad0
AC
7986 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7987 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7988 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7989 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7990 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7991
2f72f850
AC
7992 * defs.h (deprecated_inside_entry_file): Delete declaration.
7993 * blockframe.c (deprecated_inside_entry_file): Delete function.
7994 (legacy_frame_chain_valid): Delete call.
7995 * sh64-tdep.c (sh64_frame_chain): Delete call.
7996 * objfiles.h: Update comments.
7997 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7998 call.
7999 * frame.c (get_prev_frame): Delete call, update comments.
8000
283f90a7
BF
80012004-04-30 Brian Ford <ford@vss.fsi.com>
8002
8003 * MAINTAINERS (Write After Approval): Add myself.
8004
8ee56bcf
AC
80052004-04-30 Andrew Cagney <cagney@redhat.com>
8006
8007 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8008 * gdbarch.h, gdbarch.c: Re-generate.
8009 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8010 code.
8011
ee27e1b6
AC
80122004-04-30 Andrew Cagney <cagney@redhat.com>
8013
8014 * gdb-events.sh (selected_thread_changed)
8015 (selected_frame_level_changed, target_changed): Delete.
8016 * gdb-events.h, gdb-events.c: Re-generate.
8017 * valops.c (value_assign): Update.
8018 * stack.c (select_frame_command, up_silently_base)
8019 (down_silently_base): Update.
8020
d5ac5a39
AC
80212004-04-29 Andrew Cagney <cagney@redhat.com>
8022
8023 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8024 registers correctly.
8025 (print_gp_register_row, mips32_heuristic_proc_desc)
8026 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8027 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8028 references to mips_isa_regsize.
8029
ceae6e75
AC
80302004-04-29 Andrew Cagney <cagney@redhat.com>
8031
8032 * mips-tdep.c (struct gdbarch_tdep): Delete
8033 mips_fp_register_double.
8034 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8035 mips_abi_regsize.
8036 (mips_gdbarch_init): Do not set mips_fp_register_double.
8037 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8038
a587af0b
AC
80392004-04-29 Joel Brobecker <brobecker@gnat.com>
8040
8041 Committed by Andrew Cagney.
8042 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8043 function calls.
8044
13326b4e
AC
80452004-04-29 Andrew Cagney <cagney@redhat.com>
8046
8047 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8048 gdbarch, use mips_abi, update callers.
8049 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8050 mips_abi_regsize, update callers.
8051 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8052 mips_default_abi_regsize.
8053 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8054 mips_default_abi_regsize.
8055
711cc5cd
AC
80562004-04-29 Andrew Cagney <cagney@redhat.com>
8057
1b13c4f6
AC
8058 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8059 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8060 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8061 mips_default_abi_regsize.
8062 (mips_isa_regsize): Rename mips_regisze.
8063 * mipsnbsd-tdep.c: Update.
8064 * mips-linux-tdep.c: Update.
8065 * irix5-nat.c: Update.
8066 * mips-tdep.h (mips_isa_regsize): Update.
8067
711cc5cd
AC
8068 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8069 Delete all disabled code.
8070 * gdb-events.h, gdb-events.c: Re-generate.
8071
e63bbc88
MK
80722004-04-19 Jerome Guitton <guitton@gnat.com>
8073 Mark Kettenis <kettenis@gnu.org>
8074
8075 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8076 the function begins with a branch instruction.
8077
fd35795f
MK
80782004-04-29 Mark Kettenis <kettenis@gnu.org>
8079
8080 * i386-tdep.c: Fix spelling mistakes.
8081
c960c18f
AC
80822004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8083 Andrew Cagney <cagney@redhat.com>
8084
8085 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8086 <sys/proc.h>.
8087 * acconfig.h: Provide default _KMEMUSER value.
8088 * config.in, configure: Re-generate.
8089 * NEWS: Mention fix.
8090
50306a9d
RC
80912004-04-24 Randolph Chung <tausq@debian.org>
8092
8093 * configure.host (hppa*-*-linux*): New target.
8094 * configure.tgt (hppa*-*-linux*): Likewise.
8095 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8096 gdbarch_init_osabi() call earlier so that osabi-specific frame
8097 unwinders can be registered first.
8098 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8099 hppa-linux-nat.c.
8100 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8101 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8102 * config/pa/linux.mh: New file.
8103 * config/pa/linux.mt: New file.
8104 * config/pa/nm-linux.h: New file.
8105 * config/pa/xm-linux.h: New file.
8106 * hppa-linux-nat.c: New file.
8107 * hppa-linux-tdep.c: New file.
8108
2a6228ef
RC
81092004-04-28 Randolph Chung <tausq@debian.org>
8110
8111 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8112 return values.
8113 (hppa32_push_dummy_call): Fix small struct and floating point argument
8114 passing, and make sure the stack frame is properly aligned.
8115
82c10df6
AC
81162004-04-28 Andrew Cagney <cagney@redhat.com>
8117
d762c46a
AC
8118 * stack.c (print_stack_frame): Fix description.
8119
82c10df6
AC
8120 * NEWS: Mention gdb/gdbserver/configure execute permission
8121 changed. PR server/519.
8122
0faf0076
AC
81232004-04-28 Andrew Cagney <cagney@redhat.com>
8124
8125 * stack.c (print_stack_frame_stub): Delete declaration.
8126 (struct print_stack_frame_args, print_stack_frame)
8127 (print_frame_info, print_frame): Replace "source" with print what.
8128 Replace "print" with "print_level". Replace "args" with
8129 "print_args".
8130 * frame.h (show_and_print_stack_frame, print_stack_frame)
8131 (print_frame_info): Update declarations.
8132 * stack.c (select_and_print_frame, frame_command)
8133 (current_frame_command, up_command, down_command): Update calls -
8134 use get_selected_frame, pass "enum print_what" for source, do not
8135 call frame_relative_level.
8136 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8137 * remote-rdp.c (remote_rdp_open): Ditto.
8138 * remote-mips.c (common_open): Ditto.
8139 * remote-e7000.c (e7000_start_remote): Ditto.
8140 * ocd.c (ocd_start_remote): Ditto.
8141 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8142 * infrun.c (normal_stop): Ditto.
8143 * inflow.c (kill_command): Ditto.
8144 * infcmd.c (finish_command): Ditto.
8145 * corelow.c (core_open): Ditto.
8146 * tracepoint.c (finish_tfind_command): Ditto.
8147 * thread.c (info_threads_command, info_threads_command)
8148 (restore_current_thread, do_captured_thread_select): Ditto.
8149 * ada-tasks.c (task_command): Ditto.
8150
f4c5303c
OF
81512004-04-26 Orjan Friberg <orjanf@axis.com>
8152
8153 * frame.c: Include "observer.h".
8154 (frame_observer_target_changed): New function.
8155 (_initialize_frame): Attach target_changed observer.
8156 * regcache.c: Include "observer.h".
8157 (regcache_observer_target_changed): New function.
8158 (_initialize_regcache): Attach target_changed observer.
8159 * valops.c: Include "observer.h".
8160 (value_assign): Notify target_changed event when modifying register.
8161 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8162
7270d8f2
OF
81632004-04-26 Orjan Friberg <orjanf@axis.com>
8164
8165 From Paul Koning <pkoning@equallogic.com>:
8166 * breakpoint.c (free_valchain): New function.
8167 (insert_bp_location, delete_breakpoint): Use free_valchain.
8168 (remove_breakpoint): Do not remove the valchain.
8169 (bpstat_stop_status): If not stopped by watchpoint, skip
8170 watchpoints when generating stop status list.
8171 * infrun.c (handle_inferior_event): Make
8172 stepped_after_stopped_by_watchpoint a global variable.
8173 * remote.c (remote_stopped_data_address): Return watch data
8174 address rather than zero if stepped_after_stopped_by_watchpoint is
8175 set.
8176
02d62932
MC
81772004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8178
8179 Fix PR gdb/1626.
8180 * configure.in: Check for curses after termcap.
8181 On osf5.*, do not check for ncurses.
8182 * configure: Regenerate.
8183
3e9a183c
MK
81842004-04-25 Mark Kettenis <kettenis@gnu.org>
8185
c79ac407
MK
8186 * ppcobsd-nat.c: Include "ppc-tdep.h".
8187 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8188
3e9a183c
MK
8189 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8190 Fixes PR tdep/1623 and PR tdep/1624.
8191
38cc9c28
MC
81922004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8193
8194 * xmodem.h, xmodem.c: Remove files.
8195 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8196
7f07c5b6
RC
81972004-04-23 Randolph Chung <tausq@debian.org>
8198
8199 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8200 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8201 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8202 for handling stackless frames.
8203 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8204
9f7194c3
RC
82052004-04-23 Randolph Chung <tausq@debian.org>
8206
8207 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8208 starts at a pc before the frame is created.
8209
dcff6009
JB
82102004-04-23 Joel Brobecker <brobecker@gnat.com>
8211
8212 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8213
40711ff1 82142004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8215
8216 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8217 use convert_typed_floating to get the appropriate format.
8218
abc485a1
RC
82192004-04-22 Randolph Chung <tausq@debian.org>
8220
8221 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8222 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8223 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8224 (hppa_sign_extend): Add prototype.
8225 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8226 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8227 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8228 hppa targets will also use these functions.
8229 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8230 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8231 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8232 (hppa_gdbarch_init): Remove gdbarch setting of
8233 skip_trampoline_code, in_solib_call_trampoline and
8234 in_solib_return_trampoline.
8235 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8236 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8237 hppa_in_solib_call_trampoline.
8238 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8239 Moved from hppa-tdep.c.
8240 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8241 in_solib_call_trampoline and in_solib_return_trampoline.
8242
369aa520
RC
82432004-04-22 Randolph Chung <tausq@debian.org>
8244
8245 * hppa-tdep.c (hppa_debug): New variable.
8246 (find_unwind_entry, hppa_frame_cache): Add debug output.
8247 (_initialize_hppa_tdep): Add command to set debug flag.
8248
476be15e
AC
82492004-04-22 Andrew Cagney <cagney@redhat.com>
8250
8251 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8252 "trad-frame.h".
8253 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8254 signal trampoline unwinder.
8255 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8256
d195bc9f
MK
82572004-04-22 Mark Kettenis <kettenis@gnu.org>
8258
8259 Add OpenBSD/powerpc support.
8260 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8261 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8262 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8263 (ppc_collect_fpregset): New prototypes.
8264 * ppcobsd-nat.c: New file.
8265 * ppcobsd-tdep.c: New file.
8266 * ppcobsd-tdep.h: New file.
8267 * rs6000-tdep.c: Include "regset.h".
8268 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8269 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8270 New functions.
8271 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8272 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8273 (rs6000-tdep.o): Update dependencies.
8274 * configure.host: Add powerpc-*-openbsd.
8275 * configure.tgt: Add powerpc-*-openbsd.
8276 * config/powerpc/obsd.mh: New file.
8277 * config/powerpc/nm-obsd.h: New file.
8278 * config/powerpc/obsd.mt: New file.
8279
6f14cc33
AC
82802004-04-22 Andrew Cagney <cagney@redhat.com>
8281
fcf29e5f
AC
8282 * frame.h (show_frame_info): Delete declaration.
8283
6f14cc33
AC
8284 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8285 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8286 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8287 * frv-tdep.c (frv_frame_this_id): Ditto.
8288 * avr-tdep.c (avr_frame_this_id): Ditto.
8289
e5786a5c
EZ
82902004-04-22 Elena Zannoni <ezannoni@redhat.com>
8291
8292 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8293
26e75e5c
JB
82942004-04-22 Jim Blandy <jimb@redhat.com>
8295
8296 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8297 register number zero.
8298
d8d65dd3
MS
82992004-04-21 Michael Snyder <msnyder@redhat.com>
8300
8301 * mips-tdep.c (heuristic_proc_start):
8302 Warning() already prefixes "Warning: ".
8303
9a4105ab
AC
83042004-04-21 Andrew Cagney <cagney@redhat.com>
8305
8306 * annotate.h (deprecated_annotate_starting_hook)
8307 (deprecated_annotate_stopped_hook)
8308 (deprecated_annotate_exited_hook)
8309 (deprecated_annotate_signal_hook)
8310 (deprecated_annotate_signalled_hook): Deprecate.
8311 * tracepoint.h (deprecated_create_tracepoint_hook)
8312 (deprecated_delete_tracepoint_hook)
8313 (deprecated_modify_tracepoint_hook)
8314 (deprecated_trace_find_hook)
8315 (deprecated_trace_start_stop_hook): Deprecate.
8316 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8317 * remote.h (deprecated_target_resume_hook)
8318 (deprecated_target_wait_loop_hook): Deprecate.
8319 * gdbcore.h (deprecated_exec_file_display_hook)
8320 (deprecated_file_changed_hook): Deprecate.
8321 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8322 * defs.h (deprecated_modify_breakpoint_hook)
8323 (deprecated_command_loop_hook, deprecated_show_load_progress)
8324 (deprecated_print_frame_info_listing_hook)
8325 (deprecated_query_hook, deprecated_warning_hook)
8326 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8327 (deprecated_delete_breakpoint_hook)
8328 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8329 (deprecated_readline_begin_hook, deprecated_readline_hook)
8330 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8331 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8332 (deprecated_context_hook, deprecated_target_wait_hook)
8333 (deprecated_attach_hook, deprecated_detach_hook)
8334 (deprecated_call_command_hook, deprecated_set_hook)
8335 (deprecated_error_hook, deprecated_error_begin_hook)
8336 (deprecated_ui_load_progress_hook): Deprecate.
8337 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8338 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8339 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8340 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8341 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8342 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8343 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8344 * annotate.c, aix-thread.c: Update.
8345
62cf13cc
AC
83462004-04-21 Andrew Cagney <cagney@redhat.com>
8347
b2e31a62
AC
8348 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8349 * vaxnbsd-tdep.c: Include "gdb_string.h".
8350
62cf13cc
AC
8351 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8352 (add_symbol_file_from_memory_command): #if 0 function body, call
8353 error instead.
8354
00e32a35
AC
83552004-04-21 Andrew Cagney <cagney@redhat.com>
8356
8357 * gdbcore.h: Update copyright.
8358 (deprecated_add_core_fns): Rename add_core_fns.
8359 * win32-nat.c (_initialize_core_win32): Update.
8360 * sun3-nat.c (_initialize_core_sun3): Update.
8361 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8362 * rs6000-nat.c (_initialize_core_rs6000): Update.
8363 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8364 * nto-tdep.c (_initialize_nto_tdep): Update.
8365 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8366 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8367 * mips-nat.c (_initialize_core_mips): Update.
8368 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8369 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8370 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8371 * lynx-nat.c (_initialize_core_lynx): Update.
8372 * irix5-nat.c (_initialize_core_irix5): Update.
8373 * i386-interix-nat.c (_initialize_core_interix): Update.
8374 * cris-tdep.c (_initialize_cris_tdep): Update.
8375 * corelow.c (deprecated_add_core_fns): Update.
8376 * core-regset.c (_initialize_core_regset): Update.
8377 * core-aout.c (_initialize_core_aout): Update.
8378 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8379 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8380 * alpha-nat.c (_initialize_core_alpha): Update.
8381
13c7b1ca
JB
83822004-04-21 Jim Blandy <jimb@redhat.com>
8383
8384 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8385
7b5a2f43
DJ
83862004-04-19 Daniel Jacobowitz <drow@mvista.com>
8387
8388 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8389 Delete.
8390 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8391 (read_attribute_value): Update calls to dwarf_alloc_block.
8392 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8393 dwarf2_tmp_obstack.
8394 (psymtab_to_symtab_1): Likewise. Clean up using
8395 free_stack_comp_unit.
8396 (add_to_cu_func_list): Use the comp_unit_obstack.
8397
05cf31d1
JB
83982004-04-19 Joel Brobecker <brobecker@gnat.com>
8399
8400 * dwarf2read.c (dwarf2_flag_true_p): New function.
8401 (die_is_declaration): Use the function above. Add some comments.
8402
adf93a2f
MK
84032004-04-19 Mark Kettenis <kettenis@gnu.org>
8404
8405 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8406 architecture when registering sparcnbsd_core_osabi_sniffer.
8407 Adjust comment.
8408
748894bf
MK
84092004-04-18 Mark Kettenis <kettenis@gnu.org>
8410
f622ad42
MK
8411 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8412 return value.
8413
c4fc7f1b
MK
8414 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8415 * i386-tdep.c: Correct register numbering scheme comments
8416 throughout.
8417 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8418 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8419 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8420 (i386_gdb_arch_init): Likewise.
8421
b4ead1bd
MK
8422 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8423 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8424 ppcnbsd-tdep.o.
8425
748894bf
MK
8426 * m68k-tdep.h: Tweak comments.
8427 * m68k-tdep.c: Tweak comment.
8428
fdd72f95
RC
84292004-04-17 Randolph Chung <tausq@debian.org>
8430
8431 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8432 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8433 (hppa_hpux_som_init_abi): Set is_elf to 0.
8434 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8435 * hppa-tdep.c (low_text_segment_address): Remove global.
8436 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8437 section offset to calculate segment address.
8438 (internalize_unwinds): Define low_text_segment_address as local and
8439 pass to record_text_segment_lowaddr for ELF targets.
8440 (hppa_gdbarch_init): Zero fill tdep structure.
8441 (hppa_dump_tdep): Print tdep structure.
8442 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8443
0f8d9d59
RC
84442004-04-17 Randolph Chung <tausq@debian.org>
8445
8446 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8447 (hppa_gdbarch_init): Set pseudo_register_read.
8448 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8449 * regcache.c (supply_register): Remove check for
8450 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8451
7c46b9fb
RC
84522004-04-17 Randolph Chung <tausq@debian.org>
8453
8454 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8455 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8456 (hpread_adjust_stack_address): Move to hpread.c.
8457 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8458 obj_private_struct): Move from tm-hppa.h.
8459 * hpread.c (hppa-tdep.h): Include.
8460 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8461 (hpread_read_function_type, hpread_read_doc_function_type)
8462 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8463 directly.
8464 * pa64solib.c (hppa-tdep.h): Include.
8465 * somsolib.c (hppa-tdep.h): Include.
8466 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8467 inferior_status): Remove unused forward declarations.
8468 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8469 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8470 obj_private_struct): Move to hppa-tdep.h.
8471 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8472
8d153463
RC
84732004-04-17 Randolph Chung <tausq@debian.org>
8474
8475 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8476 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8477 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8478 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8479 Remove forward declaration and make static.
8480 (hppa_reg_struct_has_addr): Remove.
8481
350c2e5b
JB
84822004-04-16 Joel Brobecker <brobecker@gnat.com>
8483
8484 * observer.sh: Move comments in sed command to first column.
8485
bbde78fa
JM
84862004-04-16 Jason Molenda (jmolenda@apple.com)
8487
8488 * frame.c: Minor typeo corrections in comments.
8489
e0270fd9
JB
84902004-04-16 Joel Brobecker <brobecker@gnat.com>
8491
8492 * observer.c (observer_test_first_notification_function): Update
8493 function profile.
8494 (observer_test_second_notification_function): Likewise.
8495 (observer_test_third_notification_function): Likewise.
8496
3d049254
MK
84972004-04-16 Mark Kettenis <kettenis@gnu.org>
8498
8499 From Brian Ford <ford@vss.fsi.com>:
8500 * i386-tdep.c (i386_coff_init_abi): New function.
8501 * i386-tdep.h (i386_coff_init_abi): New prototype.
8502 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8503 register number translation functions for DWARF and DWARF 2.
8504
7867684d
JB
85052004-04-16 Joel Brobecker <brobecker@gnat.com>
8506
8507 * dwarf2read.c: Back out my previous change, it was incorrect.
8508
72bf9492
DJ
85092004-04-16 Daniel Jacobowitz <drow@mvista.com>
8510
8511 * dwarf2read.c: Include "hashtab.h".
8512 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8513 has_namespace_info.
8514 (struct partial_die_info): Add comments. Use bitfields to reduce
8515 memory footprint. Add scope, scope_set, has_specification,
8516 spec_offset, die_parent, die_child, and die_sibling.
8517 (peek_die_abbrev): Add prototype.
8518 (partial_read_comp_unit_head): New function, broken out from
8519 dwarf2_build_psymtabs_hard.
8520 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8521 Use partial_read_comp_unit_head. Initialize the CU and
8522 comp_unit_obstack. Update calls to read_partial_die and
8523 scan_partial_symbols. Use free_stack_comp_unit and
8524 load_partial_dies.
8525 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8526 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8527 Update calls to helper functions. Remove NAMESPACE argument.
8528 Update comments.
8529 (partial_die_parent_scope, partial_die_full_name): New functions.
8530 (add_partial_symbol): Remove namespace argument. Update call to
8531 pdi_needs_namespace. Use partial_die_full_name. Handle
8532 DW_TAG_namespace. Check has_namespace_info flag.
8533 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8534 tag. Handle namespaces.
8535 (add_partial_namespace, add_partial_enumeration): Simplify.
8536 (guess_structure_name): New function, derived from
8537 add_partial_structure.
8538 (add_partial_structure): Remove.
8539 (determine_class_name): Update comment.
8540 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8541 (is_type_tag_for_partial, load_partial_dies): New functions.
8542 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8543 Record specifications instead of following them immediately.
8544 (find_partial_die_in_comp_unit, find_partial_die)
8545 (fixup_partial_die, free_stack_comp_unit)
8546 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8547 (partial_die_hash, partial_die_eq): New functions.
8548 * Makefile.in (hashtab_h): Define.
8549 (dwarf2read.o): Update dependencies.
8550 (observer_inc, observer_h): Move to the correct section.
8551
fdc860a3
JB
85522004-04-15 Joel Brobecker <brobecker@gnat.com>
8553
8554 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8555 (die_is_declaration): Use the function above. Add comment.
8556
dc718098
JB
85572004-04-15 Joel Brobecker <brobecker@gnat.com>
8558
8559 * dwarf2read.c (read_structure_scope): Identify stub types
8560 using die_is_declaration() only.
8561
8718a420
RM
85622004-04-15 Roland McGrath <roland@redhat.com>
8563
8564 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8565 argument instead of NAME.
8566 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8567 in call to symbol_file_add_with_addrs_or_offsets.
8568 (build_addr_info): New function, helper for ...
8569 (symbol_file_add_from_memory): New function.
8570 (add_symbol_file_from_memory_command): New function using that.
8571 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8572 (pre_add_symbol_hook): Add const to argument type.
8573 * symfile.h (symbol_file_add_from_memory): Declare it.
8574
8b910bab
MK
85752004-04-15 Mark Kettenis <kettenis@gnu.org>
8576
9f076e7a
MK
8577 * NEWS (New native configurations): Mention OpenBSD/vax.
8578 * configure.host: Add vax-*-openbsd*.
8579 * config/vax/obsd.mh: New file.
8580 * config/vax/nm-obsd.h: New file.
8581
8b910bab
MK
8582 * vax-tdep.c: Include "regset.h".
8583 (vax_supply_gregset): New function.
8584 (vax_gregset): New variable.
8585 (vax_regset_from_core_section): New function.
8586 (vax_gdbarch_init): Set regset_from_core_section.
8587 * Makefile.in (vax-tdep.o): Update dependencies.
8588
7a464420
AC
85892004-04-15 Andrew Cagney <cagney@redhat.com>
8590
8591 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8592 (observer_normal_stop_notification_stub)
8593 (observer_attach_normal_stop, observer_detach_normal_stop):
8594 Delete, replaced by #include "observer.inc".
8595 * infrun.c (normal_stop): Pass "stop_bpstat" to
8596 observer_notify_normal_stop.
8597 * Makefile.in (observer_inc): Define.
8598 (observer.o): Update dependencies.
8599 (observer.h, observer.inc): New rules.
8600 * observer.h: Delete file.
8601 * observer.sh: New file.
8602
e36ad527
MK
86032004-04-15 Mark Kettenis <kettenis@gnu.org>
8604
8605 * vax-tdep.c (vax_frame_cache): Fix typo.
8606
67b441e1
MK
86072004-04-14 Mark Kettenis <kettenis@gnu.org>
8608
6f606e1c
MK
8609 * NEWS (New native configurations): Mention NetBSD/vax.
8610 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8611 * config/vax/nbsdelf.mh: New file.
8612 * config/vax/nbsdaout.mh: New file.
8613 * config/vax/nm-nbsd.h: New file.
8614 * config/vax/nm-nbsdaout.h: New file.
8615
9c5519a5
MK
8616 * vaxnbsd-tdep.c: New file.
8617 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8618 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8619 * config/vax/nbsd.mt: New file.
8620 * config/vax/tm-nbsd.h: New file.
8621
4844a614
MK
8622 * Makefile.in (vaxbsd-nat.o): New dependency.
8623
67b441e1
MK
8624 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8625 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8626 struct_addr arguments. Don't push return value address.
8627 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8628 arguments to vax_store_arguments. Store return value address in
8629 R1.
8630 (vax_store_struct_return, vax_extract_return_value)
8631 (vax_store_return_value): Remove functions.
8632 (vax_return_value): New function.
8633 (vax_gdbarch_init): Set return value. Don't set
8634 deprecated_store_struct_return, deprecated_extract_struct_return
8635 and deprecated_store_return_value.
8636
6672f2ae
AS
86372004-04-14 Andreas Schwab <schwab@suse.de>
8638
8639 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8640 value buffer.
8641 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8642
7346c184
MK
86432004-04-14 Mark Kettenis <kettenis@gnu.org>
8644
8645 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8646 (vax_unwind_dummy_id): New functions.
8647 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8648 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8649 variables.
8650 (vax_fix_call_dummy): Remove function.
8651 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8652 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8653 call_dummy_location, deprecated_call_dummy_words,
8654 deprecated_sizeof_call_dummy_words,
8655 deprecated_call_dummy_breakpoint_offset,
8656 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8657 and deprecated_dummy_write_sp.
8658
58e23df4
DC
86592004-04-13 David Carlton <carlton@kealia.com>
8660
8661 * MAINTAINERS: Move myself to "paper trail" section.
8662
5e6b39ff
MK
86632004-04-12 Mark Kettenis <kettenis@gnu.org>
8664
7def7fef
MK
8665 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8666 "trad-frame.h".
8667 (vax_frame_init_saved_regs): Remove function.
8668 (vax_sigtramp_saved_pc): Remove function.
8669 (vax_frame_saved_pc): Remove function.
8670 (vax_frame_args_address): Remove function.
8671 (vax_frame_num_args): Rewrite.
8672 (vax_frame_chain): Remove function.
8673 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8674 VAX_FP_REGNUM.
8675 (vax_pop_frame): Likewise.
8676 (vax_saved_pc_after_call): Remove function.
8677 (struct vax_frame_cache): New structure.
8678 (vax_frame_cache): New function.
8679 (vax_frame_this_id): New function.
8680 (vax_frame_prev_register): New function.
8681 (vax_frame_unwind): New variable.
8682 (vax_frame_sniffer): New function.
8683 (vax_frame_base_address): New function.
8684 (vax_frame_args_address): New function.
8685 (vax_frame_base): New variable.
8686 (vax_unwind_pc): New function.
8687 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8688 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8689 deprecated_frame_chain, deprecated_frame_saved_pc,
8690 deprecated_frame_args_address and
8691 deprecated_frame_init_saved_regs.
8692 * Makefile.in (vax-tdep.o): Update dependencies.
8693
53284fc1
MK
8694 * vaxbsd-nat.c: New file.
8695
5e6b39ff
MK
8696 * vax-tdep.h: Update copyright year. Adjust comments.
8697 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8698 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8699 (vax_regnum): New enum. Replacing...
8700 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8701 (VAX_PS_REGNUM): ... these removed macros.
8702 * vax-tdep.c (vax_register_name): Remove prototype.
8703 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8704 (vax_register_byte, vax_register_raw_size,
8705 vax_register_virtual_size, vax_register_virtual_type): Remove
8706 functions.
8707 (vax_register_type): New function.
8708 (vax_breakpoint_from_pc): Reorganize.
8709 (vax_gdbarch_init): Set register_type. Don't set
8710 deprecated_register_size, deprecated_register_bytes,
8711 deprecated_register_byte, deprecated_register_raw_size,
8712 deprecated_max_register_raw_size,
8713 deprecated_register_virtual_size,
8714 deprecated_max_register_virtual_size and
8715 deprecated_register_virtual_type. Add comment on stack direction.
8716
e9c71e9f
MK
87172004-04-11 Mark Kettenis <kettenis@gnu.org>
8718
8719 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8720 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8721 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8722
d46f1176 87232004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8724
d46f1176
RC
8725 * MAINTAINERS (write after approval): Add myself.
8726
a2a84a72
RC
87272004-04-07 Randolph Chung <tausq@debian.org>
8728
8729 * hppa-tdep.c (hppa_inner_than): Remove.
8730 (is_pa_2): Remove unused static variable.
8718a420 8731 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8732
e85c3284
PH
87332004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8734
8735 * language.h (language_defn): Add new la_post_parser field.
8736 * parser-defs.h (null_post_parser): New declaration (default for
8737 la_post_parser).
8718a420 8738
e85c3284
PH
8739 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8740 insert call to that function.
8741 (parse_exp_in_context): New function, including code formerly in
8718a420 8742 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8743 prefixification.
8744 (parse_expression_in_context): New exported function.
8745 (null_post_parser): New definition.
8746 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8747
e85c3284
PH
8748 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8749 * c-lang.c (c_language_defn): Ditto.
8750 (cplus_language_defn): Ditto.
8751 (asm_language_defn): Ditto.
8752 (minimal_language_defn): Ditto.
8753 * f-lang.c (f_language_defn): Ditto.
8754 * jv-lang.c (java_language_defn): Ditto.
8755 * language.c (unknown_language_defn): Ditto.
8756 (auto_language_defn): Ditto.
8757 (local_language_defn): Ditto.
8758 * m2-lang.c (m2_language_defn): Ditto.
8759 * scm-lang.c (scm_language_defn): Ditto.
8760 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8761
d9f8c85b
MK
87622004-04-10 Mark Kettenis <kettenis@gnu.org>
8763
fa34704a
MK
8764 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8765 (amd64nbsd_mcontext_addr): New function.
8766 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8767 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8768 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8769
403e1656
MK
8770 * corelow.c (core_xfer_partial): Fix coding standards violation.
8771 Add support for TARGET_OBJECT_WCOOKIE.
8772
a57e5a95
MK
8773 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8774 deprecated_pc_in_sigtramp.
8775 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8776 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8777 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8778 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8779 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8780 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8781 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8782
377d9ebd
MK
8783 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8784 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8785 Fix typo.
8786
f0ef85a5
MK
8787 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8788 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8789 (amd64_collect_fxsave): Likewise.
8790
d9f8c85b
MK
8791 * i386-sol2-tdep.c: Include "gdb_string.h".
8792 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8793 name.
8794 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8795
75f501b5
MK
87962004-04-10 Mark Kettenis <kettenis@gnu.org>
8797
8798 * i386-sol2-tdep.c: Include "solib-svr4.h".
8799 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8800 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8801 * config/i386/tm-i386sol2.h: Include :solib.h".
8802 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8803 solib-svr4.o and solib-legacy.o.
8804 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8805 solib-svr4.o.
8806
b31bc724
MK
88072004-04-09 Mark Kettenis <kettenis@gnu.org>
8808
18bbbd9e
MK
8809 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8810 whether a register is supplied by PTRACE_GETFPREGS.
8811 (store_inferior_registers): Likewise.
8812 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8813 whether a register is supplied by PT_GETFPREGS.
8814 (store_inferior_registers): Likewise.
8815
3c30bf1b
MK
8816 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8817 * config/i386/linux64.mt (TDEPFILES): Likewise.
8818
a4194092
MK
8819 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8820
911bc6ee
MK
8821 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8822 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8823 the program counter is in the range specified by `struct
8824 gdbarch_tdep'.
8825 * amd64-linux-tdep.c: Include "symtab.h".
8826 (amd64_linux_pc_in_sigtramp): Remove function.
8827 (amd64_linux_sigtramp_p): New function.
8828 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8829 deprecated_pc_in_sigtramp.
8830 * amd64nbsd-tdep.c: Include "symtab.h".
8831 (amd64nbsd_sigtramp_p): New function.
8832 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8833 deprecated_pc_in_sigtramp.
8834 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8835 few comments.
8836 (amd64obsd_pc_in_sigtramp): Remove function.
8837 (amd64obsd_sigtramp_p): New function.
8838 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8839 deprecated_pc_in_sigtramp.
8840 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8841 (i386bsd_pc_ins_sigtramp): Remove prototype.
8842 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8843 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8844 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8845 the program counter is in the range specified by `struct
8846 gdbarch_tdep'.
8847 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8848 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8849 (i386_go32_pc_in_sigtramp): Remove function.
8850 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8851 Initialize TDEP->sigtramp_p.
8852 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8853 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8854 deprecated_pc_in_sigtramp.
8855 * i386-linux-tdep.c: Adjust comments.
8856 (i386_linux_pc_in_sigtramp): Remove function.
8857 (i386_linux_sigtramp_p): New function.
8858 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8859 deprecated_pc_in_sigtramp.
8860 * i386-nto-tdep.c: Update copyright year.
8861 (i386nto_pc_in_sigtramp): Remove function.
8862 (i386nto_sigtramp_p): New function.
8863 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8864 SP_REGNUM.
8865 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8866 deprecated_pc_in_sigtramp.
8867 * i386-sol2-tdep.c: Update copyright year.
8868 (i386_sol2_pc_in_sigtramp): Remove function.
8869 (i386_sol2_sigtramp_p): New function.
8870 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8871 deprecated_pc_in_sigtramp.
8872 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8873 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8874 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8875 deprecated_sigtramp_start and deprecated_sigtramp_end.
8876 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8877 (i386nbsd_pc_in_sigtramp): Remove function.
8878 (i386nbsd_sigtramp_p): New function.
8879 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8880 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8881 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8882 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8883 (i386obsd_pc_in_sigtramp): Remove function.
8884 (i386obsd_sigtramp_p): New function.
8885 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8886 functions.
8887 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8888 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8889 TDEP->sigtramp_p.
8890 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8891 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8892 dependencies.
8893
e083e6ec
MK
8894 * config/i386/i386aout.mt: Remove file.
8895
bd153b94
MK
8896 * configure.tgt: Remove i[34567]86-*-go32*,
8897 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8898 and i[34567]86-*-isc*. Set gdb_target to i386 for
8899 i[34567]86-*-netware* and i[34567]86-*-*.
8900 * config/i386/i386.mt: New file.
8901 * config/i386/embed.mt: Remove file.
8902 * config/i386/go32.mt: Remove file.
8903 * config/i386/i386nw.mt: Remove file.
8904 * config/i386/i386v.mt: Remove file.
8905 * config/i386/tm-go32.h: Remove file.
8906
4a1bcc8c
MK
8907 * tui/tui-hooks.c: Include "readline/readline.h" after
8908 "gdb_curses.h" instead of before.
8909 * tui/tui-io.c: Likewise.
8910
f9a79064
MK
8911 * tui/tui.c: Fix typo in comment.
8912
b31bc724
MK
8913 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8914
f83f82bc
AC
89152004-04-08 Andrew Cagney <cagney@redhat.com>
8916
8917 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8918 (deprecated_exception_support_initialized): Declare.
8718a420 8919 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8920 (initialize_hp_cxx_exception_support)
8921 (child_enable_exception_callback): Update.
8922 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8923 (deprecated_exception_support_initialized): Rename
8924 deprecated_exception_catchpoints_are_fragile and
8925 deprecated_exception_support_initialized.
8926 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8927
8928 * symtab.c (deprecated_hp_som_som_object_present): Rename
8929 hp_som_som_object_present.
8930 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8931 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8932 Update. Delete extern declaration.
8933 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8934 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8935 (parse_nested_classes_for_hpacc): Ditto.
8936 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8937 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8938 (initialize_hp_cxx_exception_support): Ditto.
8939 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8940 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8941 (cp_print_class_method): Ditto.
8718a420 8942 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8943 (c_type_print_base): Ditto.
8944 * c-exp.y (hp_som_som_object_present): Ditto.
8945
fb2be677
AC
89462004-04-08 Andrew Cagney <cagney@redhat.com>
8947
8948 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8949 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8950 (frame_unwind_find_by_frame): Re-implement the unwind code so
8951 that it can both prepend and append sniffers. Replace
8952 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8953 * tramp-frame.c (tramp_frame_append): Use
8954 frame_unwind_prepend_unwinder.
8955 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8956 frame_unwind_register_unwinder.
8957 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8958 tramp_frame_append.
8959 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8960 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8961 (mips_linux_init_abi): Update.
8962
67faf007
KB
89632004-04-08 Kevin Buettner <kevinb@redhat.com>
8964
8965 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8966 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8967 file support.
8968
8973ff21
KB
89692004-04-07 Kevin Buettner <kevinb@redhat.com>
8970
8971 * ia64-tdep.c (elf.h): Don't include.
8972 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8973
4a0e2f88
JM
89742004-04-07 Jason Molenda (jmolenda@apple.com)
8975
8976 * frame.h: Typeo corrections in comments.
8977
9872ad24
JB
89782004-04-07 Jim Blandy <jimb@redhat.com>
8979
8980 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8981 %esp and %ebp
8982
70b216c8
MK
89832004-04-07 Mark Kettenis <kettenis@gnu.org>
8984
11d5789c
MK
8985 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8986 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8987 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8988 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8989 and solib-legacy.o.
8990 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8991 solib-svr4.o.
8992 * config/sparc/tm-sol2.h: Update copyright year. Include
8993 "solib.h".
8994
70b216c8
MK
8995 * sparc-sol2-tdep.c: Update copyright year. Include
8996 "solib-svr4.h".
8997 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8998 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8999 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9000 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9001 dependencies.
9002
6339dc9e
AC
90032004-04-06 Andrew Cagney <cagney@redhat.com>
9004
9005 * infttrace.c: Include "infttrace.h".
9006 * infttrace.h: Include "target.h".
9007 * Makefile.in (infttrace_h): Update.
9008 (infttrace.o): Update.
8718a420 9009
93449403
AC
90102004-04-06 Andrew Cagney <cagney@redhat.com>
9011
6d518969
AC
9012 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9013 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9014 move extern declarations from here ...
9015 * infttrace.h: ... to here.
9016 * Makefile.in (hppah-nat.o): Update dependencies.
9017
85f4f2d8
AC
9018 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9019 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9020 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9021 (hppa_breakpoint_from_pc): Delete.
9022
93449403
AC
9023 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9024
71456ec6
AC
90252004-04-05 Andrew Cagney <cagney@redhat.com>
9026
9027 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9028 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9029 <sys/file.h>.
8718a420 9030
4c02c60c
AC
90312004-04-06 Randolph Chung <tausq@debian.org>
9032
9033 Committed by Andrew Cagney (mechanical change).
9034 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9035 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9036 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9037 child_enable_exception_callback, current_ex_event,
9038 null_symtab_and_line, child_get_current_exception_event,
9039 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9040 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9041 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9042 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9043 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9044 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9045 Move hpux-specific definitions ...
9046 * hppa-hpux-tdep.c: ... to here.
9047
3a515653
AC
90482004-04-05 Andrew Cagney <cagney@redhat.com>
9049
9050 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9051 skip_prologue_using_sal.
9052
c1730d02
AC
90532004-04-05 Andrew Cagney <cagney@redhat.com>
9054
9055 * config/i386/tm-i386.h: Delete file.
9056 * config/i386/tm-vxworks.h: Update copyright, do not include
9057 "tm-i386.h".
9058 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9059 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9060 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9061 * config/i386/ncr3000.mt (TM_FILE): Delete.
9062 * config/i386/interix.mt (TM_FILE): Delete.
9063 * config/i386/i386v.mt (TM_FILE): Delete.
9064 * config/i386/i386nw.mt (TM_FILE): Delete.
9065 * config/i386/i386gnu.mt (TM_FILE): Delete.
9066 * config/i386/i386aout.mt (TM_FILE): Delete.
9067 * config/i386/embed.mt (TM_FILE): Delete.
9068
8b67aa36
KB
90692004-04-05 Kevin Buettner <kevinb@redhat.com>
9070
9071 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9072 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9073 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9074 (accg7_regnum): New constants.
9075 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9076 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9077 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9078 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9079 for accg registers.
9080 (frv_register_sim_regno): Update spr_map[].
9081
3c7012f5
AC
90822004-04-04 Andrew Cagney <cagney@redhat.com>
9083
9084 * config/mips/xm-riscos.h: Delete.
9085 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9086 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9087 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9088 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9089 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9090 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9091 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9092 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9093 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9094 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9095 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9096 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9097 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9098 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9099 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9100 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9101 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9102 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9103 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9104 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9105 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9106 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9107 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9108 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9109 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9110 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9111
3c7012f5
AC
9112 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9113 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9114 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9115 * configure.host: Remove m680[01]0-sun-sunos3*,
9116 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9117 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9118 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9119 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9120 mips-*-riscos*.
9121 * NEWS: Mention removed systems.
9122
99d16a21
AC
91232004-04-04 Andrew Cagney <cagney@redhat.com>
9124
9125 GDB 6.1 release created from 6.1 branch.
9126
6cdf9d98
AC
91272004-04-04 Andrew Cagney <cagney@redhat.com>
9128
98d346c3
AC
9129 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9130 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9131 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9132
6cdf9d98
AC
9133 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9134 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9135 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9136
859a326d
JB
91372004-04-03 Jim Blandy <jimb@redhat.com>
9138
9139 * MAINTAINERS: Chris Faylor has changed employers; add him to
9140 "paper trail" section, and update his E-mail address.
9141
b87178c3
AC
91422004-04-03 Andrew Cagney <cagney@redhat.com>
9143
4ea2acf0
AC
9144 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9145 generic dummy frames.
9146 * dummy-frame.c: Update copyright.
9147 (dummy_frame_sniffer): Delete check for generic dummy frames.
9148
d0bd2d18 9149 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9150 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9151 (REG_PARM_STACK_SPACE): Delete.
9152 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9153 Inline reference to REG_PARM_STACK_SPACE.
9154
b87178c3
AC
9155 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9156 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9157 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9158 (FRAME_BASE_BEFORE_SIGTRAMP)
9159 (hppa32_hpux_frame_base_before_sigtramp)
9160 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9161 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9162 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9163 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9164 (FRAME_BASE_BEFORE_SIGTRAMP)
9165 (hppa64_hpux_frame_base_before_sigtramp)
9166 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9167
43e2e1a0
AC
91682004-04-03 Andrew Cagney <cagney@redhat.com>
9169
9170 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9171
ddc135a4
AC
91722004-04-02 Andrew Cagney <cagney@redhat.com>
9173
9174 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9175 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9176 * dummy-frame.h: Delete out-of-date comments.
9177 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9178 * gdbarch.h, gdbarch.c: Re-generate.
9179
d15bfd3a 91802004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9181
d15bfd3a
AC
9182 Committed by Andrew Cagney <cagney@redhat.com>.
9183 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9184 into account an instruction saving a register if we have already
9185 seen an earlier instruction saving that same register.
9186
f04ceafa
AC
91872004-04-02 Andrew Cagney <cagney@redhat.com>
9188
08be3abd
AC
9189 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9190 * gdbarch.h, gdbarch.c: Re-generate.
9191 * frame.c (legacy_get_prev_frame): Delete references to
9192 DEPRECATED_INIT_FRAME_PC_FIRST.
9193
f04ceafa
AC
9194 * infrun.c (pc_in_sigtramp): Delete function.
9195 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9196 get_frame_type.
9197
08e69816
AC
91982004-04-02 Andrew Cagney <cagney@redhat.com>
9199
9200 * infrun.c (handle_step_into_function): Delete code conditional on
9201 legacy_frame_p.
9202 (handle_inferior_event, step_over_function): Ditto.
9203
adb54772
AC
92042004-04-02 Andrew Cagney <cagney@redhat.com>
9205
9206 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9207 "previous frame inner to this frame" test.
9208
304396fb
AC
92092004-04-02 Andrew Cagney <cagney@redhat.com>
9210
9211 * frame.c (safe_frame_unwind_memory): New function.
9212 * frame.h (safe_frame_unwind_memory): Declare. Update description
9213 of /safe_/ methods.
9214 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9215 "next_frame". Use safe_frame_unwind_memory.
9216 (tramp_frame_sniffer): Update call to tramp_frame_start.
9217
6502dd73
DJ
92182004-04-01 Daniel Jacobowitz <drow@mvista.com>
9219
9220 * dwarf2read.c (dwarf2_objfile_data_key): New.
9221 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9222 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9223 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9224 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9225 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9226 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9227 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9228 Remove variables.
9229 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9230 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9231 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9232 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9233 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9234 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9235 Remove macros.
9236 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9237 data.
9238 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9239 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9240 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9241 (read_partial_die, read_full_die, read_indirect_string)
9242 (dwarf_decode_line_header, dwarf_decode_macros)
9243 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9244 Update uses of removed variables.
9245 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9246 of removed macros.
9247 (_initialize_dwarf2_read): New function.
9248 * symfile.h (dwarf2_has_info): Update prototype.
9249 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9250 * elfread.c (elf_symfile_read): Likewise.
9251
408752b0
JB
92522004-04-01 Jim Blandy <jimb@redhat.com>
9253
9f744501
JB
9254 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9255 function for register numbers on all the rs6000-derived targets.
9256 (rs6000_gdbarch_init): Don't register a separate
9257 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9258 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9259 variants.
9260
408752b0
JB
9261 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9262 numbering.
9263
2de41bce
PH
92642004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9265
9266 * valarith.c: Update copyright notice.
9267 (value_add): Handle range types.
9268 (value_sub): Ditto.
9269 (value_equal): Ditto.
9270 (value_less): Ditto.
9271 (value_neg): Ditto.
9272 (value_complement): Ditto.
8718a420 9273 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9274 eliminiating unnecessary COERCE_ENUMs.
8718a420 9275
5613d8d3
AC
92762004-03-31 Andrew Cagney <cagney@redhat.com>
9277
9278 * frame.h (frame_unwind_id): Declare.
9279 * frame.c (frame_unwind_id): New function.
9280 (get_prev_frame_1): New function.
9281 (frame_debug_got_null_frame): New function.
9282 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9283 code proper to prev_frame, update description.
9284 * infrun.c (step_over_function): Use frame_unwind_id.
9285
c4557624
JB
92862004-04-31 J. Brobecker <brobecker@gnat.com>
9287
9288 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9289 (hppa64_push_dummy_call): Likewise.
9290
3e6bb910
JB
92912004-03-30 Jim Blandy <jimb@redhat.com>
9292
9293 From Ulrich Weigand:
9294 * utils.c (query): Do not use a va_list variable multiple times.
9295
a2f23071
DJ
92962004-03-29 Daniel Jacobowitz <drow@mvista.com>
9297
9298 * Makefile.in (linux_nat_h): Update dependencies.
9299 * configure.in: Check for <gnu/libc-version.h>.
9300 * configure: Regenerate.
9301 * config.in: Regenerate.
9302 * linux-nat.h: Include "target.h". Add waitstatus field to
9303 struct lwp_info.
9304 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9305 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9306 to.
9307 (lin_lwp_handle_extended): New function. Handle clone events.
9308 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9309 thread exit events.
9310 (child_wait): Handle clone events.
9311 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9312 * linux-nat.c (linux_enable_event_reporting): Turn on
9313 PTRACE_O_TRACECLONE.
9314 (linux_handle_extended_wait): Handle clone events.
9315 * thread-db.c: Include <gnu/libc-version.h>.
9316 (struct private_thread_info): Add dying flag.
9317 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9318 higher.
9319 (attach_thread): Update comments. Handle dying threads.
9320 (detach_thread): Set the dying flag.
9321 (check_event): Always call attach_thread.
9322
8d5f9dcb
DJ
93232004-03-29 Daniel Jacobowitz <drow@mvista.com>
9324
9325 * mips-tdep.c (mips_pdr_data): New.
9326 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9327 (_initialize_mips_tdep): Initialize mips_pdr_data.
9328
66337bb1
CV
93292004-03-29 Corinna Vinschen <vinschen@redhat.com>
9330
9331 * minsyms.c (install_minimal_symbols): Move dropping leading
9332 char from linkage name from here...
9333 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9334 test for "__gnu_compiled*" symbols.
9335
e802b915
JB
93362004-03-28 Jim Blandy <jimb@redhat.com>
9337
9338 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9339 registers to temp register r0 and byte stores as prologue
9340 instructions.
9341
72b56458
AC
93422004-03-28 Andrew Cagney <cagney@redhat.com>
9343
9344 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9345 arm*-*-*.
9346
0bfbda3b
SC
93472004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9348
9349 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9350 and switch the layout to force a display of register window.
9351
5a7225ed
JB
93522004-02-26 J. Brobecker <brobecker@gnat.com>
9353
9354 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9355 of the INTEGER class.
9356
81a07a45
JB
93572004-03-26 Jim Blandy <jimb@redhat.com>
9358
9359 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9360 bytes long on PPC GNU/Linux.
9361
8c691c7a
DC
93622004-03-26 David Carlton <carlton@kealia.com>
9363
9364 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9365
103a0089
AC
93662004-03-25 Andrew Cagney <cagney@redhat.com>
9367
9368 * PROBLEMS: Add general section titles, remove references to
9369 specific releases.
9370
7a5ea0d4
DJ
93712004-03-25 Daniel Jacobowitz <drow@mvista.com>
9372
9373 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9374 INT_REGISTER_SIZE.
9375 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9376 FP_REGISTER_VIRTUAL_SIZE.
9377 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9378 of DEPRECATED_REGISTER_RAW_SIZE.
9379 (arm_register_type): Add gdbarch argument.
9380 (arm_register_raw_size, arm_register_virtual_size): Delete.
9381 (arm_register_byte, arm_extract_return_value)
9382 (arm_store_return_value, arm_get_longjmp_target): Update references
9383 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9384 (arm_gdbarch_init): Likewise. Don't set
9385 deprecated_register_raw_size, deprecated_register_virtual_size,
9386 deprecated_max_register_raw_size,
9387 deprecated_max_register_virtual_size, or
9388 deprecated_max_register_virtual_type. Do set register_type.
9389 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9390 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9391 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9392 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9393 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9394 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9395 INT_REGISTER_SIZE.
9396 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9397 (remote_rdp_store_register): Likewise.
9398
5792a79b
DJ
93992004-03-24 Daniel Jacobowitz <drow@mvista.com>
9400
9401 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9402 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9403 to after osabi initialization.
9404 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9405 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9406 functions.
9407 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9408 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9409 variables.
9410 (mips_linux_init_abi): Append signal trampoline unwinders.
9411
1196bfda
AC
94122004-03-24 Andrew Cagney <cagney@redhat.com>
9413
9414 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9415 * tramp-frame.c: Include "gdb_assert.h".
9416 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9417 correct sizeof.
9418 (tramp_frame_append): Validate the tramp frame's instructions.
9419 * Makefile.in (tramp-frame.o): Update dependencies.
9420
4be282b4
AC
94212004-03-23 Andrew Cagney <cagney@redhat.com>
9422
9423 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9424
69aec09b
AC
94252004-03-23 Andrew Cagney <cagney@redhat.com>
9426
9427 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9428 Nasser as past testsuite/lib/ (and other) maintainers.
9429
63ed89b4
DJ
94302004-03-23 Daniel Jacobowitz <drow@mvista.com>
9431
9432 * infcmd.c (attach_command): Reread symbols if we already have
9433 an exec file.
9434
f3b36427
AC
94352004-03-23 Andrew Cagney <cagney@redhat.com>
9436
9437 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9438
aa2a3f87
AC
94392004-03-23 Andrew Cagney <cagney@redhat.com>
9440
9441 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9442 * gdbarch.h, gdbarch.c: Re-generate.
9443 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9444 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9445 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9446 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9447 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9448 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9449 (DEPRECATED_SIGTRAMP_START): Update.
9450 * blockframe.c (find_pc_sect_partial_function): Update.
9451 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9452
00cac895
DJ
94532004-03-23 Daniel Jacobowitz <drow@mvista.com>
9454
9455 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9456 if necessary.
9457
f561f026
AC
94582004-03-23 Andrew Cagney <cagney@redhat.com>
9459
9460 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9461 predicate, deprecate.
9462 * gdbarch.h, gdbarch.c: Re-generate.
9463 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9464 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9465 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9466 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9467 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9468 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9469 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9470 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9471 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9472 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9473 * blockframe.c (find_pc_partial_function): Update.
9474 * breakpoint.c (bpstat_what): Update.
9475 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9476 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9477 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9478 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9479 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9480 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9481 * i386-nto-tdep.c (i386nto_init_abi): Update.
9482 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9483 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9484 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9485 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9486 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9487 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9488 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9489 * infrun.c (pc_in_sigtramp): Update.
9490 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9491 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9492 * mips-tdep.c (mips_gdbarch_init): Update.
9493 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9494 * ppc-linux-tdep.c: Update comment.
9495 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9496 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9497 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9498 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9499 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9500 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9501 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9502 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9503 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9504 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9505
8050c72f
AC
95062004-03-23 Andrew Cagney <cagney@redhat.com>
9507
d2259dd3
AC
9508 * tramp-frame.h, tramp-frame.h: New files.
9509 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9510 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9511
8050c72f
AC
9512 * Makefile.in: Update all dependencies.
9513
0db9b4b7
AC
95142004-03-23 Andrew Cagney <cagney@redhat.com>
9515
9516 * Makefile.in (trad_frame_h): Add $(frame_h).
9517 * trad-frame.h: Update copyright. Include "frame.h".
9518 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9519 (trad_frame_set_id, trad_frame_get_id): Declare.
9520 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9521 * trad-frame.c: Update copyright.
9522 (struct trad_frame_cache): Define.
9523 (trad_frame_cache_zalloc): New function.
9524 (trad_frame_set_id, trad_frame_get_id): New functions.
9525 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9526
8e645ae7
AC
95272004-03-22 Andrew Cagney <cagney@redhat.com>
9528
9529 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9530 s390_pltstub_unwind_cache.
9531 (s390_stub_frame_unwind_cache): Rename
9532 s390_pltstub_frame_unwind_cache.
9533 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9534 (s390_stub_frame_prev_register): Rename
9535 s390_pltstub_frame_prev_register.
9536 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9537 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9538
9539 From Ulrich Weigand:
9540 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9541 pointer calls like PLT calls.
9542
34fcf120
DJ
95432004-03-22 Daniel Jacobowitz <drow@mvista.com>
9544
9545 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9546 PC rather than the partial function start address. Use the start
9547 address to sanity check the found PDR.
9548
5b917078
DJ
95492004-03-22 Daniel Jacobowitz <drow@mvista.com>
9550
9551 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9552 linux_handle_extended_wait.
9553
8adf9e78
AC
95542004-03-22 Andrew Cagney <cagney@redhat.com>
9555
c3122434
AC
9556 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9557 function.
9558
8adf9e78
AC
9559 * frame.h (generic_pop_current_frame): Delete declaration.
9560 (deprecate_pop_dummy_frame): Deprecate
9561 generic_pop_dummy_frame.
9562 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9563 (generic_pop_current_frame): Delete function.
9564 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9565 generic_pop_current_frame.
9566 * v850-tdep.c (v850_pop_frame): Update.
9567 * mcore-tdep.c (mcore_pop_frame): Update.
9568 * sh64-tdep.c (sh64_pop_frame): Update.
9569 * h8300-tdep.c (h8300_pop_frame): Update.
9570
90ba813f
AC
95712004-03-22 Andrew Cagney <cagney@redhat.com>
9572
9573 * frame.h (deprecated_pc_in_call_dummy): Rename
9574 generic_pc_in_call_dummy.
9575 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9576 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9577 generic_pc_in_call_dummy.
9578 (pc_in_dummy_frame): Make static.
9579 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9580 * gdbarch.h, gdbarch.c: Re-generate.
9581 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9582 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9583 (legacy_get_prev_frame): Ditto.
9584 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9585 comment.
8718a420 9586
ca4bb888
AC
95872004-03-21 Andrew Cagney <cagney@redhat.com>
9588
244675f9
AC
9589 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9590 declaration and out-of-date comment.
9591 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9592 Delete function.
9593 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9594 deprecated_pc_in_call_dummy.
9595
ca4bb888
AC
9596 * infrun.c (handle_inferior_event): For non legacy frames, use the
9597 frame ID and frame type to identify a signal trampoline. Update
9598 comments.
9599
1777c7b4
NW
96002004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9601
9602 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9603 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9604
82417da5
AC
96052004-03-21 Andrew Cagney <cagney@redhat.com>
9606
9607 * frame-unwind.h: Update copyright.
9608 (struct frame_data): Add opaque declaration.
9609 (frame_sniffer_ftype): Declare.
9610 (struct frame_unwind): Add "unwind_data" and "sniffer".
9611 (frame_unwind_register_unwinder): Declare.
9612 (frame_unwind_find_by_frame): Add parameter "this_cache".
9613 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9614 (legacy_get_prev_frame, legacy_get_prev_frame)
9615 (get_frame_type): Pass the prologue_cache to
9616 frame_unwind_find_by_frame.
9617 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9618 "unwinder".
9619 (frame_unwind_register_unwinder): New function.
9620 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9621
b2ba182e
PH
96222004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9623
9624 * bcache.c (print_percentage): Use floating point to avoid
9625 incorrect results when portion*100 overflows.
9626
81332287
KB
96272004-03-19 Kevin Buettner <kevinb@redhat.com>
9628
9629 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9630 (ppc_linux_init_extra_frame_info)
9631 (ppc_linux_frameless_function_invocation)
9632 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9633 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9634 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9635 (rs6000_frame_chain): Delete declarations.
9636 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9637 (ppc_linux_init_extra_frame_info)
9638 (ppc_linux_frameless_function_invocation)
9639 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9640 (ppc_linux_init_abi): Remove registration of above deleted functions.
9641 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9642 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9643 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9644 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9645 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9646 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9647 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9648 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9649 frame management for all OSABIs.
9650
61a65099
KB
96512004-03-19 Andrew Cagney <cagney@redhat.com>
9652
9653 Committed by Kevin Buettner <kevinb@redhat.com>.
9654
9655 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9656 Update copyright.
9657 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9658 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9659 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9660 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9661 unwinders. #ifdef legacy frame code.
9662 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9663 "frame-base.h".
9664 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9665 (struct rs6000_frame_cache, rs6000_frame_cache)
9666 (rs6000_frame_this_id, rs6000_frame_prev_register)
9667 (rs6000_frame_sniffer, rs6000_frame_unwind)
9668 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9669 (rs6000_frame_base): Implement a traditional frame unwinder.
9670 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9671 frame unwinder.
9672
88f7da05
KB
96732004-03-19 Kevin Buettner <kevinb@redhat.com>
9674
9675 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9676 breakpoint address for watchpoints or the catch eventpoints.
9677 Add new paramter ``bptype''. Adjust all callers.
9678
f826dce1
AC
96792004-03-19 Andrew Cagney <cagney@redhat.com>
9680
33cb8b0f
AC
9681 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9682
f826dce1
AC
9683 * PROBLEMS: Delete note that ARM does not use frame code, problem
9684 fixed.
9685
43b1ab88
AC
96862004-03-18 Andrew Cagney <cagney@redhat.com>
9687
292ab034
AC
9688 * stack.c (return_command): Delete code wrapped in #ifdef
9689 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9690
43b1ab88
AC
9691 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9692
dbfe4626
AC
96932004-03-18 Andrew Cagney <cagney@redhat.com>
9694
9695 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9696 DEPRECATED_IN_SIGTRAMP.
9697 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9698 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9699 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9700 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9701 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9702 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9703 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9704 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9705 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9706 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9707
0cad6aec
AC
97082004-03-18 Andrew Cagney <cagney@redhat.com>
9709
9710 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9711 (struct frame_base_table_entry): Define.
9712 (struct frame_base_table): Re-implement as a linked list.
9713 (frame_base_init): Re-implement.
9714 (frame_base_table): Delete function.
9715 (append_predicate): Delete function.
9716 (frame_base_append_sniffer): Update.
9717 (frame_base_set_default): Update.
9718 (frame_base_find_by_frame): Update.
9719 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9720 * Makefile.in (frame-base.o): Update dependencies.
9721
9982c2e7
AC
97222004-03-17 Andrew Cagney <cagney@redhat.com>
9723
9724 * frame.c (legacy_get_prev_frame): Pass correct frame to
9725 frame_unwind_find_by_frame.
9726
8dfe8985
DC
97272004-03-17 David Carlton <carlton@kealia.com>
9728
9729 * NEWS: Mention C++ nested types and namespaces
9730
ed47347a
MC
97312004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9732
9733 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9734 and "Regressions since gdb 5.3.". Add known regressions since
9735 gdb 6.0.
9736
90aeadfc
DC
97372004-03-16 David Carlton <carlton@kealia.com>
9738
9739 * dwarf2read.c (process_structure_scope): Process children even
9740 when we're a declaration.
9741
73912b9b
AC
97422004-03-16 Andrew Cagney <cagney@redhat.com>
9743
9744 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9745 * blockframe.c (find_pc_partial_function)
9746 (find_pc_sect_partial_function): Merge into a single
9747 find_pc_partial_function.
9748
283accbc
MK
97492004-03-16 Mark Kettenis <kettenis@gnu.org>
9750
9751 * i386bsd-nat.c: s/regno/regnum/g.
9752 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9753 FP0_REGNUM.
9754 (store_inferior_registers): Likewise.
9755
f5b1afdf
MK
97562004-03-16 Mark Kettenis <kettenis@gnu.org>
9757
9758 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9759 of i387_fill_fsave.
9760 (store_inferior_registers): Call i387_collect_fsave and
9761 i387_collect_fxsave instead of i387_fill_fsave and
9762 i387_fill_fxsave.
9763
41fe5eb3
AC
97642004-03-15 Andrew Cagney <cagney@redhat.com>
9765
9766 * Makefile.in (frame-unwind.o): Update dependencies.
9767 * frame-unwind.c: Include "gdb_obstack.h".
9768 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9769 parameter.
9770 (append_predicate): Delete function.
9771 (struct frame_unwind_table_entry): New structure.
9772 (struct frame_unwind_table): Replace "sniffer" with "head" and
9773 "tail".
9774 (frame_unwind_append_sniffer): Update.
9775 (frame_unwind_find_by_frame): Update.
9776 (_initialize_frame_unwind): Registe frame_unwind_init using
9777 gdbarch_data_register_pre_init.
9778
3f63813d
MK
97792004-03-15 Mark Kettenis <kettenis@gnu.org>
9780
9781 * i386bsd-nat.c: Update copyright year.
9782 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9783 define unconditionally.
9784
3248c325 97852004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9786
9787 * i387-tdep.h (i387_collect_fsave): New prototype.
9788 * i387-tdep.c (i387_collect_fsave): New function containing most
9789 of the code from i387_fill_fsave.
3248c325 9790 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9791
871fbe6a
MK
97922004-03-15 Mark Kettenis <kettenis@gnu.org>
9793
9794 * i386-linux-tdep.c: Update copyright year.
9795 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9796 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9797 svr4_ilp32_link_map_offsets instead of
9798 i386_linux_svr4_fetch_link_map_offsets.
9799
8176b9b8
DC
98002004-03-15 David Carlton <carlton@kealia.com>
9801
9802 Fix for PR c++/1553:
9803 * dwarf2read.c (read_structure_type): Determine type name by
9804 calling determine_class_name.
9805 (determine_class_name): New.
9806 (determine_prefix): Look at TYPE_TAG_NAME and call
9807 determine_class_name when appropriate.
9808 (determine_prefix_aux, class_name): Delete.
9d58e29d 9809 (read_namespace): Set die->type.
8176b9b8 9810
fe8bf7d7
KB
98112004-03-15 Kevin Buettner <kevinb@redhat.com>
9812
9813 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9814 unused macro definition. The definition in target.h (or perhaps
9815 elsewhere) takes precedence.
9816
ed6edd9b
AC
98172004-03-15 Andrew Cagney <cagney@redhat.com>
9818
f9be684a
AC
9819 * ppc-tdep.h: Update copyright.
9820 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9821 function signatures to match "regsets.h".
9822 * ppc-linux-tdep.c: Include "regset.h".
9823 (ELF_GREGSET_SIZE): Delete.
9824 (right_supply_register): New function.
9825 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9826 using right_supply_register.
9827 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9828 functions.
9829 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9830 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9831 (_initialize_ppc_linux_tdep): Do not register
9832 ppc_linux_regset_core_fns.
9833 (ppc_linux_regset_from_core_section): Replace
9834 fetch_core_registers.
9835 (ppc_linux_regset_core_fns): Delete.
9836 * ppc-linux-nat.c: (right_fill_reg): New function.
9837 (supply_gregset): Update call to ppc_linux_supply_gregset.
9838 (fill_gregset): Clear the register set, use right_fill_reg.
9839 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9840 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9841
ed6edd9b
AC
9842 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9843 unsigned.
9844
030f20e1
AC
98452004-03-15 Andrew Cagney <cagney@redhat.com>
9846
9847 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9848 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9849 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9850 and register_gdbarch_data.
9851 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9852 (struct gdbarch_data): Replace "init" by "pre_init" and
9853 "post_init".
9854 * gdbarch.h, gdbarch.c: Re-generate.
9855 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9856 with"obstack", use OBSTACK_ZALLOC.
9857 (dwarf2_frame_ops): Delete.
9858 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9859 (dwarf2_frame_init_reg): Use gdbarch_data.
9860 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9861 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9862 (_initialize_svr4_solib): Update.
9863 * user-regs.c (_initialize_user_regs): Update.
9864 * reggroups.c (_initialize_reggroup): Update.
9865 * regcache.c (_initialize_regcache): Update.
9866 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9867 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9868 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9869 * frame-unwind.c (_initialize_frame_unwind): Update.
9870 * frame-base.c (_initialize_frame_base): Update.
9871 * user-regs.c (user_reg_add): Update.
9872 * reggroups.c (reggroup_add): Update.
9873 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9874 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9875 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9876 * frame-base.c (frame_base_table): Update.
9877 * remote.c (_initialize_remote): Update.
9878 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9879
3111a3fc
AC
98802004-03-15 Andrew Cagney <cagney@redhat.com>
9881
9882 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9883
5ecb7103
KB
98842004-03-15 Kevin Buettner <kevinb@redhat.com>
9885
9886 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9887 * frv-linux-tdep.c: New file.
9888 * frv-tdep.c (struct gdbarch_tdep): Add new field
9889 ``sigcontext_reg_addr''.
9890 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9891 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9892 (frv_sigramp_frame_sniffer): New functions.
9893 (frv_sigtramp_frame_unwind): New static global.
9894 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9895 sniffers.
9896 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9897 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9898
1ccda5e9
KB
98992004-03-15 Kevin Buettner <kevinb@redhat.com>
9900
9901 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9902 but not via a call to error(), when unable to read memory.
9903
b375a0a5
KB
99042004-03-15 Kevin Buettner <kevinb@redhat.com>
9905
9906 * frv-tdep.c (frv_call_dummy_words): Delete.
9907 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9908
4fdf6121
AC
99092004-03-15 Andrew Cagney <cagney@redhat.com>
9910
9911 * infrun.c (handle_step_into_function, step_over_function): Only
9912 update and use STEP_FRAME_ID when the system is using legacy
9913 frames. Update comments.
9914
34021503
MK
99152004-03-14 Mark Kettenis <kettenis@gnu.org>
9916
187e21d1
MK
9917 * amd64-linux-tdep.h: Remove file.
9918 * amd64-linux-tdep.c: Don't include "inferior.h" and
9919 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9920 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9921 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9922 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9923 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9924 macros.
9925 (user_to_gdb_regmap): Remove variable.
9926 (amd64_linux_gregset_reg_offset): New variable.
9927 (amd64_core_fns): Remove variable.
9928 (fetch_core_registers): Remove function.
9929 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9930 functions.
9931 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9932 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9933 * Makefile.in (amd64_linux_tdep_h): Remove.
9934 (amd64-linux-nat.o): Update dependencies.
9935 (amd64-linux-tdep.o): Update dependencies.
9936
99679982
MK
9937 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9938 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9939 functions.
9940 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9941
34021503
MK
9942 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9943 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9944
134d01f1
DJ
99452004-03-14 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * dwarf2read.c (read_structure_type): Rename from
8718a420 9948 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9949 Return immediately if die->type is set. Call read_type_die before
9950 dwarf2_add_member_fn.
9951 (process_structure_scope): New function.
9952 (read_enumeration_type, process_enumeration_scope): New functions,
9953 broken out from read_enumeration. Don't create the enumeration
9954 type if it has already been created.
9955 (read_enumeration): Removed.
9956 (process_die): Call read_structure_type, process_structure_scope,
9957 read_enumeration_type, and process_enumeration_scope. Just call
9958 new_symbol for base and subrange types. Add a comment about other
9959 type dies.
9960 (read_type_die): Call read_enumeration_type.
9961 (add_partial_structure, new_symbol): Update comments.
9962
65760afb
SC
99632004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9964
9965 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9966
10f59415
SC
99672004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9968
9969 * tui/tui-win.h (tui_get_cmd_list): Declare.
9970 * tui/tui-win.c (tui_command): New function.
9971 (tui_get_cmd_list): New function.
9972 (_initialize_tui_win): Moved initialization of tui command in
9973 tui_get_cmd_list.
9974
9975 * tui/tui-data.c (init_content_element): Setup new data members.
9976 (init_win_info): Likewise.
9977 (free_content_elements): Free it.
9978 * tui/tui-data.h (struct tui_data_element): Store the register
9979 content to print.
9980 (struct tui_data_info): Keep the current register group.
9981
9982 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9983
9984 * tui/tui-regs.h (tui_show_registers): Update prototype.
9985 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9986 (tui_resize_all): No need to calculate anything for register window.
9987 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9988 (tui_set_register_element, tui_set_general_regs_content): Remove.
9989 (tui_set_special_regs_content): Remove.
9990 (tui_set_general_and_special_regs_content): Remove.
9991 (tui_set_float_regs_content): Remove.
9992 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9993 (tui_set_regs_content): Remove.
9994 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9995 (tui_v_show_registers_command_support): Remove.
9996 (tui_show_registers): Use a reggroup to specify the registers to show.
9997 (tui_show_register_group): New function.
9998 (tui_display_registers_from): Compute the layout of register window
9999 and refresh with new API; be sure to delete old register windows.
10000 (tui_check_register_values): Update to use tui_get_register and
10001 tui_display_data.
10002 (tui_display_register): Just refresh the register window part.
10003 (tui_register_format): Format registers and save in tui_data_element.
10004 (tui_get_register): New to combine tui_reg_value_has_changed and
10005 tui_get_register_raw_value; fix to use the new gdb API.
10006 (tui_show_float_command): Renamed tui_reg_float_command.
10007 (tui_show_general_command): Renamed tui_reg_general_command.
10008 (tui_show_special_command): Renamed tui_reg_system_command.
10009 (_initialize_tui_regs): Remove unused commands.
10010
c3364ea4
MK
100112004-03-13 Mark Kettenis <kettenis@gnu.org>
10012
27d1e716
MK
10013 * NEWS (New native configurations): Mention OpenBSD/amd64.
10014
c3364ea4
MK
10015 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10016 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10017 Remove defines.
10018 * config/i386/nm-fbsd64.h: Likewise.
10019 * config/i386/nm-obsd.h: Likewise.
10020 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10021 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10022
b2d6d697
KB
100232004-03-12 Kevin Buettner <kevinb@redhat.com>
10024
10025 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10026 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10027 New constants.
10028
76e43199
KB
10029 From Richard Sandiford <rsandifo@redhat.com>:
10030 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10031
34ce532e
KB
100322004-03-12 Kevin Buettner <kevinb@redhat.com>
10033
10034 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10035 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10036 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10037 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10038 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10039 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10040 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10041 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10042 definitions from frv-tdep.c to frv-tdep.h.
10043
c4d10515
KB
100442004-03-12 Kevin Buettner <kevinb@redhat.com>
10045
10046 Add shared library support for FR-V FDPIC ABI:
10047 * Makefile.in (solib-frv.o): Add dependencies.
10048 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10049 New functions.
10050 (frv_push_dummy_call): Add support for FDPIC ABI.
10051 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10052 for FDPIC ABI.
10053 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10054 (frv_fdpic_find_canonical_descriptor): Declare.
10055 * solib-frv.c: New file.
10056 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10057 * config/frv/tm-frv.h (solib.h): Include.
10058
ed1bd989
KB
100592004-03-12 Kevin Buettner <kevinb@redhat.com>
10060
10061 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10062 (frv-tdep.o): Update dependencies.
10063 * frv-tdep.h: New file.
10064 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10065 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10066 constants.
10067 (struct gdbarch_tdep): Add new member ``frv_abi''.
10068 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10069 functions.
10070 (new_variant): Set ``frv_abi'' field.
10071 (gdb_arch_init): Detect FDPIC executables.
10072
82b38f72
MK
100732004-03-12 Mark Kettenis <kettenis@gnu.org>
10074
10075 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10076 wrapper.
10077
db1ea9ba
AC
100782004-03-11 Andrew Cagney <cagney@redhat.com>
10079
10080 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10081
f8766ec1
KB
100822004-03-11 Kevin Buettner <kevinb@redhat.com>
10083
10084 * solist.h (master_so_list): New function.
10085 * solib.c (master_so_list): Likewise.
10086 * solib-svr4.c (enable_break): Iterate over so_list entries
10087 obtained from master list instead of entries obtained directly
10088 via svr4_current_sos().
10089
523f6a27
BE
100902004-03-10 Ben Elliston <bje@gnu.org>
10091
10092 * MAINTAINERS: Update my mail address.
10093
37814c18
KI
100942004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10095
10096 * remote-m32r-sdi.c: Support hardware watchpoint.
10097
8b9740d8
DJ
100982004-03-09 Daniel Jacobowitz <drow@mvista.com>
10099
10100 * user-regs.c: Update copyright years.
10101 (struct user_regs): Rename to gdb_user_regs.
10102 (append_user_reg, builtin_user_regs, user_regs_init)
10103 (user_reg_add, user_reg_map_name_to_regnum)
10104 (usernum_to_user_reg): Update.
10105
4bb7a0a7
DJ
101062004-03-09 Daniel Jacobowitz <drow@mvista.com>
10107
10108 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10109 (skip_children): New functions.
10110 (locate_pdi_sibling): Call skip_children.
10111
44e1a9eb
DJ
101122004-03-09 Daniel Jacobowitz <drow@mvista.com>
10113
10114 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10115 * gdbtypes.c (check_typedef): Update comments.
10116
f3dd6933
DJ
101172004-03-09 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10120 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10121 pointer. Update comment about comp_unit_head.
10122 (struct abbrev_info): Shorten two int flags.
10123 (dwarf_alloc_abbrev): Take a CU argument.
10124 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10125 each time through the loop. Update cleanup argument.
10126 (psymtab_to_symtab_1): Update cleanup call.
10127 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10128 abbrev_obstack.
10129 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10130 Just call obstack_free and clear the pointer.
10131
b40c7d58
DJ
101322004-03-09 Daniel Jacobowitz <drow@mvista.com>
10133
10134 * infrun.c (handle_inferior_event): Remove short-circuit code for
10135 events in a different thread.
10136
333dabeb
DJ
101372004-03-09 Daniel Jacobowitz <drow@mvista.com>
10138
10139 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10140 print the whole transfer.
10141 (initialize_targets): Update description of "set debug target".
10142
aa17d93e
DJ
101432004-03-09 Daniel Jacobowitz <drow@mvista.com>
10144
10145 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10146
0b71f08f
NW
101472004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10148
10149 * MAINTAINERS (write after approval): Add myself.
10150
3930f270
CV
101512004-03-08 Corinna Vinschen <vinschen@redhat.com>
10152
10153 * sh-tdep.c (sh_print_registers_info): Use for loop.
10154 Don't skip multiple registers when a float register is encountered.
10155
a2b4a96c
CV
101562004-03-08 Corinna Vinschen <vinschen@redhat.com>
10157
10158 Fix PR tdep/1291.
10159 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10160 to official SH documentation.
10161
f15a4bc0
AC
101622004-03-07 Andrew Cagney <cagney@redhat.com>
10163
10164 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10165 unused function.
10166
9498281f
DJ
101672004-03-07 Daniel Jacobowitz <drow@mvista.com>
10168
10169 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10170 (arm_get_next_pc): Handle BX and BLX.
10171
449e1137
AC
101722004-03-07 Andrew Cagney <cagney@redhat.com>
10173
eded0a31
AC
10174 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10175 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10176 HPPA_SP_REGNUM.
10177 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10178 (hppa_target_read_fp): Delete.
10179 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10180 register_virtual_size, max_register_raw_size,
10181 max_register_virtual_size, register_byte, register_size,
10182 target_read_fp, fp_regnum, and register_bytes. Set register_type
10183 instead of register_virtual_type.
10184 (hppa32_register_type, hppa64_register_type): Replace
10185 hppa32_register_virtual_type and hppa64_register_virtual_type.
10186 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10187 (HPPA_FP_REGNUM): Define.
10188
f5f907e2
AC
10189 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10190
69b4bbe4
AC
10191 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10192 (pa_do_registers_info): Delete.
10193 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10194 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10195 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10196
78161e48
AC
10197 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10198 GDB_TARGET_IS_HPPA code.
10199 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10200 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10201 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10202 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10203 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10204 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10205 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10206 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10207 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10208 (hppa_frameless_function_invocation, hppa64_store_return_value)
10209 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10210 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10211 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10212 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10213 (find_proc_framesize, deposit_21, restore_pc_queue)
10214 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10215 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10216
782eae8b
AC
10217 Unconditionally enable 64-bit frame and ABI code.
10218 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10219 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10220 push_dummy_frame, fix_call_dummy, push_arguments,
10221 call_dummy_location, extract_return_value, use_struct_convention,
10222 store_return_value, store_struct_return, saved_pc_after_call,
10223 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10224 frame_chain, frame_chain_valid, frameless_function_invocation,
10225 frame_saved_pc, and pop_frame.
78161e48 10226
449e1137
AC
10227 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10228 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10229 (hppa_gdbarch_init): Do not set PC_REGNUM.
10230
12507572
MK
102312004-03-06 Mark Kettenis <kettenis@gnu.org>
10232
10233 * config/alpha/tm-fbsd.h: Remove file.
10234 * config/alpha/fbsd.mt: Tweak comment.
10235 (TM_FILE): Set to tm-alpha.h.
10236
c107cc1b
AC
102372004-03-05 Andrew Cagney <cagney@redhat.com>
10238
10239 * infrun.c (step_over_function): When non-legacy code, and no
10240 step_frame_id, use the unwinder to get the caller's frame ID.
10241
f2e7c15d
MK
102422004-03-05 Mark Kettenis <kettenis@gnu.org>
10243
8b0c3633
MK
10244 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10245 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10246 bfd_arch_unknown. Adjust comment.
10247
f2e7c15d
MK
10248 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10249 * i386obsd-tdep.c: Correct spelling in comment.
10250 * i386nbsd-tdep.c: Correct spelling in comment.
10251 * sparc-tdep.c: Correct spelling in comments.
10252
1198ecbe
DC
102532004-03-05 David Carlton <carlton@kealia.com>
10254
10255 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10256 bug.
10257
9eb42ed1
MK
102582004-03-05 Mark Kettenis <kettenis@gnu.org>
10259
10260 * sparc-tdep.c: Fix typo in comment.
10261
52b5e991
JB
102622004-03-04 J. Brobecker <brobecker@gnat.com>
10263
10264 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10265
d8151005
DJ
102662004-03-04 Daniel Jacobowitz <drow@mvista.com>
10267
10268 * dwarf2read.c: Add comment describing memory lifetimes.
10269 (struct dwarf2_pinfo): Update comment.
10270 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10271 (read_enumeration, new_symbol): Don't use obsavestring.
10272
cbeae229
MK
102732004-03-04 Mark Kettenis <kettenis@gnu.org>
10274
722d18c2
MK
10275 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10276 instead of amd64_fill_fxsave.
10277 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10278 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10279
cbeae229
MK
10280 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10281 Reorganize code a bit.
10282
b4206d25
OF
102832004-03-04 Orjan Friberg <orjanf@axis.com>
10284
10285 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10286 when the frame pointer is pushed. Don't set the frame pointer's
10287 address on the stack unless it's actually located there.
b4206d25
OF
10288 Set the SRP's address on the stack correctly when the PC is still in
10289 the prologue.
10290 (cris_return_value): New function.
10291 (cris_gdbarch_init): Clear deprecated store_return_value,
10292 extract_return_value.
10293
49b0b195
JB
102942004-03-02 Jim Blandy <jimb@redhat.com>
10295
10296 * stabsread.c (reg_value_complaint): The maximum register number
10297 is one less than the number of registers.
10298
e9ff708b
AC
102992004-03-02 Andrew Cagney <cagney@redhat.com>
10300
10301 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10302 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10303 trailing comma and redundant assignment of I386_ST0_REGNUM.
10304 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10305 32-bit segment registers.
10306
d4715e41
AC
103072004-03-01 Andrew Cagney <cagney@redhat.com>
10308
10309 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10310 use frame_relative_level and get_next_frame.
10311
3ce2bf18
AC
103122004-02-29 Andrew Cagney <cagney@redhat.com>
10313
10314 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10315 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10316 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10317 Delete macro.
10318
2da6aac3
DJ
103192004-02-29 Daniel Jacobowitz <drow@mvista.com>
10320
10321 * inflow.c (terminal_inferior): Don't give up the terminal if we
10322 previously couldn't get the inferior's terminal state.
10323
6ba34a8d
DJ
103242004-02-29 Daniel Jacobowitz <drow@mvista.com>
10325
10326 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10327 PC_REGNUM.
10328
faae5abe
AC
103292004-02-28 Andrew Cagney <cagney@redhat.com>
10330
10331 * NEWS: Refer to GDB 6.1.
10332 * README: Refer to GDB 6.1.
10333 * PROBLEMS: Refer to GDB 6.1.
10334
2227a3c5
DJ
103352004-02-28 Daniel Jacobowitz <drow@mvista.com>
10336
10337 * thread-db.c (disable_thread_signals): Remove unused function.
10338
80571bff
MK
103392004-02-28 Mark Kettenis <kettenis@gnu.org>
10340
041bd74b
MK
10341 * amd64-nat.c: Include "gdb_string.h".
10342 (amd64_collect_native_gregset): Zero-extend the 32-bit
10343 general-purpose registers and %eip.
10344
3c017e40
MK
10345 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10346 * amd64-tdep.c (amd64_collect_fxsave): New function.
10347 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10348
80571bff
MK
10349 * i387-tdep.h: Update copyright year.
10350 (i387_collect_fxsave): New prototype.
10351 * i387-tdep.c: Update copyright year.
10352 (i387_collect_fxsave): New function containing most of the code
10353 from i387_fill_fxsave.
10354 (i387_fill_fxsave): Call i387_collect_fxsave.
10355
50d71875
AC
103562004-02-28 Andrew Cagney <cagney@redhat.com>
10357
10358 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10359 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10360
4a28816e
MK
103612004-02-28 Mark Kettenis <kettenis@gnu.org>
10362
10363 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10364
dbda9972
AC
103652004-02-28 Andrew Cagney <cagney@redhat.com>
10366
10367 * utils.c: Use "", instead of <>, to include readline.
10368 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10369 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10370 * source.c, solib.c, exec.c, event-top.c: Ditto.
10371 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10372 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10373 * Makefile.in: Update all dependencies.
10374 (readline_tilde_h, readline_history_h): Define.
10375 (readline_headers): Delete.
10376
83277a99
MK
103772004-02-28 Mark Kettenis <kettenis@gnu.org>
10378
91ae4303
MK
10379 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10380 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10381 "config/i386/tm-lx64.h".
10382
83277a99
MK
10383 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10384 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10385 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10386
6e1d7d6c
AC
103872004-02-28 Andrew Cagney <cagney@redhat.com>
10388
ecc9ac84
AC
10389 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10390
6e1d7d6c
AC
10391 * breakpoint.c (_initialize_breakpoint): Use
10392 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10393 Add help to show command.
10394
9671aeef
MK
103952004-02-28 Mark Kettenis <kettenis@gnu.org>
10396
7fa2737c
MK
10397 * i386-nat.c: Reformat to be closer to coding standards.
10398 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10399 `retval'. Make variables `align' and `size' local to while-loop.
10400 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10401 (_initialize_i386_nat): New prototype.
10402
9671aeef
MK
10403 * tui/tui.c: Include <readline/readline.h> instead of
10404 "readline/readline.h". Include it after <term.h> and
10405 "gdb_curses.h".
10406
fca7aa43
AC
104072004-02-27 Andrew Cagney <cagney@redhat.com>
10408
412275d5
AC
10409 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10410 the new frame unwind code.
10411 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10412 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10413 PCOQ_HEAD_REGNUM.
10414
fca7aa43
AC
10415 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10416 "return_value" and "push_dummy_call".
10417 (hppa32_use_struct_convention): Delete unused function.
10418 (hppa32_store_return_value): Delete unused function.
10419 (hppa32_extract_return_value): Delete unused function.
10420 (hppa32_stack_align): Delete function.
10421
e6a8a7d2
EZ
104222004-02-27 Eli Zaretskii <eliz@elta.co.il>
10423
10424 * coffread.c (enter_linenos): Don't let rawptr reference memory
10425 outside linetab[]'s limits.
10426
1797a8f6
AC
104272004-02-27 Andrew Cagney <cagney@redhat.com>
10428
10429 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10430 inferior stack space - the stack needs to grow upwards.
10431 (hppa32_frame_align): New function.
10432 (hppa64_frame_align): Replace hppa_frame_align.
10433 (hppa_gdbarch_init): Update.
10434
2e4b5889
OF
104352004-02-26 Orjan Friberg <orjanf@axis.com>
10436
10437 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10438 (dwarf2-frame.h): Include.
10439 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10440 Remove static variables related to ABI setting.
10441 (struct gdbarch_tdep): Remove cris_abi member.
10442 (struct frame_extra_info): Remove.
10443 (cris_unwind_cache, stack_item): New structs.
10444 (cris_frame_unwind, cris_frame_base): New variables.
10445 (push_stack_item, pop_stack_item)
10446 (cris_frame_unwind_cache, cris_frame_this_id)
10447 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10448 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10449 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10450 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10451 (cris_reg_struct_has_addr): New functions.
10452 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10453 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10454 (cris_store_struct_return, cris_frameless_function_invocation)
10455 (cris_pop_frame, cris_skip_prologue_main)
10456 (cris_abi_original_store_return_value)
10457 (cris_abi_v2_store_return_value)
10458 (cris_abi_original_extract_return_value)
10459 (cris_abi_v2_extract_return_value)
10460 (cris_abi_original_reg_struct_has_addr)
10461 (cris_abi_v2_reg_struct_has_addr)
10462 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10463 (cris_push_return_address, cris_abi_update): Remove.
10464 (_initialize_cris_tdep): Remove ABI command.
10465 (cris_dump_tdep): Ditto.
8718a420 10466 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10467 Set store_return_value, extract_return_value, push_dummy_code,
10468 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10469 frame_unwind_append_sniffer, frame_base_set_default.
10470 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10471 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10472 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10473 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10474 init_extra_frame_info, frameless_function_invocation, frame_chain,
10475 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10476 dummy_write_sp.
8718a420 10477
6b9acc27
JJ
104782004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10479
10480 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10481 * valprint.c (print_hex_chars): Change from static to external.
10482 (print_char_chars): New function.
10483 * printcmd.c (print_scalar_formatted): For integer and enum types
10484 that are longer than LONGEST, perform processing via appropriate
10485 print_*_chars routines.
10486
a431654a
AC
104872004-02-26 Andrew Cagney <cagney@redhat.com>
10488
10489 * Makefile.in: Update dependencies.
10490 Changes from Ulrich Weigand,
10491 * s390-tdep.c: Include "dwarf2-frame.h".
10492 (s390_dwarf2_frame_init_reg): New function.
10493 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10494 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10495
fa8d40ab
JJ
104962004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10497
10498 * breakpoint.c (pending_break_support): New setting variable.
10499 (break_command_1): Account for pending_break_support setting
10500 when creating pending breakpoints.
10501 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10502 (_initialize_breakpoint): Add "set breakpoint pending" and
10503 "show breakpoint pending" commands.
10504
0dcd613f
AC
105052004-02-26 Andrew Cagney <cagney@redhat.com>
10506
10507 Fix PR i18n/1570.
10508 * charset.c (backslashable, backslashed, represented): Remove 'e'
10509 from list of escaped characters, not part of ISO-C.
10510
479272a3
JB
105112004-02-25 J. Brobecker <brobecker@gnat.com>
10512
10513 From Peter Schauer <schauer@pdf.de>:
10514 * tui/tui.c: Move system header includes after local includes.
10515 Fixes a build failure on solaris systems.
10516
7613d933
JB
105172004-02-25 J. Brobecker <brobecker@gnat.com>
10518
10519 * configure.in: Refine the previous change.
10520 * configure: Regenerate.
10521
9c1488cb
MK
105222004-02-25 Mark Kettenis <kettenis@gnu.org>
10523
10524 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10525 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10526 "amd64-tdep.h" instead of "x86-64-tdep.h".
10527 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10528 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10529 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10530 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10531 and "x86-64-tdep.c".
10532 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10533 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10534 and "x86-64-tdep.c".
10535 * amd64bsd-nat.c: Update copyright year.
10536 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10537 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10538 "x86-64-tdep.h".
10539 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10540 "x86-64-tdep.h".
10541 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10542 "x86-64-tdep.h".
10543 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10544 "x86-64-tdep.h".
10545 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10546 "x86-64-tdep.h".
10547 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10548 "x86-64-tdep.h".
8718a420 10549 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10550 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10551 * Makefile.in (amd64_linux_tdep_h): Renamed from
10552 x86_64_linux_tdep_h.
10553 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10554 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10555 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10556 (amd64obsd-tdep.o): Update dependencies.
10557 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10558 dependencies.
10559 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10560 dependencies.
10561 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10562 amd64-linux-nat.c amd64-linux-tdep.c.
10563 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10564 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10565 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10566 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10567 amd64-tdep.o and amd64-linux-tdep.o.
10568 (TM_FILE): Set to tm-linux64.h.
10569 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10570 (NAT_FILE): Set to nm-linux64.h.
10571 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10572 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10573 amd64-tdep.o.
10574 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10575 amd64-tdep.o.
10576 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10577 amd64-tdep.o.
10578
4b8dad4a
RM
105792004-02-25 Roland McGrath <roland@redhat.com>
10580
10581 * remote.c (remote_protocol_qPart_auxv): New variable.
10582 (init_all_packet_configs): Initialize it.
10583 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10584 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10585 (show_remote_cmd): Call it.
10586 (_initialize_remote): Initialize commands.
10587 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10588 service TARGET_OBJECT_AUXV requests.
10589
66745969
JB
105902004-02-25 J. Brobecker <brobecker@gnat.com>
10591
10592 * configure.in: Make sure that the wborder function is available.
10593 Otherwise, search for it in the cur_colr library.
10594 * configure: Regenerate.
10595
79508e1e
AC
105962004-02-25 Andrew Cagney <cagney@redhat.com>
10597
10598 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10599
571ee600
MK
106002004-02-25 Mark Kettenis <kettenis@gnu.org>
10601
10602 * config/i386/tm-x86-64linux.h: Tweak comments.
10603
2b1b322f 106042004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10605
10606 * MAINTAINERS: Add self to write-after-approval list.
10607
4d2acc65
AC
106082004-02-25 Andrew Cagney <cagney@redhat.com>
10609
4b8dad4a 10610 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10611 * cli/cli-script.c (execute_control_command): Unconditionally
10612 install a cleanup. Default "ret" to "invalid_control". Use
10613 "break" instead of "return" to escape from the switch.
10614
4cfcaf21
JB
106152004-02-24 J. Brobecker <brobecker@gnat.com>
10616
10617 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10618 with the lines macro defined in term.h on AiX.
10619 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10620 a collision with the label_width macro defined in term.h on AiX.
10621
54a5c8d8
KB
106222004-02-23 David Mosberger <davidm@hpl.hp.com>
10623
10624 Committed by Kevin Buettner <kevinb@redhat.com>.
10625
10626 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10627 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10628 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10629 instead of ia64_write_pc().
10630 * ia64-linux-tdep.c (regcache.h): Include.
10631 (ia64_linux_write_pc): New function.
4b8dad4a 10632
8a1dac83
RM
106332004-02-23 Roland McGrath <roland@redhat.com>
10634
10635 * auxv.c (info_auxv_command): Fix typos in error messages.
10636
90f90721
MK
106372004-02-23 Mark Kettenis <kettenis@gnu.org>
10638
8a1dac83 10639 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10640 (enum amd64_regnum): New.
10641 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10642 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10643 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10644 (X86_64_XMM1_REGNUM): Removed.
10645 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10646 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10647 prototypes for renamed functions.
10648 * x86-64-tdep.c: Fix typo.
10649 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10650 register numbers.
10651 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10652 Use constants from `enum amd64_regnum' for register numbers.
10653 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10654 (amd64_analyze_prologue, amd64_frame_cache,
10655 amd64_sigtramp_frame_cache): Use constants from `enum
10656 amd64_regnum' for register numbers.
10657 (amd64_supply_fpregset): Adjust for renamed functions.
10658 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10659 `enum amd64_regnum' for register numbers.
10660 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10661 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10662 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10663 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10664 (amd64_linux_fill_gregset): Adjust for renamed macros.
10665 (fetch_core_registers): Adjust for renamed functions.
10666 (amd64_linux_init_abi): Adjust for renamed functions.
10667 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10668 renamed functions.
10669 * amd64-nat.c: Adjust for renamed macros.
10670 * amd64bsd-nat.c (fetch_inferior_registers)
10671 (store_inferior_registers): Use constants from `enum amd64_regnum'
10672 for register numbers. Adjust for renamed variables.
10673 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10674 renamed variables.
10675 (_initialize_amd64fbsd_nat): Use constants from `enum
10676 amd64_regnum' for register numbers.
10677 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10678 `enum amd64_regnum' for register numbers.
10679 (amd64fbsd_init_abi): Adjust for renamed functions.
10680 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10681 `enum amd64_regnum' for register numbers.
10682 (amd64nbsd_init_abi): Adjust for renamed functions.
10683 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10684 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10685 `enum amd64_regnum' for register numbers.
10686 (amd64obsd_init_abi): Adjust for renamed functions.
10687 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10688
d5479188
JJ
106892004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10690
10691 * breakpoint.c (print_one_breakpoint): Do not output spaces
10692 after printing <PENDING> for a pending breakpoint.
10693
81cb7cc9
JJ
106942004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10695
10696 * printcmd.c (print_scalar_formatted): Initialize val_long
10697 to remove compiler warning message.
10698
cbdeadca
JJ
106992004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10700
10701 * defs.h (nquery, yquery): New prototypes.
10702 * breakpoint.c (break_command_1): Use new nquery interface.
10703 * utils.c (defaulted_query, nquery, yquery): New functions.
10704
da6bab63
AC
107052004-02-23 Andrew Cagney <cagney@redhat.com>
10706
2f690297
AC
10707 * hppa-tdep.c (hppa_frame_align): New function.
10708 (hppa32_push_dummy_call): New function.
10709 (hppa64_push_dummy_call): New function.
10710 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10711 disabled.
8a1dac83 10712
da6bab63
AC
10713 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10714 FIX_CALL_DUMMY when push_dummy_call is available.
10715 (call_function_by_hand, push_dummy_code): Ditto.
10716
abf9b42d
AC
107172004-02-22 Andrew Cagney <cagney@redhat.com>
10718
10719 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10720 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10721 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10722 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10723 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10724 call_dummy_location to ON_STACK.
10725
10fc94a4
MK
107262004-02-22 Mark Kettenis <kettenis@gnu.org>
10727
51433e4b
MK
10728 * x86-64-linux-tdep.c: Tweak comment.
10729 (amd64_linux_supply_gregset): Renamed from
10730 x86_64_linux_supply_gresget.
10731 (amd64_linux_fill_gregset): Renamed from
10732 x86_64_linux_fill_gregset.
10733 (fetch_core_registers): Adjust for renamed functions.
10734 (amd64_core_fns): Renamed from x86_64_core_fns.
10735 (amd64_linux_sigtramp_start): Renamed from
10736 x86_64_linux_sigtramp_start.
10737 (amd64_linux_pc_in_sigtramp): Renamed from
10738 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10739 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10740 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10741 (amd64_linux_sigcontext_addr): Renamed from
10742 x86_64_linux_sigcontext_addr.
10743 (amd64_linux_sc_reg_offset): Renamed from
10744 x86_64_linux_sc_reg_offset.
10745 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10746 Adjust for renamed functions and variables.
10747 (_initialize_amd64_linux_tdep): Renamed from
10748 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10749 variables.
10750 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10751 Adjust for renamed functions.
10752
430eaf2e
MK
10753 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10754 from x86_64_linux_gregset64_reg_offset.
10755 (amd64_linux_gregset32_reg_offset): Rename from
10756 x86_64_linux_gregset64_reg_offset.
10757 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10758 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10759 (amd64_linux_dr_set_control): Renamed from
10760 x86_64_linux_dr_set_control. Adjust for renamed functions.
10761 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10762 Adjust for renamed functions.
10763 (amd64_linux_dr_reset_addr): Renamed from
10764 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10765 (amd64_linux_dr_get_status): Renamed from
10766 x86_64_linux_dr_get_status. Adjust for renamed functions.
10767 (_initialize_amd64_linux_nat): Renamed from
10768 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10769 functions.
10770 * config/i386/nm-x86-64linux.h: Update copyright year.
10771 Adjust for renamed functions.
10772
10fc94a4
MK
10773 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10774 amd64fbsd_sigtramp_start.
10775 (amd64fbsd_sigtramp_end_addr): Renamed from
10776 amd64fbsd_sigtramp_end.
10777 (amd64fbsd_init_abi): Adjust for renamed variables.
10778 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10779 variables.
10780 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10781 amd64fbsd_sigtramp_start.
10782 (amd64fbsd_sigtramp_end_addr): Renamed from
10783 amd64fbsd_sigtramp_end.
10784
343af405
AC
107852004-02-22 Andrew Cagney <cagney@redhat.com>
10786
537987fc
AC
10787 * hppa-tdep.c (hppa32_return_value): New function.
10788 (hppa64_return_value): New function.
10789 (hppa_gdbarch_init): Set return_value; keep disabled.
10790
fad850b2
AC
10791 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10792 struct-return and inferior function call methods.
10793
26d08f08
AC
10794 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10795 "frame-base.h".
10796 (struct hppa_frame_cache): Define.
10797 (hppa_frame_cache, hppa_frame_this_id): New functions.
10798 (hppa_frame_prev_register): New function.
10799 (hppa_frame_unwind, hppa_frame_base): New variables.
10800 (hppa_frame_unwind_sniffer): New function.
10801 (hppa_frame_base_address, hppa_unwind_pc): New function.
10802 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10803 sniffer, and frame base sniffer; keep disabled.
10804 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10805 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10806
e7d7bd65
AC
10807 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10808 to predicates for "seriously old code".
10809
e963316f
AC
10810 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10811 runtime if(0).
10812
56132691
AC
10813 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10814 unsigned.
10815 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10816
343af405
AC
10817 * config/pa/tm-hppa.h: Update copyright.
10818 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10819 (deprecated_init_frame_pc_default): Delete declaration.
10820 (hppa_frame_init_saved_regs): Delete declaration.
10821 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10822 * hppa-tdep.c: Include "arch-utils.h".
10823 (hppa_gdbarch_init): Set deprecated init_frame_pc
10824 and deprecated frame_init_saved_regs.
10825 (hppa_frame_init_saved_regs): Make static.
10826
f5859b4d
MK
108272004-02-22 Mark Kettenis <kettenis@gnu.org>
10828
86f6f8e7 10829 Remove old 386BSD support.
cf7c5c23 10830 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10831 * configure.host: Remove i[34567]86-*-bsd*.
10832 * configure.tgt: Remove i[34567]86-*-bsd*.
10833 * i386b-nat.c: Removed.
10834 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10835 (i386b-nat.o): Remove dependencies.
10836
86f6f8e7
MK
10837 * config/i386/i386bsd.mh: Removed.
10838 * config/i386/i386bsd.mt: Removed.
10839 * config/i386/nm-i386bsd.h: Removed.
10840 * config/i386/tm-i386bsd.h: Removed.
10841 * config/i386/xm-i386bsd.h: Removed.
10842
971218cd
MK
10843 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10844
7e654c37
MK
10845 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10846 (amd64fbsd_init_abi): Set link map offsets.
10847 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10848 (amd64nbsd_init_abi): Set link map offsets.
10849 * amd64obsd-tdep.c: Include "solib-svr4.h".
10850 (amd64obsd_init_abi): Set link map offsets.
10851 * i386fbsd-tdep.c: Include "solib-svr4.h".
10852 (i386fbsd_init_abi): Set link map offsets.
10853 * i386nbsd-tdep.c: Include "solib-svr4.h".
10854 (i386nbsdelf_init_abi): Set link map offsets.
10855 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10856 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10857 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10858 solib-legacy.o and core-aout.o. Reformat.
10859 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10860 solib-svr4.o, solib-legacy.o. Reformat.
10861 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10862 * config/i386/nbsdelf.mh: Reformat.
10863 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10864 solib-svr4.o, solib-legacy.o and corelow.o.
10865 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10866 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10867 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10868 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10869 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10870 (TM_FILE): Set to tm-fbsd.h.
10871 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10872 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10873 solib-svr4.o.
10874 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10875 solib-svr4.o.
10876 (TM_FILE): Set to nm-nbsd.h.
10877 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10878 Simplify shared library support. Don't include "elf/common.h".
10879 (SVR4_SHARED_LIBS): Don't define.
10880 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10881 "solib.h".
10882 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10883 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10884 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10885 Don't include "i386/tm-i386.h". Include "solib.h".
10886 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10887 Don't include "i386/tm-i386.h".
10888 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10889 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10890 Include "i386/xm-i386.h".
10891 (HOST_LONG_DOUBLE_FORMAT): Remove.
10892
5d93ae8c
MK
10893 Fix OpenBSD/i386 sigtramp recognition.
10894 * i386-tdep.h: Update copyright year.
10895 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10896 (i386bsd_sigtramp_end): New prototypes.
10897 (i386fbsd_sigtramp_start_addr): Renamed from
10898 i386fbsd_sigtramp_start.
10899 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10900 (i386obsd_sigtramp_start_addr): Renamed from
10901 i386obsd_sigtramp_start.
10902 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10903 * i386bsd-tdep.c: Update copyright year.
10904 (i386bsd_pc_in_sigtramp): Make public.
10905 * i386fbsd-nat.c: Update copyright year.
10906 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10907 * i386fbsd-tdep.c: Update copyright year.
10908 (i386fbsd_sigtramp_start_addr): Renamed from
10909 i386fbsd_sigtramp_start.
10910 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10911 (i386fbsdaout_init_abi): Adjust for renamed variables.
10912 * i386obsd-nat.c: Update copyright year.
10913 (_initialize_i386obsd_nat): Adjust for renamed variables.
10914 * i386obsd-tdep.c: Include "target.h".
10915 (i386obsd_page_size): New variable.
10916 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10917 (i386obsd_sigtramp_end): New functions.
10918 (i386obsd_sigtramp_start_addr): Renamed from
10919 i386obsd_sigtramp_start.
10920 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10921 (i386obsd_init_abi): Adjust for renamed variables. Set
10922 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10923 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10924
84d04465
MK
10925 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10926 trampoline change in OpenBSD kernel.
10927
b053aceb
MK
10928 * amd64-nat.c: Update copyright year.
10929 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10930 architecture from REGCACHE.
10931
f5859b4d
MK
10932 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10933 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10934
e4bbbda8
MK
109352004-02-21 Mark Kettenis <kettenis@gnu.org>
10936
ba361932
MK
10937 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10938 i[34567]86-*-openbsd3.[0-3].
10939 * config/i386/obsdaout.mh: New file.
10940
d3e48264
MK
10941 * config/i386/obsd.mh (MH_FLAGS): Remove.
10942
60a6eeb6
MK
10943 Fix PR build/1549.
10944 * i386obsd-tdep.c: Update copyright years. Include
10945 "solib-svr4.h".
10946 (i386obsd_init_abi): Don't set regset_from_core_section here.
10947 (i386obsd_aout_init_abi): New function. Set
10948 regset_from_core_section here.
10949 (i386obsd_elf_init_abi): New function.
10950 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10951 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10952 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10953 (TM_FILE): Set to tm-nbsd.h.
10954
10955 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10956 solib-sunos.o.
10957
e4bbbda8
MK
10958 * solib-svr4.h: Update copyright year.
10959 (svr4_ilp32_fetch_link_map_offsets)
10960 (svr4_lp64_fetch_link_map_offsets): New prototype.
10961 * solib-svr4.c: Update copyright year.
10962 (svr4_ilp32_fetch_link_map_offsets)
10963 (svr4_lp64_fetch_link_map_offsets): New function.
10964
f6fe98ef
DJ
109652004-02-20 Daniel Jacobowitz <drow@mvista.com>
10966
10967 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10968 to the partial symbol table.
10969
589ca796
JB
109702004-02-20 J. brobecker <brobecker@gnat.com>
10971
10972 * PROBLEMS: Add description of problem documented under gdb/1560.
10973
2031c21a
MK
109742004-02-20 Mark Kettenis <kettenis@gnu.org>
10975
30b344b1
MK
10976 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10977 comments.
10978 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10979 functions.
10980 (amd64obsd_init_abi): Reorder initializations. Use
10981 amd64obsd_r_reg_offset to initialize the general-purpose register
10982 set details. Set regset_from_core_section.
10983 (_initialize_amd64obsd_tdep): Rename from
10984 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10985 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10986 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10987
2031c21a
MK
10988 * NEWS (New native configurations): Mention OpenBSD/alpha.
10989 * configure.tgt: Add alpha*-*-openbsd*.
10990 * configure.host: Add alpha*-*-openbsd*.
10991 * alphanbsd-tdep.c: Update copyright year.
10992 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10993
42471775
AC
109942004-02-20 Andrew Cagney <cagney@redhat.com>
10995
10996 Fix PR tdep/1372.
10997 * configure.tgt: Delete target "none-*-*".
10998 * configure.host: Delete host "none-*-*".
10999 * config/none/none.mh: Delete file.
11000 * config/none/none.mt: Delete file.
11001 * config/none/xm-none.h: Delete file.
11002 * config/none/tm-none.h: Delete file.
11003 * config/none/nm-none.h: Delete file.
11004
960ccd7d
FF
110052004-02-19 Fred Fish <fnf@redhat.com>
11006
11007 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11008 cache->uses_fp prior to setting it.
11009
5f883edd
FF
110102004-02-19 Fred Fish <fnf@redhat.com>
11011
11012 Fix for PR breakpoint/1558.
11013 * sh-tdep.c (IS_JSR): New macro.
11014 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11015
f98c22d5
JB
110162004-02-19 Jim Blandy <jimb@redhat.com>
11017
11018 * findvar.c (value_from_register): Doc fix.
11019
95051d27
JJ
110202004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11021
11022 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11023 type being greater than sizeof of host's LONGEST. Always use
11024 unpack_long() unless format 'f' chosen.
11025
ccefbec3
EZ
110262004-02-19 Joel Brobecker <brobecker@gnat.com>
11027
11028 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11029
ccefbec3
EZ
11030 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11031 contains a symbol wich is the best, non-exact match for the given
11032 pc. Update comments.
11033
110342004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11035
2ede629f
EZ
11036 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11037 macro, which was part of the now removed Mach 3 port.
11038 * utils.c (request_quit): Ditto.
11039
567ee972
MK
110402004-02-18 Mark Kettenis <kettenis@gnu.org>
11041
11042 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11043 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11044
50cca7bb
MK
110452004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11046
11047 Committed by Mark Kettenis <kettenis@gnu.org>.
11048
11049 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11050 Define.
11051
226361c4
AC
110522004-02-18 Andrew Cagney <cagney@redhat.com>
11053
11054 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11055 CONFIG_INSTALL and CONFIG_UNINSTALL.
11056 * configure: Re-generate.
11057 * interps.h (INTERP_TUI): Define.
11058 * Makefile.in: Update dependencies.
11059 (TUI): New macro.
11060 (tui-main.o): Specify dependencies.
11061 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11062 * tui/tui-main.c: New file.
11063
49cfa46f
MK
110642004-02-18 Mark Kettenis <kettenis@gnu.org>
11065
e2879ccb
MK
11066 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11067 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11068 dependencies.
11069 * configure.host: Add x86_64-*-openbsd*.
11070 * configure.tgt: Add x86_64-*-openbsd*.
11071 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11072
c43f4bec
MK
11073 * tui/tui.c: Don't include <malloc.h>.
11074
09ae75b6
MK
11075 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11076 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11077 amd64nbsd-tdep.c.
11078
49cfa46f 11079 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11080 static. Remove extraneous whitespace.
49cfa46f
MK
11081 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11082 static.
11083
05957fdb
JB
110842004-02-17 Jim Blandy <jimb@redhat.com>
11085
11086 * findvar.c (value_from_register): Doc fix.
11087
d0f54f9d
JB
110882004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11089
11090 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11091
8a1dac83 11092 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11093 CORE_ADDR as type for selectors. Correct types for GNU run time
11094 message lookup function to use double indirection.
11095 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11096 * objc-lang.h (lookup_child_selector): Adapt prototype.
11097
9cbd5950
JB
11098 * s390-nat.c (SUBOFF): New macro.
11099 (supply_gregset, fill_gregset): Use it to handle debugging
11100 of 32-bit exectuables running under a 64-bit kernel.
11101 * s390-tdep.c: Include "solib-svr4.h".
11102 (s390_svr4_fetch_link_map_offset): New function.
11103 (s390x_svr_fetch_link_map_offset): Likewise.
11104 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11105 * Makefile.in (s390-tdep.o): Update dependencies.
11106
a8c99f38
JB
11107 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11108 "frame-unwind.h".
11109 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11110 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11111 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11112 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11113 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11114 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11115 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11116 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11117 (struct frame_extra_info): Remove.
11118 (s390_memset_extra_info): Remove.
f73b1eff
JB
11119 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11120 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11121 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11122 (is_rse): Renamed to ...
11123 (is_rsy): ... this. Support long displacements.
11124 (is_rxe): Renamed to ...
11125 (is_rxy): ... this. Support long displacements.
11126 (compute_x_addr): Support long displacements.
11127 (struct s390_prologue_data): New data type.
11128 (s390_on_stack): Change API to use struct s390_prologue_data.
11129 (s390_store): Reimplement.
11130 (s390_load): New function.
11131 (s390_get_signal_frame_info): Remove.
11132 (s390_get_frame_info): Remove, replace by ...
11133 (s390_analyze_prolog): ... this new function.
11134 (s390_check_function_end): Remove.
11135 (s390_function_start): Remove.
11136 (s390_frameless_function_invokation): Remove.
11137 (s390_is_sigreturn): Remove.
11138 (s390_init_frame_pc_first): Remove.
11139 (s390_init_frame_extra_info): Remove.
11140 (s390_frame_init_saved_regs): Remove.
11141 (s390_frame_saved_pc_nofix): Remove.
11142 (s390_frame_saved_pc): Remove.
11143 (s390_frame_chain): Remove.
11144 (s390_fp_regnum, s390_read_fp): Remove.
11145 (s390_pop_frame_regular, s390_pop_frame): Remove.
11146 (s390_saved_pc_after_call): Remove.
11147 (s390_skip_prologue): Reimplement.
11148 (s390_in_function_epilogue_p): Support long displacements.
11149 (struct s390_unwind_cache): New data structure.
11150 (s390_frame_unwind_cache): New function.
11151 (s390_prologue_frame_unwind_cache): Likewise.
11152 (s390_backchain_frame_unwind_cache): Likewise.
11153 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11154 (s390_frame_unwind): Define.
11155 (s390_frame_sniffer): New function.
11156 (struct s390_pltstub_unwind_cache): New data structure.
11157 (s390_pltstub_frame_unwind_cache): New function.
11158 (s390_pltstub_frame_this_id): Likewise.
11159 (s390_pltstub_frame_prev_register): Likewise.
11160 (s390_pltstub_frame_unwind): Define.
11161 (s390_pltstub_frame_sniffer): New function.
11162 (struct s390_sigtramp_unwind_cache): New data structure.
11163 (s390_sigtramp_frame_unwind_cache): New function.
11164 (s390_sigtramp_frame_this_id): Likewise.
11165 (s390_sigtramp_frame_prev_register): Likewise.
11166 (s390_sigtramp_frame_unwind): Define.
11167 (s390_sigtramp_frame_sniffer): New function.
11168 (s390_frame_base_address, s390_local_base_address): New functions.
11169 (s390_frame_base): Define.
11170 (s390_unwind_pc, s390_unwind_sp): New function.
11171 (s390_push_dummy_call): Use new frame base location.
11172 (s390_unwind_dummy_id): Likewise.
11173 (s390_gdbarch_init): Remove calls to:
11174 set_gdbarch_frameless_function_invocation,
11175 set_gdbarch_deprecated_init_frame_pc,
11176 set_gdbarch_deprecated_frame_chain,
11177 set_gdbarch_deprecated_frame_init_saved_regs,
11178 set_gdbarch_deprecated_pop_frame,
11179 set_gdbarch_deprecated_init_extra_frame_info,
11180 set_gdbarch_deprecated_init_frame_pc_first,
11181 set_gdbarch_deprecated_target_read_fp,
11182 set_gdbarch_deprecated_frame_saved_pc,
11183 set_gdbarch_deprecated_saved_pc_after_call,
11184 set_gdbarch_deprecated_fp_regnum.
11185 Add calls to:
11186 set_gdbarch_in_solib_call_trampoline,
11187 frame_unwind_append_sniffer,
11188 frame_base_set_default,
11189 set_gdbarch_unwind_pc,
11190 set_gdbarch_unwind_sp.
11191 * Makefile.in (s390-tdep.o): Update dependencies.
11192
b0cf273e
JB
11193 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11194 (S390_STACK_FRAME_OVERHEAD): Remove.
11195 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11196 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11197 (s390_promote_integer_argument): Remove.
11198 (s390_cannot_extract_struct_value_address): Remove.
11199 (s390_use_struct_convention, s390_store_struct_return): Remove.
11200 (s390_extract_return_value, s390_store_return_value): Remove.
11201 (s390_return_value_convention, s390_return_value): New functions.
11202 (is_float_singleton): Handle typedefs.
8a1dac83 11203 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11204 Remove, replace by ...
11205 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11206 s390_function_arg_integer): ... these new functions.
11207 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11208 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11209 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11210 Fill in tdep->abi.
11211 Remove calls to:
11212 set_gdbarch_deprecated_store_struct_return,
11213 set_gdbarch_deprecated_extract_return_value,
11214 set_gdbarch_deprecated_store_return_value,
11215 set_gdbarch_use_struct_convention,
11216 set_gdbarch_extract_struct_value_address,
11217 set_gdbarch_deprecated_pc_in_call_dummy,
11218 set_gdbarch_deprecated_push_arguments,
11219 set_gdbarch_deprecated_save_dummy_frame_tos,
11220 set_gdbarch_deprecated_push_return_address,
11221 set_gdbarch_deprecated_sizeof_call_dummy_words,
11222 set_gdbarch_deprecated_call_dummy_words,
11223 set_gdbarch_deprecated_dummy_write_sp.
11224 Add calls to:
11225 set_gdbarch_push_dummy_call,
11226 set_gdbarch_unwind_dummy_id,
11227 set_gdbarch_return_value.
8a1dac83 11228
e1457d83
JB
11229 * config/s390/nm-linux.h: Update comments.
11230 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11231 (STOPPED_BY_WATCHPOINT): Redefine.
11232 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11233 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11234 (s390_stopped_by_watchpoint): Likewise.
11235 (watch_area_cnt): Remove.
11236 * s390-nat.c: Update comments.
11237 (watch_area): Remove typedef.
11238 Global replace watch_area by struct watch_area.
11239 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11240 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11241 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11242 (s390_fix_watch_points): Remove pid argument,
11243 use s390_inferior_tid. Recompute area spanned by watchpoints.
11244 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11245 argument. Reimplement.
11246
d0f54f9d
JB
11247 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11248 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11249 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11250 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11251 core-regset.o.
11252 * config/s390/s390x.mt: Remove.
11253 * config/s390/tm-s390.h: Remove.
11254 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11255 (TARGET_ELF64): Remove.
11256 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11257 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11258 s390*-*-* case; always set gdb_target to s390.
11259 * regformats/reg-s390.dat: Remove control registers.
11260 * regformats/reg-s390x.dat: Likewise.
11261 * s390-tdep.h: New file.
8a1dac83 11262 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11263 Include "inferior.h" and "s390-tdep.h".
11264 Remove private definition of offsetof.
11265 (s390_register_u_addr): Remove.
11266 (regmap_gregset, regmap_fpregset): Define.
11267 (supply_gregset, fill_gregset): Reimplement.
11268 (supply_fpregset, fill_fpregset): Likewise.
11269 (s390_inferior_tid): New function.
11270 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11271 (fetch_inferior_registers, store_inferior_registers): Likewise.
11272 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11273 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11274 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11275 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11276 (struct gdbarch_tdep): Define.
11277 (struct s390_register_info): Define.
11278 (s390_register_info): New variable.
11279 (s390_register_name): Reimplement.
11280 (s390_register_type): New function.
11281 (s390_register_raw_size, s390x_register_raw_size): Remove.
11282 (s390_cannot_fetch_register): Remove.
11283 (s390_register_byte): Remove.
11284 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11285 (s390_dwarf_regmap): New variable.
11286 (s390_dwarf_reg_to_regnum): New function.
11287 (s390_stab_reg_to_regnum): Remove.
11288 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11289 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11290 (s390_convert_register_p): Likewise.
11291 (s390_register_to_value, s390_value_to_register): Likewise.
11292 (s390_register_reggroup_p): Likewise.
11293 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11294 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11295 (s390_supply_regset, s390_regset_from_core_section): New functions.
11296 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11297 (S390_FPR_SIZE): Likewise.
11298 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11299 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11300 (S390_NUM_GPRS): Move here from tm-s390.h.
11301 (S390_NUM_FPRS): Likewise.
11302 (s390_in_function_epilogue_p): New function.
11303 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11304 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11305 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11306 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11307 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11308 Remove calls to:
11309 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11310 set_gdbarch_deprecated_max_register_virtual_size,
11311 set_gdbarch_deprecated_register_byte,
d0f54f9d 11312 set_gdbarch_cannot_fetch_register,
8a1dac83 11313 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11314 set_gdbarch_deprecated_register_size,
11315 set_gdbarch_deprecated_register_raw_size,
11316 set_gdbarch_deprecated_register_virtual_size,
11317 set_gdbarch_deprecated_register_virtual_type,
11318 set_gdbarch_deprecated_register_bytes.
11319 Add calls to:
11320 set_gdbarch_num_pseudo_regs,
11321 set_gdbarch_register_type,
11322 set_gdbarch_convert_register_p,
11323 set_gdbarch_register_to_value,
11324 set_gdbarch_value_to_register,
11325 set_gdbarch_register_reggroup_p,
11326 set_gdbarch_regset_from_core_section,
11327 set_gdbarch_pseudo_register_read,
11328 set_gdbarch_pseudo_register_write,
11329 set_gdbarch_in_function_epilogue_p.
11330 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11331 (s390_tdep_h): New variable.
11332
8cfe231d
JB
113332004-02-17 Jim Blandy <jimb@redhat.com>
11334
4589a601
JB
11335 * findvar.c (value_from_register): If the type has no length, just
11336 return an acceptable value --- don't report an internal error.
11337
8cfe231d
JB
11338 * stabsread.c (read_type): If we find any type numbers that are
11339 forward references, complain if the references aren't resolved by
11340 the time we're finished reading.
11341 (cleanup_undefined_types): Make error message more appropriate for
11342 a complaint.
11343
5bf0017e
EZ
113442004-02-17 Elena Zannoni <ezannoni@redhat.com>
11345
9d62932d
EZ
11346 * Makefile.in (defs_h): Remove dependency on progress_h.
11347 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11348 progress.h.
11349 * main.c (captured_main): Delete use of START_PROGRESS and
11350 END_PROGRESS.
11351
113522004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11353
5bf0017e
EZ
11354 * objfiles.c (terminate_minimal_symbol_table): Add back
11355 initialization of MSYMBOL_TYPE.
11356
9fc9f5e2
AC
113572004-02-17 David Mosberger <davidm@hpl.hp.com>
11358
11359 Committed by Andrew Cagney.
11360 * Makefile.in (ia64_tdep_h): New macro.
11361 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11362 (ia64-tdep.o): Likewise.
11363 * ia64-tdep.h: New file.
11364 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11365 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11366 (ia64_aix_sigcontext_register_address): Likewise.
11367 (ia64_linux_getunwind_table): Delete declaration.
11368 * ia64-linux-tdep.c: Likewise.
11369
76cd2bd9
CV
113702004-02-17 Corinna Vinschen <vinschen@redhat.com>
11371
11372 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11373 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11374 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11375
634aa483
AC
113762004-02-17 Andrew Cagney <cagney@redhat.com>
11377
11378 * symtab.c (skip_prologue_using_sal): New function.
11379 * symtab.h (skip_prologue_using_sal): Declare.
11380 * frv-tdep.c: Include "symtab.h".
11381 (skip_prologue_using_sal): Delete function.
11382 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11383 * rs6000-tdep.c (refine_prologue_limit): Mention
11384 skip_prologue_using_sal.
11385 * ia64-tdep.c (refine_prologue_limit): Ditto.
11386 * Makefile.in: Update dependencies.
11387
113882004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11389
39ce7b3f
AC
11390 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11391 START_INFERIOR_TRAPS_EXPECTED.
11392 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11393 START_INFERIOR_TRAPS_EXPECTED.
11394 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11395 Delete macro.
11396 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11397 macro, moved to "nm-osf.h". Update copyright.
11398 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11399 update copyright.
11400
19772a2c
AC
11401 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11402 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11403 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11404 frameless_look_for_prologue.
11405 * frame.h (legacy_frameless_look_for_prologue): Rename
11406 frameless_look_for_prologue.
11407 * gdbarch.h, gdbarch.c: Re-generate.
11408 * sh64-tdep.c (sh64_gdbarch_init): Update.
11409 * sh-tdep.c (sh_gdbarch_init): Update.
11410 * s390-tdep.c (s390_gdbarch_init): Update.
11411 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11412 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11413 * m68k-tdep.c (m68k_gdbarch_init): Update.
11414 (delta68_frame_args_address): Update.
11415 * m32r-tdep.c (m32r_gdbarch_init): Update.
11416 * hppa-tdep.c (hppa_gdbarch_init): Update.
11417 * h8300-tdep.c (h8300_gdbarch_init): Update.
11418 * frv-tdep.c (frv_gdbarch_init): Update.
11419 (frv_frameless_function_invocation): Update.
11420 * cris-tdep.c (cris_gdbarch_init): Update.
11421 (cris_frameless_function_invocation): Update.
11422 * avr-tdep.c (avr_gdbarch_init): Update.
11423 * arm-tdep.c (arm_gdbarch_init): Update.
11424 * stack.c (frame_info): Update, call predicate.
11425 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11426 * frame.c (legacy_get_prev_frame): Update, call predicate..
11427 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11428 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11429 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11430 invocation.
11431 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11432 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11433 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11434
11435 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11436 function.
11437
7dcaac91
DJ
114382004-02-16 Daniel Jacobowitz <drow@mvista.com>
11439
11440 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11441 initializations.
11442
88289b6e
AC
114432004-02-16 Andrew Cagney <cagney@redhat.com>
11444
11445 * tui/tui-windata.c: Include "gdb_string.h".
11446 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11447 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11448 * Makefile.in: Update dependencies.
11449
9f976b41
DJ
114502004-02-16 Daniel Jacobowitz <drow@mvista.com>
11451
11452 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11453 * infrun.c: Include "gdb_assert.h".
11454 (singlestep_ptid, saved_singlestep_ptid)
11455 (stepping_past_singlestep_breakpoint): New variables.
11456 (resume): Set singlestep_ptid. Check for singlestep thread
11457 hop.
11458 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11459 (handle_inferior_event): Handle singlestep thread hop.
11460
c324d747
AC
114612004-02-16 Andrew Cagney <cagney@redhat.com>
11462
f090b9b1
AC
11463 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11464 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11465 (dwarf2_frame_init_reg): Ditto.
11466
fd33e6cb
AC
11467 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11468 suggested by Joshua Neuheisel
11469
c324d747
AC
11470 * configure.in: Always check for curses, including pdcurses.
11471 Warn, instead of error, when no curses are found. Enable TUI when
11472 curses is available.
11473 * configure: Re-generate.
11474
b66ba949
CV
114752004-02-16 Corinna Vinschen <vinschen@redhat.com>
11476
11477 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11478 sh_sh4_register_convert_to_virtual.
11479 (sh_register_convert_to_raw): Rename from
11480 sh_sh4_register_convert_to_raw.
11481 (sh_pseudo_register_read): Accomodate above name change.
11482 (sh_pseudo_register_write): Ditto.
11483
b58cbbf2
CV
114842004-02-16 Corinna Vinschen <vinschen@redhat.com>
11485
11486 * sh-tdep.c (sh_generic_register_name): Remove.
11487 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11488
5929a910
AC
114892004-02-15 Andrew Cagney <cagney@redhat.com>
11490
4566dfcf
AC
11491 * configure.in (build_warnings): Add -Wunused-function.
11492 * configure: Re-generate.
11493
db11ed55
AC
11494 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11495 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11496
46ac7a5d
AC
11497 * procfs.c (procfs_init_inferior): Assume that
11498 START_INFERIOR_TRAPS_EXPECTED is defined.
11499 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11500 * config/ns32k/tm-nbsd.h: Delete file,
11501 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11502
ba801595
AC
11503 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11504 * config/vax/tm-vax.h: Delete file.
11505
5929a910
AC
11506 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11507 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11508 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11509 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11510 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11511 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11512 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11513
8f22cb90
MK
115142004-02-15 Mark Kettenis <kettenis@gnu.org>
11515
11516 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11517 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11518 (struct dwarf2_frame_ops): New.
11519 (dwarf2_frame_default_init_reg): New function, based on
11520 dwarf2_frame_init_reg.
11521 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11522 (dwarf2_frame_init_reg): Call architecture-specific function.
11523 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11524 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11525 instead of dwarf2_frame_data.
11526 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11527 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11528
8132723e
AC
115292004-02-15 Andrew Cagney <cagney@redhat.com>
11530
046a4708
AC
11531 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11532 register_gdbarch_swap.
11533 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11534 * f-lang.c (_initialize_f_language): Update, use
11535 DEPRECATED_REGISTER_GDBARCH_SWAP.
11536 * remote.c (_initialize_remote): Ditto.
11537 * regcache.c (_initialize_regcache): Ditto.
11538 * parse.c (_initialize_parse): Ditto.
11539 * infrun.c (_initialize_infrun): Ditto.
11540 * mi/mi-main.c (_initialize_mi_main): Ditto.
11541 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11542
549c1eea
AC
11543 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11544 poking .cacheable directly.
11545 * symfile.c (symfile_bfd_open): Ditto.
11546
0c0b39de
AC
11547 * Makefile.in: Update all dependencies.
11548
8132723e
AC
11549 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11550 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11551 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11552 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11553 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11554
b9d26eb9
AC
115552004-02-14 Andrew Cagney <cagney@redhat.com>
11556
8e1f669a
AC
11557 * arch-utils.c (legacy_convert_register_p): Check
11558 DEPRECATED_REGISTER_CONVERTIBLE_P.
11559 * findvar.c (value_of_register): Ditto.
11560
cd0bfa36
AC
11561 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11562 * gdbarch.h, gdbarch.c: Re-generate.
11563 * arch-utils.c (deprecated_register_convertible_not): Delete.
11564 * arch-utils.h (deprecated_register_convertible_not): Delete.
11565 * mi/mi-main.c (get_register): Update. Update copyright.
11566 * infcmd.c (default_print_registers_info): Update.
11567
b9d26eb9
AC
11568 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11569 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11570 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11571 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11572 * frame.c (deprecated_get_next_frame_hack): Delete function.
11573 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11574 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11575 Update.
11576 * infcall.c (call_function_by_hand): Update.
11577
9ab9195f
EZ
115782004-02-14 Elena Zannoni <ezannoni@redhat.com>
11579
11580 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11581 from here...
9ab9195f
EZ
11582 * objfiles.c (init_entry_point_info, entry_point_address):..to
11583 here.
11584 * symfile.h (init_entry_point_info, entry_point_address): Remove
11585 prototypes.
11586 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11587 prototypes.
9ab9195f
EZ
11588 * cris-tdep.c: Remove include of symfile.h. Add include of
11589 objfiles.h.
11590 * infcall.c: Ditto.
11591 * mcore-tdep.c: Ditto.
11592 * mn10300-tdep.c: Ditto.
11593 * sh64-tdep.c: Ditto.
11594 * v850-tdep.c: Ditto.
11595 * arm-tdep.c: Remove include of symfile.h.
11596 * blockframe.c: Ditto.
11597 * coffread.c: Ditto.
11598 * dbxread.c: Ditto.
11599 * dwarf2read.c: Ditto.
11600 * dwarfread.c: Ditto.
8a1dac83 11601 * frv-tdep.c: Ditto.
9ab9195f
EZ
11602 * ia64-tdep.c: Ditto.
11603 * mdebugread.c: Ditto.
11604 * mipsread.c: Ditto.
8a1dac83 11605 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11606 * s390-tdep.c: Ditto.
11607 * sh-tdep.c: Ditto.
8a1dac83 11608 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11609 * gdbarch.sh: Remove include of symfile.h.
11610 * gdbarch.c: Regenerate.
11611 * solib-irix.c (enable_break): Use entry_point_address().
11612 Add comment about include file.
11613 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11614 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11615 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11616 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11617 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11618 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11619
c4c5b7ba
AC
116202004-02-13 Andrew Cagney <cagney@redhat.com>
11621
11622 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11623 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11624 copyright.
11625 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11626
3e7879de
FF
116272004-02-12 Fred Fish <fnf@redhat.com>
11628
11629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11630 set_gdbarch_store_return_value.
11631
6a7760b6
AC
116322004-02-12 Andrew Cagney <cagney@redhat.com>
11633
11634 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11635 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11636 (interrupt_query): Ditto.
11637 (ofunc): Delete unused variable.
11638 * cris-tdep.c (cris_abi): Delete unused function.
11639 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11640 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11641 (cris_get_asr_quick_shift_steps): Ditto.
11642 (cris_skip_prologue_frameless_p): Ditto.
11643 * arm-tdep.c (arm_push_return_address): Delete unused function.
11644 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11645 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11646 * s390-tdep.c (s390_function_start): Delete unused function.
11647
31687c3c
AC
116482004-02-12 Andrew Cagney <cagney@redhat.com>
11649
11650 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11651 gdbarch.h, gdbarch.c: Re-generate.
11652 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11653 to generic_prologue_frameless_p.
11654 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11655 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11656
6de918a6
DJ
116572004-02-11 Daniel Jacobowitz <drow@mvista.com>
11658
11659 * mips-linux-tdep.c: Include "frame.h".
11660 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11661 (mips_linux_skip_resolver): New functions.
11662 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11663 and set_gdbarch_in_solib_call_trampoline.
11664 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11665 to after set_gdbarch_in_solib_return_trampoline. Only set the
11666 solib hooks to mips16 functions if the OS ABI is unknown.
11667 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11668 including "config/tm-linux.h".
11669 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11670 * Makefile.in (mips-linux-tdep.o): Update.
11671
87b3ede8
DC
116722004-02-11 David Carlton <carlton@kealia.com>
11673
11674 * linespec.c (decode_compound): Only look for a class symbol when
11675 considering all but the rightmost component.
11676
5979bc46
AC
116772004-02-11 Andrew Cagney <cagney@redhat.com>
11678
11679 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11680 abi code are are separatly grouped.
11681
5867a2fb
AC
116822004-02-11 Andrew Cagney <cagney@redhat.com>
11683
11684 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11685 * gdbarch.h, gdbarch.c: Re-generate.
11686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11687 * v850-tdep.c (v850_gdbarch_init): Update.
11688 * sh64-tdep.c (sh64_gdbarch_init): Update.
11689 * sh-tdep.c (sh_gdbarch_init): Update.
11690 * s390-tdep.c (s390_gdbarch_init): Update.
11691 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11692 * mips-tdep.c (mips_gdbarch_init): Update.
11693 * mcore-tdep.c (mcore_gdbarch_init): Update.
11694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11695 * m32r-tdep.c (m32r_gdbarch_init): Update.
11696 * ia64-tdep.c (ia64_gdbarch_init): Update.
11697 * hppa-tdep.c (hppa_gdbarch_init): Update.
11698 * h8300-tdep.c (h8300_gdbarch_init): Update.
11699 * frv-tdep.c (frv_gdbarch_init): Update.
11700 * d10v-tdep.c (d10v_gdbarch_init): Update.
11701 * cris-tdep.c (cris_gdbarch_init): Update.
11702 * avr-tdep.c (avr_gdbarch_init): Update.
11703 * arm-tdep.c (arm_gdbarch_init): Update.
11704 * alpha-tdep.c (alpha_gdbarch_init): Update.
11705
026a72f8
CV
117062004-02-11 Corinna Vinschen <vinschen@redhat.com>
11707
11708 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11709 comma.
11710 (sh_sh4al_dsp_register_name): Ditto.
11711
3903d437
AC
117122004-02-10 Andrew Cagney <cagney@redhat.com>
11713
11714 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11715 (mips_init_frame_pc_first): Delete function.
11716 (mips_frame_saved_pc): Delete function.
11717 (mips_frame_chain): Delete function.
11718 (mips_init_extra_frame_info): Delete function.
11719 (mips_xfer_register): Delete unused variable "reg".
11720 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11721 (mips_n32n64_return_value): Delete unused variable "reg".
11722 (mips_n32n64_return_value): Delete unused variable "pos".
11723 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11724 (mips_o32_return_value): Delete unused variable "pos".
11725 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11726 (mips_print_fp_register): Delete unused variable "namelen"
11727 (mips_print_fp_register): Delete unused variable "flt2"
11728 (get_frame_pointer): Delete function.
11729 (cached_proc_desc): Delete static variable.
11730 (mips_pop_frame): Delete function.
11731 (mips_find_saved_regs): Delete function.
11732 (mips_get_saved_register): Delete function.
11733 (mips_saved_pc_after_call): Delete function.
11734 (SIGFRAME_BASE): Delete macro.
11735 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11736 (SIGFRAME_PC_OFF): Delete macro.
11737 (SIGFRAME_REGSAVE_OFF): Delete macro.
11738 (mips_dump_tdep): Do not print deleted macro definitions.
11739
b9fb98bd
AC
117402004-02-10 Andrew Cagney <cagney@redhat.com>
11741
11742 * Makefile.in (SFILES): Remove explictly listed tui files.
11743 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11744
78ced177 117452004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11746
78ced177
JJ
11747 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11748 to use paddr functions to format ia64 addresses and long values.
11749 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11750 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11751 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11752 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11753 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11754
6a83354a
AC
117552004-02-10 Andrew Cagney <cagney@redhat.com>
11756
11757 * defs.h: Do not include "tui.h".
11758 * gdb_curses.h: New file.
11759 * tui/tui-hooks.h: New file.
11760 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11761 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11762 (tui_initialize_io): Delete declaration.
11763 (tui_initialize_readline: Delete redundant declaration.
11764 (struct tui_point): Delete definition.
11765 * tui/tui-data.h (struct tui_point): Define.
11766 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11767 * utils.c: Include "tui/tui.h".
11768 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11769 * printcmd.c [TUI]: Include "tui/tui.h".
11770 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11771 * tui/tui-command.c: Include "gdb_curses.h".
11772 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11773 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11774 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11775 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11776 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11777 * Makefile.in: Update all dependencies.
11778 (tui_hooks_h, gdb_curses_h): Define.
11779 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11780
997470ef
EZ
117812004-02-10 Elena Zannoni <ezannoni@redhat.com>
11782
11783 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11784 auxf2. Add comments about some other rarely used fields.
11785
4ff2cc4d
AC
117862004-02-10 Andrew Cagney <cagney@redhat.com>
11787
11788 * Makefile.in (init.c): Fix script removing duplicates. Problem
11789 reported by Peter Schauer.
11790
1ab21617
EZ
117912004-02-09 Elena Zannoni <ezannoni@redhat.com>
11792
11793 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11794 obstack_specify_allocation.
11795 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11796 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11797 (allocate_rt_common_objfile): Ditto.
11798 * symfile.c (reread_symbols): Ditto.
11799 * gdb_obstack.h: Add comment.
11800
17763fd9
EZ
118012004-02-09 Elena Zannoni <ezannoni@redhat.com>
11802
11803 * linespec.c (decode_line_1, locate_first_half)
11804 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11805 commented out code.
11806
ec5cdd75
DJ
118072004-02-09 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11810 obstack_free.
11811
43b54b88
AC
118122004-02-09 Andrew Cagney <cagney@redhat.com>
11813
11814 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11815 fails, try find_pc_section. Fix PR c++/1267.
11816 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11817 instead of find_pc_mapped_section.
11818 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11819 not default to the section containing PC. Fix PR symtab/1519.
11820
edfae063
AC
118212004-02-09 Andrew Cagney <cagney@redhat.com>
11822
11823 * Makefile.in (mips-tdep.o): Update dependencies.
11824 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11825 "trad-frame.h".
11826 (mips_unwind_pc): Return the pseudo PC register.
11827 (mips_unwind_dummy_id): New function.
11828 (mips16_fetch_instruction): New function.
11829 (mips32_fetch_instruction): New function.
11830 (struct mips_frame_cache): Define.
11831 (mips_mdebug_frame_cache): New function.
11832 (mips_mdebug_frame_this_id): New function.
11833 (mips_mdebug_frame_prev_register): New function.
11834 (mips_mdebug_frame_unwind): Define.
11835 (mips_mdebug_frame_sniffer): New function.
11836 (mips_mdebug_frame_base_address): New function.
11837 (mips_mdebug_frame_base): Define.
11838 (mips_mdebug_frame_base_sniffer): New function.
11839 (mips_gdbarch_init): Append unwind and base sniffers. Set
11840 unwind_dummy_id.
11841
defc864c
AC
118422004-02-08 Andrew Cagney <cagney@redhat.com>
11843
6764ddad
AC
11844 * frame.c: Print both the register number and name.
11845
defc864c
AC
11846 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11847 and a sed into a single sed. Make .c and .o patterns more robust.
11848 (OBS): Delete.
11849 (INIT_FILES): Replace OBS with COMMON_OBS.
11850 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11851
645d6d10
MK
118522004-02-08 Mark Kettenis <kettenis@gnu.org>
11853
11854 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11855 the PT_WCOOKIE request.
11856
23e3c3fc
AC
118572004-02-08 Andrew Cagney <cagney@redhat.com>
11858
58dfe9ff
AC
11859 * mips-tdep.c (mips_unwind_pc): New function.
11860 (mips_gdbarch_init): Set mips_unwind_pc.
11861
1152e35e
AC
11862 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11863 (get_frame_id): Allow the UNKNOWN_FRAME.
11864 (frame_register_unwind, get_frame_type): Ditto.
11865
31b75dbf
AC
11866 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11867 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11868 unwind_dummy_id indicates a legacy frame.
11869
3483b318
AC
11870 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11871 * configure: Re-generate.
11872
23e3c3fc
AC
11873 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11874 methods.
11875
33f8ca73
AC
118762004-02-08 Andrew Cagney <cagney@redhat.com>
11877
11878 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11879 makefile macro.
11880 * configure: Re-generate.
11881 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11882 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11883 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11884 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11885 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11886 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11887 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11888 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11889 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11890 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11891
6ba8e26f 118922004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11893
20d286a5
AC
11894 * Makefile.in: Update all dependencies.
11895
d836ee13
AC
11896 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11897 * configure: Re-generate.
11898 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11899 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11900 (COMMON_OBS): Add "main.o" and "annotate.o".
11901 (ANNOTATE_OBS): Delete.
11902 (OBS): Remove ANNOTATE_OBS.
11903 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11904 CONFIG_INITS.
11905 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11906 against CONFIG_OBS and "main.o".
11907 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11908 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11909
d02c80cd
AC
11910 * tui/tui-command.c: Include "gdb_string.h", delete register
11911 attribute, use ISO-C function signatures.
11912 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11913 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11914 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11915 * tui/tui.c: Ditto.
6ba8e26f
AC
11916
11917 * tui/tui-command.c: Change variable and function names to lower
11918 case.
11919 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11920 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11921 * tui/tui-regs.c, 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
4a146b47
EZ
119252004-02-07 Elena Zannoni <ezannoni@redhat.com>
11926
11927 * buildsym.c (free_pending_blocks, finish_block)
11928 (record_pending_block, make_blockvector, end_symtab): Replace
11929 symbol_obstack with objfile_obstack.
8a1dac83 11930 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11931 (coff_read_enum_type): Ditto.
8a1dac83 11932 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11933 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11934 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11935 (dwarf2_symbol_mark_computed): Ditto.
11936 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11937 * elfread.c (elf_symtab_read): Ditto.
11938 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11939 (hpread_read_enum_type, hpread_read_function_type)
11940 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11941 Ditto.
8a1dac83 11942 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11943 (java_link_class_type): Ditto.
8a1dac83 11944 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11945 (new_symbol): Ditto.
11946 * minsyms.c (install_minimal_symbols): Ditto.
11947 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11948 (terminate_minimal_symbol_table): Replace symbol_obstack with
11949 objfile_obstack.
11950 (free_objfile): Remove freeing of symbol_obstack.
11951 * objfiles.h: Remove symbol_obstack field.
11952 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11953 objfile_obstack.
11954 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11955 symbol_obstack.
11956 (solib_add_common_symbols): Replace symbol_obstack with
11957 objfile_obstack.
11958 * somsolib.c (som_solib_add): Ditto.
11959 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11960 (common_block_start, common_block_end): Ditto.
11961 * symfile.c (reread_symbols): Remove freeing and init of
11962 symbol_obstack.
11963 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11964 * symfile.h: Update comment.
11965 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11966 stats printing.
11967 * symtab.c (symbol_set_names): Replace symbol_obstack with
11968 objfile_obstack.
11969 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11970 Update comments.
11971 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11972 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11973 objfile_obstack.
11974
6d012f14
AC
119752004-02-07 Andrew Cagney <cagney@redhat.com>
11976
11977 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11978 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11979 fields and variables.
11980 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11981 (m_beInvisible): Delete macro.
11982 * tui/tui-data.h: Fix case case fields and variables.
11983 (m_genWinPtrIsNull): Delete macro.
11984 (tui_win_list): Rename winList.
11985 (TUI_SRC_WIN): Rename srcWin.
11986 (TUI_DISASM_WIN): Rename disassemWin.
11987 (TUI_DATA_WIN): Rename dataWin.
11988 (TUI_CMD_WIN): Rename cmdWin.
11989 (m_genWinPtrNotNull): Delete macro.
11990 (m_winPtrIsNull): Delete macro.
11991 (m_winPtrNotNull): Delete macro.
11992 (tui_win_is_source_type): Replace m_winIsSourceType
11993 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11994 (tui_win_has_locator): Replace m_hasLocator.
11995 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11996 m_setWinHighlightOff.
11997 * tui/tui-data.c: Update references.
11998 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11999 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12000 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12001 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12002 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12003 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12004 * tui/tui-winsource.c, tui/tui.c: Ditto.
12005
7d34766b
MK
120062004-02-07 Mark Kettenis <kettenis@gnu.org>
12007
1c800673
MK
12008 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12009 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12010 StackGhost.
12011
7d34766b
MK
12012 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12013 variable `i6' to `i7'.
12014 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12015
22940a24
AC
120162004-02-07 Andrew Cagney <cagney@redhat.com>
12017
12018 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12019 (TuiPoint, TuiPointPtr): Ditto.
12020 (TuiStatus, TuiStatusPtr): Ditto.
12021 (TuiWinType, TuiWinTypePtr): Ditto.
12022 (struct tui_point): Rename _TuiPoint.
12023 (tui_get_low_disassembly_address): Rename
12024 tuiGetLowDisassemblyAddress.
12025 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12026 (tuiFree): Delete declaration.
12027 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12028 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12029 * tui/tui.c (tuiFree): Delete function.
12030 * cli/cli-cmds.c (disassemble_command): Update references.
12031 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12032 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12033 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12034 * tui/tui-winsource.c: Ditto.
12035
8b92e4d5
EZ
120362004-02-07 Elena Zannoni <ezannoni@redhat.com>
12037
12038 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12039 coffstab_build_psymtabs, elfstab_build_psymtabs)
12040 (stabsect_build_psymtabs): Replace psymbol_obstack with
12041 objfile_obstack.
12042 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12043 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12044 Ditto.
12045 * dwarfread.c (scan_compilation_units): Ditto.
12046 * elfread.c (elfstab_offset_sections): Ditto.
12047 * hppa-tdep.c (read_unwind_info): Ditto.
12048 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12049 (hpread_end_psymtab): Ditto.
12050 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12051 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12052 Ditto.
12053 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12054 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12055 (build_objfile_section_table): Ditto.
12056 (allocate_objfile): Remove init of psymbol_obstack.
12057 (free_objfile): Remove freeing of psymbol_obstack.
12058 * objfiles.h (struct objfile): Remove field
12059 psymbol_obstack. Update comments.
12060 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12061 psymbol_obstack with objfile_obstack.
12062 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12063 psymbol_obstack.
12064 * somread.c (som_symfile_offsets, init_import_symbols)
12065 (init_export_symbols): Replace psymbol_obstack with
12066 objfile_obstack.
12067 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12068 * symfile.c (default_symfile_offsets, syms_from_objfile)
12069 (reread_symbols): Remove freeing and init of psymbol_obstack.
12070 (cashier_psymtab): Update comment.
12071 * symmisc.c (print_objfile_statistics): Don't report stats for
12072 psymbol obstack.
12073 * symtab.h (struct general_symbol_info, struct partial_symtab):
12074 Update comments.
12075 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12076 (xcoff_symfile_offsets): Replace psymbol_obstack with
12077 objfile_obstack.
12078
b99607ea
EZ
120792004-02-07 Elena Zannoni <ezannoni@redhat.com>
12080
12081 * objfiles.h (struct objfile): Add objfile_obstack field.
12082 Remove type_obstack field.
12083
12084 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12085 read_structure_scope read_enumeration, new_symbol): Replace
12086 type_obstack with objfile_obstack.
12087 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12088 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12089 (lookup_fundamental_type): Ditto.
12090 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12091 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12092 (hpread_read_doc_function_type, hpread_read_struct_type)
12093 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12094 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12095 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12096 (java_link_class_type): Ditto.
12097 * mdebugread.c (parse_type): Ditto.
12098 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12099 * solib-sunos.c (solib_add_common_symbols): Ditto.
12100 * stabsread.c (define_symbol, read_type, read_member_functions,
12101 read_cpp_abbrev, read_one_struct_field): Ditto.
12102 * symfile.c (reread_symbols): Ditto.
12103 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12104
2a8854a7
AC
121052004-02-07 Andrew Cagney <cagney@redhat.com>
12106
12107 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12108 (tui_exec_info_content): Rename TuiExecInfoContent.
12109 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12110 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12111 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12112 (TuiList, TuiListPtr): Ditto.
12113 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12114 (TuiDataType, TuiDataTypePtr): Ditto.
12115 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12116 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12117 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12118 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12119 (TuiDataElement, TuiDataElementPtr): Ditto.
12120 (TuiWinElement, TuiWinElementPtr): Ditto.
12121 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12122 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12123 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12124 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12125 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12126 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12127 * tui/tui-command.c, tui/tui-data.c: Update references.
12128 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12129 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12130 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12131 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12132
05cbe71a
MK
121332004-02-07 Mark Kettenis <kettenis@gnu.org>
12134
12135 * dwarf2-frame.h: Update copyright.
12136 (enum dwarf2_frame_reg_rule): New.
12137 (struct dwarf2_frame_state_reg): New.
12138 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12139 * dwarf2-frame.c: Update copyright.
12140 (enum dwarf2_reg_rule): Remove.
12141 (struct dwarf2_frame_state): Remove defenition of `struct
12142 dwarf2_frame_state_reg'.
12143 (read_reg): Call get_frame_arch to get the architecture instead of
12144 using CURRENT_GDBARCH.
12145 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12146 DWARF2_FRAME_.
12147 (dwarf2_frame_init_reg): New function.
12148 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12149 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12150 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12151 tags with DWARF2_FRAME_.
12152 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12153 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12154 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12155
ec7d9e56
AC
121562004-02-06 Andrew Cagney <cagney@redhat.com>
12157
dd1abb8c
AC
12158 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12159 (enum tui_data_type): Rename _TuiDataType.
12160 (struct tui_layout_def): Rename _TuiLayoutDef.
12161 (struct tui_source_element): Rename _TuiSourceElement.
12162 (struct tui_data_element): Rename _TuiDataElement.
12163 (struct tui_command_element): Rename _TuiCommandElement.
12164 (struct tui_locator_element): Rename _TuiLocatorElement.
12165 (union tui_which_element): Define.
12166 (struct tui_win_element): Rename _TuiWinElement.
12167 (struct tui_data_info): Rename _TuiDataInfo.
12168 (struct tui_source_info): Rename _TuiSourceInfo.
12169 (struct tui_command_info): Rename _TuiCommandInfo.
12170 (tui_initialize_static_data): Rename initializeStaticData.
12171 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12172 (tui_alloc_win_info): Rename allocWinInfo.
12173 (tui_init_generic_part): Rename initGenericPart.
12174 (tui_init_win_info): Rename initWinInfo.
12175 (tui_alloc_content): Rename allocContent.
12176 (tui_add_content_elements): Rename addContentElements.
12177 (tui_init_content_element): Rename initContentElement.
12178 (tui_free_window): Rename freeWindow.
12179 (tui_free_win_content): Rename freeWinContent.
12180 (tui_free_data_content): Rename freeDataContent.
12181 (tui_free_all_source_wins_content): Rename
12182 freeAllSourceWinsContent.
12183 (tui_del_window): Rename tuiDelWindow.
12184 (tui_del_data_windows): Rename tuiDelDataWindows.
12185 (tui_partial_win_by_name): Rename partialWinByName.
12186 (tui_win_name): Rename winName.
12187 (tui_current_layout): Rename currentLayout.
12188 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12189 (tui_term_height): Rename termHeight.
12190 (tui_set_term_height_to): Rename setTermHeightTo.
12191 (tui_term_width): Rename termWidth.
12192 (tui_set_term_width_to): Rename setTermWidthTo.
12193 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12194 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12195 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12196 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12197 (tui_source_windows): Rename sourceWindows.
12198 (tui_clear_source_windows): Rename clearSourceWindows.
12199 (tui_clear_source_windows_detail): Rename
12200 clearSourceWindowsDetail.
12201 (tui_clear_win_detail): Rename clearWinDetail.
12202 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12203 (tui_default_tab_len): Rename tuiDefaultTabLen.
12204 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12205 (tui_win_with_focus): Rename tuiWinWithFocus.
12206 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12207 (tui_layout_def): Rename tuiLayoutDef.
12208 (tui_win_resized): Rename tuiWinResized.
12209 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12210 (tui_next_win): Rename tuiNextWin.
12211 (tui_prev_win): Rename tuiPrevWin.
12212 (tui_add_to_source_windows): Rename addToSourceWindows.
12213 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12214 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12215 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12216 * tui/tui.c, tui/tui-data.c: Ditto.
12217 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12218 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12219
a358af15
AC
12220 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12221 (struct symtab): Declare.
12222 (tui_set_source_content): Rename tuiSetSourceContent.
12223 (tui_show_symtab_source): Rename tuiShowSource.
12224 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12225 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12226 * tui/tui-source.c: Update copyright. Update references.
12227 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12228 * tui/tui-stack.c: Update references.
12229
a21fcd8f
AC
12230 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12231 (struct tui_win_info): Declare.
12232 (tui_scroll_forward): Rename tuiScrollForward.
12233 (tui_scroll_backward): Rename tuiScrollBackward.
12234 (tui_scroll_left): Rename tuiScrollLeft.
12235 (tui_scroll_right): Rename tuiScrollRight.
12236 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12237 (tui_resize_all): Rename tuiResizeAll.
12238 (tui_refresh_all_win): Rename tuiRefreshAll.
12239 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12240 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12241 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12242 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12243
edae1ccf
AC
12244 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12245 (tui_erase_data_content): Rename tuiEraseDataContent.
12246 (tui_display_all_data): Rename tuiDisplayAllData.
12247 (tui_check_data_values): Rename tuiCheckDataValues.
12248 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12249 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12250 (tui_first_data_element_no_in_line): Rename
12251 tuiFirstDataElementNoInLine.
12252 (tui_delete_data_content_windows): Rename
12253 tuiDeleteDataContentWindows.
12254 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12255 (tui_display_data_from): Rename tuiDisplayDataFrom.
12256 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12257 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12258 * tui/tui-win.c, tui/tui-regs.c: Update references.
12259 * tui/tui-layout.c, tui/tui.c: Update references.
12260
ec7d9e56
AC
12261 * tui/tui-wingeneral.h: Update copyright.
12262 (m_allBeVisible): Delete macro.
8a1dac83 12263 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12264 (struct tui_gen_win_info): Declare.
12265 (struct tui_win_info): Declare.
12266 (tui_unhighlight_win): Rename unhighlightWin.
12267 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12268 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12269 (tui_make_window): Rename makeWindow.
12270 (tui_copy_win): Rename copyWin.
12271 (tui_box_win): Rename boxWin.
12272 (tui_highlight_win): Rename highlightWin.
12273 (tui_check_and_display_highlight_if_needed): Rename
12274 checkAndDisplayHighlightIfNeeded.
12275 (tui_refresh_all): Rename refreshAll.
12276 (tui_delete_win): Rename tuiDelwin.
12277 (tui_refresh_win): Rename tuiRefreshWin.
12278 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12279 (tui_make_visible, tui_make_invisible): New functions.
12280 (tui_make_all_visible, tui_make_all_invisible): New functions.
12281 (make_all_visible): Rename makeAllVisible.
12282 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12283 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12284 * tui/tui-windata.c, tui/tui-win.c: Update references.
12285 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12286 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12287
1e52e2eb
MK
122882004-02-06 Mark Kettenis <kettenis@gnu.org>
12289
12290 * proc-api.c (write_with_trace): Initialize local variable to
12291 silence compiler warning.
12292
f80bda8e
AC
122932004-02-06 Andrew Cagney <cagney@redhat.com>
12294
12295 * tui/tui-source.h: Do not include "defs.h".
12296 (struct tui_win_info): Declare.
12297 (tui_set_source_content_nil): Declare.
12298 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12299 (union tui_line_or_address): Rename _TuiLineOrAddress.
12300 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12301 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12302 (tui_update_source_window_as_is): Rename
12303 tuiUpdateSourceWindowAsIs.
12304 (tui_update_source_windows_with_addr): Rename
12305 tuiUpdateSourceWindowsWithAddr.
12306 (tui_update_source_windows_with_line): Rename
12307 tuiUpdateSourceWindowsWithLine.
12308 (tui_clear_source_content): Rename tuiClearSourceContent.
12309 (tui_erase_source_content): Rename tuiEraseSourceContent.
12310 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12311 (tui_show_source_content): Rename tuiShowSourceContent.
12312 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12313 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12314 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12315 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12316 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12317 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12318 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12319 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12320 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12321 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12322 (struct tui_win_info): Declare.
12323 * tui/tui-stack.c: Update references.
12324 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12325 * tui/tui-win.c, tui/tui-source.c: Ditto.
12326 * tui/tui.c, tui/tui-disasm.c: Ditto.
12327
9fbfb822
MK
123282004-02-06 Mark Kettenis <kettenis@gnu.org>
12329
12330 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12331 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12332
03cebad2
MK
123332004-02-05 Mark Kettenis <kettenis@gnu.org>
12334
12335 * infrun.c (handle_inferior_event): Allow for breakpoint
12336 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12337 and SIGEMT. Update comments.
12338 * NEWS (Revised SPARC target): Mention support for non-executable
12339 stack.
12340
290281b1
MK
123412004-02-04 Mark Kettenis <kettenis@gnu.org>
12342
12343 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12344 * inftarg.c: Update copyright year.
12345 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12346 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12347 (sparc_xfer_wcookie): New function.
12348 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12349 * Makefile.in (sparc-nat.o): Update dependencies.
12350 * config/sparc/nm-nbsd.h: Include "target.h".
12351 (NATIVE_XFER_WCOOKIE): New define.
12352 (sparc_xfer_wcookie): New prototype.
12353
212161df
AC
123542004-02-04 Andrew Cagney <cagney@redhat.com>
12355
12356 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12357 SYSCALL_TRAP function.
12358 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12359
6e4c6c91
DJ
123602004-02-04 Andrew Cagney <cagney@redhat.com>
12361 Daniel Jacobowitz <drow@mvista.com>
12362
12363 * objfiles.h: Delete comments refering to inside_entry_func and
12364 DEPRECATED_FRAME_CHAIN_VALID.
12365 * defs.h (inside_entry_func): Update prototype..
12366 * blockframe.c (inside_entry_func): Rename to
12367 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12368 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12369
cae688ec
JJ
123702004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12371
12372 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12373 outside of #ifdef SOLIB_ADD region.
12374 (do_restore_lang_radix_cleanup): Ditto.
12375 (resolve_pending_breakpoint): Ditto.
12376
19217676
AC
123772004-02-03 Andrew Cagney <cagney@redhat.com>
12378
12379 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12380 (process_note_abi_tag_sections): Delete unused function.
12381 (ia64_read_fp): Delete unused function.
12382 (gdbarch_extract_struct_value_address): Delete declaration.
12383
876753be
AC
123842004-02-02 Andrew Cagney <cagney@redhat.com>
12385
12386 * vax-tdep.c (vax_frame_chain): Delete call to
12387 deprecated_inside_entry_file.
12388 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12389
d4f10bf2
MK
123902004-02-02 Mark Kettenis <kettenis@gnu.org>
12391
12392 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12393 column that's "empty" or "same value" when eliminating REG_RA
12394 rules.
12395
cae688ec
JJ
123962004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12397
12398 * NEWS: Add information about new pending breakpoint support.
12399
0101ce28
JJ
124002004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12401
12402 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12403 and pending fields for pending breakpoint support.
12404 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12405 (condition_command): Only parse condition if not a pending
12406 breakpoint.
12407 (print_one_breakpoint): Add support for pending breakpoints.
12408 (describe_other_breakpoints): Add checks to verify we are not
12409 dealing with pending breakpoints.
12410 (check_duplicates): Don't check pending breakpoints.
12411 (set_raw_breakpoint): Initialize pending flag.
12412 (do_restore_lang_radix_cleanup): New cleanup routine.
12413 (resolve_pending_breakpoint): New function.
12414 (re_enable_breakpoints_in_shlibs): Try and resolve any
12415 pending breakpoints via resolve_pending_breakpoint.
12416 (mention): Add pending breakpoint support.
12417 (parse_breakpoint_sals): Add new parameter to pass to
12418 decode_line_1 to indicate silent errors when files or functions
12419 are not found. Change all callers.
12420 (do_captured_parse_breakpoint): New function.
12421 (break_command_1): Change prototype to return an rc value and to
12422 take an optional pending breakpoint pointer. Support creating
12423 a pending breakpoint if a "not found" form of error occurs when
12424 parsing the breakpoint. Also support resolving an existing pending
12425 breakpoint and be silent if the resolution fails.
12426 (create_breakpoints): Change prototype to take pending breakpoint
12427 pointer. When resolving a pending breakpoint, use the new pointer
12428 to provide a conditional or commands added by the end-user.
12429 (delete_breakpoint): Add appropriate check for pending.
12430 (breakpoint_re_set_one): Ditto.
12431 (do_enable_breakpoint): Ditto.
12432
8d577d32
DC
124332004-02-02 David Carlton <carlton@kealia.com>
12434
12435 * valops.c (enum oload_classification): New.
12436 (find_overload_match): Break implementation into separate
12437 functions; delete #if 0'd code; look for symbols within
12438 namespaces.
12439 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12440 (find_oload_champ,oload_method_static,classify_oload_match): New.
12441 * cp-support.h: Add declaration for cp_func_name; update
12442 declaration for make_symbol_overload_list.
12443 * cp-support.c (cp_func_name): New.
12444 (overload_list_add_symbol): Fix comment, use
12445 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12446 (make_symbol_overload_list): Take a function name and a namespace
12447 instead of a symbol; change implementation.
12448 (make_symbol_overload_list_using): New.
12449 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12450
22e8e3c7
FF
124512004-02-02 Fred Fish <fnf@redhat.com>
12452
12453 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12454 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12455 * remote-sim.c (gdb_os_write_stderr): Write output to
12456 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12457 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12458 gdb_stderr stream and update copyright years.
22e8e3c7 12459
6b753f60
DJ
124602004-02-01 Daniel Jacobowitz <drow@mvista.com>
12461
12462 * Makefile.in (mips-linux-nat.o): Update dependencies.
12463 * mips-linux-nat.c: Include mips-tdep.h.
12464
124652004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12466
12467 * sol-thread.c (sol_thread_xfer_partial): New function.
12468 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12469 (init_sol_core_ops): Likewise.
12470
12471 * procfs.c (procfs_xfer_partial): New function.
12472 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12473 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12474
12475 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12476 procfs_xfer_auxv function.
12477
12478 * procfs.c (procfs_make_note_section): If we can read
12479 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12480 * linux-proc.c (linux_make_note_section): Likewise.
12481
12482 * auxv.h: New file.
12483 * auxv.c: New file.
12484 * Makefile.in (auxv_h): New variable.
12485 (COMMON_OBS): Add auxv.o here.
12486 (auxv.o): New target.
12487
12488 * corelow.c (core_xfer_partial): New function.
12489 (init_core_ops): Use it for core_ops.to_xfer_partial.
12490
12491 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12492 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12493 macro if that is defined.
12494
fa5281d0
DJ
124952004-02-01 Daniel Jacobowitz <drow@mvista.com>
12496
12497 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12498 and check the specified thread for each breakpoint.
12499 * breakpoint.h (bpstat_stop_status): Update prototype.
12500 * infrun.c (handle_inferior_event): Update calls to
12501 bpstat_stop_status.
12502
26ee262d
DJ
125032004-02-01 Daniel Jacobowitz <drow@mvista.com>
12504
12505 * Makefile.in (cli-cmds.o): Add $(readline_h).
12506
d9b52655
DJ
125072004-02-01 Daniel Jacobowitz <drow@mvista.com>
12508
12509 * cli/cli-cmds.c: Include readline.h.
12510 (complete_command): Pass the start of the last word to
12511 complete_line.
12512
9709f61c
DJ
125132004-01-31 Daniel Jacobowitz <drow@mvista.com>
12514
12515 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12516 argument, and change first argument to a CORE_ADDR.
12517 * breakpoint.h (bpstat_stop_status): Update prototype.
12518 * infrun.c (adjust_pc_after_break): Add a new comment.
12519 (handle_inferior_event): Update calls to bpstat_stop_status.
12520
4f1280bb
DJ
125212004-01-31 Daniel Jacobowitz <drow@mvista.com>
12522
12523 * breakpoint.h: Update copyright years.
12524
4fa8626c
DJ
125252004-01-31 Daniel Jacobowitz <drow@mvista.com>
12526
12527 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12528 (bpstat_stop_status): Don't decrement PC.
12529 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12530 prototype.
12531 * infrun.c (adjust_pc_after_break): New function.
12532 (handle_inferior_event): Call it, early. Remove later references
12533 to DECR_PC_AFTER_BREAK.
12534 (normal_stop): Add commentary.
12535
fad0733a
DJ
125362004-01-31 Daniel Jacobowitz <drow@mvista.com>
12537
12538 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12539 2004-01-27 double-free fix.
12540
42cdca6c
MK
125412004-01-31 Mark Kettenis <kettenis@gnu.org>
12542
12543 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12544 (sparc32_frame_prev_register): Handle StackGhost.
12545 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12546
932d5416
RM
125472004-01-29 Roland McGrath <roland@redhat.com>
12548
12549 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12550 * configure: Regenerated.
12551
12552 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12553 * Makefile.in (procfs.o): Add dep.
12554
47d3492a
AC
125552004-01-28 Andrew Cagney <cagney@redhat.com>
12556
12557 * tui/tui-stack.h: Update copyright.
12558 (struct frame_info): Add opaque declaration.
12559 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12560 (tui_show_locator_content): Rename tuiShowLocatorContent.
12561 (tui_show_frame_info): Rename tuiShowFrameInfo.
12562 * tui/tui-stack.c: Update copyright. Update references.
12563 * tui/tui-winsource.c: Update references.
12564 * tui/tui-win.c: Update references.
12565 * tui/tui-layout.c: Update references.
12566 * tui/tui-hooks.c: Update copyright, update references.
12567 * tui/tui.c: Update copyright, update references.
12568 * tui/tui-disasm.c: Update references.
12569
5d51ca54
DC
125702004-01-28 David Carlton <carlton@kealia.com>
12571
12572 * dwarf2read.c (add_partial_structure): Use demangled name if
12573 namespace equals "".
12574
086ed43d
JB
125752004-01-27 Jim Blandy <jimb@redhat.com>
12576
12577 Clean up misapplied patch:
12578 * dwarf2read.c (determine_prefix): Change one of the two forward
12579 declarations for 'determine_prefix_aux' to a declaration for this.
12580 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12581 argument to 'die_specification'.
12582
2a35147e
JB
12583 * dwarf2read.c (read_func_scope): Re-indent comment.
12584
a355c7de 125852004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12586
a355c7de
AC
12587 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12588 b->exp to NULL after freeing so that error during re-parsing or
12589 evaluation of expressions associated with breakpoint don't
12590 eventually lead to re-freeing of storage.
12591 Committed by Andrew Cagney.
12592
63ff5125
AC
125932004-01-27 Andrew Cagney <cagney@redhat.com>
12594
12595 * source.c (ambiguous_line_spec): Delete undefined declaration.
12596 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12597 (m32r_set_server_address, m32r_set_download_path): Ditto.
12598 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12599
e142c38c
DJ
126002004-01-27 Daniel Jacobowitz <drow@mvista.com>
12601
12602 * dwarf2read.c: Update calls to changed and renamed functions, and
12603 references to moved variables.
12604
12605 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12606 language, language_defn, list_in_scope, and ftypes members.
12607 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12608 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12609 (baseaddr): Remove globals.
12610
12611 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12612 (set_cu_language, die_is_declaration, die_specification)
12613 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12614 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12615 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12616 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12617
12618 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12619 cu.list_in_scope. Don't initialize cu_header_offset.
12620 (add_partial_symbol): Add local baseaddr.
12621 (psymtab_to_symtab_1): Add local baseaddr. Use
12622 objfile->section_offsets for consistency. Don't initialize
12623 cu_header_offset; do initialize cu.header.offset and
12624 cu.list_in_scope.
12625 (read_file_scope, read_func_scope, read_lexical_block_scope)
12626 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12627
c6e06ede
MC
126282004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12629
fb328ecc 12630 * PROBLEMS: Add gdb/1516.
c6e06ede 12631
48184fd4
AC
126322003-12-29 Robert Millan <robertmh@gnu.org>
12633
12634 Patch committed by Andrw Cagney.
12635 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12636 * configure.tgt: Match knetbsd*-gnu.
12637
c1321b30
AC
126382004-01-26 Andrew Cagney <cagney@redhat.com>
12639
f3699be3
AC
12640 * breakpoint.c (catch_command_1): Delete #ifdef code.
12641 (catch_fork_command_1): Delete #ifdef wrapper.
12642 (catch_exec_command_1): Ditto.
12643 (catch_load_command_1): Ditto.
12644 (catch_unload_command_1): Ditto.
12645
c1321b30
AC
12646 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12647 (catch_breakpoint): Delete #if0ed function.
12648 (disable_catch_breakpoint): Ditto.
12649 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12650 (disable_catch, enable_catch, delete_catch): Ditto.
12651
b4501125
AC
126522004-01-26 Andrew Cagney <cagney@redhat.com>
12653
12654 * remote.c (echo_check, quit_flag): Delete variables.
12655 (cisco_kernel_mode): Delete variable.
12656 (minitelnet_return, tty_input, escape_count): Delete variables.
12657 (remote_cisco_mode): Delete variable.
12658 (remote_cisco_open, remote_cisco_close): Delete function.
12659 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12660 (init_remote_cisco_ops): Delete function.
12661 (_initialize_remote): Do not install "remote cisco" code.
12662 (read_frame): Delete cisco specific code.
12663 (remote_info_process): Delete function.
12664 (remote_wait): Delete cisco specific code.
12665 (remote_cisco_section_offsets): Delete function.
12666 (remote_cisco_objfile_relocate): Delete function.
12667 (remote_async_wait): Delete cisco specific code.
12668 (minitelnet, readtty, readsocket): Delete function.
12669
74055713
AC
126702004-01-26 Andrew Cagney <cagney@redhat.com>
12671
12672 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12673 comments mentioning extract_returned_value_address.
12674 * infcmd.c (print_return_value): Update. Add comments on
12675 extract_returned_value_address.
12676 * stack.c (return_command): Add comments on
12677 extract_returned_value_address.
12678 * values.c: Update comment.
12679 * m32r-tdep.c: Update comment.
12680 * sparc-tdep.c: Update comment.
12681 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12683 * sh64-tdep.c (sh64_gdbarch_init): Update.
12684 * sh-tdep.c (sh_gdbarch_init): Update.
12685 * s390-tdep.c (s390_gdbarch_init): Update.
12686 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12687 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12688 * m68k-tdep.c (m68k_gdbarch_init): Update.
12689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12690 * m32r-tdep.c (m32r_gdbarch_init): Update.
12691 * ia64-tdep.c (ia64_gdbarch_init): Update.
12692 * h8300-tdep.c (h8300_gdbarch_init): Update.
12693 * frv-tdep.c (frv_gdbarch_init): Update.
12694 * arm-tdep.c (arm_gdbarch_init): Update.
12695 * alpha-tdep.c (alpha_gdbarch_init): Update.
12696
a67af2b9
AC
126972004-01-26 Andrew Cagney <cagney@redhat.com>
12698
12699 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12700 SYMBOL_LOCATION_FUNCS
12701 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12702 "struct symbol_ops".
12703 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12704 type to "struct symbol_ops".
12705 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12706 (struct symbol): Replace ".aux_value.loc.funcs" and
12707 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12708 (SYMBOL_OBJFILE): Delete macro.
12709 (SYMBOL_LOCATION_FUNCS): Delete macro.
12710 (SYMBOL_LOCATION_BATON): Update.
12711 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12712 intead of SYMBOL_LOCATION_FUNCS.
12713 * ax-gdb.c (gen_var_ref): Ditto.
12714 * printcmd.c (address_info): Ditto.
12715 * findvar.c (read_var_value): Ditto.
12716 (symbol_read_needs_frame): Ditto.
12717
c034e007
AC
127182004-01-26 Andrew Cagney <cagney@redhat.com>
12719
12720 * dwarf2read.c (read_func_scope): Document frame-base hack.
12721
bb472c1e
MK
127222004-01-25 Mark Kettenis <kettenis@gnu.org>
12723
12724 * infcmd.c (print_return_value): Plug memory leak; delete
12725 ui_stream object. Rename argument `structure_return' to
12726 `struct_return'.
12727
c8e737d5
MK
127282004-01-25 Mark Kettenis <kettenis@gnu.org>
12729
f941662f
MK
12730 * infcmd.c (print_return_value): Wrap long lines.
12731 (finish_command_continuation, finish_command): Remove unused
12732 variable `funcaddr'. Fix some coding-standards problems.
12733
c558d81a 12734 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12735 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12736 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12737 TDEP->fpregset to zero.
12738
bf1e5861 12739 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12740 floating-point registers for traditional NetBSD core files.
12741 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12742 TDEP->sizeof_fpregset here.
12743
4c72d57a
MK
127442004-01-25 Mark Kettenis <kettenis@gnu.org>
12745
566626fa
MK
12746 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12747 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12748 function with code split out from
12749 sparc32nbsd_sigcontext_frame_cache.
12750 (sparc32nbsd_sigcontext_frame_cache): Use
12751 sparc32nbsd_sigcontext_saved_regs.
12752 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12753 OpenBSD.
12754 * sparcobsd-tdep.c: New file.
12755 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12756 (sparcobsd-tdep.o): New dependency.
12757 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12758 * config/sparc/obsd.mt: New file.
12759
4c72d57a
MK
12760 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12761 TDEP->fpregset to be initialized to enable core file register
12762 sets.
12763
7e5e9f88
MK
127642004-01-24 Mark Kettenis <kettenis@gnu.org>
12765
f0f207fd 12766 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12767 Add opaque declarations.
12768 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12769 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12770 function with code split out from
12771 sparc64nbsd_sigcontext_frame_cache.
12772 (sparc64nbsd_sigcontext_frame_cache): Use
12773 sparc64nbsd_sigcontext_saved_regs.
12774 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12775 OpenBSD.
12776 * sparc64obsd-tdep.c: New file.
12777 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12778 (sparc64obsd-tdep.o): New dependency.
12779 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12780 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12781 * config/sparc/obsd64.mt: New file.
12782
690668cc
MK
12783 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12784 read the instruction at PC.
12785
7e5e9f88
MK
12786 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12787 value of GDB_OSABI_DEFAULT.
12788 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12789 instead of GDB_OSABI_NETBSD_AOUT.
12790
68b6dce9
NR
127912004-01-24 Nick Roberts <nick@nick.uklinux.net>
12792
12793 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12794 copyright.
12795
080ce8c0
AC
127962004-01-23 Andrew Cagney <cagney@redhat.com>
12797
12798 * printcmd.c (display_command): Replace tui_set_display call with
12799 tui_set_layout_for_display_command.
12800 * tui/tui.h (enum tui_win_type): Define.
12801 (tui_set_layout): Delete declaration.
12802 (tui_set_layout_for_display_command): Rename set_tui_layout.
12803 * tui/tui-data.h (enum tui_layout_type): Define.
12804 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12805 "tui.h".
12806 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12807 (tui_default_win_height): Rename tuiDefaultWinHeight.
12808 (tui_default_win_viewport_height): Rename
12809 tuiDefaultWinViewportHeight.
12810 (tui_set_layout): RenametuiSetLayout.
12811 * tui/tui-layout.c: Update references.
12812 * tui/tui.c: Update references.
12813 * tui/tui-disasm.c: Update references.
12814
b368761e
DC
128152004-01-23 David Carlton <carlton@kealia.com>
12816
12817 Partial workaround for PR c++/1511:
12818 * cp-namespace.c: Include frame.h.
12819 (cp_lookup_transparent_type): New
12820 (cp_lookup_transparent_type_loop): New.
12821 * cp-support.h: Declare cp_lookup_transparent_type.
12822 * symtab.c (basic_lookup_transparent_type): Renamed from
12823 lookup_transparent_type.
12824 (lookup_transparent_type): Replace old body by a call to
12825 current_language->la_lookup_transparent_type.
12826 * symtab.h: Update copyright. Declare
12827 basic_lookup_transparent_type.
12828 * language.h: Update copyright.
12829 (struct language_defn): Add la_lookup_transparent_type.
12830 * language.c: Update copyright.
12831 (unknown_language_defn): Add basic_lookup_transparent_type.
12832 (auto_language_defn): Add basic_lookup_transparent_type.
12833 (local_language_defn): Add basic_lookup_transparent_type.
12834 * ada-lang.c: Update copyright.
12835 (ada_language_defn): Add basic_lookup_transparent_type.
12836 * c-lang.c: Update copyright.
12837 (c_language_defn): Add basic_lookup_transparent_type.
12838 (cplus_language_defn): Add basic_lookup_transparent_type.
12839 (asm_language_defn): Add basic_lookup_transparent_type.
12840 (minimal_language_defn): Add basic_lookup_transparent_type.
12841 * f-lang.c: Update copyright.
12842 (f_language_defn): Add basic_lookup_transparent_type.
12843 * jv-lang.c: Update copyright.
12844 (java_language_defn): Add basic_lookup_transparent_type.
12845 * m2-lang.c: Update copyright.
12846 (m2_language_defn): Add basic_lookup_transparent_type.
12847 * objc-lang.c: Update copyright.
12848 (objc_language_defn): Add basic_lookup_transparent_type.
12849 * p-lang.c: Update copyright.
12850 (p_language_defn): Add basic_lookup_transparent_type.
12851 * scm-lang.c: Update copyright.
12852 (scm_language_defn): Add basic_lookup_transparent_type.
12853 * Makefile.in (cp-namespace.o): Depend on frame.h.
12854
fdde2d81
DC
128552004-01-23 David Carlton <carlton@kealia.com>
12856
12857 Patch for PR c++/1520:
12858 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12859 properly if we have a specification die.
12860 (determine_prefix_aux): Rename from determine_prefix.
12861 (determine_prefix): Like the old determine_prefix, but never
12862 returns NULL.
12863
5b828b6b
TR
128642004-01-23 Theodore A. Roth <troth@openavr.org>
12865
12866 * avr-tdep.c: Update copyright.
12867 (avr_iaddr_p): Delete unused function.
12868 (avr_saddr_p): Delete unused function.
12869
a1b8c067
DC
128702004-01-23 David Carlton <carlton@kealia.com>
12871
12872 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12873 Fix for PR symtab/1534.
12874
f2cab569
MK
128752004-01-23 Mark Kettenis <kettenis@gnu.org>
12876
12877 * NEWS (New native configurations): Mention OpenBSD/sparc and
12878 OpenBSD/sparc64.
12879 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12880 * configure.host: Likewise.
12881 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12882 handler for OpenBSD.
12883 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12884
642d8300
MK
128852004-01-22 Mark Kettenis <kettenis@gnu.org>
12886
89aac506
MK
12887 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12888 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12889
36662fde
MK
12890 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12891 * cli/cli-cmds.c (shell_escape): Likewise.
12892
642d8300
MK
12893 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12894 OpenBSD .note.openbsd.ident sections.
12895
fae299cd
DC
128962004-01-22 David Carlton <carlton@kealia.com>
12897
12898 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12899 get_scope_pc_bounds.
12900 (read_file_scope): Ditto.
12901 (get_scope_pc_bounds): New function, produced by extracting code
12902 from the above two functions, consolidating it, and adding support
12903 for DW_TAG_namespace.
12904
a49d618c
MK
129052004-01-22 Mark Kettenis <kettenis@gnu.org>
12906
12907 * osabi.c (MAX_NOTESZ): New define.
12908 (check_note): New function.
12909 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12910 check_note.
12911
fe61caab
RM
129122004-01-21 Roland McGrath <roland@redhat.com>
12913
12914 * MAINTAINERS (write after approval): Add myself.
12915
ec145965
EZ
129162004-01-21 Eli Zaretskii <eliz@gnu.org>
12917
12918 * utils.c (init_page_info): Move declarations of `rows' and
12919 `cols' before the __GO32__-specific code. Move the closing brace
12920 outside the #ifdef __GO32__..#endif block.
12921 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12922
877522db
PB
129232004-01-21 Paul Brook <paul@codesourcery.com>
12924
12925 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12926 BPSTAT_WHAT_CHECK_SHLIBS.
12927
dbf5be1c
PB
129282004-01-21 Paul Brook <paul@codesourcery.com>
12929
12930 * MAINTAINERS: Add myself to write-after-approval.
12931
81f08b92
AC
129322004-01-20 Andrew Cagney <cagney@redhat.com>
12933
5a1efed7
AC
12934 * ax-gdb.c (print_axs_value): Delete unused function.
12935 * jv-lang.c (java_lookup_type): Delete unused function.
12936 * cli/cli-dump.c (dump_filetype): Delete unused function.
12937 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12938 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12939 (mips_getstring): Delete unused function.
12940 (pmon_insert_breakpoint): Delete #if0ed function.
12941 (PMON_MAX_BP): Delete #if0ed MACRO.
12942 (mips_pmon_bp_info): Delete #if0ed variable.
12943 (pmon_remove_breakpoint): Delete #if0ed function.
12944 * monitor.c (monitor_write_even_block): Delete unused function.
12945 (monitor_write_memory_block): Delete #if0ed code.
12946 * dink32-rom.c (dink32_load): Delete unused function.
12947 (_initialize_dink32_rom): Delete #if0ed code.
12948 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12949
b0a30fce
AC
12950 * tui/tui-command.c: Update references.
12951 * tui/tui-io.c: Update references.
12952 * tui/tui-command.h: Update copyright.
12953 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12954
81f08b92
AC
12955 * source.c (ambiguous_line_spec): Delete never-defined function.
12956 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12957 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12958 * cli/cli-cmds.c (validate_comname): Ditto.
12959
65f05602
AC
12960 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12961 "tui-data.h".
12962 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12963 (tui_show_disassem): Rename tuiShowDisassem.
12964 (tui_show_disassem_and_update_source): Rename
12965 tuiVerticalDisassemScroll.
12966 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12967 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12968 * tui/tui.h: Update copyright.
12969 (enum tui_status): Define.
12970 * tui/tui-data.h (enum tui_scroll_direction): Define.
12971 * tui/tui-disasm.c: Update copyright. Update references.
12972 * tui/tui-winsource.c: Update copyright. Update references.
12973 * tui/tui-win.c: Update references.
12974 * tui/tui-layout.c: Update references.
12975
6bb0384f
AC
129762004-01-20 Andrew Cagney <cagney@redhat.com>
12977
12978 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12979 sym2 to start of block.
12980
9175c9a3
MC
129812004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12982
12983 * MAINTAINERS: Delete mmalloc.
12984 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12985 * NEWS: Mention removal of --with-malloc.
12986 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12987 * config.in: Regenerate.
12988 * configure: Regenerate.
6bb0384f
AC
12989 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12990 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12991 * gdbinit.in: Remove mmalloc.
12992 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12993 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12994 * config/i386/go32.mh: Likewise.
12995 * config/i386/interix.mh: Likewise.
12996 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12997
4fcef00a
JJ
129982004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12999
13000 * linespec.c (decode_variable, symtab_from_filename): Call
13001 error_silent with error message instead of throwing an exception
13002 directly.
13003 * defs.h (error_silent, error_output_message): Add prototypes.
13004 (catch_exceptions_with_msg): Ditto.
13005 * utils.c (error_silent, error_output_message): New functions.
13006 * top.c (catch_exceptions_with_msg): New function.
13007
8e94b928
NR
130082004-01-20 Nick Roberts <nick@nick.uklinux.net>
13009
13010 * mi/mi-cmds.h (enum print_values): Add definition.
13011
13012 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13013 type and value for simple data types and just the name and type
13014 for complex ones, if required.
13015
13016 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13017 children, if required.
13018
a02d6af8
KB
130192004-01-19 Kevin Buettner <kevinb@redhat.com>
13020
13021 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13022 unused declarations.
13023
78a4a9b9
AC
130242004-01-19 Andrew Cagney <cagney@redhat.com>
13025
13026 * top.h (mapped_symbol_files): Delete declaration.
13027 * main.c (captured_main): Delete option "m" and "mapped".
13028 * objfiles.c (mapped_symbol_files): Delete variable.
13029 * symfile.c (symbol_file_command): Delete mmap code.
13030 (symbol_file_add_with_addrs_or_offsets): Ditto.
13031 (add_symbol_file_command, reread_separate_symbols): Ditto.
13032 * objfiles.h (OBJF_MAPPED): Delete.
13033 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13034 (free_objfile) [USE_MMALLOC]: Ditto.
13035 (open_existing_mapped_file): Delete function.
13036 (open_mapped_file): Delete function.
13037 (map_to_file): Delete function.
13038
2dbd5e30
KB
130392004-01-19 Kevin Buettner <kevinb@redhat.com>
13040
13041 * infrun.c (step_into_function): Account for possible breakpoint
13042 adjustment when computing ``stop_func_start''.
13043
437b434f
KB
130442004-01-19 Kevin Buettner <kevinb@redhat.com>
13045
13046 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13047 the region size against the size of a pointer, not the size of
13048 a register as given by DEPRECATED_REGISTER_SIZE.
13049
55fb0713
AC
130502004-01-19 Andrew Cagney <cagney@redhat.com>
13051
13052 * tui/tui-regs.h: Include "tui-data.h".
13053 (tuiFirstRegElementNoInLine): Delete declaration.
13054 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13055 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13056 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13057 (tui_calculate_regs_column_count): Rename
13058 tuiCalculateRegsColumnCount.
13059 (tui_check_register_values): Rename tuiCheckRegisterValues.
13060 (tui_show_registers): Rename tuiShowRegisters.
13061 (tui_display_registers_from_line): Rename
13062 tuiDisplayRegistersFromLine.
13063 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13064 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13065 (tui_first_reg_element_no_inline): Rename
13066 tuiFirstRegElementNoInLine.
13067 * tui/tui-data.h: Update copyright.
13068 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13069 * tui/tui-windata.c: Update copyright, update references.
13070 * tui/tui-regs.c: Update copyright, update references.
13071 * tui/tui-win.c: Update copyright, update references.
13072 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13073
cebe9500
AC
130742004-01-18 Andrew Cagney <cagney@redhat.com>
13075
bcdf1568
AC
13076 * tui/tui-io.c: Update copyright.
13077 (key_is_end_sequence, key_is_backspace): New functions.
13078 (key_is_command_char, key_is_start_sequence): New function.
13079 (tui_getc): Update references.
13080 * tui/tui-io.h: Update copyright.
13081 (m_tuiStartNewLine): Delete macro.
13082 (m_isBackspace, m_isDeleteChar): Delete macros.
13083 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13084 (m_isNextPage, m_isPrevPage): Delete macros.
13085 (m_isLeftArrow, m_isRightArrow): Delete macros.
13086 (m_isXdbStyleCommandChar): Delete macro.
13087 (key_is_start_sequence): Declare, replace m_isStartSequence.
13088 (key_is_end_sequence): Declare, replace m_isEndSequence.
13089 (key_is_backspace): Declare ,replace m_isBackspace.
13090 (key_is_command_char): Declare, replace m_isCommandChar.
13091 * tui/tui-command.c: Update copyright.
13092 (tuiDispatchCtrlChar): Update references.
13093
130d87e6
AC
13094 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13095 tuiSourceWin.h.
13096
d7b2e967
AC
13097 * tui/tui-command.c: Rename tui/tuiCommand.c.
13098 * tui/tui-command.h: Rename tui/tuiCommand.h.
13099 * tui/tui-data.c: Rename tui/tuiData.c.
13100 * tui/tui-data.h: Rename tui/tuiData.h.
13101 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13102 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13103 * tui/tui-io.c: Rename tui/tuiIO.c.
13104 * tui/tui-io.h: Rename tui/tuiIO.h.
13105 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13106 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13107 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13108 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13109 * tui/tui-source.c: Rename tui/tuiSource.c.
13110 * tui/tui-source.h: Rename tui/tuiSource.h.
13111 * tui/tui-stack.c: Rename tui/tuiStack.c.
13112 * tui/tui-stack.h: Rename tui/tuiStack.h.
13113 * tui/tui-win.c: Rename tui/tuiWin.c.
13114 * tui/tui-win.h: Rename tui/tuiWin.h.
13115 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13116 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13117 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13118 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13119 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13120 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13121 * tui/tui-file.c: Update includes.
13122 * tui/tui-hooks.c: Update includes.
13123 * tui/tui-interp.c: Update includes.
13124 * tui/tui.c: Update includes.
13125 * Makefile.in: Update all tui/ dependencies.
13126 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13127
b2100910
AC
13128 * Makefile.in: Update copyright. Update dependencies.
13129
cebe9500
AC
13130 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13131 problem.
13132
c6f0559b
AC
131332004-01-18 Andrew Cagney <cagney@redhat.com>
13134
43e9390b
AC
13135 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13136 instead of register_gdbarch_init.
13137
c6f0559b
AC
13138 * remote-sds.c (tohex): Delete unused function. Update copyright.
13139 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13140 * v850-tdep.c (v850_register_virtual_size): Ditto.
13141 * target.c (normal_target_post_startup_inferior): Ditto.
13142 * source.c (ambiguous_line_spec): Ditto.
13143 * remote.c (adapt_remote_get_threadinfo): Ditto.
13144 * mi/mi-out.c (out_field_fmt): Ditto.
13145 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13146 (output_control_change_notification): Ditto.
13147 * m68k-tdep.c (m68k_register_byte): Ditto.
13148 (m68k_remote_breakpoint_from_pc): Ditto.
13149 * ui-out.c (init_ui_out_state): Delete unused declaration.
13150 * stabsread.c (search_value): Ditto.
13151 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13152 * maint.c (print_section_table): Ditto.
13153 * infrun.c (set_follow_fork_mode_command): Ditto.
13154
a8504492
MK
131552004-01-18 Mark Kettenis <kettenis@gnu.org>
13156
13157 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13158 DW_CFA_def_cfa_exporession. Add support for
13159 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13160 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13161
0bd8997e
AC
131622004-01-18 Andrew Cagney <cagney@redhat.com>
13163
13164 * ocd.c: Update copyright.
13165 (bdm_read_register_command): Delete unused function.
13166 (_initialize_remote_ocd): Delete commented out reference.
13167 (get_quoted_char, reset_packet): Delete #if0ed function.
13168 (output_packet, put_quoted_char): Delete #if0ed function.
13169 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13170 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13171 (BDM_BREAKPOINT): Delete #if0ed macro.
13172 (remote_timeout): Delete #if0ed variable.
13173
31bb40e4
MK
131742004-01-18 Mark Kettenis <kettenis@gnu.org>
13175
13176 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13177 (core-sol2.o): Remove dependency.
13178 * core-sol2.c: Remove file.
13179
887432a5
AC
131802004-01-17 Andrew Cagney <cagney@redhat.com>
13181
13182 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13183 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13184 enums.
13185
29182b13
DJ
131862004-01-17 Daniel Jacobowitz <drow@mvista.com>
13187
13188 * remote.c: Update copyright years.
13189
2963ee1d
DJ
131902004-01-17 Daniel Jacobowitz <drow@mvista.com>
13191
13192 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13193
79d45cd4
AC
131942004-01-17 Andrew Cagney <cagney@redhat.com>
13195
ee300cd4
AC
13196 * mdebugread.c: Update copyright.
13197 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13198 (parse_type, parse_procedure): Ditto.
13199 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13200
fcacc9c2
AC
13201 * cris-tdep.c (cris_store_struct_return): Put back accidently
13202 deleted function.
13203
79d45cd4
AC
13204 * gdbarch.sh: Update copyright year.
13205 * gdbarch.h, gdbarch.c: Re-generate.
13206
b263358a
DJ
132072004-01-17 Daniel Jacobowitz <drow@mvista.com>
13208
13209 Suggested by George Anzinger.
13210 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13211 correct stack offset. Include unknown opcode numbers in the error
13212 message.
13213
931aecf5
AC
132142004-01-17 Andrew Cagney <cagney@redhat.com>
13215
13216 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13217 extract_struct_value_address, i386 does not set it.
13218 * sparc64-tdep.c (sparc64_init_abi): Do not set
13219 extract_struct_value_address, never called.
13220 (sparc64_extract_struct_value_address): Delete function.
13221 * m68hc11-tdep.c: Update copyright.
13222 (m68hc11_gdbarch_init): Delete redundant assignment of
13223 extract_struct_value_address.
13224 * i386-tdep.c: Update copyright.
13225 (i386_gdbarch_init): Do not set extract_struct_value_address,
13226 never called.
13227 (i386_extract_struct_value_address): Delete function.
13228 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13229 extract_struct_value_address, never called.
13230 (sparc32_extract_struct_value_address): #if 0 function. Add
13231 comments explaining its future.
13232
756fe439
DJ
132332004-01-17 Daniel Jacobowitz <drow@mvista.com>
13234
13235 * arm-tdep.c (arm_write_pc): New function.
13236 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13237
e74f0f02
DJ
132382004-01-17 Daniel Jacobowitz <drow@mvista.com>
13239
13240 * breakpoint.c (must_shift_inst_regs): Delete.
13241 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13242 and SHIFT_INST_REGS.
13243 * infcmd.c (step_1, step_1_continuation): Delete references to
13244 SHIFT_INST_REGS.
13245 * infrun.c (keep_going): Likewise.
13246 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13247 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13248
b6cb9035
AC
132492004-01-17 Andrew Cagney <cagney@redhat.com>
13250
444a1e2e
AC
13251 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13252 * gdbarch.h, gdbarch.c: Re-generate.
13253 * infcmd.c (print_return_value): Delete reference to
13254 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13255
def7e6ed
AC
13256 * cris-tdep.c (cris_gdbarch_init): Do not set
13257 deprecated_extract_struct_value_address.
13258
07be497a
AC
13259 * xstormy16-tdep.c: Update copyright.
13260 (xstormy16_extract_struct_value_address): Update to current
13261 extract struct value address interface.
13262 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13263 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13264 current extract struct value address interface.
13265 (sh64_gdbarch_init): Set extract_struct_value_address.
13266
6b4d5c91
AC
13267 * cris-tdep.c: Update copyright.
13268 (cris_extract_struct_value_address): Delete function.
13269 (struct_return_address): Delete variable.
13270 (cris_store_struct_return): Do not set struct_return_address.
13271
464e0365
AC
13272 * mcore-tdep.c: Update copyright.
13273 (mcore_extract_struct_value_address): Delete function. Update
13274 comments.
13275 (mcore_gdbarch_init): Update.
13276 * mn10300-tdep.c: Update copyright.
13277 (mn10300_extract_struct_value_address): Delete function.
13278 (mn10300_gdbarch_init): Update.
13279 * v850-tdep.c: Update copyright.
13280 (v850_extract_struct_value_address): Delete.
13281 (v850_gdbarch_init): Update.
13282 * ns32k-tdep.c: Update copyright.
13283 (ns32k_extract_struct_value_address): Delete.
13284 (ns32k_gdbarch_init): Update.
13285 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13286 (hppa_gdbarch_init): Update.
13287 * vax-tdep.c: Update copyright.
13288 (vax_extract_struct_value_address): Delete.
13289 (vax_gdbarch_init): Update.
13290
afb18d0f
AC
13291 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13292 * gdbarch.h, gdbarch.c: Re-generate.
13293 * procfs.c (procfs_fetch_registers): Delete reference to
13294 DEPRECATED_NPC_REGNUM.
13295 (procfs_store_registers): Ditto.
13296 * regcache.c (generic_target_write_pc): Simplify.
13297 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13298
a698f53e
AC
13299 * core-sol2.c (fetch_core_registers): Replace
13300 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13301
adc11376
AC
13302 * hppa-tdep.c: Update copyright year.
13303 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13304 NPC_REGNUM.
13305 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13306
b6cb9035
AC
13307 * mips-tdep.c (mips_write_pc): New function.
13308 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13309 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13310 (mips_find_saved_regs, mips_software_single_step: Ditto.
13311 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13312 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13313
6d82d43b
AC
133142004-01-17 Andrew Cagney <cagney@redhat.com>
13315
13316 * mips-tdep.c: Re-indent. Group functions by ABI.
13317
71bd6bd4
AC
133182004-01-17 Andrew Cagney <cagney@redhat.com>
13319
13320 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13321 * gdbarch.c: Re-generate.
13322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13323 DECR_PC_AFTER_BREAK to zero.
13324 * vax-tdep.c (vax_gdbarch_init): Ditto.
13325 * v850-tdep.c (v850_gdbarch_init): Ditto.
13326 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13327 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13328 * sh-tdep.c (sh_gdbarch_init): Ditto.
13329 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13330 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13331 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13332 * mips-tdep.c (mips_gdbarch_init): Ditto.
13333 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13335 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13336 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13337 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13338 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13339 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13340 * frv-tdep.c (frv_gdbarch_init): Ditto.
13341 * cris-tdep.c (cris_gdbarch_init): Ditto.
13342 * avr-tdep.c (avr_gdbarch_init): Ditto.
13343 * arm-tdep.c (arm_gdbarch_init): Ditto.
13344 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13345
a02abb62
JB
133462004-01-17 J. Brobecker <brobecker@gnat.com>
13347
13348 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13349 Delete, no longer used.
13350 (read_subrange_type): New function, mostly extracted from
13351 read_array_type().
13352 (read_array_type): Replace extracted code by call to
13353 read_subrange_type().
13354 (dwarf2_get_attr_constant_value): New function.
13355 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13356 (add_partial_symbol): Likewise.
13357 (process_die): Likewise.
13358 (new_symbol): Likewise.
13359 (read_type_die): Likewise.
13360
cf5b2f1b
AC
133612004-01-16 Andrew Cagney <cagney@redhat.com>
13362
13363 * symfile.c: Update copyright year.
13364 (compare_symbols): Delete unused function.
13365 * stabsread.c: Update copyright year.
13366 (lrs_general_complaint): Delete unused function.
13367 (ref_search_value): Ditto.
13368 (get_substring): Delete declaration.
13369 * sh64-tdep.c: Update copyright year.
13370 (sh64_get_gdb_regnum): Delete unused function.
13371 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13372 Delete unused function.
13373
d33b9831
MK
133742004-01-17 Mark Kettenis <kettenis@gnu.org>
13375
13376 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13377 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13378
7aea86e6
AC
133792004-01-16 Andrew Cagney <cagney@redhat.com>
13380
13381 Changes from Peter Schauer.
13382 * rs6000-tdep.c: Update copyright year.
13383 (rs6000_push_dummy_call): Update the stack pointer before
13384 accessing the corresponding stack region.
13385 * rs6000-nat.c: Update copyright year.
13386 (set_host_arch): Set "info.abfd" to "exec_bfd".
13387
26b0da32
MK
133882004-01-15 Mark Kettenis <kettenis@gnu.org>
13389
13390 * blockframe.c: Update copyright year.
13391 (inside_entry_func): Don't treat a zero PC specially.
13392
86fbe6cc
EZ
133932004-01-14 Elena Zannoni <ezannoni@redhat.com>
13394
13395 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13396 variable.
13397 (gcore_create_callback): Ditto. Skip any memory segment that has
13398 no permissions set.
13399
63d06c5c
DC
134002004-01-14 David Carlton <carlton@kealia.com>
13401
13402 Change symbols for C++ nested types to contain the fully qualified
13403 name, if possible. (At least in the DWARF-2 case.) Partial fix
13404 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13405 c++/895.
13406 * c-exp.y (qualified_type): Handle types nested within classes.
13407 * cp-namespace.c: Update comments.
13408 (cp_set_block_scope): Delete #if 0.
13409 (cp_lookup_nested_type): Handle types nested within classes.
13410 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13411 when appropriate.
13412 (add_partial_symbol): Add the name of the enclosing namespace to
13413 types.
13414 (pdi_needs_namespace): New.
13415 (add_partial_namespace): Tweak comment.
13416 (add_partial_structure): New.
13417 (psymtab_to_symtab_1): Initialize processing_current_prefix
13418 here...
13419 (process_die): instead of here.
13420 (read_structure_scope): Try to figure out the name of the class or
13421 namespace that the structure might be defined within.
13422 (read_enumeration): Generate fully-qualified names, if possible.
13423 (read_namespace): Don't set name to NULL.
13424 (die_specification): New.
13425 (new_symbol): Generate fully-qualified names for types.
13426 (read_type_die): Determine appropriate prefix.
13427 (determine_prefix): New.
13428 (typename_concat): New.
13429 (class_name): New.
13430 * valops.c (value_aggregate_elt): Pass NOSIDE to
13431 value_struct_elt_for_reference.
13432 (value_struct_elt_for_reference): Make static, add NOSIDE
13433 parameter, call value_maybe_namespace_elt as a last resort.
13434 (value_namespace_elt): Break out code into
13435 value_maybe_namespace_elt.
13436 (value_maybe_namespace_elt): New.
13437
87783b8b
AC
134382004-01-12 Andrew Cagney <cagney@redhat.com>
13439
13440 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13441 cooked floating-point registers.
13442 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13443 and value_to_register.
13444
6503b91e
AC
134452004-01-13 Andrew Cagney <cagney@redhat.com>
13446
13447 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13448 * gdbarch.c: Re-generate.
13449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13450 FUNCTION_START_OFFSET.
13451 * v850-tdep.c (v850_gdbarch_init): Ditto.
13452 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13453 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13454 * sh-tdep.c (sh_gdbarch_init): Ditto.
13455 * s390-tdep.c (s390_gdbarch_init): Ditto.
13456 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13457 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13458 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13459 * mips-tdep.c (mips_gdbarch_init): Ditto.
13460 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13461 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13463 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13464 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13465 * i386-tdep.c (i386_gdbarch_init): Ditto.
13466 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13467 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13468 * frv-tdep.c (frv_gdbarch_init): Ditto.
13469 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13470 * cris-tdep.c (cris_gdbarch_init): Ditto.
13471 * avr-tdep.c (avr_gdbarch_init): Ditto.
13472 * arm-tdep.c (arm_gdbarch_init): Ditto.
13473 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13474
ea1dd7bc
DJ
134752004-01-13 Daniel Jacobowitz <drow@mvista.com>
13476
13477 * infrun.c (follow_fork_mode_ask): Remove.
13478 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13479 (follow_fork): Simplify and remove internal error for
13480 follow_fork_mode_ask.
13481 (_initialize_infrun): Update "set follow-fork-mode" help text.
13482
0f0cffd2
AC
134832004-01-13 Andrew Cagney <cagney@redhat.com>
13484
13485 * configure.in: Update copyright year.
13486 (build_warnings): Add -Wunused-label.
13487 * configure: Re-generate.
13488
de38af99
AC
134892004-01-12 Andrew Cagney <cagney@redhat.com>
13490
954a7fba
AC
13491 * exec.h (exec_ops): Make "extern".
13492
de38af99
AC
13493 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13494 the function is void.
13495 (mips_pseudo_register_write): Ditto.
13496
1a111ce3
AC
134972004-01-12 Andrew Cagney <cagney@redhat.com>
13498
13499 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13500 call. Never defined.
13501 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13502 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13503 (struct sparc_gregset, struct regcache): Ditto.
13504 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13505
48efe704
AC
135062004-01-12 Andrew Cagney <cagney@redhat.com>
13507
13508 * mi/ChangeLog: Delete file. Renamed to ...
13509 * mi/ChangeLog-1999-2003: New file.
13510 * tui/ChangeLog: Delete file. Renamed to ...
13511 * tui/ChangeLog-1998-2003: New file.
fe61caab 13512
a54124c5
MK
135132004-01-11 Mark Kettenis <kettenis@gnu.org>
13514
2ca62865
MK
13515 * sparc64nbsd-tdep.c: Include "regset.h".
13516 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13517 Remove variables.
13518 (fetch_core_registers): Remove function.
13519 (sparc64nbsd_core_fns): Remove variable.
13520 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13521 functions.
13522 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13523 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13524 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13525
ca9d58e9
MK
13526 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13527 sparc_extract_struct_value_address.
13528 (sparc32_gdbarch_init): Set extract_struct_value_address.
13529 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13530 function.
13531 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13532 return_value_on_stack.
13533
3cc87ec0
MK
13534 * NEWS: Mention that %cs and %ss have been added to the AMD64
13535 configurations
13536
5bf00f29
MK
13537 * frame.c: Update copyright year.
13538 (get_prev_frame): Improve comment.
13539
4f7ec84e
MK
13540 * sparc64fbsd-tdep.c: Include "regset.h".
13541 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13542 Remove variables.
13543 (fetch_core_registers): Remove function.
13544 (sparc64fbsd_core_fns): Remove variable.
13545 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13546 functions.
13547 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13548 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13549 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13550
4e7b0cd3
MK
13551 * sparcnbsd-tdep.c: Include "regset.h".
13552 (fetch_core_registers): Remove function.
13553 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13554 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13555 functions.
13556 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13557 TDEP->fpregset.
46b58ce9 13558 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13559
a54124c5
MK
13560 * sparc-tdep.h (struct regset): Provide opaque declaration.
13561 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13562 fpregset and sizeof_fpregset members.
13563 * sparc-tdep.c (struct regset): Provide opaque declaration.
13564 (sparc_regset_from_core_section): New function.
13565 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13566 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13567 Set regset_from_core_section when appropriate.
13568
29ff87c5
MK
135692004-01-10 Mark Kettenis <kettenis@gnu.org>
13570
79b1ab3d
MK
13571 * x86-64-tdep.c (amd64_non_pod_p): New function.
13572 (amd64_classify_aggregate): Return class memory for non-POD
13573 C++ structure types.
13574
6470d250
MK
13575 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13576 argument. Use it to reserve a register if necessary.
13577 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13578 amd64_push_arguments.
13579
562c50c2
MK
13580 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13581
af233647
MK
13582 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13583 register numbers in comments.
13584 * x86-64-tdep.h: Update copyright year.
13585 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13586 Adjust for addition of %cs and %ss.
13587 * amd64fbsd-nat.c: Update copyright year.
13588 (reg_offset): Add register offsets for %cs and %ss.
13589 * amd64fbsd-tdep.c: Update copyright year.
13590 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13591 (amd64fbsd_sc_reg_offset): Likewise.
13592 * x86-64-linux-nat.c: Update copyright year.
13593 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13594 and %ss.
13595 * amd64nbsd-nat.c: Update copyright year.
13596 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13597 * amd64nbsd-tdep.c: Update copyright year.
13598 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13599 * x86-64-linux-tdep.c: Update copyright year.
13600 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13601 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13602 * regformats/reg-x86-64.dat: Add %cs and %ss.
13603
29ff87c5
MK
13604 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13605 variables to prevent long lines. Update comments to reflect
13606 reality.
13607
38d518c9
EZ
136082004-01-09 David Carlton <carlton@kealia.com>
13609
13610 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13611 * dwarf2read.c (read_namespace): Pull out name-generating code
13612 into namespace_name. Rename previous_namespace to previous_prefix
13613 and processing_current_namespace to processing_current_prefix..
13614 (namespace_name): New function.
13615 (add_partial_symbol): Substitute uses of pdi->name with
13616 actual_name.
13617 * cp-support.h: Rename processing_current_namespace to
13618 processing_current_prefix.
13619 Update copyright year.
13620 * cp-namespace.c: Rename processing_current_namespace to
13621 processing_current_prefix.
13622 Update copyright year.
fe61caab 13623
1e4728e7
AC
136242004-01-09 Andrew Cagney <cagney@redhat.com>
13625
13626 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13627
c77c642a
MK
136282004-01-09 Mark Kettenis <kettenis@gnu.org>
13629
13630 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13631 complaining.
13632 (process_one_symbol): Deal with N_PATCH stabs.
13633
b44e9041
EZ
136342004-01-09 Elena Zannoni <ezannoni@redhat.com>
13635
13636 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13637 ifdeffed code.
13638 Update copyright year.
38d518c9 13639
eccfb640
MC
136402004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13641
13642 * config/pa/tm-hppa.h: Update extern declarations for
13643 hppa32_hpux_frame_saved_pc_in_sigtramp,
13644 hppa32_hpux_frame_base_before_sigtramp, and
13645 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13646
848c5feb
MC
136472004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13648
13649 * config/pa/tm-hppah.h: Update copyright years.
13650
3cc5d663
AC
136512004-01-08 Andrew Cagney <cagney@redhat.com>
13652
13653 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13654 (mips_o32_reg_struct_has_addr): Delete function.
13655 (mips_gdbarch_init): Update.
13656 (mips_extract_struct_value_address): Delete function.
13657
bfec0b41
JJ
136582004-01-08 David Mosberger <davidm@hpl.hp.com>
13659
13660 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13661 reality.
13662
16e109ca
AC
136632004-01-07 Andrew Cagney <cagney@redhat.com>
13664
6214a8a1
AC
13665 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13666 architecture's elf flags (when available).
13667
8d5838b5
AC
13668 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13669 FPU to the start, check the MIPS FPU when looking for an old
13670 architecture.
13671 (set_mipsfpu_single_command): Update the architecture.
13672 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13673
480d3dd2
AC
13674 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13675 (mips_mask_address_p): Add "tdep" parameter.
13676 (show_mask_address, mips_addr_bits_remove): Update.
13677 (mips_dump_tdep): Update.
13678 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13679 (MIPS_STACK_ARGSIZE): Delete macro.
13680 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13681 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13682 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13683 (mips_dump_tdep): Update.
13684 (MIPS_SAVED_REGSIZE): Delete macro.
13685 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13686 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13687 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13688 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13689 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13690 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13691 (mips_pop_frame, return_value_location): Update.
13692 (mips_n32n64_return_value, mips_dump_tdep): Update.
13693
ec03c1ac
AC
13694 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13695 MIPS ABI.
13696
16e109ca
AC
13697 * mips-tdep.c: Update copyright.
13698 (mips_gdbarch_init): Merge two code blocks handling the register
13699 name and number layout.
13700
15255275
MS
137012004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13702
13703 * tracepoint.c (validate_actionline): Fix segv at EOF
13704
9f9057da
MC
137052004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13706
13707 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13708 properly for static fields.
13709
0127c0d3 137102004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13711 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13712
13713 * disasm.c: Update copyright to include 2004.
13714 (do_mixed_source_and_assembly): For uiout asm list
13715 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13716 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13717 the tuple/list. Move check for whether to close off the
fe61caab 13718 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13719 on each loop iteration.
13720
5269965e
AC
137212004-01-05 Andrew Cagney <cagney@redhat.com>
13722
54f1137d
AC
13723 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13724 should be a switch case and not a label.
13725 * mips-tdep.c (mips32_next_pc): Delete unused labels
13726 "greater_equal_branch" and "less_zero_branch".
13727 * jv-valprint.c (java_print_value_fields): Delete unused label
13728 "flush_it".
13729
5269965e
AC
13730 * target.c (unpush_target): Only close a target that is in the
13731 target stack.
13732
dbc22fa1
MK
137332004-01-05 Mark Kettenis <kettenis@gnu.org>
13734
9515395e
MK
13735 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13736 address from [sp + 64] instead of %o2.
13737
dbc22fa1
MK
13738 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13739 fixes PR backtrace/1476.
13740
5439edaa
AC
137412004-01-05 Andrew Cagney <cagney@redhat.com>
13742
13743 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13744 move to start of file.
13745 * i386-tdep.h (struct regcache): Add opaque declaration.
13746 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13747 declaration.
13748 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13749 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13750 * win32-nat.c (fake_create_process): Use ISO C style definition.
13751 * stabsread.c (define_symbol): Delete #ifndef
13752 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13753 stabs_argument_has_addr call, macro never defined.
13754
19061abe
MC
137552004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13756
13757 * op50-rom.c: Delete.
13758 * w89k-rom.c: Delete.
13759 * Makefile.in: Remove references.
13760
e53bef9f
MK
137612004-01-04 Mark Kettenis <kettenis@gnu.org>
13762
13763 * x86-64-tdep.c: Update copyright year.
13764 (struct amd64_register_info): Rename from x86_64_register_info.
13765 (amd64_register_info): Rename from x86_64_register_info.
13766 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13767 (amd64_register_name): Rename from x86_64_register_name.
13768 (amd64_register_type): Rename from x86_64_register_type.
13769 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13770 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13771 (amd64_dwarf_reg_to_regnum): Rename from
13772 x86_64_dwarf_reg_to_regnum.
13773 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13774 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13775 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13776 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13777 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13778 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13779 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13780 (amd64_frame_cache): Rename from x86_64_frame_cache.
13781 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13782 (amd64_frame_prev_register): Rename from
13783 x86_64_frame_prev_register.
13784 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13785 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13786 (amd64_sigtramp_frame_cache): Rename from
13787 x86_64_sigtramp_frame_cache.
13788 (amd64_sigtramp_frame_prev_register): Rename from
13789 x86_64_sigtramp_frame_prev_register.
13790 (amd64_sigtramp_frame_unwind): Rename from
13791 x86_64_sigtramp_frame_unwind.
13792 (amd64_sigtramp_frame_sniffer): Rename from
13793 x86_64_sigtramp_frame_sniffer.
13794 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13795 (amd64_frame_base): Rename from x86_64_frame_base.
13796 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13797 (amd64_frame_align): Rename from x86_64_frame_align.
13798 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13799 (amd64_regset_from_core_section): Rename from
13800 x86_64_regset_from_core_section.
13801 (x86_64_init_abi): Update comments.
13802
fca6aa58
NR
138032004-01-04 Nick Roberts <nick@nick.uklinux.net>
13804
13805 * MAINTAINERS (write after approval): Add myself.
13806
8ada74e3
MK
138072004-01-04 Mark Kettenis <kettenis@gnu.org>
13808
13809 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13810 `float' arguments.
13811
5154b0cd
MK
138122004-01-04 Mark Kettenis <kettenis@gnu.org>
13813
13814 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13815 such that it mentions a specific version of GCC that exhibits this
13816 bug.
13817
fb316966
MK
138182004-01-03 Mark Kettenis <kettenis@gnu.org>
13819
200cc553
MK
13820 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13821 structure that has a single `float' member, store it in %f1 in
13822 addition to %f0.
13823
e226a4a0
MK
13824 * sparc-sol2-nat.c: Add missing '\'.
13825
b9d4c5ed
MK
13826 * sparc-tdep.c (sparc32_return_value): New function.
13827 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13828 Remove functions.
13829 (sparc32_gdbarch_init): Set return_value, don't set
13830 extract_return_value, store_return_value, use_struct_convention
13831 and return_value_on_stack.
13832
fb316966
MK
13833 * sparc-sol2-nat.c: Add missing ')'.
13834
1af510a8
JB
138352004-01-03 J. Brobecker <brobecker@gnat.com>
13836
13837 * infrun.c (handle_step_into_function): New function.
13838 (handle_inferior_event): Extract out some code into the new
13839 function above.
13840
5cf4d23a
JB
138412004-01-03 J. Brobecker <brobecker@gnat.com>
13842
13843 * infrun.c (handle_inferior_event): Move the declaration of
13844 real_stop_pc inside the if blocks where it is used.
13845
60af1db2
MK
138462004-01-03 Mark Kettenis <kettenis@gnu.org>
13847
13848 * sparc64-tdep.c (sparc64_16_byte_align_p)
13849 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13850 Use check_typedef to get subtypes of structures and unions.
13851 (sparc64_store_return_value): Fix calculation of the appropriate
13852 offset into VALBUF when storing a structure or union.
13853 (sparc64_return_value): New function.
13854 (sparc64_use_struct_convention): Remove function.
13855 (sparc64_init_abi): Set return_value, don't set
13856 extract_return_value, store_return_value and
13857 use_struct_convention.
13858
1a901d3f
EZ
138592004-01-03 Eli Zaretskii <eliz@elta.co.il>
13860
13861 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13862 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13863 gdb/config/alpha/xm-alphaosf.h,
13864 gdb/config/powerpc/tm-ppcle-eabi.h,
13865 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13866 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13867 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13868 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13869 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13870 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13871 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13872 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13873 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13874 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13875 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13876 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13877 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13878 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13879 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13880 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13881 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13882 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13883 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13884 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13885 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13886 Remove lines for .cvsignore files.
13887
ef52e463
JB
138882004-01-03 J. Brobecker <brobecker@gnat.com>
13889
13890 * infrun.c: Back out the previous change.
13891
cb1bf9dc
MK
138922004-01-03 Mark Kettenis <kettenis@gnu.org>
13893
f0424ef6
MK
13894 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13895 sparc-*-sunos4* to the list of REMOVED configurations.
13896
cb1bf9dc
MK
13897 * configure.tgt: Add back sparc-*-vxworks*.
13898 * remote-vxsparc.c: Remove all includes except for "defs.h",
13899 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13900 Include "sparc-tdep.h".
13901 (SPARC_R_G1): New define.
13902 (vxsparc_gregset): New variable.
13903 (ext_format_sparc): Remove extern declaration.
13904 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13905 sparc32_supply_fpregset.
13906 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13907 sparc_collect_rwindow and sparc32_collect_fpregset.
13908 * config/sparc/tm-vxworks.h: New file, based on recently removed
13909 tm-vxsparc.h.
13910 * config/sparc/vxworks.mt: New file, based on recently removed
13911 vxworks.mt.
fe61caab 13912
5e938f9f
JB
139132004-01-03 J. Brobecker <brobecker@gnat.com>
13914
13915 * infrun.c (handle_step_into_function): New function.
13916 (handle_inferior_event): Extract out some code into the new
13917 function above.
13918
386c036b
MK
139192004-01-02 Mark Kettenis <kettenis@gnu.org>
13920
13921 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13922 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13923 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13924 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13925 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13926 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13927 (sparc_nat_h): New variable.
13928 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13929 (tm-sun4os4.h): Remove dependency.
13930 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13931 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13932 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13933 sparc-tdep.o): Update dependencies.
13934 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13935 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13936 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13937 dependencies.
13938 * configure.host: Remove existing sparc-*-lynxos*,
13939 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13940 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13941 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13942 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13943 triplets.
13944 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13945 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13946 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13947 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13948 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13949 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13950 sparc64-*-solaris2* and sparc64-*-* triplets.
13951 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13952 "symtab.h" and "objfiles.h".
13953 (BIAS): Remove define.
13954 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13955 (X_DISP19): Remove macros.
13956 (sparc_fetch_instruction): Remove function.
13957 (struct gdbarch_tdep): Remove definition.
13958 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13959 (sparc_breakpoint_from_pc): Remove function.
13960 (struct sparc64_frame_cache): Remove definition.
13961 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13962 sparc64_unwind_pc): Remove functions.
13963 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13964 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13965 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13966 (sparc64_frame_cache): Change return type to `struct
13967 sparc_frame_cache *'. Simply call sparc_frame_cache.
13968 (sparc64_frame_this_id, sparc64_frame_prev_register,
13969 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13970 instead of `struct sparc64_frame_cache.
13971 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13972 sparc_analyze_control_transfer, sparc_software_single_step,
13973 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13974 _initialize_sparc64_tdep): Remove functions.
13975 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13976 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13977 macros.
13978 (sparc64_supply_gregset, sparc64_collect_gregset,
13979 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13980 (sparc64_init_abi): New function.
13981 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13982 inclusion guard. Include "sparc-tdep.h".
13983 (BIAS): Define.
13984 (r_tstate_offset, r_fprs_offset): New defines.
13985 (enum sparc_regnum): Remove defenition.
13986 (enum sparc64_regnum): Reformat.
13987 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13988 (sparc64_init_abi, sparc64_supply_gregset,
13989 sparc64_collect_gregset, sparc64_supply_fpregset,
13990 sparc64_collect_fpregset): New prototypes.
13991 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13992 Add extern declarations.
13993 (sparc64_sol2_init_abi): New prototype.
13994 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13995 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13996 prototypes.
13997 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13998 "sparnbsd-nat.h".
13999 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14000 functions.
14001 (_initialize_sparc64fbsd_nat): Remove initialization of
14002 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14003 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14004 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14005 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14006 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14007 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14008 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14009 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14010 (sparc64fbsd_r_y_offset): Remove variables.
14011 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14012 Make static and const.
14013 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14014 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14015 functions.
14016 (sparc64fbsd_gregset): New variable.
14017 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14018 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14019 and sparc64_supply_fpregset.
14020 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14021 (sparc64fbsd_sigtramp_frame_this_id)
14022 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14023 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14024 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14025 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14026 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14027 * sparcnbsd-tdep.c: Update copyright year. Include
14028 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14029 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14030 "value.h" and "sparcnbsd-tdep.h".
14031 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14032 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14033 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14034 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14035 defines.
14036 (sparcnbsd_gregset): New variable.
14037 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14038 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14039 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14040 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14041 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14042 variables.
14043 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14044 (sparc32nbsd_sigcontext_frame_this_id)
14045 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14046 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14047 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14048 (sparcnbsd_get_longjmp_target_32,
14049 sparcnbsd_get_longjmp_target_64): Remove functions.
14050 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14051 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14052 sparcnbsd_init_elf): Remove.
14053 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14054 (sparcnbsd_elf_init_abi): New functions.
14055 (_initialize_sparcnbsd_tdep): New prototype.
14056 (_initialize_sparnbsd_tdep): Update.
14057 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14058 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14059 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14060 * config/sparc/linux.mh: Update comment.
14061 (XM_FILE, HOST_IPC): Remove variables.
14062 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14063 sparc-linux-nat.o.
14064 * config/sparc/linux.mt: Update comment.
14065 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14066 * config/sparc/nbsd.mt: Reformat.
14067 * config/sparc/nbsd64.mh: Update comment.
14068 (NATDEPFILES): Add sparc-nat.o.
14069 * config/sparc/nbsd64.mt: Update comment.
14070 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14071 (TM_FILE): Set to tm-nbsd.h.
14072 * config/sparc/nbsdelf.mh: Update comment.
14073 (NATDEPFILES): Add sparc-nat.o.
14074 (XM_FILE): Delete.
14075 * config/sparc/nbsdaout.mh: Update comment.
14076 (NATDEPFILES): Add sparc-nat.o
14077 (XM_FILE): Delete.
14078 * config/sparc/nm-linux.h: Update copyright year. Don't include
14079 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14080 inclusion.
14081 (KERNEL_U_SIZE): Remove define.
14082 (kernel_u_size): Remove prototype.
14083 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14084 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14085 "regcache.h".
14086 (CHILD_PREPARE_TO_STORE): Remove define.
14087 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14088 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14089 sparcnbsd-nat.c: Rewrite files.
14090 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14091 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14092 sparcnbsd-tdep.h: Remove files.
14093 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14094 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14095 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14096 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14097 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14098 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14099 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14100 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14101 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14102 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14103 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14104 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14105 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14106 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14107 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14108 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14109 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14110 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14111 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14112
ee84457a
AC
141132004-01-02 Andrew Cagney <cagney@redhat.com>
14114
14115 From 2003-12-18 Kazuhiro Inaoka:
14116 * configure.host: Add m32r-linux target.
14117
0bc2134e
MC
141182004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14119
14120 * top.c (print_gdb_version): Update year to 2004.
14121
89a72f9c
MM
141222004-01-02 Mark Mitchell <mark@codesourcery.com>
14123
14124 * MAINTAINERS: Add myself to the write-after-approval category.
14125
86b013ed
DJ
141262004-01-02 Daniel Jacobowitz <drow@mvista.com>
14127
14128 From Bernardo Innocenti <bernie@develer.com>:
14129 * configure.tgt: Add uClinux target.
14130
e42c9534
AC
141312004-01-02 Andrew Cagney <cagney@redhat.com>
14132
14133 * utils.c (do_my_cleanups): Make static, add forward declaration.
14134 * defs.h (do_my_cleanups): Delete declaration.
14135
162467d3
EZ
141362004-01-02 Eli Zaretskii <eliz@elta.co.il>
14137
14138 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14139 bfd/ChangeLog-0203.
14140
78434e59
MK
141412004-01-02 Mark Kettenis <kettenis@gnu.org>
14142
14143 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14144 in <machine/reg.h>.
14145 * configure, config.in: Regenerate.
14146
48efe704
AC
14147For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14148tui/ChangeLog-1998-2003.
c906108c
SS
14149\f
14150Local Variables:
14151mode: change-log
14152left-margin: 8
14153fill-column: 74
14154version-control: never
14155End:
This page took 2.149819 seconds and 4 git commands to generate.