gas/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d6f7abdf
AC
12004-11-05 Jon Beniston <jon@beniston.com>
2
3 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
4 when an unexpected packet is received, as the target stubs
5 continually retransmit the same packet until ACKed.
6
1d225535
RC
72004-11-10 Randolph Chung <tausq@debian.org>
8
9 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 10 frame's type.
1d225535 11
2315ffec
RC
122004-11-10 Randolph Chung <tausq@debian.org>
13
14 * blockframe.c (inside_entry_func): Move to .....
15 * frame.c (inside_entry_func): ... here, and make static.
16 (backtrace_past_entry): New flag.
17 (get_prev_frame): Stop backtrace at the entry function if enabled
18 by flag. Update comments.
19 (_initialize_frame): Add command to set backtrace_past_entry flag.
20 * defs.h (inside_entry_func): Remove prototype.
21
917c78fc
MK
222004-11-10 Mark Kettenis <kettenis@gnu.org>
23
24 * dwarf2read.c: Fix formatting.
25
994b9211
AC
262004-11-10 Andrew Cagney <cagney@gnu.org>
27
28 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
29 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
30 macros with function declarations.
31 * value.c (coerce_ref, coerce_array, coerce_number)
32 (coerce_enum): New functions.
33 (value_as_long, value_as_address): Update.
34 * ada-lang.c (ada_coerce_ref, ada_value_binop)
35 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
36 * jv-lang.c (evaluate_subexp_java): Update.
37 * valarith.c (value_less, value_neg, value_complement)
38 (value_binop, value_add, value_subscript, value_x_binop)
39 (value_logical_not, value_sub): Update.
40 * valops.c (check_field, value_struct_elt, value_ind)
41 (value_find_oload_method_list, value_cast, value_assign): Update.
42 * eval.c (evaluate_subexp_standard): Update.
43
06987e64
MK
442004-11-10 Mark Kettenis <kettenis@gnu.org>
45
46 * mips-tdep.c (mips32_relative_offset): Change return type to
47 LONGEST, change argument type to ULONGEST. Fix sign-extension.
48
4a302917
RC
492004-11-10 Randolph Chung <tausq@debian.org>
50
51 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
52 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
53 (hppa_fetch_pointer_argument): Likewise.
54 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
55 deprecated_read_memory_nobpt.
56 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
57 add_set_cmd sequence with add_setshow_boolean_cmd.
58
390e974f
AC
592004-11-09 Andrew Cagney <cagney@gnu.org>
60
61 GDB 6.3 released from GDB 6.3 branch.
62
92e023d6
AC
632004-11-09 Andrew Cagney <cagney@gnu.org>
64
65 * values.c: Rename to ...
66 * value.c: ..., new file.
67 * Makefile.in: Update.
68
d10891d4
DJ
692004-11-09 Daniel Jacobowitz <dan@debian.org>
70
71 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
72 size.
73
00a4c844
AC
742004-11-09 Andrew Cagney <cagney@gnu.org>
75
c44523e7
AC
76 * TODO: Delete.
77
00a4c844
AC
78 * value.h (struct value): Delete field bfd_section.
79 (VALUE_BFD_SECTION): Delete macro.
80 (COERCE_REF): Update.
81 (value_at, value_at_lazy): Delete asection parameter.
82 * printcmd.c (print_formatted, x_command): Update.
83 (do_examine): Delete asection parameter.
84 (next_section): Delete variable.
85 * valops.c (value_cast, value_at, value_at_lazy)
86 (value_coerce_function, value_addr, value_ind, value_string)
87 (find_rt_vbase_offset, value_full_object): Update.
88 * hpacc-abi.c (hpacc_virtual_fn_field)
89 (hpacc_value_rtti_type): Update.
90 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
91 (gnuv3_baseclass_offset): Update.
92 * f-valprint.c (f_val_print): Update.
93 * c-valprint.c (c_val_print): Update.
94 * p-valprint.c (pascal_val_print): Update.
95 * jv-valprint.c (java_value_print): Update.
96 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
97 * ada-lang.c (ada_value_primitive_packed_val)
98 (ada_evaluate_subexp): Update.
99 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
100 * expprint.c (print_subexp_standard): Update.
101 * infcall.c (call_function_by_hand): Update.
102 * valarith.c (value_add): Update.
103 * eval.c (evaluate_subexp_standard): Update.
104 * values.c (allocate_value, value_copy, value_static_field): Update.
105 * findvar.c (read_var_value, locate_var_value): Update.
106
5cb2fe25
AC
1072004-11-09 Andrew Cagney <cagney@gnu.org>
108
109 * i386-linux-tdep.c: Include "dwarf2-frame.h".
110 * Makefile.in: Update all dependencies.
111
cbafadeb
AC
1122004-11-08 Andrew Cagney <cagney@gnu.org>
113
114 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
115 (sentinel_frame_unwinder): Add the prev_pc method.
116 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
117 available. Do not handle the sentinel-frame case.
118 * frame-unwind.h (frame_prev_register_ftype): Define.
119 (struct frame_unwind): Add prev_pc;
120
3b78cdbb
DA
1212004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
122
123 * configure.in: Check for ncurses/term.h.
124 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
125 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
126 * tui/tui.c: Don't include term.h.
127 * configure, config.in: Rebuilt.
128
bcfca652
MK
1292004-11-08 Mark Kettenis <kettenis@gnu.org>
130
131 * m68kbsd-nat.c: Include "inf-ptrace.h".
132 (_initialize_m68kbsd_nat): Fix pasto.
133 * Makefile.in (m68kbsd-nat.o): Update dependencies.
134
527159b7
RC
1352004-11-08 Randolph Chung <tausq@debian.org>
136
137 * infrun.c (debug_infrun): New variable.
138 (resume, proceed, wait_for_inferior): Annotate with debug messages.
139 (handle_inferior_event, keep_going): Likewise.
140 (_initialize_infrun): Register "set debug infrun" command.
141
c874c7fc
AS
1422004-11-08 Andreas Schwab <schwab@suse.de>
143
144 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
145 PTRACE_EVENT_VFORKDONE.
146 (child_follow_fork): Adjust.
147
3c8fa307
AC
1482004-11-08 Andrew Cagney <cagney@gnu.org>
149
5c26072a
AC
150 * README: Refer to 6.3, not 6.2, update directory listing droppng
151 references to intl/ and mmalloc/.
152 * PROBLEMS: Refer to 6.3 not 6.2.
153
3c8fa307
AC
154 * PROBLEMS: Delete no-longer applicable problems.
155
12b8a2cb
DJ
1562004-11-07 Andrew Cagney <cagney@redhat.com>
157 Daniel Jacobowitz <dan@debian.org>
158 Roland McGrath <roland@redhat.com>
159
160 * Makefile.in (symfile-mem.o): Update dependencies.
161 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
162 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
163 * inf-ptrace.c (inf_ptrace_attach): Call
164 observer_notify_inferior_created.
165 * inftarg.c (child_attach): Likewise.
166 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
167 (symbol_file_add_from_memory): Take NAME argument. Use it for
168 the new BFD's filename.
169 (add_symbol_file_from_memory_command): Update call to
170 symbol_file_add_from_memory.
171 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
172 (symbol_file_add_from_memory_wrapper): New.
173 (_initialize_symfile_mem): Register add_vsyscall_page as an
174 inferior_created observer.
175
abbc6945
MK
1762004-11-07 Mark Kettenis <kettenis@gnu.org>
177
178 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
179 fetch_inferior_registers. Make static.
180 (m68kbsd_store_inferior_registers): Rename from
181 store_inferior_registers. Make static.
182 (_initialize_m68kbsd_nat): Construct and add target vector.
183 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
184 inftarg.o. Add inf-ptrace.o.
185 (NAT_FILE): Set to tm-solib.h.
186 (LOADLIBES): New variable.
187 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
188 inftarg.o. Add inf-ptrace.o.
189 (NAT_FILE): Delete variable.
190 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
191 inftarg.o. Add inf-ptrace.o.
192 (NAT_FILE): Set to tm-solib.h.
193 * config/m68k/nm-nbsdaout.h: Remove file.
194
3ed09a32
DJ
1952004-11-07 Daniel Jacobowitz <dan@debian.org>
196
197 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
198 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
199 (dwarf2_signal_frame_unwind): New.
200 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
201 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
202
8e763687
MK
2032004-11-07 Mark Kettenis <kettenis@gnu.org>
204
4fb31ed0
MK
205 * Makefile.in (mips64obsd-tdep.o): Fix typo.
206
fabe86c8
MK
207 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
208 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
209 to only include the structure members we actually need.
210 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
211 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
212 only include the structure members we actually need.
213 (mipsnbsd_init_abi): Update.
214
366e93e8
MK
215 * mips64obsd-nat.c: Include "mips-tdep.h".
216 (MIPS64OBSD_NUM_REGS): Remove define.
217 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
218 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
219 floating-point registers correctly.
220 * Makefile.in (mips64obsd-nat.o): Update dependencies.
221
8e763687
MK
222 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
223 "gdb_assert.h".
224 (mips64obsd_sigframe_init): New function.
225 (mips64obsd_sigframe): New variable.
226 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
227 unwinder.
228 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
229
5f6a2351
JB
2302004-11-06 Joel Brobecker <brobecker@gnat.com>
231
232 * alpha-mdebug-tdep.c: #include mdebugread.h.
233 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
234 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
235
f059bf6f
AC
2362004-11-05 Andrew Cagney <cagney@gnu.org>
237
238 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
239 CFI and the init_reg method leave the register unspecified.
240 Include the register name in the "Incomplete CFI data" complaint.
241 Supress leading zeros in the address.
242
1234d960
MK
2432004-11-05 Mark Kettenis <kettenis@gnu.org>
244
245 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
246 skipping a personality routine in a CIE augmentation.
247
d75e3c94
JJ
2482004-11-05 Jeff Johnston <jjohnstn@redhat.com>
249
250 * defs.h (fatal, vfatal): New function prototypes.
251 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
252 via catch_errors.
253 (backtrace_command): Change to call backtrace_command_stub via
254 catch_errors instead of calling backtrace_command_1 directly.
255 (backtrace_full_command): Ditto.
256 * utils.c (error_stream_1): New static function.
257 (verror): Change to call error_stream_1 instead of error_stream.
258 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
259 (vfatal, fatal): New functions.
260
98f276a0
AC
2612004-11-05 Andrew Cagney <cagney@gnu.org>
262
263 * stack.c (parse_frame_specification_1): Clear selected_frame_p
264 when not using selected frame.
265
f724bf08
MK
2662004-11-05 Mark Kettenis <kettenis@jive.nl>
267
268 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
269 personality routine in a CIE augmentation.
270
c789492a
FL
2712004-11-05 Felix Lee <felix+log1@specifixinc.com>
272
273 * stack.c (set_current_sal_from_frame): New function.
274 (print_args_stub): Use it.
275 (print_frame_info): Don't set sal here.
276
a81b10ae
MK
2772004-11-04 Mark Kettenis <kettenis@gnu.org>
278
279 * dwarf2-frame.c (read_encoded_value): Change type of third
280 argument to `unsigned char *'. Add support for LEB128 encodings.
281
ad766c0a
JB
2822004-11-04 Jim Blandy <jimb@redhat.com>
283
284 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
285 prevent cross-objfile references.
286 (make_cv_type): Doc fix. Don't create cross-objfile references,
287 even for stub types.
288 (replace_type): Add assertion to prevent cross-objfile references.
289 (check_typedef): Never resolve a stub type by copying over a type
290 from another file.
291
c46b0409 2922004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 293
c46b0409
KI
294 * Makefile.in (m32r-tdep.o): Update dependencies.
295 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
296 ABI-specific overrides.
297
9f0b0322 2982004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 299
9f0b0322
KI
300 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
301 unnecessary parallel execution bit.
302 (m32r_memory_remove_breakpoint): Ditto.
303 (m32r_breakpoint_from_pc): Update.
304
d5c27f81
RC
3052004-11-03 Randolph Chung <tausq@debian.org>
306
307 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 308 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
309 (hppa_frame_this_id): Likewise.
310
4577593c
AC
3112004-11-03 Andrew Cagney <cagney@gnu.org>
312
313 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
314 packet, obsolete configurations, end-of-life deprecated_registers.
315
b04de778
MK
3162004-11-02 Mark Kettenis <kettenis@gnu.org>
317
318 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
319 encodings as well as unsigned encodings.
320
9f2feefc
AC
3212004-11-02 Andrew Cagney <cagney@gnu.org>
322
323 * value.h (COERCE_VARYING_ARRAY): Delete.
324 * valops.c (value_cast, value_slice): Delete use.
325 * valarith.c (value_subscript, value_concat): Delete use.
326
117ea3cf
PH
3272004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
328
329 * NEWS: GDB understands GNAT Ada.
330
0bbc026e
JM
3312004-11-01 Joseph S. Myers <joseph@codesourcery.com>
332
333 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
334 (amd64-sol2-tdep.o): Add dependencies.
335 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
336 config/i386/sol2-64.mt: New files.
337 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
338 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
339 (supply_gregset): Correct order of arguments to
340 amd64_supply_native_gregset.
341 (fill_gregset): Correct order of arguments to
342 amd64_collect_native_gregset.
343 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
344 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
345 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
346 for definition of NEW_PROC_API.
347 * configure: Regenerate.
348
3d38a0a5
JM
3492004-11-01 Joseph S. Myers <joseph@codesourcery.com>
350
351 * MAINTAINERS (Write After Approval): Add myself.
352
f81cd1cf
AC
3532004-11-01 Andrew Cagney <cagney@gnu.org>
354
355 * configure.tgt: Mark d10v-*-* as obsolete.
356 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
357
f4e88c8e
PH
3582004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
359
360 * values.c (modify_field): Correct handling of bit-fields that
361 don't fit in 32 bits. Use unsigned operations throughout and
362 simplify the code a bit. Document preconditions.
363
84674fe1
AC
3642004-10-31 Andrew Cagney <cagney@gnu.org>
365
96693b3a
AC
366 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
367 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
368 (in_plt_section): Delete.
369
6f296f8f
AC
370 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
371 (mips_gdbarch_init): Do not set same.
372
618501c0
AC
373 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
374 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
375
b22e8f02
AC
376 * gdbarch.sh (in_solib_call_trampoline): Delete.
377 * gdbarch.h, gdbarch.c: Re-generate.
378
84674fe1
AC
379 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
380 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
381 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
382 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
383 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
384
c6d1029f
MK
3852004-10-31 Mark Kettenis <kettenis@gnu.org>
386
387 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
388 (mipsnbsd_fetch_inferior_registers): Rename from
389 fetch_inferior_registers. Make static.
390 (mipsnbsd_store_inferior_registers): Rename from
391 store_inferior_registers. Make static.
392 (_initialize_mipsnbsd_nat): New function and prototype.
393 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
394 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
395 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
396 inf-ptrace.o.
397
bd9ca83f
AC
3982004-10-31 Andrew Cagney <cagney@gnu.org>
399
19d718a3
AC
400 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
401 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
402 delete corresponding unused function.
403 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
404 in_solib_call_trampoline.
405 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
406 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
407 * config/mips/tm-nbsd.h: Ditto.
408 * config/arm/tm-linux.h: Ditto.
409 * config/mips/tm-linux.h: Ditto.
410
e8ce19c0
AC
411 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
412 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
413 in_solib_call_trampoline, delete corresponding unused function.
414 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
415 (vaxnbsd_aout_init_abi): Ditto.
416 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
417 (sparc32nbsd_aout_init_abi): Ditto.
418 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
419 (ppc_linux_init_abi): Ditto.
420 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
421 (ns32knbsd_init_abi_aout): Ditto.
422 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
423 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
424 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
425 (m68kbsd_aout_init_abi): Ditto.
426 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
427 (i386_cygwin_init_abi): Ditto.
428 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
429 (i386bsd_init_abi): Ditto.
430
af380d61
AC
431 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
432 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
433 isn't used by this architecture.
434 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
435 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
436 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
437 * s390-tdep.c (s390_gdbarch_init): Ditto.
438 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
439 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
440 * i386-tdep.c (i386_svr4_init_abi): Ditto.
441 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
442 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
443 * amd64-tdep.c (amd64_init_abi): Ditto.
444
0528d9f7
AC
445 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
446 in_solib_call_trampoline to its default value of
447 generic_in_solib_call_trampoline.
448 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
449 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
450 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
451 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
452 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
453 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
454
f9f9eacb
AC
455 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
456
a4ffd1e7
AC
457 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
458
82e34d2f
AC
459 * config/mips/tm-mips.h: Delete file.
460 * remote-mips.c: Delete tm-mips.h from comment.
461 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
462 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
463 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
464 * config/mips/tm-linux.h: Don't include tm-mips.h.
465 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
466 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
467 * config/mips/tm-wince.h: Don't include.
468
75dec9cf
AC
469 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
470 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
471 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
472 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
473
bd9ca83f
AC
474 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
475 * mdebugread.c (ecoff_relocate_efi): Delete function.
476 * objfiles.c (objfile_relocate): Delete #ifdef
477 MDEBUG_EFI_SYMBOL_NAME code.
478
3352ef37
AC
4792004-10-31 Orjan Friberg <organ.friberg@axis.com>
480 Andrew Cagney <cagney@gnu.org>
481
482 * gdbarch.sh (single_step_through_delay): Add.
483 * gdbarch.h, gdbarch.c: Re-generate.
484 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
485 (mips_step_skips_delay): Delete.
486 * mips-tdep.c (mips_single_step_through_delay): Replace
487 mips_step_skips_delay.
488 (mips_gdbarch_init): Set single_step_through_delay.
489 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
490
2440b685
MK
4912004-10-31 Mark Kettenis <kettenis@gnu.org>
492
493 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
494 from TRAMP_FRAME frame type.
495
56a2fed5
AC
4962004-10-31 Andrew Cagney <cagney@gnu.org>
497
9b792b1d
AC
498 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
499
0a5e8d98
AC
500 * mips-tdep.c (mips_ignore_helper): Delete.
501 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
502 * infrun.c (handle_inferior_event): Delete #ifdef
503 DEPRECATED_IGNORE_HELPER_CALL code.
504
56a2fed5
AC
505 * config/mips/tm-mips.h (RA_REGNUM): Delete.
506
f69c55b2
MK
5072004-10-31 Mark Kettenis <kettenis@gnu.org>
508
509 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
510 (fill_fpregset): Do not compile for 64-bit systems.
511 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
512 * Makefile.in (i386-sol2-nat.o): Update dependencies.
513 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
514
d37cca3d
AC
5152004-10-30 Andrew Cagney <cagney@gnu.org>
516
36b8628e
AC
517 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
518 (struct mdebug_extra_func_info): Define.
519 * config/alpha/tm-alpha.h: Delete same.
520 * config/mips/tm-mips.h: Delete same.
521 * mdebugread.c: Delete same.
522 * Makefile.in: Update dependencies.
523 * mips-mdebug-tdep.c: Include "mdebugread.h".
524
5b123146
AC
525 * objfiles.c: Include "mdebugread.h".
526 * mdebugread.c: Include "mdebugread.h".
527 (ecoff_relocate_cfi): Delete.
528 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
529 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
530 * mdebugread.h (ecoff_relocate_efi): New file.
531 * Makefile.in: Update dependencies.
532
b9c3a7de
AC
533 * mips-tdep.c (struct frame_extra_info): Delete.
534 (temp_proc_desc): Delete.
535
f92761ec
AC
536 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
537 MIPS_EFI_SYMBOL_NAME.
538 (mips_extra_func_info_t, mips_extra_func_info): Delete.
539 (struct mdebug_extra_func_info): Replace struct
540 alpha_extra_func_info and alpha_extra_func_info_t.
541 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
542 MIPS_EFI_SYMBOL_NAME.
543 (struct mdebug_extra_func_info): Replace struct
544 alpha_extra_func_info and alpha_extra_func_info_t.
545 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
546 * mdebugread.c, alpha-mdebug-tdep.c:
547
0bb57b31
AC
548 Suggested by Mark Kettenis.
549 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
550 fields frame_adjust and high_addr.
551 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
552 (non_heuristic_proc_desc): Delete references.
553
a5c9623c
AC
554 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
555 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
556 * mips-tdep.c: Update.
557
607fc93c
AC
558 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
559 (MIPS_LAST_EMBED_REGNUM): Add.
560 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
561 (LAST_EMBED_REGNUM): Delete.
562 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
563
24e05951
AC
564 * config/mips/tm-mips.h (PS_REGNUM): Delete.
565 * mips-tdep.h (MIPS_PS_REGNUM): Add.
566 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
567 * mips-linux-nat.c: Update.
568
613e114f
AC
569 * mips-tdep.h: Add comments on registers.
570 (MIPS_UNUSED_REGNUM): Define.
571 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
572 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
573 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
574 * mips-linux-nat.c, remote-mips.c: Update.
575
d37cca3d
AC
576 * config/mips/tm-mips.h (t_insn): Delete.
577 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
578 Replace t_insn with ULONGEST.
579
ceb41096
MK
5802004-10-30 Mark Kettenis <kettenis@gnu.org>
581
d1180b0f
MK
582 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
583 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
584 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
585 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
586 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
587 (mipsnbsd_core_osabi_sniffer): New function.
588 (mipsnbsd_init_abi): Set regset_from_core_section.
589 (_initialize_mipsnbsd_tdep): Remove calls to
590 deprecated_add_core_fns.
591 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
592 (mipsnbsd_regset_from_core_section): New functions.
593 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
594 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
595
ceb41096
MK
596 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
597 Remove optimization for DEPRECATED_FP_REGNUM.
598
ec4045ea
AC
5992004-10-30 Andrew Cagney <cagney@gnu.org>
600
cd65c8f6
AC
601 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
602 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
603 (alpha_setup_arbitrary_frame): Delete.
604 * mips-tdep.c (setup_arbitrary_frame): Delete.
605 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
606 (setup_arbitrary_frame): Delete.
607 * stack.c (parse_frame_specification_1): When specified, call
608 create_new_frame with two parameters. Delete #ifdef
609 SETUP_ARBITRARY_FRAME.
610
95ac2dcf
AC
611 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
612 (MIPS_INSTLEN): Delete.
613 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
614 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
615 * remote-mips.c, mips-tdep.c: Update.
616
1a8da44d
AC
617 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
618 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
619 * mips-tdep.c (mips_mdebug_frame_cache)
620 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
621 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
622 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
623 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
624 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
625 (mips_gdbarch_init): Do not append mdebug sniffers.
626 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
627 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
628 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
629 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
630 * Makefile.in: Update dependencies.
631
e6bc2e8a
AC
632 * mips-tdep.h (mips_abi_regsize): Declare.
633 * mips-tdep.c (mips_abi_regsize): Make non-static.
634
ec4045ea
AC
635 * mips-tdep.c (gdb_print_insn_mips): Simplify.
636 (make_mips16_addr): Delete.
e6bc2e8a 637
6b16acab
MK
6382004-10-30 Mark Kettenis <kettenis@gnu.org>
639
640 * i386-sol2-nat.c: New file.
641 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
642 i386-sol2-tdep.c.
643 (i386-sol2-nat.o): Update dependencies.
644 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
645 i386-sol2-nat.o.
646
8b622e6a
AC
6472004-10-30 Andrew Cagney <cagney@gnu.org>
648
649 Total breakage identified by Joel Brobecker.
650 * mips-tdep.c (after_prologue): Delete.
651 (mips_skip_prologue): Use skip_prologue_using_sal.
652 (heuristic_proc_desc): Delete, unused.
653
772cf8be
MK
6542004-10-30 Mark Kettenis <kettenis@gnu.org>
655
656 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
657 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
658 Cleanup coding style.
659
9c8fdbfa
AC
6602004-10-30 Andrew Cagney <cagney@gnu.org>
661
0fe7e7c8
AC
662 * mips-tdep.h (mips_pc_is_mips16): Declare.
663 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
664 non-static. Update calls.
665
1b295c3d
AC
666 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
667 * command.h (add_setshow_enum_cmd): Declare.
668 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
669
6bcadd06
AC
670 * mips-tdep.c (_initialize_mips_tdep): Use
671 add_setshow_zinteger_cmd.
672
9c8fdbfa
AC
673 * mips-tdep.c (mips_eabi_extract_return_value)
674 (mips_o64_extract_return_value, mips_o64_store_return_value)
675 (return_value_location, mips_eabi_reg_struct_has_addr)
676 (mips_eabi_use_struct_convention)
677 (mips_eabi_store_return_value): Delete.
678 (mips_eabi_store_return_value): New function.
679 (mips_eabi_return_value): New function.
680 (mips_gdbarch_init): For O64 and EABI, delete
681 extract_return_value, store_return_value, use_struct_convention
682 and reg_struct_has_addr, add return_value.
683
1d93fe1a
AC
684 * mips-tdep.c (read_signed_register): Use
685 regcache_cooked_read_signed.
686
303d2914
MK
6872004-10-30 Mark Kettenis <kettenis@gnu.org>
688
689 * mipsread.c: Cleanup coding style.
690 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
691 (mipscoff_symfile_finish): Remove prototypes.
692
6932004-10-29 Mark Kettenis <kettenis@gnu.org>
694
695 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
696 (mips_mdebug_frame_cache, mips16_scan_prologue)
697 (mips32_scan_prologue, mips_stub_frame_cache)
698 (heuristic_proc_start, heuristic_proc_desc)
699 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
700 (mips_n32n64_return_value, mips_o32_push_dummy_call)
701 (mips_o32_return_value, mips_o64_push_dummy_call)
702 (mips_step_skips_delay, mips_skip_trampoline_code)
703 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
704 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
705 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
706 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
707 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
708 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
709 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
710 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
711 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
712 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
713 ZERO_REGNUM.
714 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
715 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
716 ZERO_REGNUM.
717 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
718 A0_REGNUM.
719 * mipsnbsd-nat.c: Include "mips-tdep.h".
720 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
721 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
722
1c8831c5
AC
7232004-10-29 Andrew Cagney <cagney@gnu.org>
724
725 * stack.c (parse_frame_specification_1): New function based on
726 parse_frame_specification. Add message and selected_frame_p
727 paramters. Truely always return non-NULL.
728 (parse_frame_specification): Call parse_frame_specification_1.
729 (frame_info): Update. Eliminate target_has_stack check.
730 (select_frame_command): Update.
731
b04f3ab4
AC
7322004-10-29 Andrew Cagney <cagney@gnu.org>
733
734 * frame.h (get_selected_frame): Add message parameter.
735 * frame.c (get_selected_frame): Add and use message parameter.
736 * stack.c (current_frame_command, return_command, locals_info)
737 (catch_info, args_info, up_silently_base, down_silently_base): Use
738 get_selected_frame with an explicit message.
739 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
740 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
741 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
742 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
743 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
744 * breakpoint.c: Update.
745
7462004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
747
748 * trad-frame.c (trad_frame_get_prev_register): Use
749 frame_unwind_register instead of frame_register_unwind, do not
750 recurse the register's location.
751 * xstormy16-tdep.c (xstormy16_frame_prev_register):
752 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
753 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
754 * sh-tdep.c (sh_frame_prev_register): Ditto.
755 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
756 * i386-tdep.c (i386_frame_prev_register): Ditto.
757 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
758 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
759
7a952542
MK
7602004-10-28 Mark Kettenis <kettenis@jive.nl>
761
c18c06be
MK
762 * proc-events.c: Fix several coding-style issues. Consistently
763 use #ifdef instead of #if defined().
764 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
765 ARRAY_SIZE.
766 (_initialize_proc_events): New prototype.
767
7a952542
MK
768 * proc-why.c: Fix several coding-style issues.
769 (proc_prettyfprint_why): Use ARRAY_SIZE.
770
fcad0fa4
JB
7712004-10-27 Jim Blandy <jimb@redhat.com>
772
773 * remote.c (fetch_register_using_p): Construct 'p' packet in a
774 manner independent of the host byte order.
775
c163184f
MK
7762004-10-27 Mark Kettenis <kettenis@gnu.org>
777
778 * mips-tdep.c (id_delayed): Remove prototype.
779
9c46b6f0
MK
7802004-10-26 Mark Kettenis <kettenis@gnu.org>
781
782 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
783 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
784 to enum with register numbers.
785 (enum mips_insn_size): New enum.
786
0d0266c6
AC
7872004-10-26 Andrew Cagney <cagney@gnu.org>
788
e7d6a6d2
AC
789 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
790 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
791 (mips_gdbarch_init): Update.
792 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
793
c5115f39
AC
794 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
795 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
796 IN_SOLIB_RETURN_TRAMPOLINE.
797 * mips-tdep.c (mips_dump_tdep): Do not print
798 IN_SOLIB_RETURN_TRAMPOLINE.
799 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
800 (mips_gdbarch_init): Update.
801
0d0266c6
AC
802 * mips-tdep.h (mips_software_single_step): Move to here ...
803 * config/mips/tm-mips.h: ... from here.
804 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
805 (SOFTWARE_SINGLE_STEP): Delete.
806 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
807
156a53ca
AC
8082004-10-25 Andrew Cagney <cagney@gnu.org>
809
810 * NEWS: Add Changes since GDB 6.3 section.
811
f27cf670
AS
8122004-10-23 Andreas Schwab <schwab@suse.de>
813
156a53ca
AC
814 * ada-lang.c (grow_vect): Return the new array instead of
815 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
816 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
817
121d8485
UW
8182004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
819
820 * s390-tdep.c (enum pv_boolean): Remove.
821 (pv_is_array_ref): Remove.
822 (s390_on_stack): Remove.
823 (S390_NUM_SPILL_SLOTS): Remove.
824 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
825 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
826 (s390_store): Track all stores of orginal incoming registers to the
827 stack constant offsets relative to the CFA, instead of only tracking
828 stores into specific spill slots.
829 (s390_load): Likewise.
830 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
831 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
832 defined as call-saved by the ABI.
833 (s390_push_dummy_call): Use bottom of dummy call argument save area
834 as return value, not the top. Do not store to the called function's
835 register save area.
836 (s390_unwind_dummy_id): Adapt accordingly.
837
0a6ddd08
AC
8382004-10-23 Andrew Cagney <cagney@gnu.org>
839
840 * objfiles.h (struct objfile): Rename obj_private to
841 deprecated_obj_private, sym_private to deprecated_sym_private, and
842 sym_stab_info to deprecated_sym_stab_info.
843 * gdb-stabs.h: Update.
844 * elfread.c: Update.
845 * dbxread.c: Update.
846 * coffread.c: Update.
847 * xcoffread.c: Update.
848 * symfile.c: Update.
849 * somread.c: Update.
850 * nlmread.c: Update.
851 * mdebugread.c: Update.
852 * hpread.c: Update.
853 * coffread.c: Update.
854
abc08782
MK
8552004-10-23 Mark Kettenis <kettenis@gnu.org>
856
857 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
858 * configure.host: Add mips64*-*-openbsd*.
859 * configure.tgt: Add mips64*-*-openbsd*.
860 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
861 mips64obsd-tdep.c.
862 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
863 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
864
fc062ac6
JB
8652004-10-21 Joel Brobecker <brobecker@gnat.com>
866
867 * symtab.c (symbol_search_name): Minor reformatting.
868
5bccb4d1
JB
8692004-10-20 Joel Brobecker <brobecker@gnat.com>
870
871 * symtab.h: Fix typo in comment.
872
a738430d
MK
8732004-10-19 Mark Kettenis <kettenis@gnu.org>
874
875 * dwarf2read.c (struct comp_unit_head): Fix coding style.
876 (dwarf_decode_line_header): Likewise.
877
f2cb65ca
MC
8782004-10-19 Michael Chastain <mec.gnu@mindspring.com>
879
880 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
881
09e55376
AC
8822004-10-19 Andrew Cagney <cagney@gnu.org>
883
884 GDB 6.3 branch created.
885 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
886
bc5f45f8
JB
8872004-10-15 Joel Brobecker <brobecker@gnat.com>
888
889 * dwarf2read.c (set_cu_language): Set language to Ada for
890 DW_LANG_Ada83 and DW_LANG_Ada95.
891
2941da8c
MC
8922004-10-15 Michael Chastain <mec.gnu@mindspring.com>
893
894 From Andreas Schwab <schwab@suse.de>:
895 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
896 for xmalloc and xrealloc.
897
34a17005
AC
8982004-10-15 Andrew Cagney <cagney@gnu.org>
899
900 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
901 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
902 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
903 Update dependencies.
904
714e53ab
PH
9052004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
906
907 * ada-lang.c (ada_lookup_symbol): Correct comment.
908 (ada_evaluate_subexp): Change error message for
909 OP_FUNCALL case so as not to indicate an internal error.
910
9112004-10-15 Joel Brobecker <brobecker@gnat.com>
912
913 Committed by Paul Hilfinger.
914 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
915 type sizes in XVE/XVU types, and emit a warning when that happens,
916 instead of rounding up the size of the resulting type.
917 Some minor reformatting.
918 (ada_is_aligner_type): Do not consider a type as an aligner type
919 if there is a corresponding XVS type as well.
920 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
921 have several levels of pointer indirection to the array.
922
9232004-10-15 Jerome Guitton <guitton@gnat.com>
924
925 Committed by Paul Hilfinger.
926 * ada-lang.c (check_size): New function.
927 (coerce_unspec_val_to_type): call check_size to make sure
928 that the object size is reasonable.
929 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
930 Implements the case when we get a reference when we evaluate
931 the expression of one of the bounds of the slice.
932 (ada_value_struct_elt): when a packed array field is
933 a reference, use ada_coerce_ref to dereference it; use
934 ada_value_ind only if it is a pointer.
935
29639122
JB
9362004-10-15 Joel Brobecker <brobecker@gnat.com>
937
938 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
939 a bit to avoid the necessity of an advance declaration. Remove
940 declaration.
941 (set_reg_offset): Move implemenation up.
942 (mips16_get_imm): Likewise.
943 (mips16_scan_prologue): Likewise.
944 (reset_saved_regs): Likewise.
945 (mips32_scan_prologue): Likewise.
946
a65bbe44
JB
9472004-10-14 Joel Brobecker <brobecker@gnat.com>
948
949 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
950 Remove sp as a parameter, compute it internally instead. Move
951 prologue scanning limit from heuristic_proc_desc to here.
952 (mips16_scan_prologue): Likewise.
953 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
954 by call to mips16_scan_prologue.
955 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
956 by call to mips32_scan_prologue.
957 (heuristic_proc_desc): Remove code that's no longer necessary.
958 Update calls to mips16_scan_prologue and mips32_scan_prologue.
959 (mips_skip_prologue): Update calls to mips16_scan_prologue
960 and mips32_scan_prologue.
961
1c645fec
JB
9622004-10-14 Joel Brobecker <brobecker@gnat.com>
963
964 * mips-tdep.c (mips16_scan_prologue): Merge code from
965 mips16_skip_prologue. Now return the address of the first
966 instruction past the function prologue.
967 (mips16_skip_prologue): Remove, no longer necessary.
968 (mips_skip_prologue): Replace call to mips16_skip_prologue
969 by call to mips16_scan_prologue.
970
98b4dd94
JB
9712004-10-14 Joel Brobecker <brobecker@gnat.com>
972
973 * mips-tdep.c (mips32_scan_prologue): Merge code from
974 mips32_skip_prologue. Now return the address of the first
975 instruction past the function prologue.
976 (mips32_skip_prologue): Remove. No longer necessary.
977 (mips16_skip_prologue): Add parameter end_pc instead of
978 computing it.
979 (mips_skip_prologue): Compute the upper limit for the
980 prologue scanning. Update call to mips16_skip_prologue.
981 Replace call to mips32_skip_prologue by call to
982 mips32_scan_prologue.
983
ad4c72d2
MK
9842004-10-14 Mark Kettenis <kettenis@gnu.org>
985
dfaf8edb
MK
986 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
987 NetBSD system call stubs that store %rp in the ERP slot of the
988 stack frame.
989
3e3a28f1
MK
990 * source.c: Always define O_BINARY to 0 if not defined already.
991 (openp): Unconditionally use O_BINARY.
992
ad4c72d2
MK
993 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
994 * event-top.c (gdb_readline2): Likewise.
995
52bd1401
OF
9962004-10-14 Orjan Friberg <orjanf@axis.com>
997
998 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
999 deprecated_add_core_fns which was removed by mistake.
1000
e0e25c6c
KB
10012004-10-13 Kevin Buettner <kevinb@redhat.com>
1002
1003 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1004 references to deprecated_registers[] with equivalent code.
1005
9f335945
KB
10062004-10-13 Kevin Buettner <kevinb@redhat.com>
1007
1008 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1009 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1010 instead of explicit test and print statement.
1011
06c2338d
MK
10122004-10-12 Mark Kettenis <kettenis@gnu.org>
1013
1b9445c2
MK
1014 * sparc-nat.c: Include "inf-ptrace.h".
1015 (sparc_target): New function.
1016 * sparc-nat.h: Update copyright year.
1017 (sparc_target): New prototype.
1018 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1019 (_initialize_sparcnbsd_nat): Construct and add target vector.
1020 * sparc64nbsd-nat.c: Include "target.h".
1021 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1022 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1023 Update dependencies.
1024 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1025 inftarg.o, add inf-ptrace.o.
1026 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1027 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1028 (NAT_FILE): Set to nm-bsd.h.
1029 (LOADLIBES): New variable.
1030 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1031 infarg.o, add inf-ptrace.o.
1032 * config/sparc/nm-nbsdaout.h: Remove file.
1033 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1034 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1035 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1036
06c2338d
MK
1037 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1038 "fopen-same.h". Update comment.
1039
3303a276
MK
10402004-10-11 Mark Kettenis <kettenis@gnu.org>
1041
1042 * i386gnu-nat.c: Include "gdb_string.h".
1043 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1044 registers when the floating-point state isn't initialized.
1045 * Makefile.in (i386gnu-nat.o): Update dependencies.
1046
04c663e3
DA
10472004-10-11 David Anderson <davea@sgi.com>
1048
1049 * regcache.c (regcache_raw_read): Comment was missing "to".
1050 Extraneous ' removed.
1051 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1052 comment now describes use.
1053
a5f6c8f5
OF
10542004-10-11 Orjan Friberg <orjanf@axis.com>
1055
1056 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1057 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1058 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1059 (cris_sigtramp_frame_sniffer): New functions.
1060 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1061 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1062 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1063 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1064 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1065 command.
1066 (cris_version_update): Remove, replace with ...
1067 (set_cris_version): New function.
1068 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1069 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1070 (_initialize_cris_tdep): Remove CRIS mode command.
1071 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1072 cris-fpless-backtrace command.
1073 (cris_scan_prologue): Fix prologue scanning limit.
1074 (cris_register_type): Update to reflect actual registers.
1075 (cris_register_bytes_ok) Remove.
1076 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1077 Remove set_gdbarch_deprecated_register_size,
1078 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1079
77109804
AC
10802004-10-10 Andrew Cagney <cagney@gnu.org>
1081
1082 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1083 comment.
1084
25652d4f
JB
10852004-10-10 Joel Brobecker <brobecker@gnat.com>
1086
1087 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1088
1e05a7bf
JB
10892004-10-10 Joel Brobecker <brobecker@gnat.com>
1090
1091 * mips-tdep.c (mips16_scan_prologue): Renames
1092 mips16_heuristic_proc_desc. Update comment.
1093 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1094 (heuristic_proc_desc): Update calls to the 2 functions above.
1095
c68a4142
JB
10962004-10-10 Joel Brobecker <brobecker@gnat.com>
1097
1098 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1099 Update comments. Also immediately return empty cache when the start
1100 address of our function could not be found.
1101 (mips_insn32_frame_cache): Likewise.
1102
0fce0821
JB
11032004-10-10 Joel Brobecker <brobecker@gnat.com>
1104
1105 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1106 (mips_insn16_frame_cache): Pass frame cache in call to
1107 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1108 Remove code that became redundant as a consequence.
1109 (mips32_heuristic_proc_desc): No longer compute a fake
1110 procedure descriptor. Compute the full frame cache instead.
1111 Some minor comment reformatting.
1112
b672553e
JB
11132004-10-10 Jim Blandy <jimb@redhat.com>
1114
1115 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1116 reader, tracing bytecode stuff): Remove self.
1117
9cc52bde
MK
11182004-10-10 Mark Kettenis <kettenis@gnu.org>
1119
cc9784b6
MK
1120 * sparc64-linux-tdep.c: Update copyright year. Don't include
1121 "solib-svr4.h".
1122 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1123 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1124 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1125
ee8aef23
MK
1126 * sparc-linux-tdep.c: Update copyright year.
1127 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1128 to struct frame_info *. Use safe_frame_unwind_memory instead of
1129 deprecated_read_memory_nobpt.
1130 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1131 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1132 changed signature of sparc_linux_sigtramp_start.
1133 (sparc32_linux_pc_in_sigtramp): Remove function.
1134 (sparc32_linux_sigtramp_p): New function.
1135 (sparc32_linux_sigtramp_frame_sniffer): Use
1136 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1137
bc73f8cc
MK
1138 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1139 Remove function.
1140 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1141
a2249542
MK
1142 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1143 (decode_packed_array_type, value_subscript_packed)
1144 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1145 argument in call to lim_warning.
1146
9cc52bde
MK
1147 * configure.in: Really disable the TUI if an enhanced curses
1148 library isn't found.
1149 * configure: Regenerate.
1150
151fc45b
MK
11512004-10-09 Mark Kettenis <kettenis@gnu.org>
1152
1153 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1154 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1155 * config/i386/nm-nbsdaout.h: Remove file.
1156 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1157 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1158 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1159 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1160 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1161 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1162 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1163 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1164 (ldd, ld_un, ld_2): Remove defines.
1165 * config/i386/nm-obsd.h: Likewise.
1166
375c0479
PH
11672004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1168
1169 * ada-lex.l: Remove useless rule whose right-context clause
1170 causes unreferenced static function warning for yyrealloc.
1171 (ada_flex_use): Remove the artificial reference to yyrealloc.
1172
c8e73a31
AC
11732004-10-08 Andrew Cagney <cagney@gnu.org>
1174
1175 * target.h (struct target_ops): Rename to_xfer_memory to
1176 deprecated_xfer_memory.
1177 * target.c: Update.
1178 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1179 * wince.c: Update.
1180 * win32-nat.c: Update.
1181 * v850ice.c: Update.
1182 * uw-thread.c: Update.
1183 * thread-db.c: Update.
1184 * sol-thread.c: Update.
1185 * remote.c: Update.
1186 * remote-vx.c: Update.
1187 * remote-st.c: Update.
1188 * remote-sim.c: Update.
1189 * remote-sds.c: Update.
1190 * remote-rdp.c: Update.
1191 * remote-rdi.c: Update.
1192 * remote-mips.c: Update.
1193 * remote-m32r-sdi.c: Update.
1194 * remote-e7000.c: Update.
1195 * procfs.c: Update.
1196 * ppc-bdm.c: Update.
1197 * nto-procfs.c: Update.
1198 * monitor.c: Update.
1199 * linux-nat.c: Update.
1200 * inftarg.c: Update.
1201 * hpux-thread.c: Update.
1202 * go32-nat.c: Update.
1203 * gnu-nat.c: Update.
1204 * exec.c: Update.
1205 * corelow.c: Update.
1206 * bsd-kvm.c: Update.
1207 * aix-thread.c: Update.
1208
aa869812
AC
12092004-10-08 Andrew Cagney <cagney@gnu.org>
1210
1211 * target.c (debug_target): Move to near start of file.
1212 (target_stopped_data_address_p): Re-org logic, add casts.
1213
8dcef9cf
MK
12142004-10-02 Mark Kettenis <kettenis@gnu.org>
1215
1216 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1217 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1218 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1219 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1220 New defines.
1221
4aa7a7f5
JJ
12222004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1223
1224 * target.h (to_stopped_data_address): Change prototype to
1225 take a CORE_ADDR pointer and return an int.
1226 * target.c (update_current_target): Change to_stopped_data_address
1227 to match new prototype.
1228 (debug_to_stopped_data_address): Change appropriately.
1229 * breakpoint.c (bpstat_stop_status): Change call to
1230 target_stopped_data_address to use new prototype.
1231 * frv-tdep.c (frv_have_stopped_data_address): New function.
1232 (frv_stopped_data_address): Change to new prototype and
1233 functionality.
1234 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1235 prototype and functionality.
1236 (ia64_stopped_by_watchpoint): New function.
1237 * i386-nat.c (i386_stopped_data_address): Change to new
1238 prototype and functionality.
1239 (i386_stopped_by_watchpoint): New function.
1240 * remote.c (remote_stopped_data_address): Change to new prototype
1241 and functionality.
1242 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1243 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1244 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1245 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1246 new i386_stopped_by_watchpoint function.
1247 (i386_stopped_by_watchpoint): New prototype.
1248 (i386_stoppped_data_address): Change to new prototype.
1249 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1250 new ia64_stopped_by_watchpoint function.
1251 (ia64_stopped_by_watchpoint): New prototype.
1252 (ia64_stopped_data_address): Ditto.
1253
61ee279c
PH
12542004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1255
1256 * ada-typeprint.c (ada_print_type): Use int_string for printing
1257 modulus of modular type.
1258 * ada-lang.h (ada_modulus): Change return type to unsigned.
1259 * ada-lang.c (ada_language_arch_info): Correct type of
1260 string_char_type.
1261 (ada_modulus): Return unsigned result.
1262 (ada_lookup_symbol): Remove user disambiguation and modify comment
1263 accordingly.
1264
12652004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1266
1267 Committed by Paul Hilfinger.
1268 * ada-lang.c (decode_packed_array): On big-endian targets,
1269 left-justify the value if it comes with a modular type.
1270
12712004-10-08 Joel Brobecker <brobecker@gnat.com>
1272
1273 Committed by Paul Hilfinger.
1274 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1275 (is_name_suffix): Add support for "___JM" suffixes.
1276 (ada_check_typedef): Renames ada_completed_type.
1277 Update all users of CHECK_TYPEDEF, check_typedef, and
1278 ada_complete_type to call ada_check_typedef.
1279 * ada-typeprint.c: Likewise.
1280 * ada-valprint.c: Likewise.
1281
b6c25a56
CV
12822004-10-08 Corinna Vinschen <vinschen@redhat.com>
1283
1284 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1285
83ca6a46
NR
12862004-10-08 Nick Roberts <nickrob@snap.net.nz>
1287
1288 * MAINTAINERS: Update e-mail address.
1289
1fd8cd20
DJ
12902004-10-07 Daniel Jacobowitz <dan@debian.org>
1291
1292 From Maciej W. Rozycki <macro@mips.com>:
1293 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1294 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1295
cea15572
KI
12962004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1297
1298 * m32r-tdep.c (decode_prologue): Support functions written
1299 in assembler language. Recognize trap instructions as the
1300 end of prologue.
1301 (m32r_frame_unwind_cache): Ditto.
1302 (m32r_skip_prologue): Extend search limit. Quit analyzing
1303 prologue if pc's location is not readable.
1304
23485554
PH
13052004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1306
1307 * Makefile.in (.l.c): Do conversions of names of alloc and free
1308 functions that are done for .y.c files, plus special one
1309 for yy_flex_realloc. Also, correct missing-file tests here.
1310 * ada-lex.l (malloc, free): Remove macros.
1311 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1312 xrealloc.
1313 (ada_flex_use): Dummy definition to remove warnings about unused
1314 functions.
1315 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1316 to suppress warning.
1317
c0409442
CV
13182004-10-06 Corinna Vinschen <vinschen@redhat.com>
1319
1320 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1321 RETURN_VALUE.
1322 (sh_return_value_fpu): Ditto for CPUs with FPU.
1323 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1324 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1325 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1326 RETURN_VALUE functions.
1327
9bed62d7
CV
13282004-10-06 Corinna Vinschen <vinschen@redhat.com>
1329
1330 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1331 (sh_pseudo_register_write): Ditto.
1332
03131d99
CV
13332004-10-06 Corinna Vinschen <vinschen@redhat.com>
1334
1335 * sh-tdep.c (IS_MACL_STS): New define.
1336 (IS_MOVI20): Ditto.
1337 (IS_MACL_LDS): Ditto.
1338 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1339 instructions in prologue.
1340 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1341 instructions in epilogue.
1342
da962468
CV
13432004-10-06 Corinna Vinschen <vinschen@redhat.com>
1344
1345 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1346 (sh_sh_register_name): Add eight empty register names.
1347 (sh_sh3_register_name): Ditto.
1348 (sh_sh3e_register_name): Ditto.
1349 (sh_sh2e_register_name): Ditto.
1350 (sh_sh2a_register_name): New function, defining SH2A register set.
1351 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1352 in nofpu case.
1353 (sh_sh_dsp_register_name): Add eight empty register names.
1354 (sh_sh3_dsp_register_name): Ditto.
1355 (sh_sh4_register_name): Ditto.
1356 (sh_sh4_nofpu_register_name): Ditto.
1357 (sh_sh4al_dsp_register_name): Ditto.
1358 (sh2a_show_regs): New function.
1359 (sh2a_nofpu_show_regs): New function.
1360 (sh_sh2a_register_type): New function.
1361 (do_bank_register_info): New function.
1362 (sh_print_pseudo_register): Call do_bank_register_info.
1363 Call sh_print_pseudo_register for valid "bank" register.
1364 (sh_sh2a_register_sim_regno): New function.
1365 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1366 Increment pseudo register count by one for all sh variants with
1367 pseudo registers to accomodate pseudo bank register.
1368 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1369 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1370 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1371 Increment pseudo register numbers.
1372
1326e61b
CV
13732004-10-06 Corinna Vinschen <vinschen@redhat.com>
1374
1375 * dwarf2read.c (read_subroutine_type): Call make_function_type
1376 instead of lookup_function_type.
1377
146c42e3
JB
13782004-10-05 Jim Blandy <jimb@redhat.com>
1379
1380 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1381 (Previous change missed some uses.)
1382
1df84f13
AC
13832004-10-05 Andrew Cagney <cagney@gnu.org>
1384
1385 * target.h (deprecated_child_ops): Rename child_ops.
1386 * wince.c: Update copyright. Rename child_ops.
1387 * win32-nat.c: Rename child_ops.
1388 * target.c: Rename child_ops.
1389 * rs6000-nat.c: Rename child_ops.
1390 * linux-nat.c: Rename child_ops.
1391 * infttrace.c: Rename child_ops.
1392 * inftarg.c: Rename child_ops.
1393 * infptrace.c: Rename child_ops.
1394 * hppah-nat.c: Update copyright. Rename child_ops.
1395 * hpux-thread.c: Update copyright. Rename child_ops.
1396
21e3b9b9
DJ
13972004-10-05 Daniel Jacobowitz <dan@debian.org>
1398
1399 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1400
de83afe7
AC
14012004-10-05 Andrew Cagney <cagney@gnu.org>
1402
1403 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1404
10b3939b
DJ
14052004-10-05 Daniel Jacobowitz <dan@debian.org>
1406
1407 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1408 (die_ref_table): Remove.
1409 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1410 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1411 the usage of this type.
1412 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1413 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1414 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1415 (dwarf2_create_include_psymtab): Update comment.
1416 (find_partial_die): Remove third argument. Remove unreachable call
1417 to error ().
1418 (dwarf2_find_containing_comp_unit): Update comments. Change one
1419 assertion to an error. Remove an unreachable error.
1420 (dwarf2_find_comp_unit): Update comments.
1421 (type_at_offset): Remove dead code.
1422 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1423 (store_in_ref_table): Add CU argument.
1424 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1425 inter-compilation-unit references.
1426 (load_full_comp_unit, process_full_comp_unit): New functions, based
1427 on psymtab_to_symtab_1.
1428 (psymtab_to_symtab_1): Use them.
1429 (dwarf2_add_dependence): New function.
1430 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1431 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1432 (partial_die_parent_scope, guess_structure_name): Update for changes
1433 to find_partial_die.
1434 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1435 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1436 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1437 (read_die_and_children): Update call to store_in_ref_table.
1438 (do_free_die_list_cleanup): Remove.
1439 (fixup_partial_die): Update for changes to find_partial_die.
1440 (read_full_die): Handle queueing absolute references.
1441 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1442 (dwarf2_attr, die_specification, die_type)
1443 (die_containing_type, dwarf2_extension): Update calls to
1444 follow_die_ref.
1445 (dump_die): Update DW_FORM_ref* handling.
1446 (dwarf2_get_ref_die_offset): Likewise.
1447 (free_one_comp_unit): Release the dies list.
1448 (dwarf2_mark_helper): New function.
1449 (dwarf2_mark): Use it.
1450
998bdd68
MK
14512004-10-05 Mark Kettenis <kettenis@jive.nl>
1452
1453 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1454 when writing to memory.
1455
14588880
KI
14562004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1457
1458 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1459 (m32r_extract_struct_value_address): Delete function.
1460 (m32r_return_value): New function.
1461 (m32r_gdbarch_init): Instead of store_return_value,
1462 extract_return_value, deprecated_extract_struct_value_address
1463 and deprecated_use_struct_convention, set return_value.
1464
dd5e6932
DJ
14652004-10-03 Daniel Jacobowitz <dan@debian.org>
1466
1467 * dwarf2read.c (read_subrange_type): Add comment for variable
1468 sized arrays.
1469
7dc1ef8d
PH
14702004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1471
1472 * Makefile.in (.l.c): Modify rule for compatibility with recent
1473 versions of flex, and remove most command-line options.
1474 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1475 options.
1476
1f8173e6
PH
14772004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1478
1479 Turn on initial Ada support (mainly expression evaluation).
1480
1481 * Makefile.in (SFILES): Remove ada-tasks.c.
1482 (HFILES_NO_SRCDIR): Add ada-lang.h.
1483 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1484 (YYOBJ): Add ada-exp.o.
1485 (rule .l.c): Generalize to not mention ada.
1486 * symtab.c: Include ada-lang.h.
1487 (symbol_natural_name, symbol_demangled_name)
1488 (symbol_search_name): Add Ada case.
1489
cb85a953
AC
14902004-10-01 Andrew Cagney <cagney@gnu.org>
1491
3f3db248
AC
1492 * Makefile.in (COMMON_OBS): Add inf-child.o.
1493 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1494 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1495 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1496 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1497 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1498 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1499 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1500 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1501 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1502 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1503 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1504 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1505 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1506
cb85a953
AC
1507 * target.c (xfer_using_stratum): Change return type to LONGEST.
1508 On each iteration offset, readbuf and writebuf.
1509 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1510 partial_length, and read/modify/write predicate, update comments.
1511 Pass buffer.word to ptrace write.
1512
963a6417
PH
15132004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1514
1515 * symfile.c (init_filename_language_table): Add extensions for
1516 Ada.
1517 * defs.h (enum language): Add language_ada.
1518 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1519 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1520 (add_symbols_from_enclosing_procs): Make a no-op for now.
1521 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1522 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1523 (find_line_in_linetable, find_next_line_in_linetable)
1524 (read_all_symtabs, is_plausible_func_for_line)
1525 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1526 (is_runtime_sym_defined, check_size): Remove declaration.
1527 (function_name_from_pc, ada_translate_error_message)
1528 (ada_lookup_minimal_symbol): Remove definition.
1529 (ada_add_block_symbols): Remove useless label.
1530 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1531 useless declaration.
1532 (ada_is_exception_sym): Likewise.
1533
9b32d526
KI
15342004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1535
1536 Add m32r-linux support.
1537 * configure.tgt: Add m32r*-*-linux*.
1538 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1539 and m32r-linux-tdep.c.
1540 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1541 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1542 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1543 m32r-linux-tdep.c.
1544 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1545 config/m32r/linux.mh, config/m32r/linux.mt,
1546 config/m32r/nm-linux.h: New files.
1547
2de118d3
JB
15482004-09-30 Joel Brobecker <brobecker@gnat.com>
1549
1550 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1551 (mips32_fetch_instruction): Remove, unused.
1552
a9fe69d1
JB
15532004-09-30 Joel Brobecker <brobecker@gnat.com>
1554
1555 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1556 conditions that will always be true.
1557
bc8ffc12
MK
15582004-09-30 Mark Kettenis <kettenis@gnu.org>
1559
ba0cd111
MK
1560 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1561 (vaxbsd_fetch_inferior_registers): Rename from
1562 fetch_inferior_registers. Make static.
1563 (vaxbsd_store_inferior_registers): Rename from
1564 store_inferior_registers. Make static.
1565 (_initialize_vaxbsd_nat): Construct and add target vector.
1566 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1567 inftarg.o. Add inf-child.o and inf-ptrace.o.
1568 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1569 inftarg.o. Add inf-child.o and inf-ptrace.o.
1570 (NAT_FILE): Remove.
1571 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1572 inftarg.o. Add inf-child.o and inf-ptrace.o.
1573 (NAT_FILE): Remove.
1574 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1575
bc8ffc12
MK
1576 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1577 (m88kbsd_fetch_inferior_registers): Rename from
1578 fetch_inferior_registers. Make static.
1579 (m88kbsd_store_inferior_registers): Rename from
1580 store_inferior_registers. Make static.
1581 (_initialize_m88kbsd_nat): New prototype and function.
1582 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1583 inftarg.o. Add inf-child.o and inf-ptrace.o.
1584 (NAT_FILE): Remove.
1585 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1586
27394598
AC
15872004-09-30 Andrew Cagney <cagney@gnu.org>
1588
1589 * target.c (target_xfer_partial): New function.
1590 (target_read_memory_partial, target_write_memory_partial)
1591 (default_xfer_partial, target_read_partial, target_write_partial)
1592 (xfer_using_stratum): Use.
1593 (debug_to_xfer_partial): Delete function.
1594 (setup_target_debug): Do not override to_xfer_partial.
1595
74a4fe32
MK
15962004-09-30 Mark Kettenis <kettenis@chello.nl>
1597
1598 * fork-child.c: Update copyright year. Fix coding style.
1599
982526a1
MK
16002004-09-29 Mark Kettenis <kettenis@gnu.org>
1601
1602 * defs.h (msavestring, mstrsave): Remove prototypes.
1603 * utils.c (msavestring, mstrsave): Remove functions.
1604 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1605 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1606 of mstrsave.
1607 * source.c (find_and_open_source): Use xstrdup instead of
1608 mstrsave.
1609
b8eb5af0
AC
16102004-09-30 Andrew Cagney <cagney@gnu.org>
1611
0779438d
AC
1612 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1613 (inf_ptrace_xfer_memory): Delete.
1614 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1615 (target_read_memory, target_write_memory): Use xfer_using_stratum
1616 when target_xfer_partial_p.
1617 (debug_target): Move to start of file.
1618 (target_read_memory_partial, target_write_memory_partial): Use
1619 to_xfer_partial when target_xfer_partial_p.
1620
f929a579
AC
1621 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1622 inf_ptrace_xfer_memory with equivalent code.
1623 * inftarg.c (child_xfer_partial): When performing a write, pass
1624 writebuf to child_xfer_memory.
1625
b8eb5af0
AC
1626 * target.c (target_read_string): Use target_read_memory instead of
1627 target_xfer_memory.
1628
ee21b650
AC
16292004-09-29 Andrew Cagney <cagney@gnu.org>
1630
d3e05d0d
AC
1631 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1632 the address of status.
1633
ee21b650
AC
1634 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1635 (kill_inferior): Inline ptrace_wait call.
1636 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1637 * inftarg.c (child_wait): Inline ptrace_wait call.
1638
a182eed6
AC
1639 * target.h (struct target_ops): Delete field to_post_wait.
1640 (target_post_wait): Delete macro.
1641 (child_post_wait): Delete declaration.
1642 * target.c (update_current_target, update_current_target)
1643 (debug_to_post_wait, setup_target_debug): Delete functions and
1644 references.
1645 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1646 * inftarg.c (child_post_wait): Delete.
1647 (init_child_ops): Do not set to_post_wait.
1648 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1649 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1650 * inf-child.c (inf_child_post_wait): Delete.
1651 (inf_child_target): Do not set to_post_wait.
1652 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1653 (inf_ptrace_target): Do not set to_post_wait.
1654
ba0c540b
AC
1655 * wince.c (child_ops): Delete.
1656 * win32-nat.c (child_ops): Delete.
1657
81977402
AC
1658 * inftarg.c (inftarg_set_find_memory_regions)
1659 (inftarg_set_make_corefile_notes): Delete functions.
1660 (_initialize_linux_nat): Inline calls.
1661
5ac10fd1
AC
1662 * target.h (child_ops): Declare.
1663 * inftarg.c (child_ops): Move from here ...
1664 * target.c (child_ops): ... to here.
1665 * wince.c (child_ops): Delete extern declaration.
1666 * win32-nat.c (child_ops): Delete extern declaration.
1667 * linux-nat.c (child_ops): Delete extern declaration.
1668 * hpux-thread.c (child_ops): Delete extern declaration.
1669
663408c2 16702004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1671
1672 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1673
0dad8a66
MK
16742004-09-28 Mark Kettenis <kettenis@gnu.org>
1675
1676 * configure.in: Only set host_makefile_frag when building a native
1677 debugger.
1678 * configure: Regenerate.
e8d74ed3
MK
1679
1680 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1681 for OpenBSD ELF.
1682
dba24537
AC
16832004-09-28 Andrew Cagney <cagney@gnu.org>
1684
e979516b
AC
1685 Problem identified by Paul Hilfinger.
1686 * Makefile.in (ada_lex_c): Define.
1687 (ada-lex.o): Delete rule.
1688
dba24537
AC
1689 * linux-proc.c: Delete file.
1690 * Makefile.in: Update.
1691 * config/sparc/linux64.mh (NATDEPFILES):
1692 * config/sparc/linux.mh (NATDEPFILES): Update.
1693 * config/s390/s390.mh (NATDEPFILES): Update.
1694 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1695 * config/powerpc/linux.mh (NATDEPFILES): Update.
1696 * config/pa/linux.mh (NATDEPFILES): Update.
1697 * config/mips/linux.mh (NATDEPFILES): Update.
1698 * config/m68k/linux.mh (NATDEPFILES): Update.
1699 * config/ia64/linux.mh (NATDEPFILES): Update.
1700 * config/i386/linux64.mh (NATDEPFILES): Update.
1701 * config/i386/linux.mh (NATDEPFILES): Update.
1702 * config/arm/linux.mh (NATDEPFILES): Update.
1703 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1704 * linux-nat.c: Update copyright. Include <sys/param.h>,
1705 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1706 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1707 (O_LARGEFILE): Possibly define.
1708 (_initialize_linux_nat, linux_proc_pending_signals)
1709 (add_line_to_sigset, linux_proc_xfer_memory)
1710 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1711 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1712 (struct linux_corefile_thread_data)
1713 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1714 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1715
d6b0e80f
AC
17162004-09-16 Andrew Cagney <cagney@gnu.org>
1717
1718 * lin-lwp.c: Delete file.
1719 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1720 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1721 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1722 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1723 (linux_nat_attach, detach_callback, linux_nat_detach)
1724 (resume_callback, resume_clear_callback, linux_nat_resume)
1725 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1726 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1727 (status_callback, running_callback, count_events_callback)
1728 (select_singlestep_lwp_callback, select_event_lwp_callback)
1729 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1730 (child_wait, stop_and_resume_callback, linux_nat_wait)
1731 (kill_callback, kill_wait_callback, linux_nat_kill)
1732 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1733 (linux_nat_xfer_memory, linux_nat_thread_alive)
1734 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1735 (_initialize_linux_nat): New functions.
1736 * Makefile.in: Update all dependencies.
1737 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1738 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1739 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1740 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1741 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1742 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1743 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1744 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1745 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1746 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1747 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1748 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1749 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1750
5a174d79
MK
17512004-09-27 Mark Kettenis <kettenis@gnu.org>
1752
2f604c28
MK
1753 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1754 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1755
5a174d79
MK
1756 * configure.in: Don't comment out NATDEPFILES in the generated
1757 Makefile if NAT_FILE is unset.
1758 * configure: Regenerate.
1759
b2ed1746
AC
17602004-09-27 Andrew Cagney <cagney@gnu.org>
1761
44cbf7b5
AC
1762 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1763 (insert_step_resume_breakpoint): Delete.
1764 (insert_step_resume_breakpoint_at_frame): New function.
1765 (insert_step_resume_breakpoint_at_sal): New function.
1766 (handle_inferior_event, step_into_function)
1767 (insert_step_resume_breakpoint): Simplify by using same.
1768
b2ed1746
AC
1769 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1770
3691b3be
MK
17712004-09-26 Mark Kettenis <kettenis@gnu.org>
1772
36f391e8
MK
1773 * fbsd-proc.c: Remove file.
1774 * Makefile.in (fbsd-proc.o): Remove dependency.
1775
771e236c
MK
1776 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1777 code together.
1778
3691b3be
MK
1779 * config/i386/nm-fbsd64.h: Remove file.
1780 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1781
6a5c78a3
MK
17822004-09-26 Mark Kettenis <kettenis@gnu.org>
1783
1784 * amd64-nat.h: Update copyright year.
1785 (amd64bsd_target): New prototype.
1786 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1787 (amd64bsd_target): New function.
1788 (amd64bsd_fetch_inferior_registers): Rename from
1789 fetch_inferior_registers. Make static.
1790 (amd64bsd_store_inferior_registers): Rename from
1791 store_inferior_registers. Make static.
1792 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1793 (_initialize_amd64fbsd_nat): Construct and add target vector.
1794 * amd64nbsd-nat.o: Include "target.h".
1795 (_initialize_amd64nbsd_nat): Construct and add target vector.
1796 * amd64obsd-nat.c: Include "target.h".
1797 (_initialize_amd64obsd_nat): Construct and add target vector.
1798 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1799 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1800 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1801 fbsd-nat.o.
1802 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1803 Remove infptrace.o and inftarg.o. Add inf-child.o and
1804 inf-ptrace.o.
1805 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1806 (amd64obsd-nat.o): Update dependencies.
1807
27acbe61
MK
18082004-09-25 Mark Kettenis <kettenis@gnu.org>
1809
509a5e7d
MK
1810 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1811 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1812 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1813 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1814 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1815
6e1e94ea
MK
1816 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1817 Inline attach call.
1818 (inf_ptrace_detach): Inline detach call.
1819
8b9cf735
MK
1820 * configure.in: Check for waddstr instead of mvwaddstr when
1821 searching for curses library. Check for wborder.
1822 * configure, config.in: Regenerate.
1823 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1824 available.
1825
27acbe61
MK
1826 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1827
b96ec7ac
AC
18282004-09-24 Robert Picco <Robert.Picco@hp.com>
1829
1830 Committed by Andrew Cagney.
1831 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1832 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1833 configuration.
1834 (fetch_register_using_p): Implement 'p' packet. Based on code by
1835 Fernando Nasser.
1836 (remote_fetch_registers): Call fetch_register_using_p.
1837 (init_all_packet_configs, show_remote_cmd)
1838 (_initialize_remote): Add p-packet.
1839
62ece330
MK
18402004-09-24 Mark Kettenis <kettenis@gnu.org>
1841
1842 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1843 instead of call_ptrace. Call wait directly instead of
1844 ptrace_wait.
1845 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1846 (inf_ptrace_wait): Inline ptrace_wait call.
1847
00937274
PH
18482004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1849
1850 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1851 rolled back instead.
1852
3f2c7a45
PH
18532004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1854
1855 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1856 the new argument order.
1857
b6fcb393
CV
18582004-09-23 Corinna Vinschen <vinschen@redhat.com>
1859
1860 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1861 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1862 (struct gdbarch_tdep): Remove.
1863 (struct xstormy16_frame_cache): New frame cache structure.
1864 (xstormy16_register_byte, xstormy16_register_raw_size)
1865 (xstormy16_reg_virtual_type, xstormy16_register_type)
1866 (xstormy16_push_arguments, xstormy16_push_return_address)
1867 (xstormy16_pop_frame, xstormy16_store_struct_return)
1868 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1869 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1870 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1871 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1872 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1873 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1874 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1875 (xstormy16_extract_return_value, xstormy16_store_return_value):
1876 Regcachify. Drop useless struct convention handling.
1877 (xstormy16_register_type, xstormy16_return_value)
1878 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1879 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1880 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1881 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1882 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1883 (xstormy16_unwind_dummy_id) : New functions.
1884 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1885 of xstormy16_scan_prologue.
1886 (xstormy16_frame_unwind): New frame_unwind structure.
1887 (xstormy16_frame_base): New frame_base structure.
1888 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1889 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1890
1285b746
MK
18912004-09-22 Mark Kettenis <kettenis@gnu.org>
1892
1893 * language.c (language_gdbarch_post_init): Fix off-by one error.
1894
1c379e20
DJ
18952004-09-21 Daniel Jacobowitz <dan@debian.org>
1896
1897 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1898 (struct dwarf2_offset_and_type): New.
1899 (set_die_type, reset_die_and_siblings_types, get_die_type)
1900 (offset_and_type_hash, offset_and_type_eq): New functions.
1901 (read_structure_type, read_enumeration_type, read_array_type)
1902 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1903 (read_tag_reference_type, read_tag_const_type)
1904 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1905 (read_typedef, read_base_type, read_subrange_type): Use
1906 set_die_type.
1907
ae038cb0
DJ
19082004-09-20 Daniel Jacobowitz <dan@debian.org>
1909
1910 * Makefile.in (dwarf2read.o): Update dependencies.
1911 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1912 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1913 and read_in_chain.
1914 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1915 mark, and has_form_ref_addr.
1916 (struct dwarf2_per_cu_data): New.
1917 (dwarf2_max_cache_age): New.
1918 (dwarf2_build_psymtabs_hard): Free cached compilation units
1919 after loading. Create and manage the list of compilation units.
1920 Remove unnecessary NULL initialization. Fix indentation.
1921 (psymtab_to_symtab_1): Initialize all of CU.
1922 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1923 (find_partial_die): Use dwarf2_find_containing_comp_unit
1924 and load_comp_unit.
1925 (free_stack_comp_unit): Update comments. Clear the per-cu
1926 pointer. Handle aging.
1927 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1928 (age_cached_comp_units, free_one_cached_comp_unit)
1929 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1930 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1931 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1932 (show_dwarf2_cmd): New.
1933 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1934 and "maint show dwarf2 max-cache-age".
1935 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1936 externs.
1937 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1938 global.
1939
987504bb
JJ
19402004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1941
1942 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1943 and dwarf2_cu struct pointer as arguments. Change function to use
1944 obstack if provided and use dwarf2_cu to determine language-specific
1945 separator.
1946 (partial_die_parent_scope): Change comment to include java. Use
1947 new version of typename_concat instead of obconcat.
1948 (partial_die_full_name): Use typename_concat.
1949 (read_namespace): Ditto.
1950 (read_enumeration_type): Use typename_concat instead of obconcat.
1951 (new_symbol): Ditto.
1952 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1953 (guess_structure_name): Ditto.
1954 (read_subroutine_type): Ditto.
1955 (read_structure_type): Ditto.
1956 (is_vtable_name): Add Java support.
1957 (determine_class_name): Switch to new typename_concat call.
1958 (determine_prefix): Switch to new typename_concat call.
1959 * jv-exp.y (FuncStart): New pattern.
1960 (MethodInvocation): Add support for simple function calls. Change
1961 warning message for other forms of inferior call currently not
1962 supported.
1963 * valarith.c (value_subscript): Treat an array with upper-bound
1964 of -1 as unknown size.
1965
d9c8471e
DJ
19662004-09-20 Daniel Jacobowitz <dan@debian.org>
1967
1968 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1969 (lookup_partial_symtab): Use symtab_to_fullname.
1970
d73f140a
JB
19712004-09-19 Jim Blandy <jimb@redhat.com>
1972
1973 * minsyms.c (lookup_minimal_symbol): Doc fix.
1974
adbef1f0
AC
19752004-09-20 Andrew Cagney <cagney@gnu.org>
1976
1977 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1978 CHILD_RESUME.
1979 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1980 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1981 KILL_INFERIOR.
1982 * infptrace.c: Update.
1983
d092d1a2
DJ
19842004-09-19 Daniel Jacobowitz <dan@debian.org>
1985
1986 * symtab.c (output_source_filename): Mark first argument as const.
1987 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1988 for "info sources" output.
1989
86d9e1d7
MK
19902004-09-20 Mark Kettenis <kettenis@gnu.org>
1991
1992 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1993 <machine/vmparam.h>.
1994 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1995 (register_u_addr): Remove prototype.
1996
9a6c8ef4
MK
19972004-09-19 Mark Kettenis <kettenis@gnu.org>
1998
9692934b
MK
1999 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2000 (i386bsd_fetch_inferior_registers): Rename from
2001 fetch_inferior_registers. Make static.
2002 (i386bsd_store_inferior_registers): Rename from
2003 store_inferior_registers. Make static.
2004 (i386bsd_target): New function.
2005 * i386bsd-nat.h: New file.
2006 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2007 "i386bsd-nat.h".
2008 (i386fbsd_resume): Rename from child_resume. Make static.
2009 (_initialize_i386fbsd_nat): Construct and add target vector.
2010 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2011 (_initialize_i386nbsd_nat): Construct and add target vector.
2012 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2013 Remove defines.
2014 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2015 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2016 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2017 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2018 (LOADLIBES): New variable.
2019 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2020 inf-ptrace.o. Remove inftarg.o.
2021 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2022 inf-ptrace.o. Remove inftarg.o.
2023 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2024 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2025 (LOADLIBES): New variable.
2026 * Makefile.in (i386bsd_nat_h): New variable.
2027 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2028 dependencies.
2029
3510d1f2
MK
2030 * sparc64nbsd-tdep.c: Include "objfiles.h".
2031 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2032 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2033 svr4_lp64_fetch_link_map_offsets.
2034 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2035 "nbsd-tdep.h".
2036 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2037 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2038 svr4_lp64_fetch_link_map_offsets.
2039 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2040 dependencies.
2041
578c1c03
MK
2042 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2043 * fbsd-nat.h: New file.
2044 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2045 (fbsd_nat_h): New variable.
2046 (fbsd-nat.o): New dependency.
2047
7a7b73b7
MK
2048 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2049 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2050
9a6c8ef4
MK
2051 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2052 comment.
2053
72d5681a
PH
20542004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2055
2056 * ada-exp.y (type_int): New function to add layer of abstraction
2057 around references to expression types.
2058 (type_long): Ditto.
2059 (type_long_long): Ditto.
2060 (type_float): Ditto.
2061 (type_double): Ditto.
2062 (type_long_double): Ditto.
2063 (type_char): Ditto.
2064 (type_system_address): Ditto.
2065 (simple_exp): Use type_* functions in place of builtin_*
2066 variables.
2067 (exp): Ditto.
2068 (write_var_from_name): Ditto.
2069 (write_object_renaming): Ditto.
2070 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2071 declaration.
2072 (build_ada_types): Remove, replacing with...
2073 (ada_language_arch_info): New function to initialize primitive
2074 type vector in language_arch_info.
2075 (ada_array_length): Remove use of builtin_type_ada_int.
2076 (value_pos_atr): Ditto.
2077 (ada_evaluate_subexp): Ditto.
2078 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2079 builtin_type_ada_long_long, builtin_type_ada_char,
2080 builtin_type_ada_float, builtin_type_ada_double,
2081 builtin_type_ada_long_double, builtin_type_ada_natural,
2082 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2083 (ada_builtin_types): Remove.
2084 (ada_language_defn): Remove entries for la_builtin_type_vector and
2085 string_char_type and use ada_language_arch_info.
2086 (_initialize_ada_language): Do type-vector initialization along
2087 the lines of c-lang.c.
2088 (ada_create_fundamental_type): Break up line.
2089 (ada_dump_symtab): Remove unused function.
2090 (enum ada_primitive_types): Define.
2091 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2092 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2093 builtin_type_ada_float, builtin_type_ada_double,
2094 builtin_type_ada_long_double, builtin_type_ada_natural,
2095 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2096 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2097 (processInt): Ditto.
2098 (processReal): Ditto.
2099 (name_lookup): Ditto.
2100 * ada-typeprint.c (print_range): Use builtin_type_int, not
2101 builtin_type_ada_int.
2102
4f0be353
MK
21032004-09-18 Mark Kettenis <kettenis@gnu.org>
2104
30b0e2d8
MK
2105 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2106
4f0be353
MK
2107 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2108 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2109 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2110 * configure.in: Improve checks for curses library by checking for
2111 mvwaddstr instead of initscr. Drop HP curses in favour of
2112 standard curses on HP-UX.
2113 * configure: Regenerated.
2114
72d5681a 21152004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2116
2117 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2118 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2119 Minor formatting changes.
2120 (empty_array): Slight rewrite for formatting.
2121 (emit_char,parse,ada_language_defn,build_ada_types,
2122 ada_is_exception_sym, _initialize_ada_language): Move
2123 definitions around.
2124 (ada_dump_symtab): Remove unused definition.
2125 (ada_maybe_exception_partial_symbol): Remove unused definition.
2126
1c8c7407
AC
21272004-09-16 Andrew Cagney <cagney@gnu.org>
2128
7681f339
AC
2129 * inf-child.c: Include "gdb_string.h".
2130 (inf_child_core_file_to_sym_file): Delete.
2131 (inf_child_target): Set to_fetch_registers and to_store_registers.
2132 * inf-ptrace.c: Include "gdb_string.h".
2133 * Makefile.in: Update all dependencies.
2134
1c8c7407
AC
2135 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2136 problem.
2137
65596487
JB
21382004-09-14 Joel Brobecker <brobecker@gnat.com>
2139
2140 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2141 call to heuristic_proc_desc. Remove code that became redundant
2142 as a consequence.
2143 (read_next_frame_reg): Remove special case for SP_REGNUM.
2144 (set_reg_offset): Fix small typo.
2145 (reset_saved_regs): New procedure.
2146 (mips32_heuristic_proc_desc): No longer compute a fake
2147 procedure descriptor. Compute the full frame cache instead.
2148 Some minor comment reformatting.
2149
95575b2e
AC
21502004-09-14 Andrew Cagney <cagney@gnu.org>
2151
f200c492
AC
2152 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2153 maintainer.
2154
95575b2e
AC
2155 * thread-db.c (thread_db_new_objfile): Assume that there is a
2156 child process.
2157
69657671
JB
21582004-09-13 Jim Blandy <jimb@redhat.com>
2159
2160 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2161 so that its storage isn't referenced after its lifetime ends.
2162
6c4182dd
JB
2163 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2164 and never assigned to. Delete it, and the 'if (use_buffer)'
2165 clauses. Delete 'raw_buffer', since it is now unused.
2166
ee31a58d
AC
21672004-09-13 Andrew Cagney <cagney@gnu.org>
2168
2c0fc042
AC
2169 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2170 * configure: Re-generate.
2171 * nlm/Makefile.in (TAGS): Update.
2172 * Makefile.in (TAGS): Update.
2173 * config/vax/nbsd.mt (TM_FILE): Update.
2174 * config/sparc/vxworks.mt (TM_FILE): Update.
2175 * config/sparc/sol2.mt (TM_FILE): Update.
2176 * config/sparc/sol2-64.mt (TM_FILE): Update.
2177 * config/sparc/obsd64.mt (TM_FILE): Update.
2178 * config/sparc/obsd.mt (TM_FILE): Update.
2179 * config/sparc/nbsd64.mt (TM_FILE): Update.
2180 * config/sparc/nbsd.mt (TM_FILE): Update.
2181 * config/sparc/linux64.mt (TM_FILE): Update.
2182 * config/sparc/linux.mt (TM_FILE): Update.
2183 * config/sparc/fbsd.mt (TM_FILE): Update.
2184 * config/sh/wince.mt (TM_FILE): Update.
2185 * config/sh/nbsd.mt (TM_FILE): Update.
2186 * config/sh/linux.mt (TM_FILE): Update.
2187 * config/sh/embed.mt (TM_FILE): Update.
2188 * config/s390/s390.mt (TM_FILE): Update.
2189 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2190 * config/rs6000/rs6000.mt (TM_FILE): Update.
2191 * config/rs6000/aix4.mt (TM_FILE): Update.
2192 * config/powerpc/vxworks.mt (TM_FILE): Update.
2193 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2194 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2195 * config/powerpc/obsd.mt (TM_FILE): Update.
2196 * config/powerpc/nbsd.mt (TM_FILE): Update.
2197 * config/powerpc/linux.mt (TM_FILE): Update.
2198 * config/powerpc/aix.mt (TM_FILE): Update.
2199 * config/pa/obsd.mt (TM_FILE): Update.
2200 * config/pa/linux.mt (TM_FILE): Update.
2201 * config/pa/hppahpux.mt (TM_FILE): Update.
2202 * config/pa/hppa64.mt (TM_FILE): Update.
2203 * config/pa/hppa.mt (TM_FILE): Update.
2204 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2205 * config/mips/wince.mt (TM_FILE): Update.
2206 * config/mips/vxmips.mt (TM_FILE): Update.
2207 * config/mips/nbsd.mt (TM_FILE): Update.
2208 * config/mips/linux.mt (TM_FILE): Update.
2209 * config/mips/irix6.mt (TM_FILE): Update.
2210 * config/mips/irix5.mt (TM_FILE): Update.
2211 * config/mips/embed.mt (TM_FILE): Update.
2212 * config/m68k/vxworks68.mt (TM_FILE): Update.
2213 * config/m68k/st2000.mt (TM_FILE): Update.
2214 * config/m68k/os68k.mt (TM_FILE): Update.
2215 * config/m68k/obsd.mt (TM_FILE): Update.
2216 * config/m68k/nbsd.mt (TM_FILE): Update.
2217 * config/m68k/monitor.mt (TM_FILE): Update.
2218 * config/m68k/linux.mt (TM_FILE): Update.
2219 * config/m68k/cisco.mt (TM_FILE): Update.
2220 * config/ia64/linux.mt (TM_FILE): Update.
2221 * config/ia64/aix.mt (TM_FILE): Update.
2222 * config/ia64/ia64.mt (TM_FILE): Update.
2223 * config/i386/vxworks.mt (TM_FILE): Update.
2224 * config/i386/obsd64.mt (TM_FILE): Update.
2225 * config/i386/obsd.mt (TM_FILE): Update.
2226 * config/i386/nto.mt (TM_FILE): Update.
2227 * config/i386/nbsd64.mt (TM_FILE): Update.
2228 * config/i386/nbsd.mt (TM_FILE): Update.
2229 * config/i386/linux64.mt (TM_FILE): Update.
2230 * config/i386/linux.mt (TM_FILE): Update.
2231 * config/i386/i386sol2.mt (TM_FILE): Update.
2232 * config/i386/i386lynx.mt (TM_FILE): Update.
2233 * config/i386/fbsd64.mt (TM_FILE): Update.
2234 * config/i386/fbsd.mt (TM_FILE): Update.
2235 * config/i386/cygwin.mt (TM_FILE): Update.
2236 * config/h8300/h8300.mt (TM_FILE): Update.
2237 * config/frv/frv.mt (TM_FILE): Update.
2238 * config/cris/cris.mt (TM_FILE): Update.
2239 * config/arm/wince.mt (TM_FILE): Update.
2240 * config/arm/nbsd.mt (TM_FILE): Update.
2241 * config/arm/linux.mt (TM_FILE): Update.
2242 * config/arm/embed.mt (TM_FILE): Update.
2243 * config/alpha/nbsd.mt (TM_FILE): Update.
2244 * config/alpha/fbsd.mt (TM_FILE): Update.
2245 * config/alpha/alpha.mt (TM_FILE): Update.
2246 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2247 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2248
362646f5
AC
2249 Eliminate event_loop_p, always has the value 1.
2250 * defs.h (event_loop_p): Delete macro.
2251 * breakpoint.c (until_break_command): Simplify.
2252 * utils.c (prompt_for_continue): Simplify.
2253 * tracepoint.c (read_actions): Simplify.
2254 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2255 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2256 (set_prompt, init_main): Simplify.
2257 (init_signals, disconnect): Delete, unused.
2258 * remote.c (remote_async_resume)
2259 (extended_remote_async_create_inferior): Simplify.
2260 * mi/mi-interp.c (mi_input): Delete, unused.
2261 (mi_interpreter_resume, mi_command_loop): Simplify.
2262 * interps.c (current_interp_command_loop): Simplify.
2263 * infrun.c (proceed): Simplify.
2264 * infcmd.c (run_command, continue_command, step_1, jump_command)
2265 (until_command, advance_command, finish_command)
2266 (interrupt_target_command): Simplify.
2267 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2268
ee31a58d
AC
2269 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2270 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2271 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2272 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2273 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2274 * mips-tdep.c (mips_dump_tdep): Do not print same.
2275
b7ffc4a8
AC
22762004-09-12 Andrew Cagney <cagney@gnu.org>
2277
2bfb72ee
AC
2278 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2279 const.
2280 * Makefile.in (valprint.o): Delete explict rule.
2281
4f17c3c1
AC
2282 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2283 reported by Dave Anderson.
2284
f810308b
AC
2285 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2286
b7ffc4a8
AC
2287 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2288
28b41c52
AC
22892004-09-12 Salvador E. Tropea <set@users.sf.net>
2290 Andrew Cagney <cagney@gnu.org>
2291
2292 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2293 (mi_cmd_data_list_register_values)
2294 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2295 the register number computation.
2296
5bf970f9
AC
22972004-09-12 Andrew Cagney <cagney@gnu.org>
2298
2299 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2300 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2301 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2302 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2303 target.
2304 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2305 inf-ptrace.o and inf-child.o.
2306 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2307 * Makefile.in: Update dependencies.
2308
0759e0bf
AC
23092004-09-11 Andrew Cagney <cagney@gnu.org>
2310
2311 * language.c (hex_string, hex_string_custom): Move from here ...
2312 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2313 (CELLSIZE): Increase to 50.
2314 * language.h (hex_string, hex_string_custom): Move from here ...
2315 * defs.h: ... to here.
2316 * Makefile.in: Update all dependencies.
2317
bb599908
PH
23182004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2319
2320 * language.c (local_hex_format_custom): Remove.
2321 (local_hex_string): Rename to hex_string, use C format, and move to
2322 utils.c
2323 (local_hex_string_custom): Rename to hex_string_custom and change
2324 interface. Now uses C format. Move to utils.c
2325 (local_octal_format_custom): Remove.
2326 (local_decimal_format_custom): Remove.
2327 (unknown_language_defn): Remove language-specific number
2328 formatting entries.
2329 (auto_language_defn): Ditto.
2330 (local_language_defn): Ditto.
2331 * language.h (struct language_format_info): Delete declaration.
2332 (struct language_defn): Remove language_format_info fields
2333 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2334 (local_binary_format): Remove macro.
2335 (local_binary_format_prefix): Remove macro.
2336 (local_binary_format_specifier): Remove macro.
2337 (local_binary_format_suffix): Remove macro.
2338 (local_octal_format): Remove macro.
2339 (local_octal_format_prefix): Remove macro.
2340 (local_octal_format_specifier): Remove macro.
2341 (local_octal_format_suffix): Remove macro.
2342 (local_decimal_format): Remove macro.
2343 (local_decimal_format_prefix): Remove macro.
2344 (local_decimal_format_specifier): Remove macro.
2345 (local_decimal_format_suffix): Remove macro.
2346 (local_hex_format): Remove macro.
2347 (local_hex_format_prefix): Remove macro.
2348 (local_hex_format_specifier): Remove macro.
2349 (local_hex_format_suffix): Remove macro.
2350 (local_decimal_format_custom): Remove.
2351 (local_octal_format_custom): Remove.
2352 (local_hex_format_custom): Remove.
2353 (local_hex_string): Rename to hex_string and move to defs.h.
2354 (local_hex_string_custom): Rename to hex_string_custom, change
2355 interface, and move to defs.h.
2356 * utils.c: (int_string): New function.
2357 (hex_string): New function (from language.c).
2358 (hex_string_custom): New function (from language.c).
2359 (octal2str): New function.
2360 (decimal2str): Add width parameter.
2361 (paddr_u): Use new decimal2str interface.
2362 (paddr_d): Ditto.
2363 * defs.h (hex_string): Declare.
2364 (hex_string_custom): Declare.
2365 (int_string): Declare.
2366 * printcmd.c (print_scalar_formatted): Remove localized binary
2367 formatting.
2368 * valprint.c (print_longest): Use int_string.
2369 (print_floating): Use C hex format.
2370 (print_hex_chars): Ditto.
2371 (print_binary_chars): Remove language-specific formatting.
2372 (print_octal_chars): Use C octal format.
2373 (print_decimal_chars): Delocalize format.
2374 (print_decimal): Remove.
2375 * ada-lang.c (ada_language_defn): Remove language-specific number
2376 formatting entries.
2377 * p-lang.c (pascal_language_defn): Ditto.
2378 * c-lang.c (c_language_defn): Ditto.
2379 (cplus_language_defn): Ditto.
2380 (asm_language_defn): Ditto.
2381 (minimal_language_defn): Ditto.
2382 * f-lang.c (f_language_defn): Ditto.
2383 * jv-lang.c (java_language_defn): Ditto.
2384 * m2-lang.c (m2_language_defn): Ditto.
2385 * scm-lang.c (scm_language_defn): Ditto.
2386 * objc-lang.c (objc_language_defn): Ditto.
2387 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2388 new interface.
2389 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2390 * ui-out.c (ui_out_field_core_addr): Ditto.
2391 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2392 * exec.c (print_section_info): Ditto.
2393 * i387-tdep.c (print_i387_status_word): Ditto.
2394 (print_i387_control_word): Ditto.
2395 (i387_print_float_info): Ditto.
2396 * maint.c (maint_print_section_info): Ditto.
2397 * solib.c (info_sharedlibrary_command): Ditto.
2398 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2399 * symtab.c (print_msymbol_info): Ditto.
2400 * tracepoint.c (tracepoints_info): Ditto.
2401 * solib-frv.c (lm_base): Ditto.
2402 (frv_current_sos): Ditto.
2403 (enable_break2): Ditto.
2404 (enable_break): Ditto.
2405 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2406 (process_one_symbol): Ditto.
2407 * infcmd.c (program_info): Ditto.
2408 * mdebugread.c (parse_partial_symbols): Ditto.
2409 * symfile.c (add_symbol_file_command): Ditto.
2410 * cli/cli-cmds.c (edit_command): Ditto.
2411 (list_command): Ditto.
2412 * infcall.c (call_function_by_hand): Ditto.
2413 * remote-vx.c (vx_run_files_info): Ditto.
2414 (vx_wait): Ditto.
2415 (vx_attach): Ditto.
2416 (vx_detach): Ditto.
2417 (vx_kill): Ditto.
2418 * aix-thread.c (pdc_symbol_addrs): Ditto.
2419 (pdc_read_regs): Ditto.
2420 (pdc_write_regs): Ditto.
2421 (pdc_read_data): Ditto.
2422 (pdc_write_data): Ditto.
2423 * d10v-tdep.c (display_trace): Ditto.
2424 * rs6000-nat.c (find_toc_address): Ditto.
2425 * aix-thread.c: Don't include language.h.
2426 * buildsym.c: Ditto.
2427 * dbxread.c: Ditto.
2428 * mdebugread.c: Ditto.
2429 * rs6000-nat.c: Ditto.
2430 * buildsym.c (make_blockvector): Use renamed hex_string.
2431
33f2d567
JM
24322004-09-10 Jason Molenda (jmolenda@apple.com)
2433
2434 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2435 chars after 'if' or 'while' commands in user-defined commands.
2436
7b90c3f9
JB
24372004-09-08 Jim Blandy <jimb@redhat.com>
2438
2439 Fix bug reported and analyzed by Olivier Crete:
2440 * symfile.c (copy_section_addr_info): New function.
2441 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2442 original set of address arguments, instead of handwritten code
2443 that uses one length to allocate and a different length to
2444 initialize. Use make_cleanup_free_section_addr_info.
2445 * symfile.h (copy_section_addr_info): New declaration.
2446 * utils.c: #include "symfile.h".
2447 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2448 New functions.
2449 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2450 * Makefile.in (utils.o): Update dependencies.
2451
b26a6851
AC
24522004-09-08 Andrew Cagney <cagney@gnu.org>
2453
2454 * thread-db.c (keep_thread_db): Delete.
2455 (thread_db_new_objfile, thread_db_create_inferior)
2456 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2457
be24b061
MK
24582004-09-08 Mark Kettenis <kettenis@gnu.org>
2459
f6792ef4
MK
2460 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2461 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2462 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2463 (i386_frameless_signal_p): Remove prototype.
2464 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2465 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2466 I386_SSE_NUM_REGS.
2467 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2468 instead of FP0_REGNUM.
2469 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2470 of FP0_REGNUM and FPC_REGNUM.
2471
eeefdaa7
MK
2472 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2473 (sunos_solib_create_inferior_hook): Don't call
2474 sunos_relocate_main_executable.
2475
be24b061
MK
2476 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2477 solib_svr4_fetch_link_map_offsets to
2478 svr4_ilp32_fetch_link_map_offsets.
2479 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2480 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2481 svr4_ilp32_fetch_link_map_offsets.
2482 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2483
7c679d16
JB
24842004-09-07 Jim Blandy <jimb@redhat.com>
2485
2486 * frame.h (frame_register): Doc fix.
2487
1f04aa62
AC
24882004-09-07 Andrew Cagney <cagney@gnu.org>
2489
2490 * vx-share/wait.h: Delete #ifdef USG.
2491 * utils.c (request_quit): Ditto.
2492 * tui/tui.c (tui_reset): Ditto.
2493 * remote.c: Ditto.
2494 * remote-sds.c: Ditto.
2495 * remote-rdi.c: Ditto.
2496 * mdebugread.c: Ditto.
2497 * m68klinux-nat.c: Ditto.
2498 * infttrace.c: Ditto.
2499 * infptrace.c: Ditto.
2500 * i386v-nat.c: Ditto.
2501 * exec.c: Ditto.
2502 * dbxread.c: Ditto.
2503 * core-aout.c: Ditto.
2504
90edbfbc
JB
25052004-09-05 Joel Brobecker <brobecker@gnat.com>
2506
2507 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2508 heuristic_proc_desc.
2509 (mips_insn32_frame_cache): Likewise.
2510
01f4bf2b
JB
25112004-09-04 Joel Brobecker <brobecker@gnat.com>
2512
2513 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2514 left behind by error.
2515
8511a048
JB
25162004-09-04 Joel Brobecker <brobecker@gnat.com>
2517
2518 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2519 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2520
649dfe9f
JB
25212004-09-04 Joel Brobecker <brobecker@gnat.com>
2522
2523 * config/rs6000/xm-aix4.h: Remove this file.
2524 * config/rs6000/aix4.mh (XM_FILE): Delete.
2525
6e50f889
JB
25262004-09-04 Joel Brobecker <brobecker@gnat.com>
2527
2528 * config/rs6000/xm-rs6000.h: Remove this file.
2529 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2530
b8c4aece
AC
25312004-09-03 Andrew Cagney <cagney@gnu.org>
2532
fb603883
AC
2533 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2534 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2535 only use.
2536
c9343fd1
AC
2537 * mips-tdep.c (temp_saved_regs): Delete.
2538 (set_reg_offset): Replace saved_regs parameter with this_cache.
2539 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2540 (mips32_heuristic_proc_desc): Add this_cache parameter.
2541 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2542 (after_prologue): Pass a NULL this_cache.
2543
9733cfe1
AC
2544 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2545 non-kernel trap prologues.
2546
0d5febcc
AC
2547 * mips-tdep.c (find_proc_desc): Delete function.
2548 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2549 simplify.
2550 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2551 mips_insn32_frame_cache.
2552
9733cfe1 2553 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2554 Simplify as NEXT_FRAME is NULL.
2555 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2556
177f84a3
AC
2557 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2558 local variable.
2559 (mips_skip_prologue): Update.
2560
465f7520
AC
2561 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2562 "cur_frame" parameter.
177f84a3
AC
2563 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2564 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2565
e38b8658
AC
2566 * config/vax/nm-obsd.h: Delete file.
2567 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2568 * config/vax/nm-nbsd.h: Delete file.
2569 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2570 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2571 * config/sh/nm-nbsd.h: Delete file.
2572 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2573 * config/rs6000/nm-rs6000ly.h: Delete file.
2574 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2575 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2576 * config/powerpc/nm-obsd.h: Delete file.
2577 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2578 * config/powerpc/nm-nbsd.h: Delete file.
2579 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2580 * config/pa/nm-obsd.h: Delete file.
2581 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2582 * config/mips/nm-nbsd.h: Delete file.
2583 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2584 * config/m88k/nm-obsd.h: Delete file.
2585 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2586 * config/m68k/nm-nbsd.h: Delete file.
2587 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2588 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2589 * config/i386/nm-nbsd.h: Delete file.
2590 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2591 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2592 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2593 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2594 * config/i386/nm-i386lynx.h: Delete file.
2595 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2596 * config/arm/nm-nbsd.h: Delete file.
2597 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2598 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2599
be1ed680
AC
2600 * config/i386/tm-fbsd.h: Delete file.
2601 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2602 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2603
4b392b26
AC
2604 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2605 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2606 * config/rs6000/aix4.mt (TM_FILE): Set to
2607 config/rs6000/tm-rs6000.h.
2608 * config/powerpc/tm-ppc-aix.h: Delete file.
2609 * config/powerpc/aix.mt (TM_FILE): Set to
2610 config/rs6000/tm-rs6000.h.
2611 * config/m68k/tm-linux.h: Delete file.
2612 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2613 * config/i386/tm-linux64.h: Delete file.
2614 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2615 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2616
f3219c75
AC
2617 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2618 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2619 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2620 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2621 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2622 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2623 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2624 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2625 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2626
b8c4aece
AC
2627 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2628 gdb_host_cpu.
2629
8ac2e020
JB
26302004-09-02 Joel Brobecker <brobecker@gnat.com>
2631
2632 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2633 Minor reformatting. Some code factoring.
2634
c185a355
AC
26352004-09-02 Andrew Cagney <cagney@gnu.org>
2636
63f22f0d
AC
2637 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2638 * config/vax/tm-nbsd.h: Delete file.
2639 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2640 * config/sparc/tm-vxworks.h: Delete file.
2641 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2642 * config/sparc/tm-nbsd.h: Delete file.
2643 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2644 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2645 * config/sparc/tm-linux.h: Delete file.
2646 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2647 * config/s390/tm-linux.h: Delete file.
2648 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2649 * config/pa/tm-bsd.h: Delete file.
2650 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2651 * config/m68k/tm-obsd.h: Delete file.
2652 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2653 * config/m68k/tm-nbsd.h: Delete file.
2654 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2655 * config/i386/tm-vxworks.h: Delete file.
2656 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2657 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2658 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2659 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2660 * config/i386/tm-nbsd.h: Delete file.
2661 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2662 * config/i386/tm-i386lynx.h: Delete file.
2663 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2664 * config/cris/tm-cris.h: Delete file.
2665
0f475e27
AC
2666 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2667 * configure: Re-generate.
2668 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2669 * config/arm/tm-nbsd.h: Delete file.
2670
458ed000
AC
2671 * config/powerpc/tm-ppcle-sim.h: Delete.
2672 * config/powerpc/tm-ppcle-eabi.h: Delete.
2673 * config/powerpc/tm-nbsd.h: Delete.
2674 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2675 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2676 tm-ppcle-eabi.h.
2677
f14375f3
AC
2678 * config/i386/nto.mh (NAT_FILE): Delete.
2679 * config/i386/nm-nto.h: Delete.
2680
c34d127c
AC
2681 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2682 * config/m68k/tm-os68k.h: Ditto.
2683 * config/m68k/tm-monitor.h: Ditto.
2684 * config/m68k/tm-cisco.h: Ditto.
2685 * config/m68k/st2000.mt (TM_FILE): Delete.
2686 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2687 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2688 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2689 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2690
f7f0fe03
AC
2691 * config/m68k/tm-st2000.h: Delete.
2692 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2693 * config/sparc/fbsd.mt (TM_FILE): Delete.
2694 * config/sparc/tm-fbsd.h: Delete.
2695
a2558533
AC
2696 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2697 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2698 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2699
b78960be
AC
2700 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2701 GDB_TM_FILE and GDB_XM_FILE.
2702 * gdbarch.c: Re-generate.
2703 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2704 quotes in macro definition.
2705 * configure.in: Re-generate.
2706
4d60522e
AC
2707 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2708 validating architecture methods.
2709 * gdbarch.c: Re-generate.
2710
5010d38b
AC
2711 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2712 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2713 GDB_MULTI_ARCH_PARTIAL.
2714 * gdbarch.h: Re-generate.
2715
c185a355
AC
2716 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2717 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2718 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2719 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2720 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2721 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2722 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2723 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2724 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2725 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2726 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2727 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2728
14aaa6ab
AC
27292004-09-01 Andrew Cagney <cagney@gnu.org>
2730
2731 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2732 and main_func_highpc.
2733 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2734 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2735 * nlmread.c (nlm_symfile_read): Update.
2736
a343eb3c
JB
27372004-09-01 Joel Brobecker <brobecker@gnat.com>
2738
2739 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2740 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2741 (find_proc_desc): Remove dead code.
2742
4fbbbd07
JB
27432004-09-01 Joel Brobecker <brobecker@gnat.com>
2744
2745 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2746
84acb35a
JJ
27472004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2748
2749 * observer.sh: Add struct so_list declaration.
2750 * Makefile.in: Add dependencies on observer.h for solib.c and
2751 breakpoint.c.
2752 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2753 function.
2754 (_initialize_breakpoint): Register
2755 disable_breakpoints_in_unloaded_shlib as an observer of the
2756 "solib unloaded" observation event.
2757 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2758 call decode_line_1 so unfound breakpoint errors are silent.
2759 * solib.c (update_solib_list): When a solib is discovered to have
2760 been unloaded by the program, notify all observers of the
2761 "solib unloaded" observation event.
2762
c8cd9f6c
AC
27632004-09-01 Andrew Cagney <cagney@gnu.org>
2764
2765 * frame.c: Include "objfiles.h".
2766 (inside_main_func): New function.
2767 (get_prev_frame): Use new inside_main_func.
2768 * Makefile.in (frame.o): Update dependencies.
2769 * defs.h (inside_main_func): Delete declaration.
2770 * blockframe.c (inside_main_func): Delete function.
2771
1168df01
JB
27722004-08-31 Jim Blandy <jimb@redhat.com>
2773
2774 * dwarf2read.c (is_vtable_name): New function, based on logic from
2775 read_structure_type, but passing the correct length to strncmp,
2776 and using 'sizeof' instead of 'strlen'.
2777 (read_structure_type): Call it.
2778
f14f9744
JB
27792004-08-31 Joel Brobecker <brobecker@gnat.com>
2780
2781 * config/powerpc/aix.mh: Add comment.
2782
386d4518
PG
27832004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2784
2785 * MAINTAINERS: Add self to Write-After-Approval.
2786
7d97d5e2
MI
27872004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2788
2789 * MAINTAINERS: Add self to Write-After-Approval.
2790
68f53502
AC
27912004-08-30 Andrew Cagney <cagney@gnu.org>
2792
2793 Fix PR breakpoints/1757.
2794 * infrun.c (struct execution_control_state): Replace
2795 remove_breakpoints_on_following_step with
2796 step_after_step_resume_breakpoint.
2797 (init_execution_control_state): Update.
2798 (handle_inferior_event): For signals, when stepping off a
2799 breakpoint, set step_after_step_resume_breakpoint. When
2800 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2801 (keep_going): Delete code handling
2802 remove_breakpoints_on_following_step.
2803
7ca2d3a3
DL
28042004-08-29 David Lecomber <david@streamline-computing.com>
2805
2806 Fix PR gdb/648
2807 * language.h (enum array_ordering): New enum.
2808 * language.h (struct language_defn): New la_array_ordering
2809 attribute.
2810 * language.c (unknown_language_defn, auto_language_defn)
2811 (local_language_defn): Ditto.
2812 * ada-lang.c (ada_language_defn): Ditto.
2813 * c-lang.c (c_language_defn, cplus_language_defn)
2814 (asm_language_defn, minimal_language_defn): Ditto.
2815 * f-lang.c (f_language_defn): Ditto.
2816 * jv-lang.c (java_language_defn): Ditto.
2817 * m2-lang.c (f_language_defn): Ditto.
2818 * objc-lang.c (objc_language_defn): Ditto.
2819 * p-lang.c (pascal_language_defn): Ditto.
2820 * scm-lang.c (scm_language_defn): Ditto.
2821 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2822 oriented large to small in type structure.
2823 * dwarf2read.c (read_array_order): New function.
2824 (read_array_type): Use read_array_order to check row/column
2825 major ordering.
2826
e354df01
NW
28272004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2828
2829 * target.c (target_resize_to_sections): Check
2830 current_target.to_sections for an old value when updating.
2831
9185ddce
JB
28322004-08-27 Joel Brobecker <brobecker@gnat.com>
2833
2834 * procfs.c (dbx_link_bpt_addr): New static global variable.
2835 (dbx_link_shadow_contents): New static global variable.
2836 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2837 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2838 if we just hit it.
2839 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2840 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2841 from run to run.
2842 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2843 after the inferior has been forked.
2844 (remove_dbx_link_breakpoint): New function.
2845 (dbx_link_addr): New function.
2846 (insert_dbx_link_bpt_in_file): New function.
2847 (insert_dbx_link_bpt_in_region): New function.
2848 (insert_dbx_link_breakpoint): New function.
2849 (proc_trace_syscalls_1): New function, extracted from
2850 proc_trace_syscalls.
2851 (proc_trace_syscalls): Replace extract code by call to
2852 proc_trace_syscalls_1.
2853 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2854 is no longer valid.
2855
e6742ace
JB
28562004-08-25 Jim Blandy <jimb@redhat.com>
2857
2858 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2859
8fb3e588
AC
28602004-08-25 Andrew Cagney <cagney@gnu.org>
2861
629a41ee
AC
2862 * infrun.c (struct execution_control_state): Delete field
2863 "stepping_through_sigtramp".
2864 (init_execution_control_state): Do not set same.
2865 (context_switch): Do not pass same to save_infrun_state and
2866 load_infrun_state.
2867 * gdbthread.h (struct thread_info): Delete field
2868 stepping_through_sigtramp.
2869 (save_infrun_state, load_infrun_state): Delete parameter
2870 stepping_through_sigtramp.
2871 * thread.c (load_infrun_state, save_infrun_state): Update.
2872
8fb3e588
AC
2873 * infrun.c: Re-indent. Move expression operators to the beginning
2874 of the line. Remove long disabled #if 0 code.
2875
49c54768
AC
28762004-08-24 Andrew Cagney <cagney@gnu.org>
2877
2878 * doublest.h (floatformat_ieee_quad): Rename
2879 floatformat_ia64_quad.
2880 * doublest.c (floatformat_ieee_quad): Rename
2881 floatformat_ia64_quad.
2882 (_initialize_doublest): Update.
2883
5ca2e327
JB
28842004-08-24 Jim Blandy <jimb@redhat.com>
2885
87808bd6
JB
2886 * dwarf2expr.h (struct dwarf_expr_context): New members
2887 'num_pieces' and 'pieces', for returning the result of an
2888 expression that uses DW_OP_piece.
2889 (struct dwarf_expr_piece): New struct type.
2890 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2891 pieces.
2892 (free_dwarf_expr_context): Free pieces, if any.
2893 (add_piece): New function.
2894 (execute_stack_op): Implement DW_OP_piece.
2895 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2896 expression is a list of pieces, print an error message.
2897 (dwarf2_loc_desc_needs_frame): If the expression yields
2898 pieces, and any piece is in a register, then we need a frame.
2899
5ca2e327
JB
2900 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2901 the stack until we've decided what sort of result the evaluation
2902 has produced. Use separate variables, with more specific names.
2903
2afeb6b8
RE
29042004-08-23 Richard Earnshaw <rearnsha@arm.com>
2905
2906 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2907 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2908 (arm_netbsd_init_abi_common): Register them.
2909
5885ab49
MK
29102004-08-22 Mark Kettenis <kettenis@gnu.org>
2911
fda820a6
MK
2912 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2913
1c5bf419
MK
2914 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2915 safe_frame_unwind_memory instead of target_read_memory.
2916
8cbba7c8
MK
2917 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2918 Reorder includes.
2919 (fetch_register, store_register): Remove prototypes.
2920 (child_resume): Reorganize code and comments such that it is
2921 grouped a bit more logically.
2922 (attach): Explicitly compare errno against 0.
2923 (detach): Likewise. Use perror_with_name instead of
2924 print_sys_errmsg.
2925 * Makefile.in (infptrace.o): Update dependencies.
2926
c5fa4245
MK
2927 * ia64-linux-nat.c: Update copyright year.
2928 (fetch_debug_register, store_debug_register)
2929 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2930 PTRACE_TYPE_ARG3.
2931 * config/ia64/nm-linux.h: Update copyright year.
2932 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2933
387c058c
MK
2934 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2935 from CORE_ADDR to struct frame_info *. Use
2936 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2937 (amd64_linux_sigtramp_p): Adjust for changed signature of
2938 and64_linux_sigtramp_start
2939
277215a6
MK
2940 * gdb_ptrace.h: GNU/Linux.
2941
25f6178e
MK
2942 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2943 Remove defines.
2944
652fc137
MK
2945 * infptrace.c: Include "gdb_assert.h".
2946 (PTRACE_XFER_TYPE): Remove define.
2947 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2948 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2949 Tweak comment.
2950 (fetch_inferior_registers, store_inferior_registers): Remove
2951 redundant culry braces. Tweak comment. s/regno/regnum.
2952 * Makefile.in (infptrace.o): Update dependencies.
2953
5885ab49
MK
2954 * configure.in: Change test for return type of ptrace to default
2955 to `long' instead of `int'.
2956 * configure: Regenerate.
2957
11003ae3
MK
29582004-08-21 Mark Kettenis <kettenis@gnu.org>
2959
6b95110c
MK
2960 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2961
bcb3dc3d
MK
2962 * configure.in: Check for ttrace function.
2963 * configure, config.in: Regenerate.
2964
11003ae3
MK
2965 * gdb_ptrace.h: New file.
2966 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2967 <sys/ptrace.h>.
2968 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2969 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2970 (attach): Don't define PT_ATTACH.
2971 (detach): Don't define PT_DETACH.
2972 * Makefile.in (gdb_ptrace_h): New variable.
2973 (infptrace.o): Update dependencies.
2974
f8707cac
MK
29752004-08-16 Mark Kettenis <kettenis@gnu.org>
2976
2977 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2978 instead of `int' if not already defined.
2979 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2980 PTRACE_TYPE_ARG3.
2981 * infptrace.c (call_ptrace): Revert change that replaced
2982 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2983
655c5466
MK
29842004-08-15 Mark Kettenis <kettenis@gnu.org>
2985
156e5ba7
MK
2986 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2987 Remove defines.
2988
de9a9e51
MK
2989 * linux-nat.c (kill_inferior): Add missing third and fourth
2990 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2991
88800403
MK
2992 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2993 PTRACE_TYPE_RET.
2994
849a1d7c
MK
2995 * proc-why.c (proc_prettyfprint_why): Fix format string.
2996
61ad16d1
MK
2997 * solib-osf.c (osf_current_sos): Remove unsused label.
2998
a6ed5501
MK
2999 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3000 curses headers.
3001 * configure, config.in: Regenerate.
3002 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3003 <ncurses/ncurses.h>.
3004
016ddeca
MK
3005 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3006 * config/nm-nbsd.h: Update copyright year.
3007 (PTRACE_ARG3_TYPE): Remove define.
3008
49ec097f
MK
3009 * sparc-nat.c (fetch_inferior_registers)
3010 (store_inferior_registers, sparc_xfer_wcookie):
3011 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3012
9f8e0089
MK
3013 * alphabsd-nat.c (fetch_inferior_registers):
3014 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3015 PTRACE_TYPE_ARG3.
3016 * amd64bsd-nat.c (fetch_inferior_registers)
3017 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3018 PTRACE_TYPE_ARG3.
3019 * armnbsd-nat.c: Update copyright year.
3020 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3021 (store_register, store_regs, store_fp_register, store_fp_regs):
3022 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3023 * hppabsd-nat.c (fetch_inferior_registers)
3024 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3025 PTRACE_TYPE_ARG3.
3026 * i386bsd-nat.c (fetch_inferior_registers)
3027 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3028 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3029 * m68kbsd-nat.c (fetch_inferior_registers)
3030 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3031 PTRACE_TYPE_ARG3.
3032 * m88kbsd-nat.c (fetch_inferior_registers)
3033 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3034 PTRACE_TYPE_ARG3.
3035 * mipsnbsd-nat.c: Update copyright year.
3036 (fetch_inferior_registers, store_inferior_registers):
3037 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3038 * ns32knbsd-nat.c: Update copyright year.
3039 (fetch_inferior_registers, store_inferior_registers):
3040 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3041 * ppcnbsd-nat.c (fetch_inferior_registers):
3042 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3043 PTRACE_TYPE_ARG3.
3044 * ppcobsd-nat.c (fetch_inferior_registers):
3045 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3046 PTRACE_TYPE_ARG3.
3047 * shnbsd-nat.c: Update copyright year.
3048 (fetch_inferior_registers, store_inferior_registers):
3049 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3050 * vaxbsd-nat.c (fetch_inferior_registers)
3051 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3052 PTRACE_TYPE_ARG3.
3053
655c5466
MK
3054 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3055 PTRACE_TYPE_ARG3.
3056 * infptrace.c (call_ptrace, child_resume, attach, detach)
3057 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3058 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3059 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3060 PTRACE_TYPE_ARG3.
3061
c40d0d10
MK
30622004-08-14 Mark Kettenis <kettenis@gnu.org>
3063
5cb0ff31
MK
3064 * defs.h: Remove out-of-date comment.
3065 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3066 [!GETENV_PROVIDED] (getenv): Remove prototype.
3067
5f0f34cb
MK
3068 * standalone.c: Remove file.
3069 * Makefile.in (standalone.o): Remove dependency.
3070
7532965f
MK
3071 * i386-linux-nat.c (dummy_sse_values): Remove function and
3072 prototype.
3073 (i386_linux_dr_get): Fix typo in comment.
3074 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3075
1bdc6c53
MK
3076 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3077
c40d0d10
MK
3078 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3079 from declaration.
3080 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3081 from definition.
3082
64218d3e
MK
30832004-08-13 Mark Kettenis <kettenis@gnu.org>
3084
3085 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3086 parenthesis in definition.
3087 * configure: Regenerated.
3088
926c94e7
MC
30892004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3090
3091 * PROBLEMS: Mention build/1411.
3092
69489883
NN
30932004-08-09 Robert Millan <robertmh@gnu.org>
3094
3095 Committed by Nathanael Nerode.
3096 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3097 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3098
ebb7c577
AC
30992004-08-12 Andrew Cagney <cagney@gnu.org>
3100
3101 * NEWS: Mention fixes in GDB 6.2.1.
3102 * PROBLEMS: Remove mention of mips-irix.
3103
232d697c
JB
31042004-08-11 Joel Brobecker <brobecker@gnat.com>
3105
3106 * config/powerpc/xm-aix.h: Delete.
3107 * config/powerpc/aix.mh (MH_FILE): Remove.
3108 * config/powerpc/aix432.mh (MH_FILE): Remove.
3109
72f4e82b
JB
31102004-08-11 Joel Brobecker <brobecker@gnat.com>
3111
3112 * config/powerpc/aix.mh: Remove obsolete comment.
3113 * config/powerpc/aix432.mh: Likewise.
3114
0687ccb2
JB
31152004-08-11 Joel Brobecker <brobecker@gnat.com>
3116
3117 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3118
dbf3ada7
JB
31192004-08-11 Joel Brobecker <brobecker@gnat.com>
3120
e08e1886
JB
3121 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3122 this file is now empty.
3123 * config/xm-aix4.h: Remove, this file is no longer included
3124 anywhere.
3125
31262004-08-11 Joel Brobecker <brobecker@gnat.com>
3127
3128 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3129 that file is now empty.
dbf3ada7
JB
3130 (termdef): Remove prototype, function no longer used.
3131
4c525ef6
JB
31322004-08-11 Joel Brobecker <brobecker@gnat.com>
3133
3134 * doc/gdbint.texinfo (Host Definition): Remove documentation
3135 for USE_O_NOCTTY, no longer used.
3136 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3137 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3138
82e0b968
JB
31392004-08-11 Joel Brobecker <brobecker@gnat.com>
3140
3141 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3142 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3143 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3144
f2acbe1c
MK
31452004-08-11 Mark Kettenis <kettenis@gnu.org>
3146
daa98270
MK
3147 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3148 instead of FIVE_ARG_PTRACE.
3149
f2acbe1c
MK
3150 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3151 (new_tty): Use O_NOCTTY unconditionally.
3152
cc377e6b
MK
31532004-08-10 Mark Kettenis <kettenis@gnu.org>
3154
3155 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3156 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3157 fflush on stdout.
3158
3bcc18fa
JB
31592004-08-10 Joel Brobecker <brobecker@gnat.com>
3160
3161 * xcoff_symfile_finish: Replace last call to xmfree by call
3162 to xfree.
3163
7936743b
AC
31642004-08-10 Andrew Cagney <cagney@gnu.org>
3165
cc503c8a
AC
3166 * main.c (captured_main): Delete call to init_malloc.
3167 * defs.h (init_malloc): Delete declaration.
3168 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3169 (init_malloc): Delete functions.
3170
2dc74dc1
AC
3171 * defs.h (xmfree): Delete.
3172 * utils.c (xmfree): Delete function.
3173 (xfree): Inline calls to xmfree and mfree.
3174 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3175 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3176 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3177 * somread.c (som_symfile_finish): Ditto.
3178 * objfiles.c (allocate_objfile, free_objfile):
3179 * nlmread.c (nlm_symfile_finish): Ditto.
3180 * hpread.c (hpread_symfile_finish): Ditto.
3181 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3182 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3183 * coffread.c (coff_symfile_finish): Ditto.
3184
aa2ee5f6
AC
3185 * defs.h (xmcalloc): Delete declaration.
3186 * utils.c (xmcalloc): Delete.
3187 (xcalloc): Inline calls to xmcalloc and mcalloc.
3188 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3189 xcalloc and xfree.
3190 * symtab.c (create_demangled_names_hash): Ditto.
3191
0efffb96
AC
3192 * defs.h (xmrealloc): Delete.
3193 * utils.c (xmrealloc): Delete.
3194 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3195 * symmisc.c (extend_psymbol_list): Use xrealloc.
3196 * source.c (find_source_lines): Ditto.
3197 * hpread.c (hpread_lookup_type): Ditto.
3198 * dbxread.c (add_bincl_to_list): Ditto.
3199
7936743b
AC
3200 * utils.c (xmmalloc): Delete.
3201 (xmalloc): Inline xmmalloc and mmalloc calls.
3202 (msavestring): Use xmalloc.
3203 * defs.h (xmmalloc): Delete declaration.
3204 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3205 xmmalloc.
3206 * symmisc.c (extend_psymbol_list): Ditto.
3207 * symfile.c (init_psymbol_list): Ditto.
3208 * source.c (find_source_lines): Ditto.
3209 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3210 * elfread.c (elf_symtab_read): Ditto.
3211 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3212 * coffread.c (coff_symfile_init): Ditto.
3213
252ab814
DC
32142004-08-10 David Carlton <carlton@bactrian.org>
3215
3216 * MAINTAINERS: Remove David Carlton from c++ testsuite
3217 maintainers.
3218
8f5ba92b
JG
32192004-08-10 Jerome Guitton <guitton@gnat.com>
3220
3221 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3222 print a line feed before the prompt.
3223
21749010
MK
32242004-08-10 Mark Kettenis <kettenis@gnu.org>
3225
3226 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3227
1f011ce2
JB
32282004-08-09 Joel Brobecker <brobecker@gnat.com>
3229
3230 General cleanup of the AIX xm include file:
3231 * config/xm-aix4.h (fd_set): Remove undefine.
3232 Remove include of <sys/select.h>.
3233 (HAVE_TERMIO): Remove define.
3234 (USG): Likewise.
3235 (NULL): Remove redefine.
3236 (alloca): Remove #pragma.
3237 (vfork): Remove define.
3238 (termdef): Remove.
3239 (SIGWINCH_HANDLER): Remove.
3240 (SIGWINCH_HANDLER_BODY): Remove.
3241
cf4e7692
MK
32422004-08-09 Mark Kettenis <kettenis@gnu.org>
3243
3244 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3245 GDB_OSABI_OPENBSD_ELF.
3246
ac5754fa
MK
32472004-08-07 Robert Millan <robertmh@gnu.org>
3248
3249 * bsd-kvm.c: Check for nlist.h before including it.
3250
086ec9eb
MK
32512004-08-09 Mark Kettenis <kettenis@gnu.org>
3252
bbe06c74
MK
3253 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3254 sigcontext' offset consistency checks for ancient BSD.
3255
3aa7b3b3
MK
3256 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3257
086ec9eb
MK
3258 * configure.in: Check for <sys/types.h>. Check return and
3259 argument types of ptrace.
3260 * configure, config.in: Regenerate.
3261
09991fa0
JB
32622004-08-09 Jim Blandy <jimb@redhat.com>
3263
3264 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3265 rs6000_register_sim_regno): Doc fixes.
3266
fed7ba43
JB
32672004-08-08 Joel Brobecker <brobecker@gnat.com>
3268
3269 * mips-tdep.c: Include "floatformat.h".
3270 (n32n64_floatformat_always_valid): New function.
3271 (floatformat_n32n64_long_double_big): New constant.
3272 (mips_gdbarch_init): Set size and format of long double
3273 for N32 and N64 ABIs.
3274 * Makefile.in (mips-tdep.o): Update dependencies.
3275
456fcf94
AC
32762004-08-08 Andrew Cagney <cagney@gnu.org>
3277
2f9b146e
AC
3278 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3279 print. Improve script's error messages.
3280 * gdbarch.h: Re-generate.
3281
456fcf94
AC
3282 * gdbarch.sh (pformat): New function.
3283 (float_format, double_format, long_double_format): List with bit
3284 members. Use pformat when printing.
3285 * gdbarch.c, gdbarch.h: Re-generate.
3286
69e9e646
NW
32872004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3288
3289 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3290 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3291 (ppcnbsd_supply_pcb): New function.
3292 (_initialize_ppcnbsd_nat): New prototype and function.
3293 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3294 (LOADLIBES): New variable.
3295 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3296
5ef2d0aa
AC
32972004-08-08 Andrew Cagney <cagney@gnu.org>
3298
3299 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3300 (builtin_type_ieee_double, builtin_type_ia64_quad)
3301 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3302 BE/LE floating-point types.
3303 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3304 (builtin_type_ieee_double, builtin_type_ia64_quad)
3305 (builtin_type_ia64_spill): Declare.
3306 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3307 (floatformat_ieee_double, floatformat_arm_ext)
3308 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3309 of LE/BE floatformats.
3310 * doublest.h: (struct floatformat, floatformat_ieee_single)
3311 (floatformat_ieee_double, floatformat_arm_ext)
3312 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3313
5c7f2947
MK
33142004-08-08 Mark Kettenis <kettenis@gnu.org>
3315
ecac404d
MK
3316 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3317
9b8607ce
MK
3318 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3319 instead of regcache_raw_supply when storing the registers.
3320
f6052080
MK
3321 * i386gnu-nat.c: Update copyright year.
3322 (gnu_store_registers): Don't use deprecated_registers and
3323 deprecated_registers_valid. Use regcache_valid_p and
3324 regcache_raw_supply instead.
3325
17777823
MK
3326 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3327 frame_pc_unwind.
3328
5240ceac
MK
3329 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3330 variables. Incapitalized "process".
3331
5c7f2947
MK
3332 * configure.in: Add cursesX to the list of possible curses libs.
3333 Add cursesX.h to the list of possible curses headers.
3334 * configure, config.in: Regenerate.
3335
da7d81e3
NW
33362004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3337
3338 * configure.in: Test for struct lwp in <sys/lwp.h>.
3339 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3340 the offset of l_addr in struct lwp.
3341
7f245d65
NW
33422004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3343
3344 * bsd-kvm.c: Include "gdbcore.h"
3345 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3346
47b3f456
AC
33472004-08-07 Andrew Cagney <cagney@gnu.org>
3348
70bd8e24
AC
3349 * gdbtypes.c (build_flt, build_complex): New functions.
3350 (gdbtypes_post_init): Use.
3351
9b0dea39
AC
3352 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3353
5cf7abac
AC
3354 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3355 through to builtin_type_uint128.
3356
64d2b26d
AC
3357 * c-exp.y: Use builtin_type function to obtain builtin types.
3358
7ad6570d
AC
3359 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3360 builtin_uint128.
3361 * gdbtypes.c (gdbtypes_post_init): Update.
3362 (build_gdbtypes): Move initialization of builtin_type_int0
3363 through to builtin_type_uint128 from here ...
3364 (_initialize_gdbtypes): ... to here.
3365 * d10v-tdep.c (d10v_register_type): Update.
3366
47b3f456
AC
3367 * doublest.c: Update copyright.
3368 (floatformat_from_length): Call error when floatformat is NULL.
3369 (extract_floating_by_length): Remove NULL fmt check.
3370 (store_floating_by_length): Ditto.
3371
0a8146bf
AC
33722004-08-07 Andrew Cagney <cagney@gnu.org>
3373
3374 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3375 that the register is valid.
3376
c0ccb908
MK
33772004-08-05 Mark Kettenis <kettenis@chello.nl>
3378
8e6bed05
MK
3379 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3380 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3381 struct frame_info *. Use safe_frame_unwind_memory instead of
3382 deprecated_read_memory_nobpt.
3383 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3384 changed signature of i386_linux_sigtramp_start and
3385 i386_linux_rt_sigtramp_start.
3386
24f9f5e3
MK
3387 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3388 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3389 instead of deprecated_read_memory_nobpt.
3390 (i386nbsd_sigtramp_p): Adjust for changed signature of
3391 i386nbsd_sigtramp_offset.
3392
c822af0c
MK
3393 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3394 safe_frame_unwind_memory instead of target_read_memory.
3395
c0ccb908
MK
3396 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3397 !NO_SYS_FILE.
3398 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3399 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3400 (_initialize_kernel_u_addr): Remove prototype and function.
3401 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3402 !NO_SYS_FILE.
3403 * xcoffread.c: Likewise.
3404
b9e1c0d6
MK
34052004-08-06 Mark Kettenis <kettenis@gnu.org>
3406
3407 * vax-nat.c: New file.
3408 * vaxbsd-nat.c: Tweak comment.
3409 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3410 vaxnbsd-tdep.c.
3411 (vax-nat.o): New dependency.
3412 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3413 (vax-*-ultrix2*): Remove.
3414 * config/vax/vax.mh: New file.
3415 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3416 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3417 (vax_register_u_addr): New prototype.
3418 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3419 * config/vax/vaxult2.mh: Remove file.
3420 * config/vax/vaxult.mh: Remove file.
3421 * config/vax/vaxbsd.mh: Remove file.
3422 * config/vax/vax.mt (TM_FILE): Remove.
3423 * config/vax/tm-vaxbsd.h: Remove file.
3424
9ad7bec7
JB
34252004-08-06 Joel Brobecker <brobecker@gnat.com>
3426
3427 * aix-thread.c (get_signaled_thread): New function.
3428 (iter_trap): Delete, no longer used.
3429 (iter_tid): New function.
3430 (pd_update): Find the thread that received the SIGTRAP signal
3431 by first locating the kernel thread, and then finding its
3432 associated thread.
3433
bf0d233d
UW
34342004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3435
3436 * lin-lwp.c (child_wait): Continue inferior after processing
3437 PTRACE_EVENT_CLONE event.
3438
d0f853e1
NN
34392004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3440
3441 * MAINTAINERS: Add self to Write-After-Approval.
3442
ab14aeb0
JJ
34432004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3444
3445 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3446 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3447
9c8dbfa9
AC
34482004-08-05 Andrew Cagney <cagney@gnu.org>
3449
c8f3ca46
AC
3450 * config/xm-sysv4.h: Delete file.
3451 * config/mips/xm-irix5.h: Delete file.
3452 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3453 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3454 * config/ia64/xm-aix.h: Delete file.
3455 * config/ia64/aix.mh (XM_FILE): Delete.
3456 * config/pa/xm-hppah.h: Delete file.
3457 * config/pa/hpux11w.mh (XM_FILE): Delete.
3458 * config/pa/hpux11.mh (XM_FILE): Delete.
3459 * config/pa/hpux1020.mh (XM_FILE): Delete.
3460 * config/pa/hppahpux.mh (XM_FILE): Delete.
3461
5f7daaff
AC
3462 * config/alpha/xm-alphalinux.h: Delete file.
3463 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3464 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3465 * config/alpha/xm-alphaosf.h: Delete file.
3466 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3467 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3468 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3469 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3470
69babf95
AC
3471 * config/i386/xm-i386v.h: Delete file.
3472 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3473 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3474 * config/i386/xm-i386sco.h: Delete file.
3475 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3476 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3477 * config/i386/xm-i386v4.h: Delete file.
3478 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3479 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3480 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3481 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3482
6f009c8a
AC
3483 * config/vax/xm-vax.h: Delete file.
3484 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3485 * config/vax/xm-vaxult2.h: Delete file.
3486 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3487 * config/vax/vaxult2.mh (XM_FILE): Delete.
3488 * config/vax/xm-vaxult.h: Delete file.
3489 * config/vax/vaxult.mh (XM_FILE): Delete.
3490 * config/vax/xm-vaxbsd.h: Delete file.
3491 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3492
9c8dbfa9
AC
3493 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3494 * gdbarch.h, gdbarch.c: Re-generate.
3495 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3496 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3497 * frame.h: Delete deprecated_read_fp from comments.
3498 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3499 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3500
84367a3e
MK
35012004-08-04 Mark Kettenis <kettenis@gnu.org>
3502
9c8e3411
MK
3503 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3504 trampoline in OpenBSD 3.5-current.
3505
b87bc0d8
MK
3506 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3507 SSE registers.
3508
84367a3e
MK
3509 * Makefile.in: Remove embedded page breaks.
3510
a44bddec
JB
35112004-08-04 Jim Blandy <jimb@redhat.com>
3512
7ab3286f
JB
3513 * regcache.c (regcache_raw_read): Assert that, after calling
3514 target_fetch_registers, the register we're reading is cached.
3515
a44bddec
JB
3516 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3517 a call to 'internal_error', with a more helpful error message.
3518 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3519 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3520
35124113
AC
35212004-08-04 Andrew Cagney <cagney@gnu.org>
3522
3523 * Makefile.in: Update dependencies.
3524
9f643768
JB
35252004-08-04 Jim Blandy <jimb@redhat.com>
3526
6ced10dd
JB
3527 Change the layout of the PowerPC E500 raw register cache to allow
3528 the lower 32-bit halves of the GPRS to be their own raw registers,
3529 not pseudoregisters.
3530 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3531 add ppc_ev0_upper_regnum flag.
3532 * rs6000-tdep.c: #include "reggroups.h".
3533 (spe_register_p): Recognize the ev upper half registers as SPE
3534 registers.
3535 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3536 registers.
3537 (e500_move_ev_register): New function.
3538 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3539 vector registers are the pseudo-registers now, formed by splicing
3540 together the gprs and the upper-half registers.
3541 (e500_register_reggroup_p): New function.
3542 (P): Macro deleted.
3543 (P8, A4): New macro.
3544 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3545 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3546 macros.
3547 (registers_e500): Rearrange register set so that the raw register
3548 set contains 32-bit GPRs and upper-half registers, and the SPE
3549 vector registers become pseudo-registers.
3550 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3551 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3552 register numbers are now the same for the E500 as they are for
3553 other PowerPC variants. Register e500_register_reggroup_p as the
3554 register group function for the E500.
3555 * Makefile.in (rs6000-tdep.o): Update dependencies.
3556
3557 Adapt PPC E500 native support to the new raw regcache layout.
3558 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3559 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3560 (fetch_spe_register, store_spe_register): Handle fetching/storing
3561 all the SPE registers at once, if regno == -1. These now take
3562 over the job of fetch_spe_registers and store_spe_registers.
3563 (fetch_spe_registers, store_spe_registers): Deleted.
3564 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3565 unconditionally; they're always raw. Fetch/store SPE upper half
3566 registers, if present, instead of ev registers.
3567 (fetch_register, store_register): Remove sanity checks: gprs are
3568 never pseudo-registers now, so we never need to even mention any
3569 registers that are ever pseudoregisters.
3570
9f643768
JB
3571 Use a fixed register numbering when communicating with the PowerPC
3572 simulator.
3573 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3574 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3575 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3576 New functions.
3577 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3578 init_sim_regno_table.
3579 * Makefile.in (gdb_sim_ppc_h): New variable.
3580 (rs6000-tdep.o): Update dependencies.
3581
1e2279c8
AC
35822004-08-02 Andrew Cagney <cagney@gnu.org>
3583
1d94326f
AC
3584 * cris-tdep.c (cris_register_size): Restore function, still used
3585 locally.
3586
331ae7ed
AC
3587 * gdbarch.sh (deprecated_target_read_fp)
3588 (deprecated_frame_locals_address, deprecated_frame_args_address)
3589 (deprecated_frame_chain_valid, deprecated_frame_chain)
3590 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3591 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3592 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3593 * gdbarch.h, gdbarch.c: Re-generate.
3594 * regcache.c (deprecated_read_fp): Do not call
3595 DEPRECATED_TARGET_READ_FP_P.
3596 * infcmd.c (default_print_registers_info): Do not call
3597 DEPRECATED_DO_REGISTERS_INFO.
3598 * frame-base.c (default_frame_locals_address): Do not call
3599 DEPRECATED_FRAME_LOCALS_ADDRESS.
3600 (default_frame_args_address): Do not call
3601 DEPRECATED_FRAME_ARGS_ADDRESS.
3602
1e2279c8
AC
3603 * gdbarch.sh (deprecated_register_raw_size)
3604 (deprecated_register_virtual_size:int): Delete.
3605 * gdbarch.h, gdbarch.c: Re-generate.
3606 * cris-tdep.c (cris_register_size): Delete.
3607 (cris_gdbarch_init): Update.
3608 * alpha-tdep.c (alpha_register_raw_size)
3609 (alpha_register_virtual_size): Delete.
3610 (alpha_gdbarch_init): Update.
3611
a90c06b4
AC
3612 * gdbarch.sh (deprecated_register_virtual_type)
3613 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3614 (deprecated_dummy_write_sp): Delete.
3615 * gdbarch.h, gdbarch.c: Re-generate.
3616
f42accbe
AC
3617 * gdbarch.sh (deprecated_register_bytes): Delete.
3618 * gdbarch.h, gdbarch.c: Re-generate.
3619 * regcache.c (deprecated_register_bytes): New function.
3620 * regcache.h (deprecated_register_bytes): Declare.
3621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3622 * v850-tdep.c (v850_gdbarch_init): Update.
3623 * sh64-tdep.c (sh64_gdbarch_init): Update.
3624 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3625 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3626 * mcore-tdep.c (mcore_gdbarch_init): Update.
3627 * cris-tdep.c (cris_gdbarch_init): Update.
3628 * arm-tdep.c (arm_gdbarch_init): Update.
3629 * remote.c (init_remote_state): Update.
3630 * remote-vx.c (vx_prepare_to_store): Update.
3631 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3632 * irix5-nat.c (fetch_core_registers): Update.
3633 * cris-tdep.c (cris_register_bytes_ok): Update.
3634 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3635
45c9dd44
AC
3636 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3637 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3638 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3639 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3640 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3641 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3642 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3643 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3644 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3645 with mips_insn16 and mips_insn32.
3646
3acba339
AC
3647 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3648 * rs6000-tdep.c (rs6000_push_dummy_call)
3649 (rs6000_extract_return_value): Use register_size.
3650 * xstormy16-tdep.c (xstormy16_get_saved_register)
3651 (xstormy16_extract_return_value): Ditto.
3652 * valops.c (value_assign): Ditto.
3653 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3654 * v850-tdep.c (v850_extract_return_value): Ditto.
3655 * tracepoint.c (collect_symbol): Ditto.
3656 * target.c (debug_print_register): Ditto.
3657 * stack.c (frame_info): Ditto.
3658 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3659 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3660 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3661 (store_register_using_P): Ditto.
3662 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3663 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3664 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3665 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3666 * regcache.c (deprecated_read_register_bytes)
3667 (deprecated_write_register_bytes, read_register)
3668 (write_register): Ditto.
3669 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3670 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3671 * monitor.c (monitor_supply_register, monitor_fetch_register)
3672 (monitor_store_register): Ditto.
3673 * mn10300-tdep.c (mn10300_pop_frame_regular)
3674 (mn10300_print_register): Ditto.
3675 * mipsv4-nat.c (fill_fpregset): Ditto.
3676 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3677 (mips64_fill_fpregset): Ditto.
3678 * mi/mi-main.c (register_changed_p, get_register)
3679 (mi_cmd_data_write_register_values): Ditto.
3680 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3681 * irix5-nat.c (fill_gregset, fetch_core_registers):
3682 * infrun.c (write_inferior_status_register): Ditto.
3683 * infptrace.c (fetch_register, store_register): Ditto.
3684 * infcmd.c (default_print_registers_info): Ditto.
3685 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3686 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3687 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3688 * hpux-thread.c (hpux_thread_fetch_registers)
3689 (hpux_thread_store_registers): Ditto.
3690 * hppah-nat.c (store_inferior_registers, fetch_register):
3691 * findvar.c (value_from_register): Ditto.
3692 * dve3900-rom.c (fetch_bitmapped_register):
3693 * cris-tdep.c (cris_gdbarch_init): Ditto.
3694 * alpha-tdep.h: Ditto.
3695 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3696
01e1877c
AC
3697 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3698 DEPRECATED_REGISTER_RAW_SIZE from comments.
3699 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3700 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3701 DEPRECATED_REGISTER_RAW_SIZE.
3702 * findvar.c (value_of_register): Simplify by assuming that the
3703 registers raw and virtual sizes are identical.
3704 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3705 comment.
3706 * arch-utils.c (generic_register_size): Simplify by assuming
3707 register_type.
3708
73f458fb
AC
3709 * regcache.c (legacy_read_register_gen, real_register)
3710 (legacy_write_register_gen): Delete, not used.
3711
336a3131
AC
3712 * regcache.c (struct regcache_descr): Delete legacy_p.
3713 (init_legacy_regcache_descr): Delete function.
3714 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3715 Do not use deprecated register functions.
3716 (regcache_raw_read, deprecated_write_register_gen):
3717 (deprecated_read_register_gen, regcache_raw_write): Delete code
3718 predicated on legacy_p.
3719 (register_size): Delete check against register raw size.
3720
c1d546cd
AC
3721 * cris-tdep.c (cris_register_type): Replace
3722 cris_register_virtual_type.
3723 (cris_gdbarch_init): Update, set register_type.
3724
48c2c0a6
AC
3725 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3726 * gdbarch.h, gdbarch.c: Re-generate.
3727 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3728 (arm_gdbarch_init) Do not set frameless function invocation.
3729 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3730 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3731 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3732 (frv_gdbarch_init): Do not set frameless function invocation.
3733 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3734 * sh-tdep.c (sh_gdbarch_init): Ditto.
3735 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3736 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3737 * avr-tdep.c (avr_gdbarch_init): Ditto.
3738
474093a6
AC
3739 * blockframe.c (legacy_frame_chain_valid): Delete function.
3740
3c109c8b
AC
3741 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3742 and pc. Update comments.
3743 (pc_in_dummy_frame): Delete function.
3744 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3745 use the "id".
3746 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3747 call_hi, top and pc, use the id.
3748 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3749
96860204
AC
3750 * dummy-frame.c: Include "gdb_string.h".
3751 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3752 (generic_save_dummy_frame_tos): Delete.
3753 (dummy_frame_push): New function, replaces above.
3754 * dummy-frame.h: Update copyright.
3755 (dummy_frame_push): Declare.
3756 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3757 (generic_save_call_dummy_addr): Delete declarations.
3758 * infcall.c: Include "dummy-frame.h".
3759 (call_function_by_hand): Add locals caller_regcache,
3760 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3761 with call to frame_save_as_regcache plus cleanup. Delete calls to
3762 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3763 Move clear_proceed_status to just before the resume, add call to
3764 dummy_frame_push (discard cleanup).
3765 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3766 (dummy-frame.o): Add $(gdb_string_h).
3767
d67ec5db
AC
37682004-08-01 Andrew Cagney <cagney@gnu.org>
3769
3770 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3771 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3772 * dummy-frame.c (find_dummy_frame): Delete.
3773 (struct dummy_frame_cache, dummy_frame_sniffer)
3774 (dummy_frame_prev_register, dummy_frame_this_id)
3775 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3776 frame unwinder using a dummy_frame_cache.
3777
a81dcb05
AC
37782004-08-01 Andrew Cagney <cagney@gnu.org>
3779
3780 * frame.h (frame_save_as_regcache): Declare.
3781 * frame.c (frame_save_as_regcache): New function.
3782 (do_frame_read_register): Replace do_frame_unwind_register.
3783 (frame_pop): Use frame_save_as_regcache.
3784 * dummy-frame.c (generic_push_dummy_frame): Use
3785 frame_save_as_regcache.
3786
aa495d11
JB
37872004-08-01 Joel Brobecker <brobecker@gnat.com>
3788
3789 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3790 file as included until we record the first line in the linetable.
3791
ff65ac78
AC
37922004-08-01 Andrew Cagney <cagney@gnu.org>
3793
3794 * frame.h (deprecated_pop_dummy_frame)
3795 (deprecated_read_register_dummy)
3796 (deprecated_generic_find_dummy_frame): Delete.
3797 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3798 (deprecated_read_register_dummy)
3799 (deprecated_find_dummy_frame_regcache)
3800 (discard_innermost_dummy)
3801 (deprecated_pop_dummy_frame): Delete.
3802 (dummy_frame_this_id): Simplify.
3803 (struct dummy_frame): Delete "fp" and "sp".
3804 (find_dummy_frame): Simplify.
3805 (generic_push_dummy_frame): Do not set "fp" or "sp".
3806 (fprint_dummy_frames): Do not print "fp" and "sp"
3807
37bdc87e
MK
38082004-08-01 Mark Kettenis <kettenis@gnu.org>
3809
3810 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3811 (struct i386_insn): New structure.
3812 (i386_match_insn): New function.
3813 (i386_frame_setup_skip_insns): New variable.
3814 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3815 array i386_frame_setup_insns of instructions that should be
3816 skipped inside the frame setup sequence.
3817
8241eaa6
AC
38182004-08-01 Andrew Cagney <cagney@gnu.org>
3819
5bc602c7
AC
3820 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3821 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3822 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3823 * stack.c (frame_info): Delete references to
3824 DEPRECATED_FRAME_INIT_SAVED_REGS and
3825 deprecated_get_frame_saved_regs.
3826 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3827 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3828 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3829 (frame_unwind_register_signed)
3830 (frame_unwind_register_unsigned)
3831 (frame_unwind_unsigned_register): Use register_size.
3832 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3833 (deprecated_frame_xmalloc_with_cleanup)
3834 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3835 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3836
03d363a1
AC
3837 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3838 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3839 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3840 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3841
8241eaa6
AC
3842 * infcall.c (call_function_by_hand): Do not use
3843 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3844 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3845 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3846 DEPRECATED_STACK_ALIGN.
3847
f00df8b7
AC
38482004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3849
3850 Committed by Andrew Cagney.
3851 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3852
eec63939
AC
38532004-08-01 Andrew Cagney <cagney@gnu.org>
3854
3855 * mips-tdep.c (mips16_frame_cache)
3856 (mips16_frame_this_id, mips16_frame_prev_register)
3857 (mips16_frame_unwind, mips16_frame_sniffer)
3858 (mips16_frame_base_address, mips16_frame_base)
3859 (mips16_frame_base_sniffer, mips32_frame_cache)
3860 (mips32_frame_this_id, mips32_frame_prev_register)
3861 (mips32_frame_unwind, mips32_frame_sniffer)
3862 (mips32_frame_base_address, mips32_frame_base)
3863 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3864 separate heuristic mips16 and mips32 unwinders.
3865 (mips_stub_frame_cache, mips_stub_frame_this_id)
3866 (mips_stub_frame_prev_register)
3867 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3868 (mips_stub_frame_base_address, mips_stub_frame_base)
3869 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3870 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3871 match true mdebug frames.
3872 (non_heuristic_proc_desc): Add forward declaration.
3873
e66299b3
AC
38742004-08-01 Andrew Cagney <cagney@gnu.org>
3875
83cbbf3e
AC
3876 * config/mips/tm-irix6.h: Delete file.
3877 * config/mips/tm-irix5.h: Delete file.
3878 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3879 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3880
22d41b37
AC
3881 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3882 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3883 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3884 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3885 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3886 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3887 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3888 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3889 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3890 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3891 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3892 (TARGET_SIGNAL_RAW_VALUES): Delete.
3893 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3894 Delete.
3895 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3896 (TARGET_HW_WATCH_LIMIT): Delete.
3897 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3898 * minimon.h: Delete file.
3899
e66299b3
AC
3900 * trad-frame.c (trad_frame_get_this_base)
3901 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3902 functions.
3903 * trad-frame.h (trad_frame_set_this_base)
3904 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3905
1f67027d
AC
39062004-07-31 Andrew Cagney <cagney@gnu.org>
3907
3908 * trad-frame.c (trad_frame_get_prev_register): Rename
3909 trad_frame_get_prev_register.
3910 * vax-tdep.c (vax_frame_prev_register): Update.
3911 * trad-frame.h: Update.
3912 * trad-frame.c (trad_frame_get_register): Update.
3913 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3914 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3915 Update.
3916 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3917 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3918 Update.
3919 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3920 Update.
3921 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3922 Update.
3923 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3924 Update.
3925 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3926 Update.
3927 * s390-tdep.c (s390_frame_prev_register)
3928 (s390_stub_frame_prev_register)
3929 (s390_sigtramp_frame_prev_register): Update.
3930 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3931 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3932 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3933 * m88k-tdep.c (m88k_frame_prev_register)
3934 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3935 * m32r-tdep.c (m32r_frame_prev_register): Update.
3936 * hppa-tdep.c (hppa_frame_prev_register_helper)
3937 * frv-tdep.c (frv_frame_prev_register): Update.
3938 * d10v-tdep.c (d10v_frame_prev_register): Update.
3939 * cris-tdep.c (cris_frame_prev_register): Update.
3940 * avr-tdep.c (avr_frame_prev_register): Update.
3941 * arm-tdep.c (arm_prologue_prev_register)
3942 (arm_sigtramp_prev_register): Update.
3943
c1bf6f65
AC
39442004-07-31 Andrew Cagney <cagney@gnu.org>
3945
3946 * frame.h (legacy_saved_regs_unwind)
3947 (legacy_frame_chain_valid, legacy_frame_p)
3948 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
3949 * dummy-frame.c (dummy_frame_this_id): Simplify.
3950 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
3951 * frame.c (struct frame_info): Delete the field "type".
3952 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3953 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3954 (legacy_saved_regs_unwind, legacy_frame_p)
3955 (frame_type_from_pc): Delete.
3956 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3957 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3958
dc856692
MK
39592004-07-31 Mark Kettenis <kettenis@gnu.org>
3960
5a5effe1
MK
3961 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3962 indentation.
3963
d4fd50a6
MK
3964 * mips-nat.c: Remove file.
3965 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3966 (mips-nat.o): Remove dependency.
3967
2689df5a
MK
3968 * infptrace.c: Update copyright year.
3969 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3970 explicitly setting the buffer to all zeroes.
3971
dc856692
MK
3972 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3973 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3974
763910e0
AC
39752004-07-30 Andrew Cagney <cagney@gnu.org>
3976
3977 * GDB 6.2 released from gdb_6_2-branch.
3978
0b66e38c
EZ
39792004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3980
3981 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3982
3983 * exec.c (exec_file_attach):
3984 * nto-tdep.c (nto_find_and_open_solib):
3985 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3986 * solib.c (solib_open):
3987 * somsolib.c (som_solib_sizeof_symbol_table):
3988 * source.c (is_regular_file, openp, open_source_file):
3989 * symfile.c (symfile_bfd_open):
3990 * wince.c (upload_to_device): Differentiate between the search for
3991 binary and source files.
3992
be7d7357
AC
39932004-07-30 Andrew Cagney <cagney@gnu.org>
3994
3995 * complaints.c (_initialize_complaints): Pass NULL to
3996 add_setshow_zinteger_cmd for help_doc.
3997 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3998
ddc9cd0f
AC
39992004-07-30 Andrew Cagney <cagney@gnu.org>
4000
4001 Fix PR i18n/761.
4002 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4003 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4004 $(PACKAGE).pot and update-po.
4005 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4006 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4007 (update-po): New rules.
4008 (localedir): Define using autoconf.
4009 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4010 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4011 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4012 * configure.in: Generate CATALOGS and LINGUAS from contents of
4013 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4014 * configure: Re-generate.
4015 * po/gdbtext: New file
4016
e92f3704
JG
40172004-07-30 Jerome Guitton <guitton@gnat.com>
4018
4019 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4020 order.
4021
b0f35d58
DL
40222004-07-30 David Lecomber <dsl@sources.redhat.com>
4023
4024 * dwarf2read.c (read_file_scope): Set producer if attribute
4025 present.
4026 (struct dwarf2_cu): Added new member producer.
4027
ce7d4522
JG
40282004-07-30 Jerome Guitton <guitton@gnat.com>
4029
4030 * inflow.c (kill_command): release file handles in BFD.
4031 * exec.c (exec_file_attach): Ditto.
4032 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4033
05ee07c7
AC
40342004-07-29 Andrew Cagney <cagney@gnu.org>
4035
4036 * PROBLEMS (mips-irix): Note that it is broken.
4037
62eceb47
AC
40382004-07-29 Andrew Cagney <cagney@gnu.org>
4039
e57b8d41
AC
4040 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4041 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4042
d334389b
AC
4043 * config/xm-nbsd.h: Delete file.
4044 * config/arm/xm-nbsd.h: Delete file.
4045 * config/i386/xm-nbsd.h: Delete file.
4046 * config/ns32k/xm-nbsd.h: Delete file.
4047 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4048 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4049 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4050 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4051 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4052
e910f676
AC
4053 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4054 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4055 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4056 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4057 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4058 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4059
6fa856b9
AC
4060 * config/powerpc/xm-linux.h: Delete empty file.
4061 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4062 * config/powerpc/linux.mh (XM_FILE): Delete.
4063 * config/m68k/xm-linux.h: Delete empty file.
4064 * config/m68k/linux.mh (XM_FILE): Delete.
4065 * config/ia64/xm-linux.h: Delete empty file.
4066 * config/ia64/linux.mh (XM_FILE): Delete.
4067 * config/arm/xm-linux.h: Delete empty file.
4068 * config/arm/linux.mh (XM_FILE): Delete.
4069
471ae5ae
AC
4070 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4071 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4072 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4073 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4074 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4075 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4076 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4077 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4078
62eceb47
AC
4079 * config/m68k/xm-m68k.h: Delete file.
4080 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4081 copyright.
4082 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4083 * config/pa/xm-linux.h: Delete empty file.
4084 * config/pa/linux.mh (XM_FILE): Delete.
4085 * config/i386/xm-i386.h: Delete empty file.
4086 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4087 "i386/xm-i386.h".
4088 * config/i386/obsdaout.mh (XM_FILE): Delete.
4089 * config/i386/obsd64.mh (XM_FILE): Delete.
4090 * config/i386/fbsd64.mh (XM_FILE): Delete.
4091 * config/i386/nto.mh (XM_FILE): Delete.
4092 * config/i386/obsd.mh (XM_FILE): Delete.
4093 * config/i386/linux64.mh (XM_FILE): Delete.
4094 * config/i386/linux.mh (XM_FILE): Delete.
4095 * config/i386/i386sol2.mh (XM_FILE): Delete.
4096 * config/i386/i386gnu.mh (XM_FILE): Delete.
4097 * config/i386/fbsd.mh (XM_FILE): Delete.
4098 * config/i386/nbsd64.mh (XM_FILE): Delete.
4099
c35f4ffc
AC
41002004-07-29 Andrew Cagney <cagney@gnu.org>
4101
4102 * config/pa/xm-linux.h: Do not include "floatformat.h".
4103 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4104 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4105 * config/i386/xm-i386.h: Do not include "floatformat.h".
4106 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4107 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4108 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4109 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4110 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4111 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4112 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4113 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4114 * configure, config.in: Regenerate.
4115 * configure.host (gdb_host_float_format, gdb_host_double_format)
4116 (gdb_host_long_double_format): Set according to the host.
4117
624a44a3
AC
41182004-07-29 Andrew Cagney <cagney@gnu.org>
4119
4120 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4121
0dea2468
AC
41222004-07-28 Andrew Cagney <cagney@gnu.org>
4123
4124 * PROBLEMS: Mention threads/1650.
4125 * NEWS: Mention the NPTL fix.
4126
b3f42336
AC
41272004-07-28 Andrew Cagney <cagney@gnu.org>
4128
4129 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4130 (add_setshow_cmd_full): Make static.
4131 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4132 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4133 * cli/cli-decode.c (add_setshow_filename_cmd)
4134 (add_setshow_string_cmd): New functions.
4135 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4136 * mips-tdep.c (_initialize_mips_tdep): Update.
4137 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4138 * cli/cli-logging.c (_initialize_cli_logging): Update.
4139 * complaints.c (_initialize_complaints): Update.
4140 * remote.c (_initialize_remote): Update.
4141
3b64bf98
AC
41422004-07-28 Andrew Cagney <cagney@gnu.org>
4143
4144 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4145 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4146 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4147 print parameters. Make string parameters constant.
4148 * command.h: Update. Update copyright.
4149 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4150 * observer.c (_initialize_observer): Ditto.
4151 * frame.c (_initialize_frame): Ditto.
4152 * complaints.c (_initialize_complaints): Ditto.
4153 * maint.c (_initialize_maint_cmds): Ditto.
4154 * target.c (initialize_targets): Ditto.
4155 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4156 * infcall.c (_initialize_infcall): Ditto.
4157 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4158 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4159 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4160 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4161 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4162
e9667a65
AC
41632004-07-28 Andrew Cagney <cagney@gnu.org>
4164
54a5b07d
AC
4165 * gdbtypes.c (lookup_primitive_typename): Delete function.
4166 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4167 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4168 * gdbtypes.c (lookup_typename): Ditto.
4169 * f-exp.y (yylex): Ditto.
4170 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4171
e9667a65
AC
4172 * scm-lang.c (c_builtin_types): Delete extern declaration.
4173 (scm_language_defn): Replace
4174 string_char_type and primitive_type_vector with
4175 la_language_arch_info.
4176 * jv-lang.c (java_language_defn): Replace
4177 string_char_type and primitive_type_vector with
4178 la_language_arch_info.
4179 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4180 c_builtin_types in comment.
4181 * c-lang.h (struct language_arch_info): Declare opaque.
4182 (c_language_arch_info): Declare.
4183 (c_builtin_types): Delete declaration.
4184 * c-lang.c (c_language_arch_info): Set string_char_type to
4185 builtin_char, not builtin_true_char. Make global.
4186 (c_builtin_types): Delete array.
4187 (asm_language_defn, minimal_language_defn): Replace
4188 string_char_type and primitive_type_vector with
4189 la_language_arch_info.
4190
685419e2
AC
41912004-07-28 Andrew Cagney <cagney@gnu.org>
4192
4193 * gdbtypes.h (struct builtin_type): Rename true_char to
4194 builtin_true_char.
4195 * gdbtypes.c (gdbtypes_post_init): Update.
4196 * c-lang.c (arch_info): New function.
4197 (enum c_primitive_types): New enum.
4198 (c_language_defn): Instead of string_char_type and
4199 primitive_type_vector set la_language_arch_info.
4200
5a44ea29
AC
42012004-07-28 Andrew Cagney <cagney@gnu.org>
4202
4203 * language.h (struct language_arch_info): Fix typo
4204 s/primative/primitive/.
4205 * gdbtypes.c (lookup_primitive_typename): Ditto.
4206 * language.c (language_lookup_primitive_type_by_name)
4207 (unknown_language_arch_info): Ditto.
4208
f290d38e
AC
42092004-07-27 Andrew Cagney <cagney@gnu.org>
4210
4211 * defs.h (enum language): Add nr_languages.
4212 * language.h (struct language_arch_info): Define.
4213 (struct language_defn): Add la_language_arch_info.
4214 (language_lookup_primative_type_by_name): Declare.
4215 (language_string_char_type): Declare.
4216 * language.c (_initialize_language, language_gdbarch_post_init)
4217 (struct language_gdbarch, language_gdbarch_data): Implement
4218 per-architecture language information.
4219 (unknown_language_arch_info, language_string_char_type)
4220 (language_lookup_primative_type_by_name): New functions.
4221 (unknown_language_defn, auto_language_defn)
4222 (local_language_defn): Set la_language_arch_info to
4223 unknown_language_arch_info.
4224 (unknown_builtin_types): Delete.
4225 * gdbtypes.c (lookup_primitive_typename): Use
4226 language_lookup_primative_type_by_name.
4227 (create_string_type): Use language_string_char_type.
4228 * values.c (value_from_string): Use language_string_char_type.
4229 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4230 * p-lang.c (pascal_language_defn): Ditto.
4231 * m2-lang.c (m2_language_defn): Ditto.
4232 * jv-lang.c (java_language_defn): Ditto.
4233 * objc-lang.c (objc_language_defn): Ditto.
4234 * f-lang.c (f_language_defn): Ditto.
4235 * c-lang.c (c_language_defn, cplus_language_defn)
4236 (asm_language_defn, minimal_language_defn): Ditto.
4237
000177f0
AC
42382004-07-27 Andrew Cagney <cagney@gnu.org>
4239
4240 * gdbtypes.h (struct builtin_type): Declare.
4241 (builtin_type): Declare.
4242 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4243 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4244 (gdbtypes_post_init): New function.
4245 (builtin_type): New function.
4246
e22f895c
KI
42472004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4248
4249 * remote-m32r-sdi.c: Fix breakpoint bug.
4250 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4251 recv_char_data, recv_long_data): New functions to replace communication
4252 sequences.
4253
536517dd
MC
42542004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4255
4256 Document PR threads/1650.
4257 * PROBLEMS (Threads): Document problem with many threads
4258
a0a44d18
AC
42592004-07-26 Andrew Cagney <cagney@gnu.org>
4260
4261 * gdb-mi.el: Move from here ...
4262 * mi/gdb-mi.el: ... to here.
4263
7ac4ac06
AC
42642004-07-26 Andrew Cagney <cagney@gnu.org>
4265
4266 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4267 * main.c (captured_main): When in batch mode always detach.
4268
a1b461bf
AC
42692004-07-26 Andrew Cagney <cagney@gnu.org>
4270
4271 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4272 and h8300 as broken.
4273 * NEWS: END-OF-LIFE frame compatibility module.
4274 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4275 specific comments.
4276
cb1a6d5f
AC
42772004-07-26 Andrew Cagney <cagney@gnu.org>
4278
4279 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4280 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4281 * wince.c (_initialize_wince): Update.
4282 * win32-nat.c (_initialize_win32_nat): Update.
4283 * varobj.c (_initialize_varobj): Update.
4284 * valops.c (_initialize_valops): Update.
4285 * utils.c (initialize_utils, initialize_utils): Update.
4286 * tui/tui-win.c (_initialize_tui_win): Update.
4287 * top.c (init_main): Update.
4288 * symfile.c (_initialize_symfile): Update.
4289 * source.c (_initialize_source): Update.
4290 * somsolib.c (_initialize_som_solib): Update.
4291 * solib.c (_initialize_solib): Update.
4292 * solib-frv.c (_initialize_frv_solib): Update.
4293 * serial.c (_initialize_serial): Update.
4294 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4295 * remote.c (_initialize_remote, _initialize_remote): Update.
4296 * remote-vx.c (_initialize_vx): Update.
4297 * remote-utils.c (_initialize_sr_support): Update.
4298 * remote-sds.c (_initialize_remote_sds): Update.
4299 * remote-mips.c (_initialize_remote_mips): Update.
4300 * remote-e7000.c (_initialize_remote_e7000): Update.
4301 * proc-api.c (_initialize_proc_api): Update.
4302 * printcmd.c: Update.
4303 * parse.c (_initialize_parse): Update.
4304 * pa64solib.c (_initialize_pa64_solib): Update.
4305 * p-valprint.c (_initialize_pascal_valprint): Update.
4306 * monitor.c (_initialize_remote_monitors): Update.
4307 * mips-tdep.c (_initialize_mips_tdep): Update.
4308 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4309 * maint.c (_initialize_maint_cmds): Update.
4310 * lin-lwp.c (_initialize_lin_lwp): Update.
4311 * language.c (_initialize_language): Update.
4312 * kod.c (_initialize_kod): Update.
4313 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4314 * i386-tdep.c (_initialize_i386_tdep): Update.
4315 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4316 * gdbarch.sh: Update.
4317 * gdbarch.c: Re-generate.
4318 * gdb-events.sh: Update.
4319 * gdb-events.c: Re-generate.
4320 * frame.c (_initialize_frame): Update.
4321 * exec.c: Update.
4322 * demangle.c (_initialize_demangler): Update.
4323 * dcache.c (_initialize_dcache): Update.
4324 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4325 * cp-valprint.c (_initialize_cp_valprint): Update.
4326 * corefile.c (_initialize_core): Update.
4327 * command.h: Update.
4328 * cli/cli-decode.h: Update.
4329 * cli/cli-cmds.c (init_cli_cmds): Update.
4330 * charset.c (_initialize_charset): Update.
4331 * breakpoint.c (_initialize_breakpoint): Update.
4332 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4333 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4334 * aix-thread.c (_initialize_aix_thread): Update.
4335
b4632131
MK
43362004-07-24 Mark Kettenis <kettenis@gnu.org>
4337
4338 Partial fix for PR backtrace/1718.
4339 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4340 that GCC migrates into the prolugue. Don't handle any
4341 instructions that clobber %ebx.
4342
822c9732
AC
43432004-07-23 Andrew Cagney <cagney@gnu.org>
4344
4345 Use regcache_raw_collect instead of regcache_collect.
4346 * regcache.h (regcache_collect): Delete declaration.
4347 * regcache.c (regcache_colect): Delete function.
4348 * win32-nat.c (do_child_store_inferior_registers): Update.
4349 * sol-thread.c (sol_thread_store_registers): Update.
4350 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4351 * rs6000-nat.c (store_register): Update.
4352 * remote.c (store_register_using_P, remote_store_registers): Update.
4353 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4354 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4355 (fill_vrregset, store_spe_registers, fill_gregset)
4356 (fill_gregset): Update.
4357 * nto-procfs.c (procfs_store_registers): Update.
4358 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4359 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4360 * m68klinux-nat.c (store_register, fill_gregset): Update.
4361 * m68k-tdep.c (fill_gregset): Update.
4362 * infptrace.c (store_register): Update.
4363 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4364 * i386-linux-nat.c (store_register, fill_gregset): Update.
4365 * hppa-linux-nat.c (fill_gregset): Update.
4366 * go32-nat.c (store_register): Update.
4367 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4368 (store_fp_regs): Update.
4369 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4370 (store_nwfpe_extended, store_fpregister, store_fpregs)
4371 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4372 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4373 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4374 (store_regs_user_thread, store_regs_kernel_thread): Update.
4375
32b05c07
MK
43762004-07-24 Mark Kettenis <kettenis@gnu.org>
4377
4378 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4379 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4380 encoding.
4381 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4382 member of `struct comp_unit'.
4383
8567c30f
AC
43842004-07-23 Andrew Cagney <cagney@gnu.org>
4385
4386 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4387 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4388
f6da8dd8
MH
43892004-07-23 Martin Hunt <hunt@redhat.com>
4390 Kevin Buettner <kevinb@redhat.com>
4391
4392 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4393 alignment was being added to the offset instead of multiplied.
4394
bd921882
MK
43952004-07-23 Mark Kettenis <kettenis@gnu.org>
4396
24f033e8
MK
4397 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4398 changed signal trampoline in OpenBSD 3.5-current.
4399
90f3cecd
MK
4400 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4401 <machine/pcb.h> and "bsd-kvm.h".
4402 (sparc64nbsd_supply_pcb): New function.
4403 (_initialize_sparc64nbsd_nat): Renamed from
4404 _initialize_sparcnbsd_nat. Enable libkvm interface.
4405 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4406 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4407 (LOADLIBES): New variable.
4408
a4954a62
MK
4409 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4410
bd921882
MK
4411 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4412
23a6d369
AC
44132004-07-21 Andrew Cagney <cagney@gnu.org>
4414
4415 Use regcache_raw_supply instead of supply_register.
4416 * regcache.h (supply_register): Delete declaration.
4417 * regcache.c (supply_register): Delete function.
4418 * wince.c (do_child_fetch_inferior_registers): Update.
4419 * win32-nat.c (do_child_fetch_inferior_registers)
4420 (fetch_elf_core_registers): Update.
4421 * v850ice.c (v850ice_fetch_registers): Update.
4422 * thread-db.c (thread_db_store_registers): Update.
4423 * sol-thread.c (sol_thread_store_registers): Update.
4424 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4425 * rs6000-nat.c (fetch_register): Update.
4426 * rom68k-rom.c (rom68k_supply_one_register): Update.
4427 * remote.c (remote_wait, remote_async_wait): Update.
4428 * remote-st.c (get_hex_regs): Update.
4429 * remote-sim.c (gdbsim_fetch_register): Update.
4430 * remote-sds.c (sds_fetch_registers): Update.
4431 * remote-rdp.c (remote_rdp_fetch_register): Update.
4432 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4433 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4434 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4435 * remote-hms.c (init_hms_cmds): Update.
4436 * remote-est.c (init_est_cmds): Update.
4437 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4438 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4439 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4440 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4441 (fetch_register, supply_vrregset, supply_vrregset)
4442 (fetch_spe_registers): Update.
4443 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4444 * monitor.c (monitor_supply_register): Update.
4445 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4446 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4447 (mipsnbsd_supply_fpreg): Update.
4448 * mips-nat.c (fetch_inferior_registers)
4449 (fetch_core_registers): Update.
4450 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4451 (supply_fpregset, mips64_supply_gregset)
4452 (mips64_supply_fpregset): Update.
4453 * m68klinux-nat.c (fetch_register, supply_gregset)
4454 (supply_fpregset): Update.
4455 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4456 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4457 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4458 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4459 * infptrace.c (fetch_register): Update.
4460 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4461 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4462 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4463 (gnu_fetch_registers, gnu_store_registers): Update.
4464 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4465 * i386-linux-nat.c (fetch_register, supply_gregset)
4466 (dummy_sse_values): Update.
4467 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4468 * hppah-nat.c (fetch_register): Update.
4469 * hppa-linux-nat.c (fetch_register, supply_gregset)
4470 (supply_fpregset): Update.
4471 * go32-nat.c (fetch_register): Update.
4472 * dve3900-rom.c (fetch_bitmapped_register)
4473 (_initialize_r3900_rom): Update.
4474 * cris-tdep.c (supply_gregset): Update.
4475 * abug-rom.c (init_abug_cmds): Update.
4476 * core-aout.c (fetch_core_registers): Update.
4477 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4478 (fetch_register, fetch_fp_register): Update.
4479 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4480 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4481 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4482 * alphanbsd-tdep.c (fetch_core_registers): Update.
4483 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4484 * alpha-nat.c (fetch_osf_core_registers)
4485 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4486 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4487 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4488
73cc75f3
AC
44892004-07-21 Andrew Cagney <cagney@gnu.org>
4490
4491 * PROBLEMS: Mention breakpoints/1702.
4492 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4493 that is known to work.
4494
a53c66de
AC
44952004-07-21 Andrew Cagney <cagney@gnu.org>
4496
4497 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4498 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4499 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4500 (handle_inferior_event): Wrap call to deprecated
4501 IGNORE_HELPER_CALL in #ifdef.
4502 * config/mips/tm-nbsd.h: Update.
4503
708ff411
JB
45042004-07-20 Jim Blandy <jimb@redhat.com>
4505
412b3060
JB
4506 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4507 bfd_mach_ppc has no segment registers.
4508
13ac140c
JB
4509 Include PowerPC SPR numbers for special-purpose registers.
4510 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4511 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4512 new member in initializer.
4513 (S, S4, SN4, S64): New macros for defining special-purpose
4514 registers.
4515 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4516 registers_403, registers_403GC, registers_505, registers_860,
4517 registers_601, registers_602, registers_603, registers_604,
4518 registers_750, registers_e500): Use them.
4519
708ff411
JB
4520 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4521 replace references with expression used to initialize variable.
4522
1f602b35
AC
45232004-07-20 Andrew Cagney <cagney@gnu.org>
4524
4525 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4526 read_memory_nobpt.
4527 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4528 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4529 (s390_sigtramp_frame_sniffer): Update.
4530 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4531 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4532 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4533 (mips32_fetch_instruction): Update.
4534 * mcore-tdep.c (get_insn): Update.
4535 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4536 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4537 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4538 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4539 (i386_linux_rt_sigtramp_start): Update.
4540 * i386-linux-nat.c (child_resume): Update.
4541 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4542 * hppa-linux-tdep.c (insns_match_pattern): Update.
4543 * gdbcore.h: Update.
4544 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4545 * frame.c (safe_frame_unwind_memory): Update.
4546 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4547 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4548 * alpha-tdep.c (alpha_read_insn): Update.
4549
2cd8546d
AC
45502004-07-20 Andrew Cagney <cagney@gnu.org>
4551
4552 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4553 containing both bytes and mask. Add "frame_type".
4554 * tramp-frame.c (tramp_frame_start): Update.
4555 (tramp_frame_prepend_unwinder): Update.
4556 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4557 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4558 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4559 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4560
f928dd62
EZ
45612004-07-19 Eli Zaretskii <eliz@gnu.org>
4562
4563 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4564 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4565 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4566 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4567
d5c560f7
AC
45682004-07-17 Andrew Cagney <cagney@gnu.org>
4569
860660cb
AC
4570 * NEWS, PROBLEMS: Update for 6.2.
4571
8c266f54
AC
4572 * README: Update to 6.2.
4573
a552edd9
AC
4574 * utils.c (xvasprintf): Call xstrvprintf.
4575
c4a172b5
AC
4576 * parse.c: Update copyright.
4577 (null_post_parser): Eliminate ARGSUSED.
4578
da745b36
AC
4579 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4580 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4581 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4582
9cbc6ef0
AC
4583 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4584 * ppc-linux-nat.c: Use "Linux kernel".
4585 * hppa-linux-tdep.c: Use GNU/Linux.
4586 * hppa-linux-nat.c: Use GNU/Linux.
4587 * dwarfread.c: Add [sic] to use of Linux.
4588
1b89295f
AC
4589 * hppa-linux-nat.c: Do not include <string.h>.
4590 (supply_fpregset): Remove "register" attribute.
4591
d5c560f7
AC
4592 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4593
7ddd7709
MK
45942004-07-17 Mark Kettenis <kettenis@gnu.org>
4595
b1d19a62
MK
4596 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4597 * configure, config.in: Regenerated.
4598
7ddd7709
MK
4599 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4600 "bsd-kvm.h".
4601 (vaxbsd_supply_pcb): New function.
4602 (_initialize_vaxbsd_nat): New prototype and function.
4603 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4604 solib-sunos.o.
4605 (LOADLIBES): New variable.
4606 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4607 (LOADLIBES): New variable.
4608 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4609 (LOADLIBES): New variable.
4610 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4611
2c07db7a
AC
46122004-07-16 Andrew Cagney <cagney@gnu.org>
4613
4614 * defs.h (event_loop_p): Replace variable declaration with macro,
4615 always 1.
4616 * main.c (captured_main): Delete options "-async" and "-noasync".
4617 (event_loop_p): Delete variable.
4618 * NEWS: Mention that "-async" and "-noasync" were removed.
4619
717eb1cf
AC
46202004-07-16 Andrew Cagney <cagney@gnu.org>
4621
4622 * remote-m32r-sdi.c: Re-indent.
4623
c101bc14
JB
46242004-07-16 Jim Blandy <jimb@redhat.com>
4625
5109a438
JB
4626 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4627 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4628 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4629 missing MPC823 SPRs.
4630 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4631 incorrect. (This was corrected in GDB's register name tables on
4632 2004-07-14.)
4633
c101bc14
JB
4634 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4635 should be "esasrr" ("ESA Save and Restore Register").
4636
7ce450bd
AC
46372004-07-16 Andrew Cagney <cagney@gnu.org>
4638
4639 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4640 calls, no longer applicable. Update comments and rename parameter
4641 "step_frame" to "return_frame".
4642
ca73dd9d
AC
46432004-07-16 Andrew Cagney <cagney@gnu.org>
4644
4645 * frame.c (fprint_field): New function.
4646 (fprint_frame_id): Use fprint_field.
4647
31941f6d
JB
46482004-07-15 Joel Brobecker <brobecker@gnat.com>
4649
4650 * ada-lang.c (ada_language_defn): Remove commented out code.
4651
f86a7158
JB
46522004-07-15 Jim Blandy <jimb@redhat.com>
4653
4654 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4655 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4656
c24791ec
JB
46572004-07-14 Jim Blandy <jimb@redhat.com>
4658
29bb1356
JB
4659 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4660
cc98b5cc
JB
4661 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4662
8f088af7
JB
4663 * ppc-tdep.h (ppc_num_srs): New enum constant.
4664
0ea0ec5f
JB
4665 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4666 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4667 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4668 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4669 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4670 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4671 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4672 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4673 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4674 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4675 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4676 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4677 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4678 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4679 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4680 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4681 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4682 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4683 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4684 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4685 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4686 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4687 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4688 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4689 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4690 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4691 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4692 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4693 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4694 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4695 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4696 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4697 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4698 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4699 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4700 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4701 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4702 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4703 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4704 special-purpose register numbers.
4705
c24791ec
JB
4706 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4707 manual mentions 'md_twb', but many mention 'm_twb', and at that
4708 point in the register list.)
4709
d833db3b
AC
47102004-07-14 Andrew Cagney <cagney@gnu.org>
4711
4712 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4713 instead of "internal-error".
4714
080228b2
JB
47152004-07-10 Joel Brobecker <brobecker@gnat.com>
4716
4717 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4718 that was inserted inside a comment.
4719
c268433a
RC
47202004-07-10 Randolph Chung <tausq@debian.org>
4721
4722 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4723 function.
4724 (hppa_hpux_push_dummy_code): New function.
4725 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4726 Set find_global_pointer method.
4727
71009278
MK
47282004-07-10 Mark Kettenis <kettenis@gnu.org>
4729
4730 * NEWS: Mention BSD libkvm interface.
4731
b2fa5097
MS
47322004-07-10 Michael Snyder <msnyder@redhat.com>
4733
4734 * symfile.c (generic_load): Comment typo.
4735 * stack.c (get_selected_block): Ditto.
4736 * regcache.c (regcache_cooked_read): Ditto.
4737 * monitor.c (monitor_debug): Ditto.
4738 * mips-tdep.c (mips_read_pc): Ditto.
4739 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4740 * gdb_mbuild.sh: Ditto.
4741 * gdbarch.sh: Ditto.
4742 * gdbarch.h: Ditto.
4743
c3e5cd34
PH
47442004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4745
8a2225b2
PH
4746 * ada-tasks.c: Remove file.
4747
c3e5cd34
PH
4748 Remove ARI problems:
4749
4750 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4751 beginning of line.
4752
4753 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4754 Add comment.
4755 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4756 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4757 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4758 (UMIN_OF_SIZE): Remove.
4759 (max_of_type): New function to replace orphan macro in gdbtypes.h
4760 (min_of_type): Ditto.
4761 (discrete_type_high_bound): Use max_of_type.
4762 (discrete_type_low_bound): Use min_of_type.
4763 (possible_user_operator_p): Move operator to beginning of line.
4764 (ada_is_variant_part): Ditto.
4765 (ensure_lval): Rewrite to avoid deprecated operations.
4766 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4767 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4768 (ada_enum_name): Remove assignments in 'if' statements.
4769 (build_ada_types): Add gdbarch parameter.
4770 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4771 with gdbarch_data_register_post_init.
4772 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4773 add_show_from_set.
4774
4775 * ada-valprint.c (inspect_it): Remove declaration.
4776 (repeat_count_threshold): Remove declaration.
4777 (ada_print_floating): Remove assignments in 'if' statements.
4778 (print_str): Move operator to beginning of line.
4779
61ce229a
JB
47802004-07-08 Jim Blandy <jimb@redhat.com>
4781
4782 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4783
09bcec80
BR
47842004-07-08 Bob Rossi <bob@brasko.net>
4785
4786 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4787
31c27f77
JJ
47882004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4789
4790 * language.h (struct_language_defn): Add new function pointer:
4791 la_class_name_from_physname. Also add new prototype for
4792 language_class_name_from_physname.
4793 * language.c (language_class_name_from_physname): New function.
4794 (unk_lang_class_name): Ditto.
4795 (unknown_language_defn, auto_language_defn): Change
4796 to add unk_lang_class_name function pointer for
4797 la_class_name_from_physname.
4798 (local_language_defn): Ditto.
4799 * dwarf2read.c (guess_structure_name): Change to call
4800 language_class_name_from_physname.
4801 (determine_class_name): Ditto.
4802 * cp-support.c (class_name_from_physname): Renamed.
4803 (cp_class_name_from_physname): New name of function.
4804 * cp-support.h: Ditto.
4805 * c-lang.c (c_language_defn): Change to add NULL
4806 for class_name_from_physname function pointer.
4807 (cplus_language_defn): Change to add cp_class_name_from_physname.
4808 * jv-lang.c (java_class_name_physname): New function.
4809 (java_find_last_component): New static routine.
4810 (java_language_defn): Add java_class_name_from_physname pointer.
4811 * ada-lang.c (ada_language_defn): Change to add NULL
4812 for class_name_from_physname function pointer.
4813 * f-lang.c (f_language_defn): Ditto.
4814 * m2-lang.c (m2_language_defn): Ditto.
4815 * objc-lang.c (objc_language_defn): Ditto.
4816 * p-lang.c (pascal_language_defn): Ditto.
4817 * scm-lang.c (scm_language_defn): Ditto.
4818
ee28ca0f
AC
48192004-07-06 Andrew Cagney <cagney@gnu.org>
4820
4821 Patch from Bart Robinson.
4822 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4823 (O_LARGEFILE): Define to 0, if not defined.
4824
fdb1bf9d
MK
48252004-07-03 Mark Kettenis <kettenis@gnu.org>
4826
cb162ff6
MK
4827 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4828 <machine/pcb.h> and "bsd-kvm.h".
4829 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4830 (m68kbsd_supply_pcb): New function.
4831 (_initialize_m68kbsd_nat): New prototype and function.
4832 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4833 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4834 (LOADLIBES): New variable.
4835 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4836 (LOADLIBES): New variable.
4837
fdb1bf9d
MK
4838 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4839
963c4174
MK
48402004-07-03 Mark Kettenis <kettenis@gnu.org>
4841
4842 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4843 <sys/proc.h>.
4844 (bsd_kvm_cmdlist): New variable.
4845 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4846 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4847 command and "kvm proc" command.
4848 * Makefile.in (bsd-kvm.o): Update dependencies.
4849
533f1d8f
MK
48502004-07-02 Mark Kettenis <kettenis@gnu.org>
4851
4852 * osabi.c: Update copyright year.
4853 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4854 notes if EI_OSABI is set to ELFOSABI_HPUX.
4855
6780dcde
MS
48562004-07-01 Michael Snyder <msnyder@redhat.com>
4857
4858 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4859 that seems to have gotten whacked out of line.
4860
67bebe79
MK
48612004-07-01 Mark Kettenis <kettenis@gnu.org>
4862
4863 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4864 code.
4865
0b5d8877
PH
48662004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4867
4868 * ada-lang.c (decode_packed_array): Minor change to comment.
4869 (ada_value_slice_ptr): New function.
4870 (ada_value_slice): New function.
4871 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4872 test. Don't know why it is there.
4873 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4874 to avoid dereferencing huge arrays from which one is slicing.
4875 (empty_array): Correct to return an array rather than
4876 a subrange value.
4877 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4878 on empty arrays (let'em use 'FIRST instead).
4879
19c1ef65
PH
48802004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4881
4882 Address complaints from gdb_ari.sh:
4883
4884 * ada-exp.y: Include gdb_string.h rather than string.h.
4885 (convert_char_literal): Reformat declaration.
4886 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4887 * ada-lex.l: Change use of free to xfree (the macro would do so
4888 anyway, but this is harmless).
4889 Include gdb_string.h rather than string.h.
4890 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4891
4892 * ada-lang.c (parse): Remove K&Rism in parameter list.
4893 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4894
d81cbc94
MK
48952004-06-30 Mark Kettenis <kettenis@gnu.org>
4896
4897 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4898 dead code.
4899
07681759
MK
49002004-06-30 Mark Kettenis <kettenis@gnu.org>
4901
4902 * alphabsd-nat.c: Update copyright year.
4903 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4904
f7948b5f
JB
49052004-06-29 Joel Brobecker <brobecker@gnat.com>
4906
6e0cdd28 4907 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
4908 (i386_cygwin_in_solib_call_trampoline): New function.
4909 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4910 and skip_trampoline_code gdbarch methods.
4911
8f113c9a
JB
49122004-06-29 Jim Blandy <jimb@redhat.com>
4913
4914 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4915 name actually used in the dependency lists.
4916
97dc871c
RC
49172004-06-29 Randolph Chung <tausq@debian.org>
4918
4919 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4920
47216e51
CV
49212004-06-29 Corinna Vinschen <vinschen@redhat.com>
4922
4923 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 4924 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
4925 functionality.
4926
e623b504
AC
49272004-06-28 Andrew Cagney <cagney@gnu.org>
4928
4929 * defs.h (xstrvprintf): Declare.
4930 * utils.c (xstrvprintf): New function.
4931 (internal_vproblem, xstrprintf, xasprintf)
4932 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4933 * serial.c (serial_printf): Ditto.
4934 * complaints.c (vcomplaint): Ditto.
4935
79acc9b3
CV
49362004-06-29 Corinna Vinschen <vinschen@redhat.com>
4937
4938 * infcmd.c (attach_command): Move call to target_terminal_inferior
4939 behind loading symbol table.
4940
1daf35d9
AC
49412004-06-28 Andrew Cagney <cagney@gnu.org>
4942
4943 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4944 change - add back extern deprecated_ui_loop_hook declaration.
4945
b435e160
AC
49462004-06-28 Andrew Cagney <cagney@gnu.org>
4947
4948 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4949 xstrprintf.
4950 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4951 (c_value_of_variable): Ditto.
4952 * utils.c (internal_vproblem): Ditto.
4953 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4954 * remote.c (add_packet_config_cmd): Ditto.
4955 * remote-rdp.c (rdp_set_command_line): Ditto.
4956 * regcache.c (regcache_dump): Ditto.
4957 * frv-tdep.c (new_variant, new_variant): Ditto.
4958 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4959 (fbsd_find_memory_regions): Ditto.
4960 * breakpoint.c (create_thread_event_breakpoint)
4961 (create_breakpoints): Ditto.
4962 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4963 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4964
06d5cf63
JB
49652004-06-28 Joel Brobecker <brobecker@gnat.com>
4966
4967 * ada-lang.c: Re-indent file, with some massaging to help indent
4968 a bit when the result is otherwise really too ugly.
4969
35809fad
UW
49702004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4971
4972 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4973 code_addr_p and special_addr_p to 'unsigned int'.
4974
40e20472
MK
49752004-06-27 Mark Kettenis <kettenis@gnu.org>
4976
4977 * i386v4-nat.c: Update copyright year and tweak comment.
4978 (regmap): Remove trailing comma.
4979 (supply_gregset): Rename local variable i to regnum. Call
4980 regcache_raw_supply instead of supply_register.
4981 (fill_gregset): Rename argument regno to regnum. Call
4982 regcache_raw_collect instead of regcache_collect.
4983
12b0b6de
UW
49842004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4985
4986 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4987 and special_addr_p.
4988 (frame_id_build, frame_id_build_special): Update comments.
4989 (frame_id_build_wild): New prototype.
4990 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4991 struct frame_id fields.
4992 (frame_id_build_wild): New function.
4993 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4994
47b42a3e
MK
49952004-06-27 Mark Kettenis <kettenis@gnu.org>
4996
4997 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4998 hppabsd-tdep.c.
4999
1265e4aa
JB
50002004-06-27 Joel Brobecker <brobecker@gnat.com>
5001
5002 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5003
76a01679
JB
50042004-06-27 Joel Brobecker <brobecker@gnat.com>
5005
5006 * ada-lang.c: Re-indent file.
5007
7aca490a
JB
50082004-06-27 Joel Brobecker <brobecker@gnat.com>
5009
5010 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5011 (no_symtab_msg): Likewise.
5012
5e987968
AS
50132004-06-27 Andreas Schwab <schwab@suse.de>
5014
5015 * source.c: Fix whitespace.
5016
315c4276
MK
50172004-06-27 Mark Kettenis <kettenis@gnu.org>
5018
d15be926
MK
5019 * configure.in: Include <sys/param.h> for td_pcb test.
5020 * configure: Regenerated.
5021
9062529b
MK
5022 * i386nbsd-nat.c: New file.
5023 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5024 i386obsd-nat.c and i386obsd-tdep.c.
5025 (i386nbsd-nat.o): New dependency.
5026 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5027 bsd-kvm.o.
5028 (LOADLIBES): New variable.
5029 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5030 bsd-kvm.o.
5031 (LOADLIBES): New variable.
5032
8010310e
MK
5033 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5034 (LOADLIBES): New variable.
5035
efe1d7b9
MK
5036 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5037 fetching from BSD_KVM_PADDR. Correctly lookup address for
5038 "_thread0".
5039
315c4276
MK
5040 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5041 "bsd-kvm.h".
5042 (amd64fbsd_supply_pcb): New funcion.
5043 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5044
399cfac6
DL
50452004-06-27 <david@streamline-computing.com>
5046
5047 Partial fix for PR cli/1056.
5048 * valarith.c: Check for zero in division and remainder
5049 evaluation.
5050
6235f9c8
MK
50512004-06-27 Mark Kettenis <kettenis@gnu.org>
5052
5053 * i387-tdep.c: Remove excessive whitespace.
5054
2726dafc
AC
50552004-06-26 Andrew Cagney <cagney@gnu.org>
5056
5057 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5058 * gdb-events.h, gdb-events.c: Re-generate.
5059 * tui/tui-hooks.c (tui_install_hooks): Update.
5060 (tui_remove_hooks): Update.
5061 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5062
0e56aeaf
MK
50632004-06-26 Mark Kettenis <kettenis@gnu.org>
5064
cb461069
MK
5065 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5066 (gregset_t, fpregset_t): Remove typedefs.
5067 (REG_OFFSET): Rename argument.
5068 (amd64bsd_r_reg_offset): Rename from reg_offset.
5069 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5070 Remove functions.
5071 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5072 of reg_offset.
5073 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5074
ecba89de
MK
5075 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5076
4cd80476
MK
5077 * vax-tdep.c: Tweak comment.
5078
0e56aeaf
MK
5079 Add OpenBSD/hppa support.
5080 * NEWS (New native configurations): Mention OpenBSD/hppa.
5081 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5082 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5083 files.
5084 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5085 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5086 * configure.host: Add hppa*-*-openbsd*.
5087 * configure.tgt: Add hppa*-*-openbsd*.
5088
98bbd631
AC
50892004-06-25 Andrew Cagney <cagney@gnu.org>
5090
5091 * defs.h (deprecated_ui_loop_hook): Deprecated.
5092 * wince.c (child_wait): Update.
5093 * win32-nat.c (child_wait): Update.
5094 * v850ice.c (v850ice_wait): Update.
5095 * top.c (deprecated_ui_loop_hook): Update.
5096 * serial.h: Update.
5097 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5098 (do_unix_readchar): Update.
5099 * ser-tcp.c (net_open): Update.
5100 * remote-sim.c (gdb_os_poll_quit): Update.
5101 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5102
769d7dc4
AC
51032004-06-24 Andrew Cagney <cagney@gnu.org>
5104
5105 * defs.h (deprecated_pre_add_symbol_hook)
5106 (deprecated_post_add_symbol_hook): Deprecated.
5107 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5108 (symbol_file_add_with_addrs_or_offsets): Update references.
5109
11c949aa
AC
51102004-06-24 Andrew Cagney <cagney@gnu.org>
5111
5112 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5113 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5114 * wince.c (ui_loop_hook): Delete extern declaration.
5115 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5116 * v850ice.c (ui_loop_hook): Delete extern declaration..
5117 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5118 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5119 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5120 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5121 ui_loop_hook declaration.
5122
eedc19af
AC
51232004-06-24 Andrew Cagney <cagney@gnu.org>
5124
5125 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5126 entry_func_highpc fields.
5127 * objfiles.c (init_entry_point_info): Do not clear
5128 entry_func_lowpc and entry_func_highpc.
5129 (objfile_relocate): Do not relocate entry_func_lowpc and
5130 entry_func_highpc.
5131 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5132 entry_func_highpc.
5133 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5134 entry_func_highpc.
5135 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5136 entry_func_lowpc and entry_func_highpc with call to
5137 inside_entry_func.
5138
d47079be
MK
51392004-06-24 Mark Kettenis <kettenis@gnu.org>
5140
5141 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5142 quad-precision floating point arguments in registers.
5143
2107e348
MK
51442004-06-24 Mark Kettenis <kettenis@gnu.org>
5145
5146 From Michael Mueller <m.mueller99@kay-mueller.de>:
5147 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5148 account.
5149
46587c42
JJ
51502004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5151
5152 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5153 to -1.
5154 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5155 untriggered watchpoints to a separate if clause. Update function
5156 comment regarding STOPPED_BY_WATCHPOINT argument.
5157
226f5cf4
JB
51582004-06-22 Jim Blandy <jimb@redhat.com>
5159
5160 * gdbarch.sh: Doc fix.
5161
f10683bb
MH
51622004-06-21 Martin Hunt <hunt@redhat.com>
5163 Kevin Buettner <kevinb@redhat.com>
5164
5165 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5166 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5167 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5168 to set_gdbarch_sp_regnum(). Use cooked register number.
5169 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5170
412d5987
AC
51712004-06-21 Andrew Cagney <cagney@gnu.org>
5172
5173 * gdbarch.sh: When the macro field is empty, do not generate a
5174 macro definition. When the macro field is "=", generate the macro
5175 name from the upper-case function name.
5176 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5177 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5178 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5179 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5180 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5181 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5182 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5183 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5184 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5185 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5186 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5187 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5188 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5189 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5190 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5191 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5192 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5193 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5194 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5195 (DEPRECATED_USE_STRUCT_CONVENTION)
5196 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5197 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5198 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5199 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5200 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5201 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5202 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5203 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5204 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5205 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5206 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5207 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5208 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5209 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5210 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5211 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5212 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5213 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5214
68908a3e
AC
52152004-06-21 Andrew Cagney <cagney@gnu.org>
5216
48f7351b
AC
5217 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5218 macro name, and the function rather than macro value. Only wrap
5219 macro print statements in #ifdef. Move format logic to where it
5220 is needed.
5221 * gdbarch.c: Re-generate.
5222
283354d8
AC
5223 * gdbarch.sh (read): Delete "print_p" and "description", add
5224 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5225 Delete references to print_p.
5226 (TARGET_ARCHITECTURE): Delete print predicate.
5227 * gdbarch.c: Re-generate.
5228
68908a3e
AC
5229 * gdbarch.sh: Check that multi-arch methods do not provide a
5230 macro.
5231 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5232 (print_registers_info, print_float_info, print_vector_info)
5233 (adjust_breakpoint_address, remote_translate_xfer_address)
5234 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5235 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5236 name from the multi-arch definition.
5237
a2428dbe
AC
52382004-06-20 Andrew Cagney <cagney@gnu.org>
5239
5240 * gdbarch.sh: Sort by the function, instead of macro name.
5241 * gdbarch.c: Re-generate.
5242
750eb019
AC
52432004-06-20 Andrew Cagney <cagney@gnu.org>
5244
66d659b1
AC
5245 * gdbarch.sh: Use the function, instead of macro name in
5246 errors and the log file.
5247 (return_value): Remove stray ":" in spec.
5248
750eb019
AC
5249 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5250 * gdbarch.h, gdbarch.c: Re-generate.
5251 * Makefile.in (arch-utils.o): Update dependencies.
5252 * values.c (using_struct_return): Move code calling
5253 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5254 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5255 to legacy_return_value, simplify.
5256 * infcmd.c (print_return_value): Move code calling
5257 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5258 to legacy_return_value, simplify.
5259 * infcall.c (call_function_by_hand): Move code calling
5260 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5261 * arch-utils.c: Update copyright. Include "gdbcore.h".
5262 (legacy_return_value): New function.
5263 * arch-utils.h: Update copyright.
5264 (legacy_return_value): Declare.
5265
b5622e8d
AC
52662004-06-20 Andrew Cagney <cagney@gnu.org>
5267
5268 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5269 * gdbarch.h, gdbarch.c: Re-generate.
5270 * values.c (using_struct_return): Update call.
5271 * mcore-tdep.c: Update comment.
5272 * infcall.c (call_function_by_hand): Update comment.
5273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5274 * arch-utils.h (always_use_struct_convention): Update.
5275 * v850-tdep.c (v850_gdbarch_init): Update.
5276 * sh64-tdep.c (sh64_gdbarch_init): Update.
5277 * sh-tdep.c (sh_gdbarch_init): Update.
5278 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5279 * mips-tdep.c (mips_gdbarch_init): Update.
5280 * mcore-tdep.c (mcore_gdbarch_init): Update.
5281 * m32r-tdep.c (m32r_gdbarch_init): Update.
5282 * ia64-tdep.c (ia64_gdbarch_init): Update.
5283 * h8300-tdep.c (h8300_gdbarch_init): Update.
5284 * frv-tdep.c (frv_gdbarch_init): Update.
5285 * cris-tdep.c (cris_gdbarch_init): Update.
5286 * arm-tdep.c (arm_gdbarch_init): Update.
5287 * alpha-tdep.c (alpha_gdbarch_init): Update.
5288
5191de37
MC
52892004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5290
5291 * PROBLEMS: Add more specific information, and a work-around,
5292 for PR gdb/1458.
5293
782263ab
AC
52942004-06-18 Andrew Cagney <cagney@gnu.org>
5295
5296 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5297 * gdbarch.h, gdbarch.c: Re-generate.
5298 * ada-lang.c (ada_finish_decode_line_1): Update.
5299 * infrun.c (handle_inferior_event): Update.
5300 * infcall.c (find_function_addr): Update.
5301 * linespec.c (minsym_found): Update.
5302 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5303 Update.
5304 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5305 * cli/cli-cmds.c (disassemble_command): Update.
5306 * vax-tdep.c (vax_gdbarch_init): Update.
5307
2f305df1
MK
53082004-06-18 Mark Kettenis <kettenis@gnu.org>
5309
5310 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5311
e5fe55f7
AC
53122004-06-17 Andrew Cagney <cagney@gnu.org>
5313
5314 GDB 6.1.1 released from the GDB 6.1 branch.
5315 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5316 * PROBLEMS: Ditto.
5317
473b7be6
DJ
53182004-06-16 Daniel Jacobowitz <dan@debian.org>
5319
5320 PR gdb/1658
5321 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5322 operation as a uleb128. Found by Michael Coulter.
5323
96d887e8
PH
53242004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5325
5326 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5327 make it non-static.
5328 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5329 to ada-lang.h; this is needed to be able to implement the kill command
5330 in multi-task mode.
5331 (task_ptid): Ditto.
5332 (task_entry): Ditto.
5333 (task_list): Ditto.
5334 (ada_build_task_list): Ditto.
5335
5336 * ada-lang.c: Conditionalize routines and data structures related
5337 to breakpoints, exceptions, completion, and symbol caching on
5338 GNAT_GDB, since these are not yet used in the submitted public sources.
5339 (ada_main_name): Editorial: Move definition out of exception-related
5340 code.
5341
31eef181
AC
53422004-06-15 Andrew Cagney <cagney@gnu.org>
5343
5344 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5345 deprecated_pc_in_call_dummy.
5346
2c500098
AM
53472004-06-15 Alan Modra <amodra@bigpond.net.au>
5348
5349 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5350 bfd_get_section_size_before_reloc or _raw_size.
5351 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5352 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5353 (dwarf2_read_section): Likewise.
5354 * elfread.c (elf_locate_sections): Likewise.
5355 * gcore.c (derive_heap_segment): Likewise.
5356 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5357 * remote-e7000.c (e7000_load): Likewise.
5358 * remote-m32r-sdi.c (m32r_load): Likewise.
5359 * remote-mips.c (mips_load_srec): Likewise.
5360 (pmon_load_fast): Likewise.
5361 * remote.c (compare_sections_command): Likewise.
5362 * symfile.c (add_section_size_callback): Likewise.
5363 (load_section_callback): Likewise.
5364 (pc_in_unmapped_range): Likewise.
5365 (pc_in_mapped_range): Likewise.
5366 (sections_overlap): Likewise.
5367 (list_overlays_command): Likewise.
5368 (simple_overlay_update_1): Likewise.
5369 (simple_overlay_update): Likewise.
5370 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5371 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5372
90f943f1
RC
53732004-06-14 Randolph Chung <tausq@debian.org>
5374
5375 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5376 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5377 static.
5378 (hppa_hpux_inferior_created): New function.
5379 (hppa_hpux_init_abi): Register observer.
5380 * symfile.c (hp_cxx_exception_support_initialized)
5381 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5382 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5383
700c15aa
RC
53842004-06-14 Randolph Chung <tausq@debian.org>
5385
3973a7d3
AC
5386 * MAINTAINERS (Write After Approval): Alphabetize my entry
5387 correctly.
700c15aa 5388
cea4838c
AC
53892004-06-14 Andrew Cagney <cagney@gnu.org>
5390
5391 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5392 testsuite maintainer.
5393
97092415
AC
53942004-06-13 Andrew Cagney <cagney@gnu.org>
5395
e8c3165b
AC
5396 * infcmd.c (print_return_value): Fix logic, allow
5397 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5398
bceabdd8
AC
5399 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5400 defining any macros.
5401 * gdbarch.h: Re-generate.
5402
57010b1c
AC
5403 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5404 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5405 * gdbarch.h: Re-generate.
5406
bc87dfa0
AC
5407 * values.c (generic_use_struct_convention): Don't check gcc_p.
5408
15ac804d
AC
5409 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5410 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5411 * gdbarch.h, gdbarch.c: Regenerate.
5412 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5413 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5414 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5415 deprecated_max_register_raw_size and
5416 deprecated_max_register_virtual_size.
5417 * v850-tdep.c (v850_gdbarch_init): Ditto.
5418 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5419 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5420 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5421 * cris-tdep.c (cris_gdbarch_init): Ditto.
5422
97092415
AC
5423 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5424 * gdbarch.h, gdbarch.c: Re-generate.
5425 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5426 (m68hc11_use_struct_convention): Delete function.
5427 (m68hc11_extract_struct_value_address): Delete function.
5428 (m68hc11_return_value): New function.
5429 (m68hc11_gdbarch_init): Instead of store_return_value,
5430 extract_return_value, return_value_on_stack,
5431 deprecated_extract_struct_value_address and use_struct_convention,
5432 set return_value.
5433 * values.c (using_struct_return): Do not call
5434 RETURN_VALUE_ON_STACK.
5435 * arch-utils.h (generic_return_value_on_stack_not): Delete
5436 declaration.
5437 * arch-utils.c (generic_return_value_on_stack_not): Delete
5438 function.
5439
44e5158b
AC
54402004-06-12 Andrew Cagney <cagney@gnu.org>
5441
5442 * values.c (register_value_being_returned): Delete function.
5443 * infcmd.c (legacy_return_value): Delete function.
5444 * infcall.c (call_function_by_hand): Inline
5445 "register_value_being_returned", simplify.
5446 * values.c (using_struct_return): Update comment, refer to
5447 print_return_value instead of register_value_being_returned.
5448 * infcmd.c (print_return_value): Inline calls to
5449 register_value_being_returned and legacy_return_value. Simplify.
5450
b887c273
RC
54512004-06-11 Randolph Chung <tausq@debian.org>
5452
5453 * somread.c (som_symtab_read): Exclude gcc local symbols.
5454
1b2bfbb9
RC
54552004-06-11 Randolph Chung <tausq@debian.org>
5456
3973a7d3
AC
5457 * infrun.c (handle_inferior_event): Handle the case when a
5458 trampoline ends up in the runtime resolver, and if the trampoline
5459 has no name. Rearrange the code so that all the trampoline
5460 processing happens before other step-out-of-range handling.
1b2bfbb9 5461
a9d61c86
MH
54622004-06-11 Martin Hunt <hunt@redhat.com>
5463
5464 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5465 has no fpu.
5466
2c87cf5a
AC
54672004-06-10 Andrew Cagney <cagney@gnu.org>
5468
5469 * blockframe.c (legacy_inside_entry_func): Delete.
5470 (legacy_frame_chain_valid): Inline call to
5471 legacy_inside_entry_func, simplify.
5472
0b67b468 54732004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5474
5475 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5476 * dwarf2read.c (partial_die_info): Add dirname field.
5477 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5478 (read_partial_die): Save away DW_AT_comp_dir.
5479 * defs.h (symtab_to_filename): Removed.
5480 * source.c (find_and_open_source): Added.
57c22c6c 5481 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5482 (symtab_to_filename): Removed.
5483 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5484 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5485 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5486 symtab_to_filename.
5487 * symtab.h (partial_symtab): Add dirname field.
5488 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5489 (mi_cmd_file_list_exec_source_file): Call new function
5490 symtab_to_fullname to find fullname.
57c22c6c 5491 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5492 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5493 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5494
9a1dd1ad
AC
54952004-06-10 Andrew Cagney <cagney@gnu.org>
5496
239ae8c7
AC
5497 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5498 to generic_use_struct_convention, the default value.
5499
fc720350
AC
5500 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5501 of abort.
5502
9a1dd1ad
AC
5503 * ns32k-tdep.c (ns32k_push_arguments): New function.
5504 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5505 * infcall.c (call_function_by_hand): Call error instead of
5506 legacy_push_arguments.
5507 * value.h (legacy_push_arguments): Delete declaration.
5508 * valops.c (legacy_push_arguments): Delete function.
5509 (value_push): Delete function.
5510
fea25152
BF
55112004-06-10 Brian Ford <ford@vss.fsi.com>
5512
5513 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5514 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5515 info.
5516 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5517
30a4a8e0
AC
55182004-06-10 Andrew Cagney <cagney@gnu.org>
5519
5520 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5521 * gdbarch.h, gdbarch.c: Re-generate.
5522 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5523 parameters.
5524 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5525 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5526 deprecated_pc_in_call_dummy instead of
5527 DEPRECATED_PC_IN_CALL_DUMMY.
5528 (arm_skip_prologue): Ditto.
5529 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5530 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5531 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5532 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5533 Ditto.
5534 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5535 (sh64_init_extra_frame_info, sh64_get_saved_register)
5536 (sh64_pop_frame): Ditto.
5537 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5538 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5539 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5540 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5541 (h8300_pop_frame): Ditto.
5542 * blockframe.c (legacy_inside_entry_func)
5543 (legacy_frame_chain_valid): Ditto.
5544 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5545 to deprecated_pc_in_call_dummy.
5546
81cfbe54
AC
55472004-06-09 Andrew Cagney <cagney@gnu.org>
5548
a1f4a1b6
AC
5549 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5550 provide a default value.
5551 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5552 * gdbarch.h, gdbarch.c: Re-generate.
5553 * arch-utils.c (generic_convert_register_p): Rename
5554 legacy_convert_register_p
5555 (legacy_register_to_value, legacy_value_to_register): Delete
5556 functions.
5557 * arch-utils.h (generic_convert_register_p): Rename
5558 legacy_convert_register_p.
5559 (legacy_register_to_value, legacy_value_to_register): Delete
5560 declarations.
5561
9730f241
AC
5562 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5563 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5564 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5565 * gdbarch.h, gdbarch.c: Re-generate.
5566 * infcmd.c (default_print_registers_info): Simplify.
5567 * findvar.c (value_of_register): Simplify.
5568 * mi/mi-main.c (get_register): Simplify.
5569 * arch-utils.c (legacy_convert_register_p): Always return 0.
5570 (legacy_register_to_value, legacy_value_to_register): Always call
5571 internal_error.
5572
8a1bf479
AC
5573 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5574 #ifdef CLEAR_INSN_CACHE code.
5575 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5576 Delete #ifdef CLEAR_DEFERRED_STORES code.
5577
4b38d6f1
AC
5578 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5579
2d62ecc7
AC
5580 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5581 copyright.
5582 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5583
be4f7469
AC
5584 * config/mips/mipsv4.mh: Delete file.
5585
81cfbe54
AC
5586 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5587 unreferenced macro.
5588 (hpread_adjust_stack_address): Delete declaration.
5589
d966f0cb
AC
55902004-06-08 Andrew Cagney <cagney@gnu.org>
5591
5592 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5593 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5594 PTRACE_ATTACH / PTRACE_DETACH available call error.
5595 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5596 * infttrace.c (update_thread_state_after_attach, attach, detach):
5597 Remove #ifdef wrappers.
5598 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5599 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5600 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5601 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5602 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5603 * config/nm-linux.h (ATTACH_DETACH): Delete.
5604 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5605 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5606 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5607 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5608 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5609
d91670b9
CV
56102004-06-08 Corinna Vinschen <vinschen@redhat.com>
5611
5612 * configure.in: Set $configdir to the right OS specific value.
5613 Use value when setting $tcldir and $tkdir.
5614 * configure: Regenerate.
5615
28ba0b33
PB
56162004-06-06 Paul Brook <paul@codesourcery.com>
5617
5618 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5619 records.
5620
f26caa11
PH
56212004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5622
5623 * ada-lang.c (lookup_symbol_in_language): New function to allow
5624 re-use of another language's symbol lookup code. (Placed here
5625 temporarily while Ada support is being integrated into the public
5626 tree).
5627 (restore_language): New auxiliary function for
5628 lookup_symbol_in_language.
5629 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5630 temporarily while Ada support is being integrated into the public
5631 tree).
5632
d560a54b
AO
56332004-06-08 Alexandre Oliva <aoliva@redhat.com>
5634
e75d110c
AO
5635 * Makefile.in (check//%): New.
5636
d560a54b
AO
5637 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5638 (mn10300_store_return_value): Rewrite.
5639 (mn10300_type_align): New.
5640 (mn10300_use_struct_convention): Rewrite.
5641 (mn10300_return_value): New, using all of the above.
5642 (mn10300_pop_frame_regular): Add saved_regs_size.
5643 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5644
a72fbdb7
AO
5645 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5646 regs if PC is on movm.
5647
01904826
JB
56482004-06-07 Jim Blandy <jimb@redhat.com>
5649
5650 Add native Linux support for the PowerPC E500.
5651 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5652 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5653 all architectures except the E500.
5654 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5655 #definitions.
5656 (struct gdb_evrregset_t): New type.
5657 (have_ptrace_getsetevrregs): New variable.
5658 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5659 fetch_spe_registers): New functions.
5660 (fetch_register): Call fetch_spe_register as appropriate.
5661 Assert that we're only passed raw register numbers.
5662 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5663 Don't fetch gprs if they're pseudoregisters.
5664 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5665 store_spe_registers): New functions.
5666 (store_register): Call store_spe_register as appropriate.
5667 Assert that we're only passed raw register numbers.
5668 (store_ppc_registers): Call store_spe_registers as appropriate.
5669 Don't store gprs if they're pseudoregisters.
5670
f90ef764
JJ
56712004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5672
5673 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5674 struct if one exists, even if we are dealing with a zombie thread.
5675
45b75230
AC
56762004-06-07 Andrew Cagney <cagney@gnu.org>
5677
5678 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5679 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5680 Rename PC_REQUIRES_RUN_BEFORE_USE.
5681 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5682 #ifdef.
5683
1658da49
RC
56842004-06-07 Randolph Chung <tausq@debian.org>
5685
5686 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5687 unwinding after sp has been saved to the stack but before the end
5688 of the prologue, and after the fp has been modified but before it has
5689 been saved to the stack.
5690 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5691 Remove superfluous definitions.
5692 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5693
9a727a3c
RC
56942004-06-07 Guy Martin <gmsoft@gentoo.org>
5695
5696 Committed by Randolph Chung.
5697 * hppa-linux-nat.c: Include the correct version of the header file
5698 depending on the kernel version.
5699
9e500012
RC
57002004-06-06 Randolph Chung <tausq@debian.org>
5701
5702 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5703 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5704
3388d7ff
RC
57052004-06-06 Randolph Chung <tausq@debian.org>
5706
5707 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5708 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5709 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5710 * hppa-tdep.c (hppa_symbol_address): New function definition.
5711 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5712
d49771ef
RC
57132004-06-06 Randolph Chung <tausq@debian.org>
5714
5715 * hppa-tdep.h (struct value): Forward declaration.
5716 (gdbarch_tdep): Define tdep find_global_pointer method.
5717 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5718 associated with the function we are trying to call, and write it
5719 to the gp register.
5720 (hppa32_convert_from_funct_ptr_addr): New function.
5721 (hppa_find_global_pointer): New function.
5722 (hppa_gdbarch_init): Set default find_global_pointer method; set
5723 convert_from_func_ptr_addr method.
5724 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5725 (hppa_linux_init_abi): Set find_global_pointer method.
5726 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5727
7d9b040b
RC
57282004-06-06 Randolph Chung <tausq@debian.org>
5729
5730 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5731 to struct value *function.
5732 * gdbarch.c: Regenerate.
5733 * gdbarch.h: Likewise.
5734 * infcall.c (call_function_by_hand): Pass entire function value
5735 to push_dummy_call.
5736
5737 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5738 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5739 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5740 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5741 * arm-tdep.c (arm_push_dummy_call): Likewise.
5742 * avr-tdep.c (avr_push_dummy_call): Likewise.
5743 * cris-tdep.c (cris_push_dummy_call): Likewise.
5744 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5745 * frv-tdep.c (frv_push_dummy_call): Likewise.
5746 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5747 * hppa-tdep.c (hppa32_push_dummy_call)
5748 (hppa64_push_dummy_call): Likewise.
5749 * i386-tdep.c (i386_push_dummy_call): Likewise.
5750 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5751 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5752 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5753 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5754 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5755 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5756 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5757 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5758 (ppc64_sysv_abi_push_dummy_call): Likewise.
5759 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5760 (ppc64_sysv_abi_push_dummy_call): Likewise.
5761 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5762 * s390-tdep.c (s390_push_dummy_call): Likewise.
5763 * sh-tdep.c (sh_push_dummy_call_fpu)
5764 (sh_push_dummy_call_nofpu): Likewise.
5765 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5766 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5767 * vax-tdep.c (vax_push_dummy_call): Likewise.
5768
4a19ea35
JB
57692004-06-04 Jim Blandy <jimb@redhat.com>
5770
8327ccee
JB
5771 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5772 gdbarch argument to register_size.
5773
a3c001ce
JB
5774 * rs6000-tdep.c (rs6000_store_return_value): Use
5775 regcache_cooked_write_part instead of
5776 deprecated_write_register_bytes.
5777 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5778 not gdbarch_deprecated_store_return_value.
5779
4a19ea35
JB
5780 * ppc-linux-nat.c (store_register, fetch_register): Remove
5781 incorrect assertions. Simplify and generalize handling of
5782 transfers whose sizes are not multiples of, or less than, sizeof
5783 (PTRACE_XFER_TYPE).
5784
b9b5d7ea
JJ
57852004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5786
5787 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5788 as a new thread event.
720c7d64 5789 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5790 zombie, return TD_THR_ZOMBIE.
720c7d64 5791 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5792 TD_THR_ZOMBIE, check if the thread is still on the thread list
5793 and return a -1 ptid if not found.
5794 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5795 change the status to TARGET_WAITKIND_SPURIOUS.
5796
c8a3b559
CV
57972004-06-03 Corinna Vinschen <vinschen@redhat.com>
5798
5799 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5800 double values in little endian mode.
5801
20605361
AC
58022004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5803
5804 Committed by Andrew Cagney.
5805 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5806 after last enum constant to avoid error from IBM C
5807 compiler.
5808
bc97b3ba
JB
58092004-06-02 Jim Blandy <jimb@redhat.com>
5810
5811 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5812 to 'message', and make it local to the lone block that uses it.
5813
1da28ab0
JB
5814 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5815
4c4b4cd2
PH
58162004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5817
8a2225b2
PH
5818 * ada-exp.y: Update copyright notice.
5819 Include block.h.
5820
5821 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5822 SPECIAL_VARIABLE and unify the treatment of these cases.
5823
5824 (write_attribute_call0): Remove.
5825 (write_attribute_call1): Remove.
5826 (write_attribute_calln): Remove.
5827 (save_qualifier): Add missing semicolon.
5828
5829 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5830 temporarily disabled to allow compilation with FSF head version.
5831
5832 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5833 use individual operators (OP_*) for all attributes.
5834 (exp syntax): Use write_int.
5835 Handle STRING literals with OP_STRING.
5836 (variable syntax): Add limit parameter to calls to
5837 write_object_renaming.
5838
5839 (temp_parse_space): New definition to hold entities that need
5840 only live until the next call to ada_parse.
5841 (string_to_operator): Rename fields of ada_opname_table entries.
5842
5843 (write_var_from_sym): Record block.
5844 (write_var_from_name): Minor reformatting.
5845 Make sure saved name is properly encoded in the case of multiple
5846 matches, and set its language to Ada.
5847 Update comment.
5848 Modify to indicate unresolved name as symbol in the UNRESOLVED
5849 namespace, allocated in temp_parse_space.
5850 (write_int): New function.
5851
5852 (write_object_renaming): Add max_depth parameter to limit
5853 chains of object renamings.
5854 Handle case where root of renaming expression is itself a renaming.
5855 Use temp_parse_space for temporary name buffer.
5856 Handle renamings to dereferenced pointers (___XEXA suffices).
5857
5858 (ada_parse, yyerror, string_to_operator,
5859 write_var_from_sym, write_var_from_name, write_attribute_call0,
5860 write_attribute_call1, write_attribute_calln,
5861 write_object_renaming): Protoize.
5862
5863 (_initialize_ada_exp): New function.
5864
5865 * ada-lang.c: Update copyright notice.
5866 General terminology change to conform to GNAT compiler usage:
5867 mangle => encode, demangle => decode
5868 Include gdb_obstack.h.
5869 Include gdb_regex.h
5870 Include frame.h
5871 Include hashtab.h
5872 Include completer.h
5873 Include gdb_stat.h
5874 Include block.h
5875 Include infcall.h
5876
5877 (ADA_RETAIN_DOTS): Make sure this is defined.
5878 (TRUNCATION_TOWARDS_ZERO): Define.
5879 (struct string_vector): Define.
5880 (unresolved_names): Remove definition.
5881 (xnew_string_vector): New function.
5882 (string_vector_append): New function.
5883 (extract_string): Make static.
5884 (ada_unqualified_name): New function.
5885 (add_angle_brackets): New function.
5886 (function_name_from_pc): New function.
5887 (place_on_stack): Rename to ensure_lval.
5888
5889 (ensure_lval): Renamed from place_on_stack.
5890 Make identity on lvals.
5891 Update comment.
5892 (is_nonfunction): New interface.
5893 Only symbols in LOC_CONST class can be enumerals.
5894 (fill_in_ada_prototype): Remove; now independent of language.
5895 (add_defn_to_vec): Add obstack and symtab arguments.
5896 Use obstack to hold collected definitions.
5897 (num_defns_collected): New function.
5898 (defns_collected): New function.
5899 (ada_resolve_subexp): Rename to resolve_subexp.
5900 (resolve_subexp): Renamed from ada_resolve_subexp.
5901 (ada_op_name): Return non-const result.
5902 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5903 other purposes.
5904
5905 (to_fixed_array_type): Add declaration.
5906 (coerce_unspec_val_to_type): Remove offset parameter.
5907 (find_sal_from_funcs_and_line): New interface.
5908 (find_line_in_linetable): Ditto.
5909
5910 (all_sals_for_line): Rename to ada_sals_for_line and make
5911 global.
5912 Add new parameter. When set, do not ask the user to choose the
5913 instance, but use the first one found instead.
5914 Use given line number in returned sals.
5915 Fix comment.
5916 Skip the prologue if funfirstline is set.
5917 Correct for memory leak when 0 lines found.
5918
5919 (value_pos_atr): Use pos_atr.
5920 (pos_atr): New function.
5921 (standard_lookup): Add block parameter.
5922
5923 (makeTimeStart): Remove declaration and uses.
5924 (makeTimeStop): Remove declaration and uses.
5925
5926 (ada_completer_word_break_characters): Allow for VMS.
5927 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5928 (raise_sym_name): New constant.
5929 (raise_unhandled_sym_name): New constant.
5930 (raise_assert_sym_name): New constant.
5931 (process_raise_exception_name): New constant.
5932 (longest_exception_template): New constant.
5933 (warning_limit): New variable to limit warnings during expression
5934 evaluation.
5935 (warnings_issued): New variable to keep track of warnings issued.
5936 (known_runtime_file_name_patterns): New constant.
5937 (known_auxiliary_function_name_patterns): New constant.
5938 (symbol_list_obstack): New variable.
5939
5940 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5941 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5942 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5943 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5944 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5945 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5946 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5947 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5948 and strcmp.
5949
5950 (ada_get_field_index): New function.
5951 (lim_warning): New function.
5952 (ada_translate_error_message): New function.
5953 (MAX_OF_SIZE): New function.
5954 (MIN_OF_SIZE): New function.
5955 (UMAX_OF_SIZE): New function.
5956 (UMIN_OF_SIZE): New function.
5957 (discrete_type_high_bound): New function.
5958 (discrete_type_low_bound): New function.
5959 (base_type): New function.
5960 (do_command): Remove.
5961
5962 (ada_update_initial_language): Use language_ada, not language_unknown.
5963 (ada_encode): Renamed from ada_mangle.
5964 Obey ADA_RETAIN_DOTS.
5965 (ada_decode): Renamed from ada_demangle.
5966 Update coding conventions.
5967 (decoded_names_store): New hash table.
5968 (ada_decode_symbol): New function.
5969 (ada_la_decode): New function.
5970
5971 (modify_general_field): Correct computations of offset and bit
5972 position.
5973 (desc_base_type): Handle ref types, too.
5974 (ada_is_direct_array_type): New function.
5975
5976 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5977 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5978 (ada_is_bogus_array_descriptor,ada_type_of_array,
5979 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5980 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5981 ada_is_array_descriptor_type.
5982
5983 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5984 (ada_is_packed_array_type): Handle pointers or
5985 references to packed arrays as well.
5986 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5987 (decode_packed_array_type): Search for the packed array type
5988 symbol in the currently selected block and associated
5989 superblocks too.
5990 Use lookup_symbol again.
5991
5992 (decode_packed_array): Handle pointers and references.
5993 Update call to coerce_unspec_val_to_type.
5994 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5995 (ada_value_primitive_packed_val): Improve comment.
5996
5997 (ada_index_type): Substitute int type for "undefined".
5998 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5999 ada_array_langth, ada_is_string_type): Use renamed
6000 ada_is_simple_array_type.
6001 (empty_array): New function.
6002
6003 (ada_resolve): Rename to resolve.
6004 (resolve): Make static.
6005 Call renamed resolve_subexp.
6006 Update comment.
6007 (ada_resolve_subexp): Rename to resolve_subexp.
6008 (resolve_subexp): Update comment.
6009 Decomment disabled code.
6010 Add LOC_COMPUTED* cases.
6011 Modify to use temporary struct symbols (marked as being in
6012 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6013 OP_UNRESOLVED_VALUE.
6014 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6015 Add OP_STRING case.
6016 Remove OP_ARRAY.
6017 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6018 Use new ada_lookup_symbol_list interface.
6019 Use new ada_resolve_function interface.
6020 Remove OP_TYPE case.
6021
6022 (ada_args_match): Idiot proof against null actuals.
6023 Use intermediate variables to clarify.
6024 (ada_resolve_function): Update comment and interface.
6025 (mangled_ordered_before): Rename to encoded_ordered_before and
6026 update comment.
6027 (sort_choices): Update comment and interface.
6028 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6029 (user_select_syms): New interface.
6030 Use new sort_choices interface.
6031 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6032 (possible_user_operator_p): Idiot-proof against null values.
6033 (ada_simple_renamed_entity): Don't make cleanup; rely on
6034 caller to free result string.
6035 Remove const from return type.
6036 (make_array_descriptor): Rename uses of place_on_stack to
6037 ensure_lval.
6038 Make sure that arrays are on stack.
6039
6040 (HASH_SIZE): Define.
6041 (struct cache_entry): Define.
6042 (cache_space): Define.
6043 (cache): Define.
6044 (clear_ada_sym_cache): New function.
6045 (find_entry): New function.
6046 (lookup_cached_symbol): New function.
6047 (defn_vector_size): Define.
6048 (cache_symbol): New function.
6049 (defn_symbols): Remove.
6050
6051 (standard_lookup): Use lookup_symbol_in_language to get effect of
6052 C lookup.
6053 Cache results.
6054
6055 (symbol_completion_match): New function.
6056 (symbol_completion_add): New function.
6057 (ada_make_symbol_completion_list): New function.
6058
6059 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6060 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6061 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6062 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6063
6064 (ada_lookup_simple_minsym): New function.
6065 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6066
6067 (add_symbols_from_enclosing_procs): New interface.
6068 Conditionalize more helpfully.
6069 Don't bother if program isn't running.
6070 Use new interface to get_frame_block.
6071 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6072
6073 (remove_extra_symbols): New interface.
6074 (xget_renaming_scope): New function.
6075 (is_package_name): New function.
6076 (renaming_is_visible): New function.
6077 (remove_out_of_scope_renamings): New function.
6078
6079 (ada_lookup_symbol_list): New interface.
6080 Properly reinitialize the symbol list obstack.
6081 Don't call add_symbols_from_enclosing_procs if we start from a
6082 static or global block.
6083 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6084 add_symbols_from_enclosing_procs.
6085 Add symtab data to cached entries.
6086 Handle symbols prefixed with
6087 "standard__" specially; strip prefix and don't look in local symbols.
6088 Do not include out of scope renaming symbols in list of
6089 symbols returned.
6090 Add const to block parameter.
6091 Move check for non-local, non-global symbols earlier.
6092 Remove timing stuff.
6093 (ada_lookup_symbol): New interface.
6094 Find symtab as well.
6095 (ada_lookup_symbol_nonlocal): New function.
6096
6097 (is_name_suffix): Enhance suffix detection to recognize
6098 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6099 (is_dot_digits_suffix): New function.
6100 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6101
6102 (ada_add_block_symbols): New interface. Use obstack to return results
6103 in a vector of struct ada_symbol_infos. Add symtab argument.
6104 Use new interface to add_defn_to_vec.
6105 Remove calls to fill_in_ada_prototype.
6106 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6107
6108 (ada_finish_decode_line_1): Add const qualification to local to fix
6109 warning.
6110 Start looking in static block for functions to avoid attempts
6111 to search frame chain for up-level variables.
6112 Adapt to new ada_sals_for_line interface.
6113 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6114 Handle quoting of the function name inside the spec string.
6115 Skip prologue when funfirstline is set and update the
6116 function documentation to that effect.
6117
6118 (debug_print_lines, debug_print_block, debug_print_blocks,
6119 debug_print_symtab): Remove.
6120
6121 (ada_main_name): New function.
6122 (ada_exception_breakpoint_type): New function.
6123 (is_known_support_routine): New function.
6124 (ada_find_printable_frame): Renamed from find_printable_frame and made
6125 global.
6126 Remove level parameter.
6127 Use new interface to select_frame.
6128
6129 (begin_command): Remove.
6130 (ada_adjust_exception_stop): New function.
6131 (ada_print_exception_stop): New function.
6132 (exception_name_from_cond): New function.
6133 (ada_report_exception_break): Replace disabled code with
6134 conditionalization on GNAT_GDB.
6135 Get the exception name from the condition string.
6136 Remove and move functionality into new functions
6137 ada_print_exception_breakpoint_task and
6138 ada_print_exception_breakpoint_nontask.
6139 (error_breakpoint_runtime_sym_not_found): New function.
6140 (is_runtime_sym_defined): New function.
6141 (ada_breakpoint_rewrite): Uncomment suppressed code.
6142 Use symbolic error-message and runtime-symbol names.
6143 Surround runtime symbol names in quotes.
6144 Allow non-specific breakpoints on exceptions and assertions before
6145 program starts.
6146
6147 (ada_is_tagged_type): Add parameter.
6148 (ada_is_tag_type): New function.
6149 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6150 (ada_variant_discrim_type): Ditto.
6151 (value_tag_from_contents_and_address): New function.
6152 (type_from_tag): New function.
6153 (struct tag_args): New structure used to communicate with
6154 ada_tag_name_1.
6155 (ada_tag_name_1): New function.
6156 (ada_tag_name): New function.
6157
6158 (ada_scan_number): Update comment.
6159 (find_struct_field): New function.
6160 (ada_search_struct_field): Make static.
6161 (ada_value_struct_elt): New version that returns references when
6162 given pointers or references to structs.
6163 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6164 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6165 interface.
6166 (ada_value_ind): Use new ada_to_fixed_value interface.
6167 (ada_coerce_ref): Ditto.
6168 (field_offset): Remove.
6169
6170 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6171 (ada_find_renaming_symbol): New function.
6172 (ada_prefer_type): Prefer named types over unnamed ones.
6173 (variant_field_index): New function.
6174 (contains_variant_part): Removed: subsumed by variant_field_index.
6175 (ada_template_to_fixed_record_type): New function, mostly from
6176 template_to_fixed_record_type.
6177 (template_to_fixed_record_type):
6178 Do not scan the type fields beyond the last one; prevents a
6179 potential SEGV.
6180 Handle case where variant field is listed BEFORE discriminant it
6181 depends on.
6182 Fix calculation of record length when bit length is
6183 not evenly divisible by char length.
6184 Move code to ada_template_to_fixed_record_type and call it.
6185
6186 (template_to_static_fixed_type): Revise comment.
6187 Modify to work on ordinary record types as well as templates,
6188 so as to handle fields that use ___XVE or ___XVU encodings.
6189 (to_record_with_fixed_variant_part): Fill out comment.
6190 Initialize C++ stuff in right type.
6191 Allow case where DVAL is null.
6192 Handle case where variant field is not last.
6193 Fix typo concerning record length.
6194 (to_fixed_record_type): Decomment disabled code.
6195 (to_fixed_record_type): Use variant_field_index instead of
6196 contains_variant_part.
6197 (to_fixed_variant_branch_type): Ditto.
6198 (to_fixed_array_type): Decomment disabled code.
6199 (ada_to_fixed_type): Convert tagged types to the specific type.
6200 Deactivate the size-check for array types in order to avoid
6201 some false size alarms.
6202 (to_static_fixed_type): Decomment disabled code.
6203 Modify to call template_to_static_fixed_type
6204 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6205 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6206 Remove valaddr argument, as it is never really used.
6207 (ada_to_fixed_value): Change interface to act on single struct value*
6208 operand.
6209 (adjust_pc_past_prologue): New function.
6210 (ada_attribute_name): Modify to take enum exp_opcode argument.
6211
6212 (ada_enum_name): Recognize new homonym-distinguishing convention.
6213 Adjust local variable's type to remove compiler warning.
6214 Fix a small problem in the part that unqualifies the enumeration name.
6215 (ada_value_binop): New function.
6216 (ada_value_equal): New function.
6217
6218 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6219 Don't give error message when not doing normal evaluation
6220 and a tagged type doesn't seem to contain a structure member.
6221 Give error message for packed arrays.
6222 For indexing arrays, handle pointers to packed arrays correctly.
6223 Handle case of 'first and 'last attributes of bare integral type
6224 without encoded subtype info.
6225 Remove some unnecessary casts.
6226 Fix uninitialized value of type in computing 'first, 'last, or 'length
6227 of array object.
6228 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6229 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6230 calls.
6231 Attributes are now exp_opcode values.
6232 Correct treatment of 'modulus.
6233 Better error message for taking 'length of wrong kind of type;
6234 improve comment.
6235 Change EVAL_NORMAL to noside for consistency.
6236 Use ada_value_binop for DIV, MOD, REM.
6237 Make special case out of array of length 0, since an argument
6238 of 0 upsets some platforms' malloc.
6239 Use OP_STRING instead of OP_ARRAY.
6240 For slice, add check that we have an array type before extracting
6241 a slice out of it. Avoids a SEGV.
6242 When evaluating an array slice, if the array type is a reference to
6243 an aligner type, then replace the aligner type by the actual type.
6244 Decomment disabled code.
6245 Remove some dead code.
6246 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6247 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6248 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6249 and UNOP_MBR to UNOP_IN_RANGE.
6250 If an array type has a parallel ___XVE type, then use it.
6251 Turn arrays into pointers for lvalue arrays.
6252 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6253 bounds error and handle 0-length slices.
6254 Use lim_warning.
6255 When selecting fields, apply ada_to_fixed_value (because the fields
6256 might have ___XVU or ___XVE encodings even if not dynamic.)
6257 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6258 (ada_is_system_address_type): New function.
6259
6260 (get_var_value): Use new interface to ada_lookup_symbol_list.
6261 (get_int_var_value): New interface.
6262 (to_fixed_range_type): Allow unknown bound, with warning.
6263 (ada_is_modular_type): Decomment disabled code.
6264 (ADA_OPERATORS): New definition.
6265 (ada_operator_length): New function.
6266 (ada_expr_op_name): New function.
6267 (ada_forward_operator_length): New function.
6268 (ada_dump_subexp_body): New function.
6269 (ada_print_subexp): New function.
6270 (ada_exp_descriptor): New constant.
6271 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6272 (ada_language_defn): Add ada_exp_descriptor entry.
6273 Change ada_parse => parse.
6274 Add post-parser entry.
6275 Use ada-specific non-local symbol lookup.
6276 Don't use C-style arrays.
6277 String lower-bound is 1.
6278 Decomment disabled code.
6279 (parse): New function.
6280 New fields ada_translate_error_message, ada_lookup_symbol,
6281 ada_lookup_minimal_symbol.
6282
6283 * ada-lang.h: Update copyright dates.
6284 Replace the mangle/demangle terminology throughout by the
6285 more appropriate encode/decode one.
6286 Include breakpoint.h.
6287 Forward declare struct partial_symbol, struct block.
6288 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6289 (EXTRACT_ADDRESS): Remove.
6290 (EXTRACT_INT): Remove.
6291 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6292 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6293 (MAX_RENAMING_CHAIN_LENGTH): Define.
6294 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6295
6296 (enum task_states): Remove.
6297 ada_task_states: Remove.
6298 (fat_string): Remove.
6299 (struct entry_call): Remove.
6300 (struct task_fields): Remove.
6301 (struct task_entry): Remove.
6302
6303 (struct ada_symbol_info): Define.
6304 (enum ada_attribute): Remove.
6305 (enum ada_operator): Define.
6306
6307 (ada_get_field_index): Declare.
6308 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6309 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6310 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6311 (ada_lookup_symbol_list): New interface.
6312 (ada_decode_symbol): Declare.
6313 (ada_decode): Declare.
6314 (ada_lookup_symbol): New interface.
6315 (ada_update_initial_language): Declare.
6316 (ada_lookup_simple_minsym): Declare.
6317 (user_select_syms): New interface.
6318 (ada_sals_for_line): Declare.
6319 (ada_is_tagged_type): New interface.
6320 (ada_tag_name): Declare.
6321 (ada_lookup_struct_elt_type): Remove declaration.
6322 (ada_search_struct_field): Remove declaration.
6323 (ada_attribute_name): New interface.
6324 (ada_is_system_address_type): Declare.
6325 (ada_to_fixed_value): Remove declaration.
6326 (ada_template_to_fixed_record_type_1): Declare.
6327 (get_int_var_value): New interface.
6328 (ada_find_any_symbol): Declare.
6329 (ada_find_renaming_symbol): Declare.
6330 (ada_mangle): Rename to ada_encode.
6331 (ada_simple_renamed_entity): Remove const.
6332 (ada_main_name): Declare.
6333 (get_current_task): Rename to ada_get_current_task.
6334 (get_entry_number): Remove declaration.
6335 (ada_report_exception_break): Remove declaration.
6336 (ada_print_exception_breakpoint_nontask): Declare.
6337 (ada_print_exception_breakpoint_task): Declare.
6338 (ada_find_printable_frame): Declare.
6339
6340 * ada-lex.l: Update copyright notices.
6341 Use xmalloc and xfree instead of malloc and free.
6342 Use new interface to name_lookup.
6343 Use new interface to
6344 ada_mangle=>ada_encode.
6345 Redo handling of '$...' variable to parallel current treatment
6346 in c-exp.y.
6347 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6348 digit_to_int, strtoulst, processInt, processReal, processId,
6349 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6350 yywrap): Protoize.
6351
6352 (processInt): Use cast to remove harmless warning.
6353 (processReal): Modify to get rid of compiler warning on scan formats.
6354
6355 (processId): Replace xmalloc with obstack_alloc for name and remove
6356 call to ada_name_string_cleanup.
6357 Remove obsolete disabled code.
6358 (name_lookup): Ditto.
6359 New interface.
6360 Use obsavestring on temp_parse_space instead of savestring
6361 on name, and remove call to ada_name_string_cleanup.
6362 Free string returned from ada_simple_renamed_entity.
6363 Use new interface to ada_lookup_symbol_list.
6364 Decomment disabled code.
6365 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6366 not types.
6367 When a type name lookup succeeds as a result of
6368 lookup_primitive_typename, check for regular type entry that has not
6369 yet been read in.
6370 Limit length of chain of renamed symbols we are willing to follow.
6371 Do not break names beginning with "standard__" into segments.
6372 (block_lookup): Use new interface to ada_lookup_symbol_list.
6373
6374 * ada-typeprint.c: Update copyright notice.
6375 (demangled_type_name): Rename to decoded_type_name.
6376 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6377 (print_range_bound): Correct handling of negative
6378 bounds that make the index type looked unsigned under STABS.
6379 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6380 (print_range_type_named): Use the builtin int type if no type
6381 corresponding to the given type name could be found.
6382 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6383 Add some bullet-proofing.
6384 (print_variant_clauses): Allow for variant branches with ___XVU
6385 encodings that are not dynamic fields.
6386 Use new interface to ada_is_tagged_type.
6387 (print_record_type): Allow for fields with ___XVE encodings that
6388 are not dynamic fields.
6389 Use new interface to ada_is_tagged_type.
6390 (ada_print_type): ada_is_array_descriptor =>
6391 ada_is_array_descriptor_type.
6392
6393 * ada-valprint.c: Update copyright notice.
6394 Include gdb_string.h
6395 Include infcall.h
6396 (ui_memcpy): New function.
6397 (ada_print_floating): New function.
6398 (ada_print_str): Order arguments correctly.
6399 Correct handling of empty arrays and arrays of 0-length items.
6400 ada_is_array_descriptor => ada_is_array_descriptor_type
6401 Print values of type System.Address in hexadecimal format.
6402 Use ada_print_floating to print floating-point numbers in Ada format.
6403 Print class tag values with type names.
6404 No longer print the address of reference values. Avoids
6405 a potential confusion.
6406 (ada_value_print): Stop printing the object type for reference
6407 values, but preserve that behavior for access types. Avoids
6408 a potential confusion.
6409 Simplify one conditional expression, as the first part is now
6410 necessarily true.
6411 ada_is_array_descriptor => ada_is_array_descriptor_type
6412 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6413
f65f91b5
JB
64142004-06-01 Jim Blandy <jimb@redhat.com>
6415
6416 * ppc-tdep.h: Delete unused 'regoff' member.
6417 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6418
d4687fa0
MC
64192004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6420
6421 Fix PR symtab/1661.
6422 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6423 (hpread_read_struct_type): Likewise.
6424
de169ec9
AC
64252004-06-01 Andrew Cagney <cagney@gnu.org>
6426
c6902d46
AC
6427 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6428 instead of xasprintf.
6429 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6430 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6431 (mi_cmd_data_list_register_names)
6432 (mi_cmd_data_list_changed_registers)
6433 (mi_cmd_data_list_register_values)
6434 (get_register, mi_cmd_data_write_register_values)
6435 (mi_cmd_data_write_register_values)
6436 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6437 (mi_cmd_target_download, mi_cmd_target_select)
6438 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6439 (mi_execute_cli_command, mi_execute_async_cli_command)
6440 (mi_execute_async_cli_command): Ditto.
6441 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6442 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6443
6085fc2d
AC
6444 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6445 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6446 error_last_message instead of mi_error_last_message.
6447 * mi/mi-main.c (mi_error_last_message): Delete function.
6448
de169ec9
AC
6449 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6450 "invalid number of columns" error. Delete redundant "out of
6451 memory" check.
6452
1fc7d519
MK
64532004-05-31 Mark Kettenis <kettenis@gnu.org>
6454
6cfb2041
MK
6455 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6456 (gregset_t, fpregset_t): Remove typedefs.
6457 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6458 (REG_OFFSET): Rename argument.
6459 (i386bsd_r_reg_offset): Rename from reg_offset.
6460 (REG_ADDR): Remove macro.
6461 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6462 functions.
6463 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6464 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6465 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6466 instead of supply_gregset.
6467 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6468 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6469 instead of fill_gregset.
6470 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6471
1fc7d519
MK
6472 * i386bsd-nat.c: Don't include "gregset.h".
6473 (supply_gregset, fill_gregset): Make static.
6474 (supply_fpregset, fill_fpregset): Remove.
6475 * Makefile.in (i386bsd-nat.o): Update dependencies.
6476
2c34abbe
MK
64772004-05-30 Mark Kettenis <kettenis@gnu.org>
6478
448724fb
MK
6479 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6480 "gdb_assert.h". Con't include "gregset.h".
6481 (fbsd_make_corefile_notes): Use regset-based core file support
6482 instead off fill_gregset and fill_fpregset.
6483 * Makefile.in (fbsd-proc.o): Update dependencies.
6484
5ca8ca7c
MK
6485 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6486 instructions.
6487 (m88k_frame_prev_register): Simplify code a bit.
6488
593adc23
MK
6489 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6490 (amd64_collect_fpregset): New function.
6491 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6492
8d1b517b
MK
6493 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6494
7fdafb5a
MK
6495 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6496 (i386_collect_gregset): New function.
6497 (i386_supply_fpregset): Adjust comment.
6498 (i386_collect_fpregset): New function.
6499 (i386_regset_from_core_section): Use i386_collect_gregset and
6500 i386_collect_fpregset.
6501
8693c419
MK
6502 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6503 handle VALUEP being null.
6504
2c34abbe
MK
6505 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6506
45d134d8
MK
65072004-05-29 Mark Kettenis <kettenis@gnu.org>
6508
1698f4e7
MK
6509 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6510
45d134d8
MK
6511 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6512 assembler in OpenBSD 3.5-current.
6513 (amd64obsd_sigcontext_addr): Likewise.
6514
691d145a
JB
65152004-05-28 Jim Blandy <jimb@redhat.com>
6516
6517 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6518 register set, so our regcache isn't declared "legacy" and our E500
6519 pseudoregister read and write functions aren't ignored.
6520 (rs6000_register_byte, rs6000_register_raw_size,
6521 rs6000_register_virtual_type, rs6000_register_convertible,
6522 rs6000_register_convert_to_virtual,
6523 rs6000_register_convert_to_raw): Deleted.
6524 (rs6000_register_type, rs6000_convert_register_p,
6525 rs6000_register_to_value, rs6000_value_to_register): New
6526 functions.
6527 (rs6000_gdbarch_init): Don't register
6528 gdbarch_deprecated_register_size,
6529 gdbarch_deprecated_register_bytes,
6530 gdbarch_deprecated_register_byte,
6531 gdbarch_deprecated_register_raw_size,
6532 gdbarch_deprecated_register_virtual_type,
6533 gdbarch_deprecated_register_convertible,
6534 gdbarch_deprecated_register_convert_to_virtual, or
6535 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6536 register gdbarch_register_type, gdbarch_convert_register_p,
6537 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6538
18ed0c4e
JB
65392004-05-26 Jim Blandy <jimb@redhat.com>
6540
6541 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6542 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6543 functions, updated to match the register numberings used in GCC.
6544 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6545 rs6000_dwarf2_reg_to_regnum as register number conversions
6546 functions for STABS and Dwarf2.
6547
779af9e3
RC
65482004-05-26 Randolph Chung <tausq@debian.org>
6549
6550 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6551 in header file.
6552
c23968a2
JB
65532004-05-25 Joel Brobecker <brobecker@gnat.com>
6554
6555 * NEWS: Document new "start" command.
6556
3a7d1c27
RC
65572004-05-25 Randolph Chung <tausq@debian.org>
6558
6559 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6560 hppa-linux.
6561
43613416
RC
65622004-05-25 Randolph Chung <tausq@debian.org>
6563
6564 * hppa-hpux-tdep.c (offsetof): Define.
6565 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6566 (hppa32_hpux_frame_base_before_sigtramp)
6567 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6568 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6569 (hppa64_hpux_frame_base_before_sigtramp)
6570 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6571 functions.
6572 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6573 (hppa_hpux_sigtramp_frame_unwind_cache)
6574 (hppa_hpux_sigtramp_frame_this_id)
6575 (hppa_hpux_sigtramp_frame_prev_register)
6576 (hppa_hpux_sigtramp_frame_unwind)
6577 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6578 (hppa_hpux_init_abi): Register sigtramp unwinder.
6579 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6580
6d1be3f1
RC
65812004-05-25 Randolph Chung <tausq@debian.org>
6582
6583 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6584 and multiple stack unwinds.
6585 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6586
97c34f65
AC
65872004-05-25 Andrew Cagney <cagney@gnu.org>
6588
6589 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6590 * symfile-mem.h: Delete file.
6591 * symfile-mem.c: Do not include "symfile-mem.h".
6592 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6593 "struct bfd_section". When an error do not bother returning NULL.
6594 (add_symbol_file_from_memory_command): Use "struct bfd" and
6595 "struct bfd_section".
6596 * Makefile.in (symfile_mem_h): Delete.
6597 (symfile-mem.o): Update dependencies.
6598
e23cbd82
NR
65992004-05-25 Nick Roberts <nickrob@gnu.org>
6600
6601 * gdb-mi.el: New file.
6602
20d2ca3e
AC
66032004-05-25 Andrew Cagney <cagney@gnu.org>
6604
6605 * inftarg.c: Include "observer.h".
6606 (child_attach, child_create_inferior): Notify inferior_created.
6607 * corelow.c: Include "observer.h".
6608 (core_open): Notify inferior_created.
6609 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6610
c27cda74
AC
66112004-05-25 Andrew Cagney <cagney@gnu.org>
6612
6613 * target.h (struct target_ops): Add from_tty to
6614 to_create_inferior.
6615 (target_create_inferior, find_default_create_inferior): Update.
6616 * infcmd.c (run_command): Update.
6617 * wince.c (child_create_inferior): Update.
6618 * win32-nat.c (child_create_inferior): Update.
6619 * uw-thread.c (uw_thread_create_inferior): Update.
6620 * thread-db.c (thread_db_create_inferior): Update.
6621 * target.c (debug_to_create_inferior)
6622 (find_default_create_inferior): Update.
6623 (maybe_kill_then_create_inferior): Update.
6624 * sol-thread.c (sol_thread_create_inferior): Update.
6625 * remote.c (extended_remote_async_create_inferior)
6626 (extended_remote_create_inferior): Update.
6627 * remote-vx.c (vx_create_inferior): Update.
6628 * remote-st.c (st2000_create_inferior): Update.
6629 * remote-sim.c (gdbsim_create_inferior): Update.
6630 * remote-sds.c (sds_create_inferior): Update.
6631 * remote-rdp.c (remote_rdp_create_inferior): Update.
6632 * remote-rdi.c (arm_rdi_create_inferior): Update.
6633 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6634 * remote-e7000.c (e7000_create_inferior): Update.
6635 * procfs.c (procfs_create_inferior): Update.
6636 * ocd.c (ocd_create_inferior): Update.
6637 * ocd.h (ocd_create_inferior): Update.
6638 * nto-procfs.c (procfs_create_inferior): Update.
6639 * monitor.c (monitor_create_inferior): Update.
6640 * lin-lwp.c (lin_lwp_create_inferior): Update.
6641 * inftarg.c (child_create_inferior): Update.
6642 * hpux-thread.c (hpux_thread_create_inferior): Update.
6643 * gnu-nat.c (gnu_create_inferior): Update.
6644
1db2a798
AC
66452004-05-25 Andrew Cagney <cagney@gnu.com>
6646
6647 * MAINTAINERS: Update e-mail address.
6648
007d08bb
RC
66492004-05-24 Randolph Chung <tausq@debian.org>
6650
6651 * thread.c (info_threads_command, thread_apply_all_command)
6652 (thread_apply_command, thread_command, do_captured_thread_select):
6653 Remove HPUXHPPA-specific code.
6654
69e7b95e
RC
66552004-05-24 Randolph Chung <tausq@debian.org>
6656
6657 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6658 unused symbols.
6659 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6660 references.
6661
a4d5f2e0
JB
66622004-05-24 Joel Brobecker <brobecker@gnat.com>
6663
6664 * infcmd.c (kill_if_already_running): New function, extracted
6665 from run_command().
6666 (run_command): Replace extracted code by call to
6667 kill_if_already_running().
6668 (start_command): New function.
6669 (_initialize_infcmd): Add "start" command.
6670
bf2ca189
MK
66712004-05-24 Mark Kettenis <kettenis@gnu.org>
6672
6673 Add OpenBSD/m88k support.
6674 * NEWS (New native configurations): Mention OpenBSD/m88k.
6675 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6676 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6677 * Makefile.in (m88k_tdep_h): New variable.
6678 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6679 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6680 * configure.host: Add m88*-*-openbsd*.
6681 * configure.tgt: Add m88*-*-openbsd*.
6682
80fadb11
JB
66832004-05-24 Jim Blandy <jimb@redhat.com>
6684
6685 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6686 to approve changes.
6687
19e2d14b
KB
66882004-05-24 Kevin Buettner <kevinb@redhat.com>
6689
6690 * symtab.c (fixup_section): Search section table when lookup by
6691 name fails.
6692
1b07b470
RC
66932004-05-24 Randolph Chung <tausq@debian.org>
6694
6695 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6696 be "small_struct".
6697
368702b1
MK
66982004-05-24 Mark Kettenis <kettenis@gnu.org>
6699
5df97fde
MK
6700 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6701 register number in regcache_raw_collect call.
6702 (m68kbsd_collect_fpregset): Likewise.
6703 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6704
368702b1
MK
6705 * regset.h (struct regset): Add back `regset' member.
6706
a770d4ec
MK
67072004-05-23 Mark Kettenis <kettenis@gnu.org>
6708
70f9f479
MK
6709 * configure.in: Check for td_pcb in `struct thread'.
6710 * configure, config.in: Regenerated.
6711
2e16d79e
MK
6712 * dpx2-nat.c: Remove file.
6713 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6714 (dpx2-nat.o): Remove dependencies.
6715
492cf391
MK
6716 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6717 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6718 (amd64obsd_supply_pcb): New function.
6719 (_initialize_amd64obsd_nat): Enable libkvm interface.
6720 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6721 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6722 (LOADLIBES): New variable.
6723
a770d4ec
MK
6724 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6725 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6726 (sparc32nbsd_supply_pcb): New function.
6727 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6728 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6729 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6730 (LOADLIBES): New variable.
6731
9ea75c57
MK
67322004-05-22 Mark Kettenis <kettenis@gnu.org>
6733
2e0c3539
MK
6734 * bsd-kvm.c, bsd-kvm.h: New files.
6735 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6736 "bsd-kvm.h".
6737 (i386fbsd_supply_pcb): New function.
6738 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6739 (i386fbsd-nat.o): Update dependencies.
6740 (bsd_kvm_h): New variable.
6741 (bsd-kvm.o): New dependency.
6742 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6743 (LOADLIBES): New variable.
6744
9ea75c57
MK
6745 * regset.c: Tweak comment.
6746 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6747 macro.
6748 * regset.h: Update copyright year.
6749 (struct regset): Remove `descr' member, add `gdbarch' member.
6750 (regset_alloc): Adjust prototype and comment.
6751 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6752 (i386_supply_fpregset): Likewise.
6753 (i386_regset_from_core_section): Update call to regset_alloc.
6754 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6755 REGSET->arch.
6756 (i386obsd_aout_regset_from_core_section): Update call to
6757 regset_alloc.
6758 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6759 REGSET->arch.
6760 (i386nbsd_aout_regset_from_core_section): Update call to
6761 regset_alloc.
6762 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6763 REGSET->arch.
6764 (amd64_regset_from_core_section): Update call to regset_alloc.
6765 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6766 REGSET->arch.
6767 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6768 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6769 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6770 (sparc32nbsd_init_abi): Update call to regset_alloc.
6771 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6772 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6773 (sparc64obsd_init_abi): Update call to regset_alloc.
6774 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6775 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6776 (sparc64nbsd_init_abi): Update call to regset_alloc.
6777 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6778 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6779 (sparc64fbsd_init_abi): Update call to regset_alloc.
6780
867e2dc5
JB
67812004-05-22 Jim Blandy <jimb@redhat.com>
6782
6783 * ppc-tdep.h (spe_register_p): New declaration.
6784 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6785 ppc_spefscr_regnum.
6786 * rs6000-tdep.c (spe_register_p): New function.
6787 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6788 spefscr.
6789 (rs6000_gdbarch_init): Initialize the new members of the tdep
6790 structure.
6791
617a4cba
JB
67922004-05-21 Jim Blandy <jimb@redhat.com>
6793
0397dee1
JB
6794 * ppc-linux-nat.c (fetch_register): Move code back to be next
6795 to the comment that describes it. (Moved code, instead of
6796 comment, for symmetry with store_register.)
6797
617a4cba
JB
6798 Allocate regset structures in the gdbarch's obstack, not using
6799 xmalloc.
6800 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6801 Add 'arch' argument. Allocate the regset on arch's obstack, not
6802 using xmalloc.
6803 * regset.h (regset_alloc): Update declaration.
6804 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6805 gdbarch argument.
6806 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6807 * i386-tdep.c (i386_regset_from_core_section): Same.
6808 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6809 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6810 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6811 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6812 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6813 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6814
9aa3914d
JB
68152004-05-21 Joel Brobecker <brobecker@gnat.com>
6816
6817 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6818
99c87dab
JB
68192004-05-21 Jim Blandy <jimb@redhat.com>
6820
6821 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6822 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6823
c2b6b4aa
JB
68242004-05-20 Jim Blandy <jimb@redhat.com>
6825
6826 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6827
144529d0
MK
68282004-05-20 Mark Kettenis <kettenis@gnu.org>
6829
6830 * regset.h: Make prototype const-correct.
6831 * regset.c (regset_xmalloc): Make const-correct.
6832
4725b721
PH
68332004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6834
6835 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6836 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6837 (symbol_search_name): Declare.
6838
6839 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6840 (iter_name_next_hashed): Ditto.
6841 (iter_name_next_linear): Ditto.
6842 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6843
6844 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6845 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6846 (symbol_search_name): New function.
6847
6848 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6849
6850 * minsyms.c (build_minimal_symbol_hash_tables): Change
6851 test for adding to demangled hash table to check for difference
6852 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6853
be07a590
JB
68542004-05-19 Jim Blandy <jimb@redhat.com>
6855
6856 Use a constructor function to create regset structures.
6857 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6858 (struct regset): Use supply_regset_ftype. Add new
6859 'collect_regset' member.
6860 (regset_xmalloc): New declaration.
6861 * regset.c: New file.
6862 * am64-tdep.c (amd64_regset_from_core_section): Use
6863 regset_xmalloc to construct regset structures.
6864 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6865 * i386-tdep.c (i386_regset_from_core_section): Same.
6866 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6867 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6868 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6869 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6870 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6871 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6872 * Makefile.in (COMMON_OBS): Add regset.o.
6873 (regset.o): New rule.
6874
604368f5
JB
68752004-05-19 Joel Brobecker <brobecker@gnat.com>
6876
6877 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6878 and pthread_cond_wait.c.
6879
82d69f8b
JB
68802004-05-18 Jim Blandy <jimb@redhat.com>
6881
6882 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6883 before the mach-specific switch, and then let the individual cases
6884 override the defaults, rather than leaving them uninitialized
6885 until the switch and then setting them in each case.
6886
5859efe5
RC
68872004-05-18 Randolph Chung <tausq@debian.org>
6888
6889 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6890 millicode functions.
6891
9ca80cf8
RC
68922004-05-18 Randolph Chung <tausq@debian.org>
6893
6894 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6895 references to dld_flags_buffer consistent.
6896
ed70ba00
RC
68972004-05-18 Randolph Chung <tausq@debian.org>
6898
6899 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6900 it for unwinding the stack.
6901
63100632
RC
69022004-05-18 Randolph Chung <tausq@debian.org>
6903
6904 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6905 Undefine these so we can overide them using gdbarch.
6906
090ccbb7
RC
69072004-05-18 Randolph Chung <tausq@debian.org>
6908
6909 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6910 handling for 64-bit HPUX (elf).
6911
594706e6
DJ
69122004-05-18 Daniel Jacobowitz <dan@debian.org>
6913
6914 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6915 constants.
6916 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6917 * ia64-tdep.c (examine_prologue): Likewise.
6918 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6919 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6920
e5483145
MK
69212004-05-18 Mark Kettenis <kettenis@gnu.org>
6922
6923 * vax-tdep.c (vax_return_value): Implement
6924 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6925
caed1a45
MK
69262004-05-17 Mark Kettenis <kettenis@gnu.org>
6927
6928 * vax-tdep.c (vax_return_value): Fix typo.
6929
3c0b7db2
AC
69302004-05-17 Andrew Cagney <cagney@redhat.com>
6931
5aae53e5
AC
6932 * MAINTAINERS: Mark Salter was also responsible for
6933 testsuite/config/
6934
3c0b7db2
AC
6935 * NEWS: Mention signal fixes.
6936
22b0923d
RC
69372004-05-17 Randolph Chung <tausq@debian.org>
6938
6939 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6940 check to see if we are unwinding an export stub. Export stubs clobber
6941 the %rp in the call path and stores the original rp in a stack slot.
6942
22f2b2f3
JB
69432004-05-17 Jim Blandy <jimb@redhat.com>
6944
6945 * MAINTAINERS: Update address for J.T. Conklin.
6946
cea96d64
RC
69472004-05-17 Randolph Chung <tausq@debian.org>
6948
6949 * hppa-tdep.c: Remove superfluous #include's.
6950 * Makefile.in (hppa-tdep.o): Update dependencies.
6951
f08f6a4a
RC
69522004-05-17 Randolph Chung <tausq@debian.org>
6953
6954 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6955 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6956 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6957 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6958 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6959 Remove static function declarations.
6960
51da707a
MK
69612004-05-17 Mark Kettenis <kettenis@gnu.org>
6962
caed1a45
MK
6963 * alphabsd-nat.c: Update copyright year.
6964 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6965
c0c2b0db
MK
6966 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6967 and M68K_A2_REGNUM.
6968
51da707a
MK
6969 * m68k-tdep.c (m68k_svr4_return_value): Implement
6970 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6971
8d027a04
MK
69722004-05-16 Mark Kettenis <kettenis@gnu.org>
6973
6974 * sol-thread.c Update copyright year. Fix various coding
6975 standards violations. Tweak a few comments.
6976 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6977 Delete prototypes.
6978
0d99fdb9
RC
69792004-05-15 Randolph Chung <tausq@debian.org>
6980
6981 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6982 as pointer instead of array reference since HPUX compiler does
6983 not accept unsized array arguments.
6984 * somsolib.c (dld_flags_buffer): Use constant array size.
6985
f7e3843a
MK
69862004-05-15 Mark Kettenis <kettenis@gnu.org>
6987
0fe85704
MK
6988 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6989 offset with decimal offset.
6990 (amd64obsd_sigcontext_addr): Return correct address for entire
6991 signal trampoline.
6992
a54f9a00
MK
6993 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6994 instead of get_frame_base.
6995
feae6502
MK
6996 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6997 (fill_gregset): Use regcache_raw_collect.
6998
0382d099
MK
6999 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7000 ppcobsd-tdep.c.
7001
f7e3843a
MK
7002 * config/sparc/tm-nbsd64.h: Remove file.
7003 * config/tm-sunos.h: Remove file.
7004
773df3e5
JB
70052004-05-15 Joel Brobecker <brobecker@gnat.com>
7006
7007 * rs6000-tdep.c (store_param_on_stack_p): New function,
7008 an improved version of some code extracted from skip_prologue().
7009 (skip_prologue): Use store_param_on_stack_p() to detect
7010 instructions saving a parameter on the stack. Detect when r0
7011 is used to save a parameter.
7012 Do not mark "li rx, SIMM" instructions as part of the prologue,
7013 unless the following instruction is also part of the prologue.
7014
95918acb
AC
70152004-05-14 Andrew Cagney <cagney@redhat.com>
7016
06f32659
AC
7017 * infrun.c (handle_inferior_event): Simplify
7018 STEP_OVER_UNDEBUGGABLE.
7019
95918acb
AC
7020 * infrun.c (handle_step_into_function): Delete function.
7021 (handle_inferior_event): Inline calls to
7022 handle_step_into_function.
7023
40711ff1 70242004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7025
7026 * rs6000-nat.c: Fix a comment.
7027
02f60eae
JB
70282004-05-12 David Anderson <davea@sgi.com>
7029
7030 Committed by Jim Blandy <jimb@redhat.com>:
7031 * regcache.c (struct regcache_descr): fix comment spelling.
7032
552e377b
JB
70332004-05-13 J. Brobecker <brobecker@gnat.com>
7034
7035 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7036 Fixes a link link failure.
7037
349766b2
JB
70382004-05-13 J. Brobecker <brobecker@gnat.com>
7039
7040 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7041 error that was causing the build to fail.
7042
0d4d5484
JB
70432004-05-13 J. Brobecker <brobecker@gnat.com>
7044
7045 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7046 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7047
0b30808c
AC
70482004-05-13 Andrew Cagney <cagney@redhat.com>
7049
7050 * infrun.c (handle_inferior_event): Check for
7051 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7052 calls. Update comments.
7053
cdf2c5f5
JB
70542004-05-13 Jim Blandy <jimb@redhat.com>
7055
063715bf
JB
7056 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7057 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7058 (store_regs_user_thread, store_regs_kernel_thread): Use
7059 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7060 * ppc-linux-nat.c (fill_gregset): Same.
7061 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7062 (ppc_linux_sigtramp_cache): Same.
7063 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7064 (ppcnbsd_sigtramp_cache_init): Same.
7065 * rs6000-nat.c (fetch_core_registers): Same.
7066 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7067 (rs6000_frame_cache): Same.
7068
cdf2c5f5
JB
7069 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7070 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7071 of assuming that the gprs are numbered starting with zero.
7072 * ppc-linux-nat.c (fill_gregset): Same.
7073 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7074 * ppcnbsd-nat.c (getregs_supplies): Same.
7075 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7076 * rs6000-nat.c (fetch_core_registers): Same.
7077 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7078
450bd37b
MS
70792004-05-07 Michael Snyder <msnyder@redhat.com>
7080
7081 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7082 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7083
4a72a2a6
AC
70842004-05-13 Andrew Cagney <cagney@redhat.com>
7085
7086 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7087
8edfa926
BM
70882004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7089
7090 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7091 base_address for shared libraries.
7092
723e0e3d
BM
70932004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7094
7095 * MAINTAINERS (write after approval): Add myself.
7096
00d4360e
UW
70972004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7098
7099 * breakpoint.c (bpstat_stop_status): Add new argument
7100 STOPPED_BY_WATCHPOINT. Use it instead of testing
7101 target_stopped_data_address agaist 0 to check whether
7102 or not we stopped due to a hardware watchpoint.
7103 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7104 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7105 with new argument.
7106
ec76baa5
JB
71072004-05-12 Jim Blandy <jimb@redhat.com>
7108
7109 * configure.in: When checking whether we should use the -bbigtoc
7110 option, don't forget to restore the original value of LDFLAGS.
7111 * configure: Regenerated.
7112
f2c9ca08
AC
71132004-05-12 Andrew Cagney <cagney@redhat.com>
7114
7115 * thread.c (load_infrun_state): Delete step_sp.
7116 * infrun.c (context_switch): Ditto.
7117 * inferior.h (step_sp): Ditto.
7118 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7119 * gdbthread.h (struct thread_info, save_infrun_state)
7120 (restore_infrun_state): Ditto.
7121
090ddb2a
UW
71222004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7123
7124 * MAINTAINERS (write after approval): Add myself.
7125
8aad930b
AC
71262004-05-12 Andrew Cagney <cagney@redhat.com>
7127
7128 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7129 eliminate reference to step_sp.
7130 (struct execution_control_state, init_execution_control_state)
7131 (handle_inferior_event, keep_going): Delete update_step_sp and
7132 step_sp.
7133 * infcmd.c (step_sp): Note that variable is unused.
7134
922d5ae0
AC
71352004-05-11 Andrew Cagney <cagney@redhat.com>
7136
7137 * infrun.c (step_over_function): Delete function.
7138 (handle_step_into_function): Use insert_step_resume_breakpoint.
7139 (insert_step_resume_breakpoint): Fix assertion.
7140
017c5ca5
NR
71412004-05-11 Nick Roberts <nickrob@gnu.org>
7142
7143 * utils.c (defaulted_query): Just use the normal query input type
7144 when printing the annotations.
7145
42edda50
AC
71462004-05-11 Andrew Cagney <cagney@redhat.com>
7147
7148 * infrun.c (handle_inferior_event): Simplify code handling
7149 step-into or return-from a signal trampoline.
7150
d28b44a7
AC
71512004-05-11 Andrew Cagney <cagney@redhat.com>
7152
7153 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7154 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7155
383f0f5b
JB
71562004-05-10 Jim Blandy <jimb@redhat.com>
7157
d0b57c3a
JB
7158 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7159 with a call to internal_error.
7160
383f0f5b
JB
7161 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7162 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7163 processor variant lacks those registers.
7164 (ppc_floating_point_unit_p): Change description to make it clear
7165 that this returns info about the ISA, not the ABI.
7166 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7167 return true or false by checking tdep->ppc_fp0_regnum and
7168 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7169 arch/mach switching done in rs6000_gdbarch_init; it's better to
7170 keep that logic there, and just check the results here.
7171 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7172 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7173 floating-point registers.
7174 (ppc_supply_fpregset, ppc_collect_fpregset)
7175 (rs6000_push_dummy_call, rs6000_extract_return_value)
7176 (rs6000_store_return_value): Assert that we have floating-point
7177 registers.
7178 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7179 (rs6000_frame_cache): Don't note the locations at which
7180 floating-point registers were saved if we have no fprs.
7181 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7182 registers.
7183 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7184 (store_regs_user_thread, store_regs_kernel_thread): Only call
7185 supply_fprs / fill_fprs if we actually have floating-point
7186 registers.
7187 (special_register_p): Check ppc_fpscr_regnum before matching
7188 against it.
7189 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7190 supply / collect fpscr if we don't have it.
7191 * ppc-bdm.c: #include "gdb_assert.h".
7192 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7193 have floating-point registers, since I can't test this code on
7194 FP-free systems to adapt it.
7195 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7196 fpscr and floating point register numbers if they don't exist.
7197 (fetch_register): Assert that we have floating-point registers
7198 before we reach the code that handles them.
7199 (store_register): Same. And use tdep instead of calling
7200 gdbarch_tdep again.
7201 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7202 don't have them.
7203 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7204 fprs and fpscr if we don't have them.
7205 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7206 don't have them.
7207 * ppcnbsd-nat.c: #include "gdb_assert.h".
7208 (getfpregs_supplies): Assert that we have floating-point registers.
7209 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7210 * ppcobsd-tdep.c: #include "gdb_assert.h".
7211 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7212 have floating-point registers.
7213 * rs6000-nat.c (regmap): Don't match against the fpscr and
7214 floating point register numbers if they don't exist.
7215 (fetch_inferior_registers, store_inferior_registers,
7216 fetch_core_registers): Only fetch / store / supply the
7217 floating-point registers and the fpscr if we have them.
7218 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7219 (ppcobsd-tdep.o): Update dependencies.
7220
15960608
AC
72212004-05-10 Andrew Cagney <cagney@redhat.com>
7222
7223 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7224 (context_switch): Do not switch through_sigtramp_breakpoint.
7225 * gdbthread.h (save_infrun_state, load_infrun_state)
7226 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7227 and structure member.
7228 * thread.c (load_infrun_state, save_infrun_state): Update.
7229
5ab5aa0f
MK
72302004-05-10 Mark Kettenis <kettenis@gnu.org>
7231
7232 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7233
da78b0e7
DJ
72342004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7235
7236 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7237 throughout.
7238 * aclocal.m4: Regenerate.
7239
cca0d3b0
NW
72402004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7241
7242 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7243
d303a6c7
AC
72442004-05-10 Andrew Cagney <cagney@redhat.com>
7245
7246 * infrun.c (check_sigtramp2): Delete function.
7247 (handle_inferior_event): When single stepping, and taking a
7248 signal, set a breakpoint at the signal return address. Delete
7249 redundant calls to check_sigtramp2.
7250 (insert_step_resume_breakpoint): New function.
7251 (through_sigtramp_breakpoint, handle_inferior_event)
7252 (follow_exec, wait_for_inferior, fetch_inferior_event)
7253 (currently_stepping, keep_going): Delete most uses of
7254 through_sigtramp_breakpoint, not that it should be deleted.
7255 (delete_breakpoint_current_contents): Delete function.
7256
03f4cc20
RC
72572004-05-10 Randolph Chung <tausq@debian.org>
7258
7259 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7260 target.
7261 * config/pa/tm-linux.h: New file.
7262
37fc812e
DJ
72632004-05-10 Daniel Jacobowitz <drow@mvista.com>
7264
7265 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7266 of prefixes. Don't print the prefix twice in the CLI.
7267
26c0b942
JB
72682004-05-10 Jim Blandy <jimb@redhat.com>
7269
2e56e9c1
JB
7270 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7271 collect all the gprs.
7272
26c0b942
JB
7273 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7274 loop collecting gprs.
7275
dc497459
AC
72762004-05-09 Andrew Cagney <cagney@redhat.com>
7277
7278 * remote-vx.c (net_step): Delete step-range code.
7279 * remote.c (remote_resume, init_all_packet_configs)
7280 (set_remote_protocol_E_packet_cmd)
7281 (show_remote_protocol_E_packet_cmd)
7282 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7283 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7284 (show_remote_protocol_e_packet_cmd): Ditto.
7285
0543f387
MK
72862004-05-09 Mark Kettenis <kettenis@gnu.org>
7287
c481d1ca
MK
7288 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7289
f626a069
MK
7290 * hppa-tdep.h: Update copyright year.
7291 (struct trad_frame_saved_reg): Add opaque declaration.
7292
6fa57a7d
MK
7293 * amd64-tdep.c (amd64_return_value): Implement
7294 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7295
e47577ab
MK
7296 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7297 (m68k_value_to_register): New functions.
7298 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7299 value_to_register.
7300
31db7b6c
MK
7301 * defs.h (enum return_value_convention): Add
7302 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7303 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7304 * infcmd.c (legacy_return_value): New function.
7305 (print_return_value): Rwerite to implement
7306 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7307 * values.c (using_struct_return): Check for inequality to
7308 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7309 RETURN_VALUE_STRUCT_CONVENTION.
7310 * i386-tdep.c (i386_return_value): Implement
7311 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7312
0543f387
MK
7313 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7314 include "symtab.h", "opcode/vax.h" and "inferior.h".
7315 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7316 to read_memory_unsigned_integer.
7317 (vax_gdbarch_init): Reorder.
7318 (_initialize_vax_tdep): Spell out prototype.
7319 * Makefile.in (vax-tdep.o): Update dependencies.
7320
0c93b7b6
AC
73212004-05-08 Andrew Cagney <cagney@redhat.com>
7322
e6b55ae2
AC
7323 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7324 * target.c (target_detach, target_disconnect): Ditto.
7325
1ac839b8
AC
7326 * infcall.c (call_function_by_hand): When no
7327 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7328 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7329 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7330 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7332
28954179
AC
7333 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7334 * gdbarch.h, gdbarch.c: Re-generate.
7335 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7336 deprecated_fix_call_dummy.
7337 * v850-tdep.c (v850_gdbarch_init): Ditto.
7338 * infcall.c (call_function_by_hand): Do not call
7339 DEPRECATED_FIX_CALL_DUMMY.
7340
434b87dd
AC
7341 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7342 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7343 * gdbarch.h, gdbarch.c: Re-generate.
7344 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7345 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7346 deprecated_sizeof_call_dummy_words.
7347 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7348 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7349 * v850-tdep.c (v850_gdbarch_init): Ditto.
7350 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7351 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7352 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7353 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7354 * arch-utils.h (legacy_call_dummy_words)
7355 (legacy_sizeof_call_dummy_words): Delete declarations.
7356 * arch-utils.c (legacy_call_dummy_words)
7357 (legacy_sizeof_call_dummy_words): Delete variables.
7358
58d28df8
AC
7359 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7360 * gdbarch.h, gdbarch.c: Re-generate.
7361 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7362 * infcall.c (call_function_by_hand): Eliminate call to
7363 DEPRECATED_PUSH_DUMMY_FRAME.
7364 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7365 push_dummy_frame.
7366 (ns32k_push_dummy_frame): Delete function.
7367
e4a2df64
AC
7368 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7369 deprecated_call_dummy_breakpoint_offset or
7370 deprecated_call_dummy_start_offset.
7371 * dummy-frame.c, arm-tdep.c: Update comments.
7372 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7373 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7374 * gdbarch.h, gdbarch.c: Re-generate.
7375
d3712828
AC
7376 * infcall.c (legacy_push_dummy_code): Delete function.
7377 (push_dummy_code): Delete call.
7378
7a882905
AC
7379 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7380 * gdbarch.h, gdbarch.c: Re-generate.
7381 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7382 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7383 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7384 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7385
0ec5872b
AC
7386 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7387 (struct frame_info): Delete opaque declaration.
7388 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7389 * frame.c (get_frame_type): Delete call.
7390
0c93b7b6
AC
7391 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7392 pc_in_call_dummy.
7393 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7394 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7395
75536971
MK
73962004-05-08 Mark Kettenis <kettenis@gnu.org>
7397
527ca6bb
MK
7398 * alphanbsd-tdep.c: Include "gdb_string.h".
7399 * armnbsd-tdep.c: Update copyright year.
7400 Include "gdb_string.h".
7401 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7402 dependencies.
7403
d39fdc61
MK
7404 * delta68-nat.c: Remove file.
7405 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7406 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7407 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7408 (delta68-nat.o): Remove dependency.
7409
75536971
MK
7410 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7411 function.
7412 (m68k_gdbarch_init): Don't set
7413 deprecated_frameless_function_invocation.
7414
f4ca1d1f
RC
74152004-05-07 Randolph Chung <tausq@debian.org>
7416
7417 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7418 read_memory_nobpt for code reading when doing frame unwinding.
7419 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7420
2f0e8c7a
RC
74212004-05-07 Randolph Chung <tausq@debian.org>
7422
7423 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7424 instead of sp, handle sigaltstack case.
7425 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7426 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7427 signal handler and not that of the caller.
7428 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7429 hppa_linux_sigtramp_find_sigcontext.
7430
959464ff
RC
74312004-05-07 Randolph Chung <tausq@debian.org>
7432
7433 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7434 hppa-linux-nat.c.
7435 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7436 * hppa-linux-nat.c (fetch_register, store_register): Define.
7437 (fetch_inferior_registers, store_inferior_registers): Define.
7438 (supply_gregset): Add comment and clean up some unneeded code.
7439 (fill_gregset): Add comment and fix so that it saves registers in
7440 the right place in the gregset.
7441 (fill_fpregset): Fix buffer overrun problem.
7442 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7443
0da28f8a
RC
74442004-05-07 Randolph Chung <tausq@debian.org>
7445
7446 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7447 do common handling of the pcoqt register.
7448 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7449 to use helper function.
7450 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7451 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7452 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7453 generic fallback unwinder when all else fails.
7454 (hppa_gdbarch_init): Add fallback sniffer.
7455 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7456 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7457 to use helper function.
7458
b9ec757a
JB
74592004-05-08 Joel Brobecker <brobecker@gnat.com>
7460
7461 * config/djgpp/fnchange.lst: Add translation rules for
7462 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7463
756e95f1
MK
74642004-05-08 Mark Kettenis <kettenis@gnu.org>
7465
7466 * frame.c (get_prev_frame_1): Work around GCC bug.
7467 * frame.h: Add comment about GCC bug.
7468
2b4855ab
AC
74692004-05-07 Andrew Cagney <cagney@redhat.com>
7470
7471 * observer.c: Include "commands.h" and "gdbcmd.h".
7472 (observer_debug, _initialize_observer): Add the
7473 command "set/show debug observer".
7474 * observer.sh: When observer debugging, log notify calls.
7475 * Makefile.in (observer.o): Update dependencies.
7476
ba3e8e46
JM
74772004-05-07 Jason Molenda (jmolenda@apple.com)
7478
7479 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7480
16796152
JB
74812004-05-07 Jim Blandy <jimb@redhat.com>
7482
daf6dc85
JB
7483 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7484 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7485 to recognize gpr regnums, instead of assuming that
7486 tdep->ppc_fp0_regnum marks the end of the general-purpose
7487 registers.
7488
16796152
JB
7489 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7490 the given architecture has floating-point registers.
7491
c69b8bfc
AC
74922004-05-07 Andrew Cagney <cagney@redhat.com>
7493
7494 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7495 macro defined to 1.
7496 * gdbarch.h, gdbarch.c: Re-generate.
7497 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7498 deprecated_use_generic_dummy_frames.
7499
7243600a
BF
75002004-05-07 Brian Ford <ford@vss.fsi.com>
7501
7502 * NEWS: Mention Cygwin DWARF 2 support.
7503
73c1e0a1
AC
75042004-05-07 Andrew Cagney <cagney@redhat.com>
7505
7506 * objfiles.h (struct entry_info): Delete unused fields
7507 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7508 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7509 * mipsread.c (mipscoff_symfile_read): Update.
7510 * mdebugread.c (parse_partial_symbols): Update.
7511 * dwarfread.c (read_file_scope): Update.
7512 * dwarf2read.c (read_file_scope): Update.
7513 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7514 * coffread.c (complete_symtab): Update.
7515
1d3056ac
MK
75162004-05-07 Mark Kettenis <kettenis@gnu.org>
7517
7518 * infcall.c (_initialize_infcall): Fix typo.
7519
15170568
AC
75202004-05-07 Andrew Cagney <cagney@redhat.com>
7521
7522 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7523 * command.h (add_setshow_zinteger_cmd): Declare.
7524
34f75cc1
RC
75252004-05-06 Randolph Chung <tausq@debian.org>
7526
7527 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7528 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7529 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7530 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7531 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7532 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7533 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7534 definitions ...
7535 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7536 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7537 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7538 (hppa64_hpux_frame_find_saved_regs_in_sig)
7539 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7540 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7541 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7542 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7543 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7544 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7545 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7546 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7547 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7548 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7549 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7550 (hppa32_register_type, hppa_cannot_store_register)
7551 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7552 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7553 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7554 * pa64solib.c (pa64_solib_have_load_event)
7555 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7556 (pa64_solib_unloaded_library_pathname): Likewise.
7557 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7558 (som_solib_library_pathname): Likewise.
7559
0a5e7efe
JI
75602004-05-05 Jim Ingham <jingham@apple.com>
7561
7562 * breakpoint.c (create_breakpoints): Copy the ignore count and
7563 thread id over from the pended breakpoint to the actual
7564 breakpoint.
7565
10a4b113
AC
75662004-05-05 Andrew Cagney <cagney@redhat.com>
7567
7568 * gdbarch.sh (PARM_BOUNDARY): Delete.
7569 gdbarch.h, gdbarch.c: Re-generate.
7570 * valops.c (PARM_BOUNDARY): Delete macro.
7571 (value_push): Delete PARM_BOUNDARY code.
7572 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7573
366f009f
JB
75742004-05-04 Jim Blandy <jimb@redhat.com>
7575
32b99774
JB
7576 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7577 Don't assume that the gprs, fprs, and UISA sprs are
7578 contiguous, start at register number zero, and end with fpscr.
7579 Instead, use the numbers from the tdep structure.
7580
366f009f
JB
7581 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7582 should no longer be used in code specific to the RS6000 and its
7583 derivatives.
7584 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7585 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7586 tdep->ppc_fp0_regnum.
7587 (ppc_supply_fpregset, ppc_collect_fpregset)
7588 (rs6000_push_dummy_call, rs6000_extract_return_value)
7589 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7590 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7591 FP0_REGNUM.
7592 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7593 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7594 Same.
7595 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7596 bdm_ppc_store_registers): Same.
7597 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7598 (store_register, fill_fpregset): Same.
7599 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7600 (ppc_linux_supply_fpregset): Same.
7601 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7602 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7603 Same.
7604 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7605 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7606 ppc64_sysv_abi_return_value): Same.
7607 * rs6000-nat.c (regmap, fetch_inferior_registers)
7608 (store_inferior_registers, fetch_core_registers): Same.
7609
827f338d
MK
76102004-05-01 Mark Kettenis <kettenis@gnu.org>
7611
7612 * m68knbsd-nat.c: Remove file.
7613 * m68knbsd-tdep.c: Remove file.
7614 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7615 dependencies.
7616 * configure.host: Add m68k-*-netbsdelf*.
7617 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7618 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7619 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7620 (XM_FILE): Remove.
7621 * config/m68k/nbsdelf.mh: New file.
7622 * config/m68k/nbsd.mt: New file.
7623 * config/m68k/nbsdaout.mt: Remove file.
7624 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7625 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7626 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7627 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7628 (use_struct_convention): Remove prototype.
7629 (USE_STRUCT_CONVENTION): Remove define.
7630 * config/m68k/xm-nbsd.h: Remove file.
7631
66894781
MS
76322004-05-04 Michael Snyder <msnyder@redhat.com>
7633
7634 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7635 reg_struct_return method (as gcc usually does for cross targets).
7636
f0f63663
AC
76372004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7638
7639 Committed by Andrew Cagney.
7640 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7641 alignment padding when accessing ucontext struct members.
7642
edf61169
JB
76432004-05-04 Jim Blandy <jimb@redhat.com>
7644
8bf659e8
JB
7645 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7646 'ppc_gplast_regnum' member.
7647 (ppc_num_gprs): New enum constant.
7648 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7649 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7650 * rs6000-nat.c (regmap, fetch_inferior_registers,
7651 store_inferior_registers): Same.
7652 * rs6000-tdep.c (e500_pseudo_register_read)
7653 (e500_pseudo_register_write): Same.
7654 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7655
b967e06f
JB
7656 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7657 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7658 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7659 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7660 FPLAST_REGNUM.
7661 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7662 Same.
7663 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7664 * rs6000-nat.c (regmap, fetch_inferior_registers)
7665 (store_inferior_registers): Same.
7666
edf61169
JB
7667 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7668 with FPLAST_REGNUM.
7669
58a9656e
JB
76702004-05-03 Joel Brobecker <brobecker@gnat.com>
7671
7672 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7673 failure detected by recent versions of GCC.
7674 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7675 to be consistent with the usage in dwarf2_create_include_psymtab.
7676
dc305454
MS
76772004-05-03 Michael Snyder <msnyder@redhat.com>
7678
7679 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7680 (heuristic_proc_start): Whitespace cleanup.
7681
29972665
MK
76822004-05-04 Mark Kettenis <kettenis@gnu.org>
7683
6b57680d
MK
7684 * sun3-nat.c: Remove file.
7685 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7686 dependencies.
7687 (ALLDEPFILES): Remove sun3-nat.c.
7688 (sun3-nat.o): Remove dependencies.
7689
29972665
MK
7690 * i386-interix-nat.c, i386-interix-tdep.c,
7691 config/i386/nm-interix.h, config/i386/interix.mh,
7692 config/i386/interix.mt: Remove files.
7693 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7694 dependencies.
7695
f595cb19
MK
76962004-05-03 Mark Kettenis <kettenis@gnu.org>
7697
7698 * m68k-tdep.h (struct gdbarch_tdep): Add member
7699 struct_value_regnum.
7700 (m68k_svr4_init_abi): New prototype.
7701 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7702 different calling conventions.
7703 (m68k_extract_return_value): Remove code dealing with single-field
7704 structs.
7705 (m68k_store_return_value): Remove code dealing with single-field
7706 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7707 (m68k_extract_struct_value_address): Remove function.
7708 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7709 (m68k_reg_struct_return_p, m68k_return_value)
7710 (m68k_svr4_return_value): New functions.
7711 (m68k_use_struct_convention): Remove function.
7712 (m68k_push_dummy_call): Use new struct_value_regnum member of
7713 `struct gdbarch_tdep' instead of hardcoded register number to
7714 store STRUCT_ADDR.
7715 (m68k_svr4_init_abi): New function.
7716 (m68k_gdbarch_init): Don't set extract_return_value,
7717 store_return_values, deprecated_extract_struct_value_address and
7718 use_struct_convention. Set return_value instead. Initialize new
7719 struct_value_regnum member of `struct gdbarch_tdep'.
7720 * m68klinux-tdep.c: Update copyright year.
7721 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7722 (m68k_linux_extract_struct_value_address): Remove function.
7723 (m68k_linux_init_abi): Don't set extract_return_value,
7724 store_return_values, deprecated_extract_struct_value_address and
7725 use_struct_convention. Call m68k_svr4_init_abi but override the
7726 new struct_value_regnum member of `struct gdbarch_tdep'.
7727 * Makefile.in (m68k-tdep.o): Update dependencies.
7728
aaa75496
JB
77292004-05-03 J. Brobecker <brobecker@gnat.com>
7730
7731 * dwarf2read.c (line_header): Add new included_p field in
7732 field file_names.
7733 (partial_die_info): New field has_stmt_list. New field line_offset.
7734 (dwarf2_create_include_psymtab): New function.
7735 (dwarf2_build_include_psymtabs): New function.
7736 (add_file_name): Add forward declaration. Initialize new field.
7737 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7738 to be able to determine the list of files included by the
7739 given unit, and build their associated psymtabs.
7740 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7741 files as well.
7742 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7743 (read_file_scope): Update call to dwarf_decode_lines.
7744 (read_partial_die): Handle DW_AT_stmt_list attributes.
7745
c848556f
MC
77462004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7747
7748 Unfix PR gdb/1626.
7749 * configure.in: Revert special case for osf5.*.
7750 * configure: Regenerate.
7751
eb4556d7
JB
77522004-05-02 Jim Blandy <jimb@redhat.com>
7753
7754 Move the symbol-file-from-memory functions into their own file.
7755 * symfile-mem.c, symfile-mem.h: New files.
7756 * symfile.c (symbol_file_add_from_bfd): New function.
7757 (symbol_file_add): Call symbol_file_add_from_bfd.
7758 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7759 Moved to symfile-mem.c.
7760 (_initialize_symfile): Move definition of
7761 add-symbol-file-from-memory command to symfile-mem.c.
7762 * symfile.h (symbol_file_add_from_bfd): New declaration.
7763 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7764 * config/powerpc/linux.mt (TDEPFILES): Same.
7765 * Makefile.in (SFILES): Add symfile-mem.c.
7766 (symfile_mem_h): New variable.
7767 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7768 (symfile-mem.o): New rule.
7769
80bb239e
AC
77702004-05-01 Andrew Cagney <cagney@redhat.com>
7771
7789d0fa
AC
7772 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7773 frame_find_by_id instead of frame_relative_level.
7774 (do_enable_breakpoint): Ditto.
7775 * thread.c: Update copyright.
7776 (info_threads_command): Ditto, simplify.
7777
80bb239e
AC
7778 * frame.c (deprecated_generic_get_saved_register): Delete
7779 function, moved to "xstormy16-tdep.c".
7780 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7781 deprecated_generic_get_saved_register from "frame.c".
7782 (xstormy16_frame_saved_register): Call
7783 xstormy16_get_saved_register.
7784 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7785 static.
7786 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7787 * frame.h (deprecated_generic_get_saved_register): Delete.
7788
b2a871dd
MC
77892004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7790
7791 * dwarfread.c: Update documentation on the state of dwarf-1.
7792
0e100dab
AC
77932004-05-01 Andrew Cagney <cagney@redhat.com>
7794
acd8056e
AC
7795 * stack.c (select_frame_command): Delete call to
7796 frame_relative_level.
7797 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7798 Delete #if0 code.
7799 (frame_info): Do not print FRAMELESS.
7800 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7801 (catch_info): Delete #if0 code.
7802
0e100dab
AC
7803 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7804 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7805 of frame_relative_level.
7806 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7807 to SENTINEL_FRAME.
7808 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7809 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7810 frame_relative_level.
7811
55699d59
AC
7812 * frame.h (deprecated_set_frame_type): Delete declaration.
7813 * frame.c (deprecated_set_frame_type): Delete function, update
7814 comments.
7815
fcf70625
AC
7816 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7817 * gdbarch.h, gdbarch.c: Re-generate.
7818 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7819 (shnbsd_pc_in_sigtramp): Delete.
7820 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7821 pc_in_sigtramp.
7822 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7823 pc_in_sigtramp.
7824 * frame.h: Update comments.
7825 * ppc-linux-tdep.c: Update comments.
7826 * breakpoint.c (bpstat_what): Update comments.
7827
ac5eccb7
AC
7828 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7829 m68klinux-tdep.o's dependencies, were previously added to
7830 m68klinux-nat.o.
7831
f2524b93
AC
7832 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7833 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7834 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7835 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7836 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7837
17e20bce
AC
7838 * Makefile.in (m68klinux-nat.o): Update dependencies.
7839 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7840 (m68k_linux_sigtramp_frame_cache)
7841 (m68k_linux_sigtramp_frame_this_id)
7842 (m68k_linux_sigtramp_frame_prev_register)
7843 (m68k_linux_sigtramp_frame_unwind)
7844 (m68k_linux_sigtramp_frame_sniffer)
7845 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7846 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7847 names, use trad-frame.h.
7848 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7849 (struct m68k_sigtramp_info): Delete.
7850 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7851 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7852 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7853 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7854 "m68klinux-tdep.c".
7855
c8864fa2
AC
7856 * infrun.c (check_sigtramp2): Delete check for
7857 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7858
511dd2cd
MK
78592004-05-01 Mark Kettenis <kettenis@gnu.org>
7860
7861 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7862
8c6b0e06
AC
78632004-05-01 Andrew Cagney <cagney@redhat.com>
7864
9df0bb3f
AC
7865 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7866 (frv_linux_sigtramp_frame_cache)
7867 (frv_linux_sigtramp_frame_this_id)
7868 (frv_linux_sigtramp_frame_prev_register)
7869 (frv_linux_sigtramp_frame_unwind)
7870 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7871 include "linux" in function and variable names, directly call
7872 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7873 the latest trad-frame code.
7874 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7875 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7876 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7877 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7878 * frv-tdep.c (frv_sigtramp_frame_cache)
7879 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7880 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7881 frv-linux-tdep.c.
7882 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7883 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7884 (frv_set_sigcontext_reg_addr): Delete function.
7885
8c6b0e06
AC
7886 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7887 (DEPRECATED_SIGTRAMP_END): Delete.
7888 * gdbarch.h, gdbarch.c: Re-generate.
7889 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7890 * config/vax/tm-vaxbsd.h: Update copyright.
7891 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7892 (DEPRECATED_IN_SIGTRAMP): Define.
7893 * config/m68k/tm-nbsd.h: Update copyright.
7894 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7895 (DEPRECATED_IN_SIGTRAMP): Define.
7896
50ea7769
MK
78972004-05-01 Mark Kettenis <kettenis@gnu.org>
7898
03ac2a74
MK
7899 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7900 encondings. Fixes PR gdb/1628.
7901
50ea7769
MK
7902 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7903 DW_CFA_restore state without a matching DW_CFA_remember_state
7904 instead of aborting. Fixes PR backtrace/1589.
7905
9a5d7be1
JB
79062004-04-30 Joel Brobecker <brobecker@gnat.com>
7907
7908 * MAINTAINERS: Add self as AIX maintainer.
7909 Update my e-mail address in write-after-approval section.
7910
2593d1cd
AC
79112004-04-30 Andrew Cagney <cagney@redhat.com>
7912
ce12bbf9
AC
7913 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7914 (legacy_get_prev_frame): Ditto.
7915
36710c63
AC
7916 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7917 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7918 * mipsread.c (sigtramp_address): Delete extern variable.
7919 (mipscoff_new_init): Delete reference.
7920 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7921 (fixup_sigtramp): Delete function.
7922 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7923 (fixup_sigtramp): Delete declarations.
7924
2593d1cd
AC
7925 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7926 deprecated_pc_in_sigtramp.
7927 (ppcnbsd_pc_in_sigtramp): Delete function.
7928
2a25f91c
MK
79292004-05-01 Mark Kettenis <kettenis@gnu.org>
7930
7931 * config/m68k/nm-nbsd.h: Tweak comments.
7932 * config/m68k/nm-nbsdaout.h: Likewise.
7933
0b281939
AC
79342004-04-30 Andrew Cagney <cagney@redhat.com>
7935
7936 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7937 legacy_pc_in_sigtramp.
7938 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7939
8f2d3ea0
MK
79402004-05-01 Mark Kettenis <kettenis@gnu.org>
7941
7942 Add OpenBSD/m68k support.
7943 * NEWS (New native configurations): Mention OpenBSD/m68k.
7944 * m68kbsd-tdep.c: New file.
7945 * m68kbsd-nat.c: New file.
7946 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7947 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7948 * configure.host: Add m68k-*-openbsd.
7949 * configure.tgt: Add m68k-*-openbsd.
7950 * config/m68k/tm-obsd.h: New file.
7951 * config/m68k/obsd.mt: New file.
7952 * config/m68k/obsd.mh: New file.
7953 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7954 m68kbsd-tdep.c.
7955
c40f49a4
AC
79562004-04-30 Andrew Cagney <cagney@redhat.com>
7957
7958 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7959 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7960
e81554cd
MK
79612004-04-30 Mark Kettenis <kettenis@gnu.org>
7962
7963 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7964 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7965
d4dc1a91
BF
79662004-04-30 Brian Ford <ford@vss.fsi.com>
7967
7968 Revert 2004-04-16 change.
7969 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7970 (i386_coff_init_abi): Remove.
7971 * i386-tdep.h (i386_coff_init_abi): Remove.
7972 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7973
2f72f850
AC
79742004-04-30 Andrew Cagney <cagney@redhat.com>
7975
e492f9d6
AC
7976 * blockframe.c (find_pc_partial_function): Delete use of
7977 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7978 DEPRECATED_SIGTRAMP_END.
7979
7b7adad0
AC
7980 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7981 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7982 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7983 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7984 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7985
2f72f850
AC
7986 * defs.h (deprecated_inside_entry_file): Delete declaration.
7987 * blockframe.c (deprecated_inside_entry_file): Delete function.
7988 (legacy_frame_chain_valid): Delete call.
7989 * sh64-tdep.c (sh64_frame_chain): Delete call.
7990 * objfiles.h: Update comments.
7991 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7992 call.
7993 * frame.c (get_prev_frame): Delete call, update comments.
7994
283f90a7
BF
79952004-04-30 Brian Ford <ford@vss.fsi.com>
7996
7997 * MAINTAINERS (Write After Approval): Add myself.
7998
8ee56bcf
AC
79992004-04-30 Andrew Cagney <cagney@redhat.com>
8000
8001 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8002 * gdbarch.h, gdbarch.c: Re-generate.
8003 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8004 code.
8005
ee27e1b6
AC
80062004-04-30 Andrew Cagney <cagney@redhat.com>
8007
8008 * gdb-events.sh (selected_thread_changed)
8009 (selected_frame_level_changed, target_changed): Delete.
8010 * gdb-events.h, gdb-events.c: Re-generate.
8011 * valops.c (value_assign): Update.
8012 * stack.c (select_frame_command, up_silently_base)
8013 (down_silently_base): Update.
8014
d5ac5a39
AC
80152004-04-29 Andrew Cagney <cagney@redhat.com>
8016
8017 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8018 registers correctly.
8019 (print_gp_register_row, mips32_heuristic_proc_desc)
8020 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8021 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8022 references to mips_isa_regsize.
8023
ceae6e75
AC
80242004-04-29 Andrew Cagney <cagney@redhat.com>
8025
8026 * mips-tdep.c (struct gdbarch_tdep): Delete
8027 mips_fp_register_double.
8028 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8029 mips_abi_regsize.
8030 (mips_gdbarch_init): Do not set mips_fp_register_double.
8031 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8032
a587af0b
AC
80332004-04-29 Joel Brobecker <brobecker@gnat.com>
8034
8035 Committed by Andrew Cagney.
8036 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8037 function calls.
8038
13326b4e
AC
80392004-04-29 Andrew Cagney <cagney@redhat.com>
8040
8041 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8042 gdbarch, use mips_abi, update callers.
8043 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8044 mips_abi_regsize, update callers.
8045 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8046 mips_default_abi_regsize.
8047 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8048 mips_default_abi_regsize.
8049
711cc5cd
AC
80502004-04-29 Andrew Cagney <cagney@redhat.com>
8051
1b13c4f6
AC
8052 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8053 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8054 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8055 mips_default_abi_regsize.
8056 (mips_isa_regsize): Rename mips_regisze.
8057 * mipsnbsd-tdep.c: Update.
8058 * mips-linux-tdep.c: Update.
8059 * irix5-nat.c: Update.
8060 * mips-tdep.h (mips_isa_regsize): Update.
8061
711cc5cd
AC
8062 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8063 Delete all disabled code.
8064 * gdb-events.h, gdb-events.c: Re-generate.
8065
e63bbc88
MK
80662004-04-19 Jerome Guitton <guitton@gnat.com>
8067 Mark Kettenis <kettenis@gnu.org>
8068
8069 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8070 the function begins with a branch instruction.
8071
fd35795f
MK
80722004-04-29 Mark Kettenis <kettenis@gnu.org>
8073
8074 * i386-tdep.c: Fix spelling mistakes.
8075
c960c18f
AC
80762004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8077 Andrew Cagney <cagney@redhat.com>
8078
8079 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8080 <sys/proc.h>.
8081 * acconfig.h: Provide default _KMEMUSER value.
8082 * config.in, configure: Re-generate.
8083 * NEWS: Mention fix.
8084
50306a9d
RC
80852004-04-24 Randolph Chung <tausq@debian.org>
8086
8087 * configure.host (hppa*-*-linux*): New target.
8088 * configure.tgt (hppa*-*-linux*): Likewise.
8089 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8090 gdbarch_init_osabi() call earlier so that osabi-specific frame
8091 unwinders can be registered first.
8092 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8093 hppa-linux-nat.c.
8094 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8095 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8096 * config/pa/linux.mh: New file.
8097 * config/pa/linux.mt: New file.
8098 * config/pa/nm-linux.h: New file.
8099 * config/pa/xm-linux.h: New file.
8100 * hppa-linux-nat.c: New file.
8101 * hppa-linux-tdep.c: New file.
8102
2a6228ef
RC
81032004-04-28 Randolph Chung <tausq@debian.org>
8104
8105 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8106 return values.
8107 (hppa32_push_dummy_call): Fix small struct and floating point argument
8108 passing, and make sure the stack frame is properly aligned.
8109
82c10df6
AC
81102004-04-28 Andrew Cagney <cagney@redhat.com>
8111
d762c46a
AC
8112 * stack.c (print_stack_frame): Fix description.
8113
82c10df6
AC
8114 * NEWS: Mention gdb/gdbserver/configure execute permission
8115 changed. PR server/519.
8116
0faf0076
AC
81172004-04-28 Andrew Cagney <cagney@redhat.com>
8118
8119 * stack.c (print_stack_frame_stub): Delete declaration.
8120 (struct print_stack_frame_args, print_stack_frame)
8121 (print_frame_info, print_frame): Replace "source" with print what.
8122 Replace "print" with "print_level". Replace "args" with
8123 "print_args".
8124 * frame.h (show_and_print_stack_frame, print_stack_frame)
8125 (print_frame_info): Update declarations.
8126 * stack.c (select_and_print_frame, frame_command)
8127 (current_frame_command, up_command, down_command): Update calls -
8128 use get_selected_frame, pass "enum print_what" for source, do not
8129 call frame_relative_level.
8130 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8131 * remote-rdp.c (remote_rdp_open): Ditto.
8132 * remote-mips.c (common_open): Ditto.
8133 * remote-e7000.c (e7000_start_remote): Ditto.
8134 * ocd.c (ocd_start_remote): Ditto.
8135 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8136 * infrun.c (normal_stop): Ditto.
8137 * inflow.c (kill_command): Ditto.
8138 * infcmd.c (finish_command): Ditto.
8139 * corelow.c (core_open): Ditto.
8140 * tracepoint.c (finish_tfind_command): Ditto.
8141 * thread.c (info_threads_command, info_threads_command)
8142 (restore_current_thread, do_captured_thread_select): Ditto.
8143 * ada-tasks.c (task_command): Ditto.
8144
f4c5303c
OF
81452004-04-26 Orjan Friberg <orjanf@axis.com>
8146
8147 * frame.c: Include "observer.h".
8148 (frame_observer_target_changed): New function.
8149 (_initialize_frame): Attach target_changed observer.
8150 * regcache.c: Include "observer.h".
8151 (regcache_observer_target_changed): New function.
8152 (_initialize_regcache): Attach target_changed observer.
8153 * valops.c: Include "observer.h".
8154 (value_assign): Notify target_changed event when modifying register.
8155 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8156
7270d8f2
OF
81572004-04-26 Orjan Friberg <orjanf@axis.com>
8158
8159 From Paul Koning <pkoning@equallogic.com>:
8160 * breakpoint.c (free_valchain): New function.
8161 (insert_bp_location, delete_breakpoint): Use free_valchain.
8162 (remove_breakpoint): Do not remove the valchain.
8163 (bpstat_stop_status): If not stopped by watchpoint, skip
8164 watchpoints when generating stop status list.
8165 * infrun.c (handle_inferior_event): Make
8166 stepped_after_stopped_by_watchpoint a global variable.
8167 * remote.c (remote_stopped_data_address): Return watch data
8168 address rather than zero if stepped_after_stopped_by_watchpoint is
8169 set.
8170
02d62932
MC
81712004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8172
8173 Fix PR gdb/1626.
8174 * configure.in: Check for curses after termcap.
8175 On osf5.*, do not check for ncurses.
8176 * configure: Regenerate.
8177
3e9a183c
MK
81782004-04-25 Mark Kettenis <kettenis@gnu.org>
8179
c79ac407
MK
8180 * ppcobsd-nat.c: Include "ppc-tdep.h".
8181 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8182
3e9a183c
MK
8183 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8184 Fixes PR tdep/1623 and PR tdep/1624.
8185
38cc9c28
MC
81862004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8187
8188 * xmodem.h, xmodem.c: Remove files.
8189 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8190
7f07c5b6
RC
81912004-04-23 Randolph Chung <tausq@debian.org>
8192
8193 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8194 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8195 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8196 for handling stackless frames.
8197 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8198
9f7194c3
RC
81992004-04-23 Randolph Chung <tausq@debian.org>
8200
8201 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8202 starts at a pc before the frame is created.
8203
dcff6009
JB
82042004-04-23 Joel Brobecker <brobecker@gnat.com>
8205
8206 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8207
40711ff1 82082004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8209
8210 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8211 use convert_typed_floating to get the appropriate format.
8212
abc485a1
RC
82132004-04-22 Randolph Chung <tausq@debian.org>
8214
8215 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8216 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8217 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8218 (hppa_sign_extend): Add prototype.
8219 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8220 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8221 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8222 hppa targets will also use these functions.
8223 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8224 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8225 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8226 (hppa_gdbarch_init): Remove gdbarch setting of
8227 skip_trampoline_code, in_solib_call_trampoline and
8228 in_solib_return_trampoline.
8229 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8230 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8231 hppa_in_solib_call_trampoline.
8232 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8233 Moved from hppa-tdep.c.
8234 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8235 in_solib_call_trampoline and in_solib_return_trampoline.
8236
369aa520
RC
82372004-04-22 Randolph Chung <tausq@debian.org>
8238
8239 * hppa-tdep.c (hppa_debug): New variable.
8240 (find_unwind_entry, hppa_frame_cache): Add debug output.
8241 (_initialize_hppa_tdep): Add command to set debug flag.
8242
476be15e
AC
82432004-04-22 Andrew Cagney <cagney@redhat.com>
8244
8245 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8246 "trad-frame.h".
8247 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8248 signal trampoline unwinder.
8249 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8250
d195bc9f
MK
82512004-04-22 Mark Kettenis <kettenis@gnu.org>
8252
8253 Add OpenBSD/powerpc support.
8254 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8255 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8256 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8257 (ppc_collect_fpregset): New prototypes.
8258 * ppcobsd-nat.c: New file.
8259 * ppcobsd-tdep.c: New file.
8260 * ppcobsd-tdep.h: New file.
8261 * rs6000-tdep.c: Include "regset.h".
8262 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8263 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8264 New functions.
8265 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8266 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8267 (rs6000-tdep.o): Update dependencies.
8268 * configure.host: Add powerpc-*-openbsd.
8269 * configure.tgt: Add powerpc-*-openbsd.
8270 * config/powerpc/obsd.mh: New file.
8271 * config/powerpc/nm-obsd.h: New file.
8272 * config/powerpc/obsd.mt: New file.
8273
6f14cc33
AC
82742004-04-22 Andrew Cagney <cagney@redhat.com>
8275
fcf29e5f
AC
8276 * frame.h (show_frame_info): Delete declaration.
8277
6f14cc33
AC
8278 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8279 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8280 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8281 * frv-tdep.c (frv_frame_this_id): Ditto.
8282 * avr-tdep.c (avr_frame_this_id): Ditto.
8283
e5786a5c
EZ
82842004-04-22 Elena Zannoni <ezannoni@redhat.com>
8285
8286 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8287
26e75e5c
JB
82882004-04-22 Jim Blandy <jimb@redhat.com>
8289
8290 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8291 register number zero.
8292
d8d65dd3
MS
82932004-04-21 Michael Snyder <msnyder@redhat.com>
8294
8295 * mips-tdep.c (heuristic_proc_start):
8296 Warning() already prefixes "Warning: ".
8297
9a4105ab
AC
82982004-04-21 Andrew Cagney <cagney@redhat.com>
8299
8300 * annotate.h (deprecated_annotate_starting_hook)
8301 (deprecated_annotate_stopped_hook)
8302 (deprecated_annotate_exited_hook)
8303 (deprecated_annotate_signal_hook)
8304 (deprecated_annotate_signalled_hook): Deprecate.
8305 * tracepoint.h (deprecated_create_tracepoint_hook)
8306 (deprecated_delete_tracepoint_hook)
8307 (deprecated_modify_tracepoint_hook)
8308 (deprecated_trace_find_hook)
8309 (deprecated_trace_start_stop_hook): Deprecate.
8310 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8311 * remote.h (deprecated_target_resume_hook)
8312 (deprecated_target_wait_loop_hook): Deprecate.
8313 * gdbcore.h (deprecated_exec_file_display_hook)
8314 (deprecated_file_changed_hook): Deprecate.
8315 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8316 * defs.h (deprecated_modify_breakpoint_hook)
8317 (deprecated_command_loop_hook, deprecated_show_load_progress)
8318 (deprecated_print_frame_info_listing_hook)
8319 (deprecated_query_hook, deprecated_warning_hook)
8320 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8321 (deprecated_delete_breakpoint_hook)
8322 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8323 (deprecated_readline_begin_hook, deprecated_readline_hook)
8324 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8325 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8326 (deprecated_context_hook, deprecated_target_wait_hook)
8327 (deprecated_attach_hook, deprecated_detach_hook)
8328 (deprecated_call_command_hook, deprecated_set_hook)
8329 (deprecated_error_hook, deprecated_error_begin_hook)
8330 (deprecated_ui_load_progress_hook): Deprecate.
8331 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8332 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8333 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8334 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8335 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8336 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8337 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8338 * annotate.c, aix-thread.c: Update.
8339
62cf13cc
AC
83402004-04-21 Andrew Cagney <cagney@redhat.com>
8341
b2e31a62
AC
8342 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8343 * vaxnbsd-tdep.c: Include "gdb_string.h".
8344
62cf13cc
AC
8345 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8346 (add_symbol_file_from_memory_command): #if 0 function body, call
8347 error instead.
8348
00e32a35
AC
83492004-04-21 Andrew Cagney <cagney@redhat.com>
8350
8351 * gdbcore.h: Update copyright.
8352 (deprecated_add_core_fns): Rename add_core_fns.
8353 * win32-nat.c (_initialize_core_win32): Update.
8354 * sun3-nat.c (_initialize_core_sun3): Update.
8355 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8356 * rs6000-nat.c (_initialize_core_rs6000): Update.
8357 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8358 * nto-tdep.c (_initialize_nto_tdep): Update.
8359 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8360 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8361 * mips-nat.c (_initialize_core_mips): Update.
8362 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8363 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8364 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8365 * lynx-nat.c (_initialize_core_lynx): Update.
8366 * irix5-nat.c (_initialize_core_irix5): Update.
8367 * i386-interix-nat.c (_initialize_core_interix): Update.
8368 * cris-tdep.c (_initialize_cris_tdep): Update.
8369 * corelow.c (deprecated_add_core_fns): Update.
8370 * core-regset.c (_initialize_core_regset): Update.
8371 * core-aout.c (_initialize_core_aout): Update.
8372 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8373 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8374 * alpha-nat.c (_initialize_core_alpha): Update.
8375
13c7b1ca
JB
83762004-04-21 Jim Blandy <jimb@redhat.com>
8377
8378 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8379
7b5a2f43
DJ
83802004-04-19 Daniel Jacobowitz <drow@mvista.com>
8381
8382 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8383 Delete.
8384 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8385 (read_attribute_value): Update calls to dwarf_alloc_block.
8386 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8387 dwarf2_tmp_obstack.
8388 (psymtab_to_symtab_1): Likewise. Clean up using
8389 free_stack_comp_unit.
8390 (add_to_cu_func_list): Use the comp_unit_obstack.
8391
05cf31d1
JB
83922004-04-19 Joel Brobecker <brobecker@gnat.com>
8393
8394 * dwarf2read.c (dwarf2_flag_true_p): New function.
8395 (die_is_declaration): Use the function above. Add some comments.
8396
adf93a2f
MK
83972004-04-19 Mark Kettenis <kettenis@gnu.org>
8398
8399 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8400 architecture when registering sparcnbsd_core_osabi_sniffer.
8401 Adjust comment.
8402
748894bf
MK
84032004-04-18 Mark Kettenis <kettenis@gnu.org>
8404
f622ad42
MK
8405 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8406 return value.
8407
c4fc7f1b
MK
8408 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8409 * i386-tdep.c: Correct register numbering scheme comments
8410 throughout.
8411 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8412 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8413 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8414 (i386_gdb_arch_init): Likewise.
8415
b4ead1bd
MK
8416 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8417 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8418 ppcnbsd-tdep.o.
8419
748894bf
MK
8420 * m68k-tdep.h: Tweak comments.
8421 * m68k-tdep.c: Tweak comment.
8422
fdd72f95
RC
84232004-04-17 Randolph Chung <tausq@debian.org>
8424
8425 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8426 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8427 (hppa_hpux_som_init_abi): Set is_elf to 0.
8428 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8429 * hppa-tdep.c (low_text_segment_address): Remove global.
8430 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8431 section offset to calculate segment address.
8432 (internalize_unwinds): Define low_text_segment_address as local and
8433 pass to record_text_segment_lowaddr for ELF targets.
8434 (hppa_gdbarch_init): Zero fill tdep structure.
8435 (hppa_dump_tdep): Print tdep structure.
8436 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8437
0f8d9d59
RC
84382004-04-17 Randolph Chung <tausq@debian.org>
8439
8440 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8441 (hppa_gdbarch_init): Set pseudo_register_read.
8442 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8443 * regcache.c (supply_register): Remove check for
8444 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8445
7c46b9fb
RC
84462004-04-17 Randolph Chung <tausq@debian.org>
8447
8448 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8449 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8450 (hpread_adjust_stack_address): Move to hpread.c.
8451 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8452 obj_private_struct): Move from tm-hppa.h.
8453 * hpread.c (hppa-tdep.h): Include.
8454 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8455 (hpread_read_function_type, hpread_read_doc_function_type)
8456 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8457 directly.
8458 * pa64solib.c (hppa-tdep.h): Include.
8459 * somsolib.c (hppa-tdep.h): Include.
8460 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8461 inferior_status): Remove unused forward declarations.
8462 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8463 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8464 obj_private_struct): Move to hppa-tdep.h.
8465 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8466
8d153463
RC
84672004-04-17 Randolph Chung <tausq@debian.org>
8468
8469 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8470 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8471 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8472 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8473 Remove forward declaration and make static.
8474 (hppa_reg_struct_has_addr): Remove.
8475
350c2e5b
JB
84762004-04-16 Joel Brobecker <brobecker@gnat.com>
8477
8478 * observer.sh: Move comments in sed command to first column.
8479
bbde78fa
JM
84802004-04-16 Jason Molenda (jmolenda@apple.com)
8481
8482 * frame.c: Minor typeo corrections in comments.
8483
e0270fd9
JB
84842004-04-16 Joel Brobecker <brobecker@gnat.com>
8485
8486 * observer.c (observer_test_first_notification_function): Update
8487 function profile.
8488 (observer_test_second_notification_function): Likewise.
8489 (observer_test_third_notification_function): Likewise.
8490
3d049254
MK
84912004-04-16 Mark Kettenis <kettenis@gnu.org>
8492
8493 From Brian Ford <ford@vss.fsi.com>:
8494 * i386-tdep.c (i386_coff_init_abi): New function.
8495 * i386-tdep.h (i386_coff_init_abi): New prototype.
8496 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8497 register number translation functions for DWARF and DWARF 2.
8498
7867684d
JB
84992004-04-16 Joel Brobecker <brobecker@gnat.com>
8500
8501 * dwarf2read.c: Back out my previous change, it was incorrect.
8502
72bf9492
DJ
85032004-04-16 Daniel Jacobowitz <drow@mvista.com>
8504
8505 * dwarf2read.c: Include "hashtab.h".
8506 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8507 has_namespace_info.
8508 (struct partial_die_info): Add comments. Use bitfields to reduce
8509 memory footprint. Add scope, scope_set, has_specification,
8510 spec_offset, die_parent, die_child, and die_sibling.
8511 (peek_die_abbrev): Add prototype.
8512 (partial_read_comp_unit_head): New function, broken out from
8513 dwarf2_build_psymtabs_hard.
8514 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8515 Use partial_read_comp_unit_head. Initialize the CU and
8516 comp_unit_obstack. Update calls to read_partial_die and
8517 scan_partial_symbols. Use free_stack_comp_unit and
8518 load_partial_dies.
8519 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8520 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8521 Update calls to helper functions. Remove NAMESPACE argument.
8522 Update comments.
8523 (partial_die_parent_scope, partial_die_full_name): New functions.
8524 (add_partial_symbol): Remove namespace argument. Update call to
8525 pdi_needs_namespace. Use partial_die_full_name. Handle
8526 DW_TAG_namespace. Check has_namespace_info flag.
8527 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8528 tag. Handle namespaces.
8529 (add_partial_namespace, add_partial_enumeration): Simplify.
8530 (guess_structure_name): New function, derived from
8531 add_partial_structure.
8532 (add_partial_structure): Remove.
8533 (determine_class_name): Update comment.
8534 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8535 (is_type_tag_for_partial, load_partial_dies): New functions.
8536 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8537 Record specifications instead of following them immediately.
8538 (find_partial_die_in_comp_unit, find_partial_die)
8539 (fixup_partial_die, free_stack_comp_unit)
8540 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8541 (partial_die_hash, partial_die_eq): New functions.
8542 * Makefile.in (hashtab_h): Define.
8543 (dwarf2read.o): Update dependencies.
8544 (observer_inc, observer_h): Move to the correct section.
8545
fdc860a3
JB
85462004-04-15 Joel Brobecker <brobecker@gnat.com>
8547
8548 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8549 (die_is_declaration): Use the function above. Add comment.
8550
dc718098
JB
85512004-04-15 Joel Brobecker <brobecker@gnat.com>
8552
8553 * dwarf2read.c (read_structure_scope): Identify stub types
8554 using die_is_declaration() only.
8555
8718a420
RM
85562004-04-15 Roland McGrath <roland@redhat.com>
8557
8558 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8559 argument instead of NAME.
8560 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8561 in call to symbol_file_add_with_addrs_or_offsets.
8562 (build_addr_info): New function, helper for ...
8563 (symbol_file_add_from_memory): New function.
8564 (add_symbol_file_from_memory_command): New function using that.
8565 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8566 (pre_add_symbol_hook): Add const to argument type.
8567 * symfile.h (symbol_file_add_from_memory): Declare it.
8568
8b910bab
MK
85692004-04-15 Mark Kettenis <kettenis@gnu.org>
8570
9f076e7a
MK
8571 * NEWS (New native configurations): Mention OpenBSD/vax.
8572 * configure.host: Add vax-*-openbsd*.
8573 * config/vax/obsd.mh: New file.
8574 * config/vax/nm-obsd.h: New file.
8575
8b910bab
MK
8576 * vax-tdep.c: Include "regset.h".
8577 (vax_supply_gregset): New function.
8578 (vax_gregset): New variable.
8579 (vax_regset_from_core_section): New function.
8580 (vax_gdbarch_init): Set regset_from_core_section.
8581 * Makefile.in (vax-tdep.o): Update dependencies.
8582
7a464420
AC
85832004-04-15 Andrew Cagney <cagney@redhat.com>
8584
8585 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8586 (observer_normal_stop_notification_stub)
8587 (observer_attach_normal_stop, observer_detach_normal_stop):
8588 Delete, replaced by #include "observer.inc".
8589 * infrun.c (normal_stop): Pass "stop_bpstat" to
8590 observer_notify_normal_stop.
8591 * Makefile.in (observer_inc): Define.
8592 (observer.o): Update dependencies.
8593 (observer.h, observer.inc): New rules.
8594 * observer.h: Delete file.
8595 * observer.sh: New file.
8596
e36ad527
MK
85972004-04-15 Mark Kettenis <kettenis@gnu.org>
8598
8599 * vax-tdep.c (vax_frame_cache): Fix typo.
8600
67b441e1
MK
86012004-04-14 Mark Kettenis <kettenis@gnu.org>
8602
6f606e1c
MK
8603 * NEWS (New native configurations): Mention NetBSD/vax.
8604 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8605 * config/vax/nbsdelf.mh: New file.
8606 * config/vax/nbsdaout.mh: New file.
8607 * config/vax/nm-nbsd.h: New file.
8608 * config/vax/nm-nbsdaout.h: New file.
8609
9c5519a5
MK
8610 * vaxnbsd-tdep.c: New file.
8611 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8612 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8613 * config/vax/nbsd.mt: New file.
8614 * config/vax/tm-nbsd.h: New file.
8615
4844a614
MK
8616 * Makefile.in (vaxbsd-nat.o): New dependency.
8617
67b441e1
MK
8618 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8619 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8620 struct_addr arguments. Don't push return value address.
8621 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8622 arguments to vax_store_arguments. Store return value address in
8623 R1.
8624 (vax_store_struct_return, vax_extract_return_value)
8625 (vax_store_return_value): Remove functions.
8626 (vax_return_value): New function.
8627 (vax_gdbarch_init): Set return value. Don't set
8628 deprecated_store_struct_return, deprecated_extract_struct_return
8629 and deprecated_store_return_value.
8630
6672f2ae
AS
86312004-04-14 Andreas Schwab <schwab@suse.de>
8632
8633 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8634 value buffer.
8635 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8636
7346c184
MK
86372004-04-14 Mark Kettenis <kettenis@gnu.org>
8638
8639 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8640 (vax_unwind_dummy_id): New functions.
8641 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8642 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8643 variables.
8644 (vax_fix_call_dummy): Remove function.
8645 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8646 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8647 call_dummy_location, deprecated_call_dummy_words,
8648 deprecated_sizeof_call_dummy_words,
8649 deprecated_call_dummy_breakpoint_offset,
8650 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8651 and deprecated_dummy_write_sp.
8652
58e23df4
DC
86532004-04-13 David Carlton <carlton@kealia.com>
8654
8655 * MAINTAINERS: Move myself to "paper trail" section.
8656
5e6b39ff
MK
86572004-04-12 Mark Kettenis <kettenis@gnu.org>
8658
7def7fef
MK
8659 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8660 "trad-frame.h".
8661 (vax_frame_init_saved_regs): Remove function.
8662 (vax_sigtramp_saved_pc): Remove function.
8663 (vax_frame_saved_pc): Remove function.
8664 (vax_frame_args_address): Remove function.
8665 (vax_frame_num_args): Rewrite.
8666 (vax_frame_chain): Remove function.
8667 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8668 VAX_FP_REGNUM.
8669 (vax_pop_frame): Likewise.
8670 (vax_saved_pc_after_call): Remove function.
8671 (struct vax_frame_cache): New structure.
8672 (vax_frame_cache): New function.
8673 (vax_frame_this_id): New function.
8674 (vax_frame_prev_register): New function.
8675 (vax_frame_unwind): New variable.
8676 (vax_frame_sniffer): New function.
8677 (vax_frame_base_address): New function.
8678 (vax_frame_args_address): New function.
8679 (vax_frame_base): New variable.
8680 (vax_unwind_pc): New function.
8681 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8682 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8683 deprecated_frame_chain, deprecated_frame_saved_pc,
8684 deprecated_frame_args_address and
8685 deprecated_frame_init_saved_regs.
8686 * Makefile.in (vax-tdep.o): Update dependencies.
8687
53284fc1
MK
8688 * vaxbsd-nat.c: New file.
8689
5e6b39ff
MK
8690 * vax-tdep.h: Update copyright year. Adjust comments.
8691 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8692 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8693 (vax_regnum): New enum. Replacing...
8694 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8695 (VAX_PS_REGNUM): ... these removed macros.
8696 * vax-tdep.c (vax_register_name): Remove prototype.
8697 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8698 (vax_register_byte, vax_register_raw_size,
8699 vax_register_virtual_size, vax_register_virtual_type): Remove
8700 functions.
8701 (vax_register_type): New function.
8702 (vax_breakpoint_from_pc): Reorganize.
8703 (vax_gdbarch_init): Set register_type. Don't set
8704 deprecated_register_size, deprecated_register_bytes,
8705 deprecated_register_byte, deprecated_register_raw_size,
8706 deprecated_max_register_raw_size,
8707 deprecated_register_virtual_size,
8708 deprecated_max_register_virtual_size and
8709 deprecated_register_virtual_type. Add comment on stack direction.
8710
e9c71e9f
MK
87112004-04-11 Mark Kettenis <kettenis@gnu.org>
8712
8713 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8714 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8715 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8716
d46f1176 87172004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8718
d46f1176
RC
8719 * MAINTAINERS (write after approval): Add myself.
8720
a2a84a72
RC
87212004-04-07 Randolph Chung <tausq@debian.org>
8722
8723 * hppa-tdep.c (hppa_inner_than): Remove.
8724 (is_pa_2): Remove unused static variable.
8718a420 8725 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8726
e85c3284
PH
87272004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8728
8729 * language.h (language_defn): Add new la_post_parser field.
8730 * parser-defs.h (null_post_parser): New declaration (default for
8731 la_post_parser).
8718a420 8732
e85c3284
PH
8733 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8734 insert call to that function.
8735 (parse_exp_in_context): New function, including code formerly in
8718a420 8736 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8737 prefixification.
8738 (parse_expression_in_context): New exported function.
8739 (null_post_parser): New definition.
8740 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8741
e85c3284
PH
8742 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8743 * c-lang.c (c_language_defn): Ditto.
8744 (cplus_language_defn): Ditto.
8745 (asm_language_defn): Ditto.
8746 (minimal_language_defn): Ditto.
8747 * f-lang.c (f_language_defn): Ditto.
8748 * jv-lang.c (java_language_defn): Ditto.
8749 * language.c (unknown_language_defn): Ditto.
8750 (auto_language_defn): Ditto.
8751 (local_language_defn): Ditto.
8752 * m2-lang.c (m2_language_defn): Ditto.
8753 * scm-lang.c (scm_language_defn): Ditto.
8754 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8755
d9f8c85b
MK
87562004-04-10 Mark Kettenis <kettenis@gnu.org>
8757
fa34704a
MK
8758 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8759 (amd64nbsd_mcontext_addr): New function.
8760 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8761 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8762 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8763
403e1656
MK
8764 * corelow.c (core_xfer_partial): Fix coding standards violation.
8765 Add support for TARGET_OBJECT_WCOOKIE.
8766
a57e5a95
MK
8767 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8768 deprecated_pc_in_sigtramp.
8769 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8770 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8771 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8772 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8773 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8774 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8775 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8776
377d9ebd
MK
8777 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8778 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8779 Fix typo.
8780
f0ef85a5
MK
8781 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8782 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8783 (amd64_collect_fxsave): Likewise.
8784
d9f8c85b
MK
8785 * i386-sol2-tdep.c: Include "gdb_string.h".
8786 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8787 name.
8788 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8789
75f501b5
MK
87902004-04-10 Mark Kettenis <kettenis@gnu.org>
8791
8792 * i386-sol2-tdep.c: Include "solib-svr4.h".
8793 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8794 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8795 * config/i386/tm-i386sol2.h: Include :solib.h".
8796 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8797 solib-svr4.o and solib-legacy.o.
8798 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8799 solib-svr4.o.
8800
b31bc724
MK
88012004-04-09 Mark Kettenis <kettenis@gnu.org>
8802
18bbbd9e
MK
8803 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8804 whether a register is supplied by PTRACE_GETFPREGS.
8805 (store_inferior_registers): Likewise.
8806 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8807 whether a register is supplied by PT_GETFPREGS.
8808 (store_inferior_registers): Likewise.
8809
3c30bf1b
MK
8810 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8811 * config/i386/linux64.mt (TDEPFILES): Likewise.
8812
a4194092
MK
8813 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8814
911bc6ee
MK
8815 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8816 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8817 the program counter is in the range specified by `struct
8818 gdbarch_tdep'.
8819 * amd64-linux-tdep.c: Include "symtab.h".
8820 (amd64_linux_pc_in_sigtramp): Remove function.
8821 (amd64_linux_sigtramp_p): New function.
8822 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8823 deprecated_pc_in_sigtramp.
8824 * amd64nbsd-tdep.c: Include "symtab.h".
8825 (amd64nbsd_sigtramp_p): New function.
8826 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8827 deprecated_pc_in_sigtramp.
8828 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8829 few comments.
8830 (amd64obsd_pc_in_sigtramp): Remove function.
8831 (amd64obsd_sigtramp_p): New function.
8832 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8833 deprecated_pc_in_sigtramp.
8834 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8835 (i386bsd_pc_ins_sigtramp): Remove prototype.
8836 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8837 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8838 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8839 the program counter is in the range specified by `struct
8840 gdbarch_tdep'.
8841 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8842 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8843 (i386_go32_pc_in_sigtramp): Remove function.
8844 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8845 Initialize TDEP->sigtramp_p.
8846 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8847 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8848 deprecated_pc_in_sigtramp.
8849 * i386-linux-tdep.c: Adjust comments.
8850 (i386_linux_pc_in_sigtramp): Remove function.
8851 (i386_linux_sigtramp_p): New function.
8852 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8853 deprecated_pc_in_sigtramp.
8854 * i386-nto-tdep.c: Update copyright year.
8855 (i386nto_pc_in_sigtramp): Remove function.
8856 (i386nto_sigtramp_p): New function.
8857 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8858 SP_REGNUM.
8859 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8860 deprecated_pc_in_sigtramp.
8861 * i386-sol2-tdep.c: Update copyright year.
8862 (i386_sol2_pc_in_sigtramp): Remove function.
8863 (i386_sol2_sigtramp_p): New function.
8864 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8865 deprecated_pc_in_sigtramp.
8866 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8867 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8868 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8869 deprecated_sigtramp_start and deprecated_sigtramp_end.
8870 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8871 (i386nbsd_pc_in_sigtramp): Remove function.
8872 (i386nbsd_sigtramp_p): New function.
8873 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8874 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8875 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8876 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8877 (i386obsd_pc_in_sigtramp): Remove function.
8878 (i386obsd_sigtramp_p): New function.
8879 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8880 functions.
8881 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8882 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8883 TDEP->sigtramp_p.
8884 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8885 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8886 dependencies.
8887
e083e6ec
MK
8888 * config/i386/i386aout.mt: Remove file.
8889
bd153b94
MK
8890 * configure.tgt: Remove i[34567]86-*-go32*,
8891 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8892 and i[34567]86-*-isc*. Set gdb_target to i386 for
8893 i[34567]86-*-netware* and i[34567]86-*-*.
8894 * config/i386/i386.mt: New file.
8895 * config/i386/embed.mt: Remove file.
8896 * config/i386/go32.mt: Remove file.
8897 * config/i386/i386nw.mt: Remove file.
8898 * config/i386/i386v.mt: Remove file.
8899 * config/i386/tm-go32.h: Remove file.
8900
4a1bcc8c
MK
8901 * tui/tui-hooks.c: Include "readline/readline.h" after
8902 "gdb_curses.h" instead of before.
8903 * tui/tui-io.c: Likewise.
8904
f9a79064
MK
8905 * tui/tui.c: Fix typo in comment.
8906
b31bc724
MK
8907 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8908
f83f82bc
AC
89092004-04-08 Andrew Cagney <cagney@redhat.com>
8910
8911 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8912 (deprecated_exception_support_initialized): Declare.
8718a420 8913 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
8914 (initialize_hp_cxx_exception_support)
8915 (child_enable_exception_callback): Update.
8916 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8917 (deprecated_exception_support_initialized): Rename
8918 deprecated_exception_catchpoints_are_fragile and
8919 deprecated_exception_support_initialized.
8920 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8921
8922 * symtab.c (deprecated_hp_som_som_object_present): Rename
8923 hp_som_som_object_present.
8924 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8925 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8926 Update. Delete extern declaration.
8927 * valops.c (hp_som_som_object_present): Ditto.
8718a420 8928 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
8929 (parse_nested_classes_for_hpacc): Ditto.
8930 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 8931 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
8932 (initialize_hp_cxx_exception_support): Ditto.
8933 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 8934 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 8935 (cp_print_class_method): Ditto.
8718a420 8936 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
8937 (c_type_print_base): Ditto.
8938 * c-exp.y (hp_som_som_object_present): Ditto.
8939
fb2be677
AC
89402004-04-08 Andrew Cagney <cagney@redhat.com>
8941
8942 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8943 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8944 (frame_unwind_find_by_frame): Re-implement the unwind code so
8945 that it can both prepend and append sniffers. Replace
8946 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8947 * tramp-frame.c (tramp_frame_append): Use
8948 frame_unwind_prepend_unwinder.
8949 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8950 frame_unwind_register_unwinder.
8951 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8952 tramp_frame_append.
8953 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 8954 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
8955 (mips_linux_init_abi): Update.
8956
67faf007
KB
89572004-04-08 Kevin Buettner <kevinb@redhat.com>
8958
8959 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8960 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8961 file support.
8962
8973ff21
KB
89632004-04-07 Kevin Buettner <kevinb@redhat.com>
8964
8965 * ia64-tdep.c (elf.h): Don't include.
8966 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8967
4a0e2f88
JM
89682004-04-07 Jason Molenda (jmolenda@apple.com)
8969
8970 * frame.h: Typeo corrections in comments.
8971
9872ad24
JB
89722004-04-07 Jim Blandy <jimb@redhat.com>
8973
8974 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8975 %esp and %ebp
8976
70b216c8
MK
89772004-04-07 Mark Kettenis <kettenis@gnu.org>
8978
11d5789c
MK
8979 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8980 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8981 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8982 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8983 and solib-legacy.o.
8984 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8985 solib-svr4.o.
8986 * config/sparc/tm-sol2.h: Update copyright year. Include
8987 "solib.h".
8988
70b216c8
MK
8989 * sparc-sol2-tdep.c: Update copyright year. Include
8990 "solib-svr4.h".
8991 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8992 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8993 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 8994 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
8995 dependencies.
8996
6339dc9e
AC
89972004-04-06 Andrew Cagney <cagney@redhat.com>
8998
8999 * infttrace.c: Include "infttrace.h".
9000 * infttrace.h: Include "target.h".
9001 * Makefile.in (infttrace_h): Update.
9002 (infttrace.o): Update.
8718a420 9003
93449403
AC
90042004-04-06 Andrew Cagney <cagney@redhat.com>
9005
6d518969
AC
9006 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9007 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9008 move extern declarations from here ...
9009 * infttrace.h: ... to here.
9010 * Makefile.in (hppah-nat.o): Update dependencies.
9011
85f4f2d8
AC
9012 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9013 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9014 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9015 (hppa_breakpoint_from_pc): Delete.
9016
93449403
AC
9017 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9018
71456ec6
AC
90192004-04-05 Andrew Cagney <cagney@redhat.com>
9020
9021 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9022 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9023 <sys/file.h>.
8718a420 9024
4c02c60c
AC
90252004-04-06 Randolph Chung <tausq@debian.org>
9026
9027 Committed by Andrew Cagney (mechanical change).
9028 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9029 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9030 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9031 child_enable_exception_callback, current_ex_event,
9032 null_symtab_and_line, child_get_current_exception_event,
9033 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9034 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9035 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9036 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9037 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9038 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9039 Move hpux-specific definitions ...
9040 * hppa-hpux-tdep.c: ... to here.
9041
3a515653
AC
90422004-04-05 Andrew Cagney <cagney@redhat.com>
9043
9044 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9045 skip_prologue_using_sal.
9046
c1730d02
AC
90472004-04-05 Andrew Cagney <cagney@redhat.com>
9048
9049 * config/i386/tm-i386.h: Delete file.
9050 * config/i386/tm-vxworks.h: Update copyright, do not include
9051 "tm-i386.h".
9052 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9053 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9054 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9055 * config/i386/ncr3000.mt (TM_FILE): Delete.
9056 * config/i386/interix.mt (TM_FILE): Delete.
9057 * config/i386/i386v.mt (TM_FILE): Delete.
9058 * config/i386/i386nw.mt (TM_FILE): Delete.
9059 * config/i386/i386gnu.mt (TM_FILE): Delete.
9060 * config/i386/i386aout.mt (TM_FILE): Delete.
9061 * config/i386/embed.mt (TM_FILE): Delete.
9062
8b67aa36
KB
90632004-04-05 Kevin Buettner <kevinb@redhat.com>
9064
9065 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9066 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9067 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9068 (accg7_regnum): New constants.
9069 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9070 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9071 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9072 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9073 for accg registers.
9074 (frv_register_sim_regno): Update spr_map[].
9075
3c7012f5
AC
90762004-04-04 Andrew Cagney <cagney@redhat.com>
9077
9078 * config/mips/xm-riscos.h: Delete.
9079 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9080 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9081 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9082 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9083 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9084 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9085 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9086 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9087 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9088 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9089 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9090 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9091 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9092 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9093 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9094 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9095 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9096 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9097 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9098 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9099 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9100 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9101 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9102 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9103 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9104 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9105
3c7012f5
AC
9106 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9107 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9108 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9109 * configure.host: Remove m680[01]0-sun-sunos3*,
9110 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9111 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9112 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9113 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9114 mips-*-riscos*.
9115 * NEWS: Mention removed systems.
9116
99d16a21
AC
91172004-04-04 Andrew Cagney <cagney@redhat.com>
9118
9119 GDB 6.1 release created from 6.1 branch.
9120
6cdf9d98
AC
91212004-04-04 Andrew Cagney <cagney@redhat.com>
9122
98d346c3
AC
9123 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9124 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9125 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9126
6cdf9d98
AC
9127 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9128 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9129 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9130
859a326d
JB
91312004-04-03 Jim Blandy <jimb@redhat.com>
9132
9133 * MAINTAINERS: Chris Faylor has changed employers; add him to
9134 "paper trail" section, and update his E-mail address.
9135
b87178c3
AC
91362004-04-03 Andrew Cagney <cagney@redhat.com>
9137
4ea2acf0
AC
9138 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9139 generic dummy frames.
9140 * dummy-frame.c: Update copyright.
9141 (dummy_frame_sniffer): Delete check for generic dummy frames.
9142
d0bd2d18 9143 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9144 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9145 (REG_PARM_STACK_SPACE): Delete.
9146 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9147 Inline reference to REG_PARM_STACK_SPACE.
9148
b87178c3
AC
9149 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9150 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9151 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9152 (FRAME_BASE_BEFORE_SIGTRAMP)
9153 (hppa32_hpux_frame_base_before_sigtramp)
9154 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9155 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9156 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9157 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9158 (FRAME_BASE_BEFORE_SIGTRAMP)
9159 (hppa64_hpux_frame_base_before_sigtramp)
9160 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9161
43e2e1a0
AC
91622004-04-03 Andrew Cagney <cagney@redhat.com>
9163
9164 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9165
ddc135a4
AC
91662004-04-02 Andrew Cagney <cagney@redhat.com>
9167
9168 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9169 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9170 * dummy-frame.h: Delete out-of-date comments.
9171 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9172 * gdbarch.h, gdbarch.c: Re-generate.
9173
d15bfd3a 91742004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9175
d15bfd3a
AC
9176 Committed by Andrew Cagney <cagney@redhat.com>.
9177 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9178 into account an instruction saving a register if we have already
9179 seen an earlier instruction saving that same register.
9180
f04ceafa
AC
91812004-04-02 Andrew Cagney <cagney@redhat.com>
9182
08be3abd
AC
9183 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9184 * gdbarch.h, gdbarch.c: Re-generate.
9185 * frame.c (legacy_get_prev_frame): Delete references to
9186 DEPRECATED_INIT_FRAME_PC_FIRST.
9187
f04ceafa
AC
9188 * infrun.c (pc_in_sigtramp): Delete function.
9189 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9190 get_frame_type.
9191
08e69816
AC
91922004-04-02 Andrew Cagney <cagney@redhat.com>
9193
9194 * infrun.c (handle_step_into_function): Delete code conditional on
9195 legacy_frame_p.
9196 (handle_inferior_event, step_over_function): Ditto.
9197
adb54772
AC
91982004-04-02 Andrew Cagney <cagney@redhat.com>
9199
9200 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9201 "previous frame inner to this frame" test.
9202
304396fb
AC
92032004-04-02 Andrew Cagney <cagney@redhat.com>
9204
9205 * frame.c (safe_frame_unwind_memory): New function.
9206 * frame.h (safe_frame_unwind_memory): Declare. Update description
9207 of /safe_/ methods.
9208 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9209 "next_frame". Use safe_frame_unwind_memory.
9210 (tramp_frame_sniffer): Update call to tramp_frame_start.
9211
6502dd73
DJ
92122004-04-01 Daniel Jacobowitz <drow@mvista.com>
9213
9214 * dwarf2read.c (dwarf2_objfile_data_key): New.
9215 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9216 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9217 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9218 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9219 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9220 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9221 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9222 Remove variables.
9223 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9224 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9225 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9226 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9227 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9228 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9229 Remove macros.
9230 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9231 data.
9232 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9233 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9234 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9235 (read_partial_die, read_full_die, read_indirect_string)
9236 (dwarf_decode_line_header, dwarf_decode_macros)
9237 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9238 Update uses of removed variables.
9239 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9240 of removed macros.
9241 (_initialize_dwarf2_read): New function.
9242 * symfile.h (dwarf2_has_info): Update prototype.
9243 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9244 * elfread.c (elf_symfile_read): Likewise.
9245
408752b0
JB
92462004-04-01 Jim Blandy <jimb@redhat.com>
9247
9f744501
JB
9248 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9249 function for register numbers on all the rs6000-derived targets.
9250 (rs6000_gdbarch_init): Don't register a separate
9251 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9252 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9253 variants.
9254
408752b0
JB
9255 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9256 numbering.
9257
2de41bce
PH
92582004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9259
9260 * valarith.c: Update copyright notice.
9261 (value_add): Handle range types.
9262 (value_sub): Ditto.
9263 (value_equal): Ditto.
9264 (value_less): Ditto.
9265 (value_neg): Ditto.
9266 (value_complement): Ditto.
8718a420 9267 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9268 eliminiating unnecessary COERCE_ENUMs.
8718a420 9269
5613d8d3
AC
92702004-03-31 Andrew Cagney <cagney@redhat.com>
9271
9272 * frame.h (frame_unwind_id): Declare.
9273 * frame.c (frame_unwind_id): New function.
9274 (get_prev_frame_1): New function.
9275 (frame_debug_got_null_frame): New function.
9276 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9277 code proper to prev_frame, update description.
9278 * infrun.c (step_over_function): Use frame_unwind_id.
9279
c4557624
JB
92802004-04-31 J. Brobecker <brobecker@gnat.com>
9281
9282 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9283 (hppa64_push_dummy_call): Likewise.
9284
3e6bb910
JB
92852004-03-30 Jim Blandy <jimb@redhat.com>
9286
9287 From Ulrich Weigand:
9288 * utils.c (query): Do not use a va_list variable multiple times.
9289
a2f23071
DJ
92902004-03-29 Daniel Jacobowitz <drow@mvista.com>
9291
9292 * Makefile.in (linux_nat_h): Update dependencies.
9293 * configure.in: Check for <gnu/libc-version.h>.
9294 * configure: Regenerate.
9295 * config.in: Regenerate.
9296 * linux-nat.h: Include "target.h". Add waitstatus field to
9297 struct lwp_info.
9298 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9299 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9300 to.
9301 (lin_lwp_handle_extended): New function. Handle clone events.
9302 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9303 thread exit events.
9304 (child_wait): Handle clone events.
9305 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9306 * linux-nat.c (linux_enable_event_reporting): Turn on
9307 PTRACE_O_TRACECLONE.
9308 (linux_handle_extended_wait): Handle clone events.
9309 * thread-db.c: Include <gnu/libc-version.h>.
9310 (struct private_thread_info): Add dying flag.
9311 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9312 higher.
9313 (attach_thread): Update comments. Handle dying threads.
9314 (detach_thread): Set the dying flag.
9315 (check_event): Always call attach_thread.
9316
8d5f9dcb
DJ
93172004-03-29 Daniel Jacobowitz <drow@mvista.com>
9318
9319 * mips-tdep.c (mips_pdr_data): New.
9320 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9321 (_initialize_mips_tdep): Initialize mips_pdr_data.
9322
66337bb1
CV
93232004-03-29 Corinna Vinschen <vinschen@redhat.com>
9324
9325 * minsyms.c (install_minimal_symbols): Move dropping leading
9326 char from linkage name from here...
9327 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9328 test for "__gnu_compiled*" symbols.
9329
e802b915
JB
93302004-03-28 Jim Blandy <jimb@redhat.com>
9331
9332 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9333 registers to temp register r0 and byte stores as prologue
9334 instructions.
9335
72b56458
AC
93362004-03-28 Andrew Cagney <cagney@redhat.com>
9337
9338 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9339 arm*-*-*.
9340
0bfbda3b
SC
93412004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9342
9343 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9344 and switch the layout to force a display of register window.
9345
5a7225ed
JB
93462004-02-26 J. Brobecker <brobecker@gnat.com>
9347
9348 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9349 of the INTEGER class.
9350
81a07a45
JB
93512004-03-26 Jim Blandy <jimb@redhat.com>
9352
9353 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9354 bytes long on PPC GNU/Linux.
9355
8c691c7a
DC
93562004-03-26 David Carlton <carlton@kealia.com>
9357
9358 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9359
103a0089
AC
93602004-03-25 Andrew Cagney <cagney@redhat.com>
9361
9362 * PROBLEMS: Add general section titles, remove references to
9363 specific releases.
9364
7a5ea0d4
DJ
93652004-03-25 Daniel Jacobowitz <drow@mvista.com>
9366
9367 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9368 INT_REGISTER_SIZE.
9369 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9370 FP_REGISTER_VIRTUAL_SIZE.
9371 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9372 of DEPRECATED_REGISTER_RAW_SIZE.
9373 (arm_register_type): Add gdbarch argument.
9374 (arm_register_raw_size, arm_register_virtual_size): Delete.
9375 (arm_register_byte, arm_extract_return_value)
9376 (arm_store_return_value, arm_get_longjmp_target): Update references
9377 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9378 (arm_gdbarch_init): Likewise. Don't set
9379 deprecated_register_raw_size, deprecated_register_virtual_size,
9380 deprecated_max_register_raw_size,
9381 deprecated_max_register_virtual_size, or
9382 deprecated_max_register_virtual_type. Do set register_type.
9383 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9384 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9385 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9386 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9387 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9388 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9389 INT_REGISTER_SIZE.
9390 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9391 (remote_rdp_store_register): Likewise.
9392
5792a79b
DJ
93932004-03-24 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9396 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9397 to after osabi initialization.
9398 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9399 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9400 functions.
9401 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9402 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9403 variables.
9404 (mips_linux_init_abi): Append signal trampoline unwinders.
9405
1196bfda
AC
94062004-03-24 Andrew Cagney <cagney@redhat.com>
9407
9408 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9409 * tramp-frame.c: Include "gdb_assert.h".
9410 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9411 correct sizeof.
9412 (tramp_frame_append): Validate the tramp frame's instructions.
9413 * Makefile.in (tramp-frame.o): Update dependencies.
9414
4be282b4
AC
94152004-03-23 Andrew Cagney <cagney@redhat.com>
9416
9417 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9418
69aec09b
AC
94192004-03-23 Andrew Cagney <cagney@redhat.com>
9420
9421 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9422 Nasser as past testsuite/lib/ (and other) maintainers.
9423
63ed89b4
DJ
94242004-03-23 Daniel Jacobowitz <drow@mvista.com>
9425
9426 * infcmd.c (attach_command): Reread symbols if we already have
9427 an exec file.
9428
f3b36427
AC
94292004-03-23 Andrew Cagney <cagney@redhat.com>
9430
9431 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9432
aa2a3f87
AC
94332004-03-23 Andrew Cagney <cagney@redhat.com>
9434
9435 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9436 * gdbarch.h, gdbarch.c: Re-generate.
9437 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9438 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9439 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9440 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9441 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9442 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9443 (DEPRECATED_SIGTRAMP_START): Update.
9444 * blockframe.c (find_pc_sect_partial_function): Update.
9445 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9446
00cac895
DJ
94472004-03-23 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9450 if necessary.
9451
f561f026
AC
94522004-03-23 Andrew Cagney <cagney@redhat.com>
9453
9454 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9455 predicate, deprecate.
9456 * gdbarch.h, gdbarch.c: Re-generate.
9457 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9458 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9459 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9460 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9461 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9462 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9463 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9464 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9465 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9466 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9467 * blockframe.c (find_pc_partial_function): Update.
9468 * breakpoint.c (bpstat_what): Update.
9469 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9470 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9471 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9472 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9473 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9474 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9475 * i386-nto-tdep.c (i386nto_init_abi): Update.
9476 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9477 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9478 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9479 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9480 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9481 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9482 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9483 * infrun.c (pc_in_sigtramp): Update.
9484 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9485 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9486 * mips-tdep.c (mips_gdbarch_init): Update.
9487 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9488 * ppc-linux-tdep.c: Update comment.
9489 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9490 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9491 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9492 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9493 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9494 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9495 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9496 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9497 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9498 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9499
8050c72f
AC
95002004-03-23 Andrew Cagney <cagney@redhat.com>
9501
d2259dd3
AC
9502 * tramp-frame.h, tramp-frame.h: New files.
9503 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9504 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9505
8050c72f
AC
9506 * Makefile.in: Update all dependencies.
9507
0db9b4b7
AC
95082004-03-23 Andrew Cagney <cagney@redhat.com>
9509
9510 * Makefile.in (trad_frame_h): Add $(frame_h).
9511 * trad-frame.h: Update copyright. Include "frame.h".
9512 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9513 (trad_frame_set_id, trad_frame_get_id): Declare.
9514 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9515 * trad-frame.c: Update copyright.
9516 (struct trad_frame_cache): Define.
9517 (trad_frame_cache_zalloc): New function.
9518 (trad_frame_set_id, trad_frame_get_id): New functions.
9519 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9520
8e645ae7
AC
95212004-03-22 Andrew Cagney <cagney@redhat.com>
9522
9523 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9524 s390_pltstub_unwind_cache.
9525 (s390_stub_frame_unwind_cache): Rename
9526 s390_pltstub_frame_unwind_cache.
9527 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9528 (s390_stub_frame_prev_register): Rename
9529 s390_pltstub_frame_prev_register.
9530 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9531 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9532
9533 From Ulrich Weigand:
9534 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9535 pointer calls like PLT calls.
9536
34fcf120
DJ
95372004-03-22 Daniel Jacobowitz <drow@mvista.com>
9538
9539 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9540 PC rather than the partial function start address. Use the start
9541 address to sanity check the found PDR.
9542
5b917078
DJ
95432004-03-22 Daniel Jacobowitz <drow@mvista.com>
9544
9545 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9546 linux_handle_extended_wait.
9547
8adf9e78
AC
95482004-03-22 Andrew Cagney <cagney@redhat.com>
9549
c3122434
AC
9550 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9551 function.
9552
8adf9e78
AC
9553 * frame.h (generic_pop_current_frame): Delete declaration.
9554 (deprecate_pop_dummy_frame): Deprecate
9555 generic_pop_dummy_frame.
9556 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9557 (generic_pop_current_frame): Delete function.
9558 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9559 generic_pop_current_frame.
9560 * v850-tdep.c (v850_pop_frame): Update.
9561 * mcore-tdep.c (mcore_pop_frame): Update.
9562 * sh64-tdep.c (sh64_pop_frame): Update.
9563 * h8300-tdep.c (h8300_pop_frame): Update.
9564
90ba813f
AC
95652004-03-22 Andrew Cagney <cagney@redhat.com>
9566
9567 * frame.h (deprecated_pc_in_call_dummy): Rename
9568 generic_pc_in_call_dummy.
9569 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9570 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9571 generic_pc_in_call_dummy.
9572 (pc_in_dummy_frame): Make static.
9573 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9574 * gdbarch.h, gdbarch.c: Re-generate.
9575 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9576 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9577 (legacy_get_prev_frame): Ditto.
9578 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9579 comment.
8718a420 9580
ca4bb888
AC
95812004-03-21 Andrew Cagney <cagney@redhat.com>
9582
244675f9
AC
9583 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9584 declaration and out-of-date comment.
9585 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9586 Delete function.
9587 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9588 deprecated_pc_in_call_dummy.
9589
ca4bb888
AC
9590 * infrun.c (handle_inferior_event): For non legacy frames, use the
9591 frame ID and frame type to identify a signal trampoline. Update
9592 comments.
9593
1777c7b4
NW
95942004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9595
9596 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9597 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9598
82417da5
AC
95992004-03-21 Andrew Cagney <cagney@redhat.com>
9600
9601 * frame-unwind.h: Update copyright.
9602 (struct frame_data): Add opaque declaration.
9603 (frame_sniffer_ftype): Declare.
9604 (struct frame_unwind): Add "unwind_data" and "sniffer".
9605 (frame_unwind_register_unwinder): Declare.
9606 (frame_unwind_find_by_frame): Add parameter "this_cache".
9607 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9608 (legacy_get_prev_frame, legacy_get_prev_frame)
9609 (get_frame_type): Pass the prologue_cache to
9610 frame_unwind_find_by_frame.
9611 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9612 "unwinder".
9613 (frame_unwind_register_unwinder): New function.
9614 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9615
b2ba182e
PH
96162004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9617
9618 * bcache.c (print_percentage): Use floating point to avoid
9619 incorrect results when portion*100 overflows.
9620
81332287
KB
96212004-03-19 Kevin Buettner <kevinb@redhat.com>
9622
9623 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9624 (ppc_linux_init_extra_frame_info)
9625 (ppc_linux_frameless_function_invocation)
9626 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9627 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9628 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9629 (rs6000_frame_chain): Delete declarations.
9630 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9631 (ppc_linux_init_extra_frame_info)
9632 (ppc_linux_frameless_function_invocation)
9633 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9634 (ppc_linux_init_abi): Remove registration of above deleted functions.
9635 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9636 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9637 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9638 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9639 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9640 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9641 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9642 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9643 frame management for all OSABIs.
9644
61a65099
KB
96452004-03-19 Andrew Cagney <cagney@redhat.com>
9646
9647 Committed by Kevin Buettner <kevinb@redhat.com>.
9648
9649 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9650 Update copyright.
9651 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9652 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9653 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9654 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9655 unwinders. #ifdef legacy frame code.
9656 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9657 "frame-base.h".
9658 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9659 (struct rs6000_frame_cache, rs6000_frame_cache)
9660 (rs6000_frame_this_id, rs6000_frame_prev_register)
9661 (rs6000_frame_sniffer, rs6000_frame_unwind)
9662 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9663 (rs6000_frame_base): Implement a traditional frame unwinder.
9664 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9665 frame unwinder.
9666
88f7da05
KB
96672004-03-19 Kevin Buettner <kevinb@redhat.com>
9668
9669 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9670 breakpoint address for watchpoints or the catch eventpoints.
9671 Add new paramter ``bptype''. Adjust all callers.
9672
f826dce1
AC
96732004-03-19 Andrew Cagney <cagney@redhat.com>
9674
33cb8b0f
AC
9675 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9676
f826dce1
AC
9677 * PROBLEMS: Delete note that ARM does not use frame code, problem
9678 fixed.
9679
43b1ab88
AC
96802004-03-18 Andrew Cagney <cagney@redhat.com>
9681
292ab034
AC
9682 * stack.c (return_command): Delete code wrapped in #ifdef
9683 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9684
43b1ab88
AC
9685 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9686
dbfe4626
AC
96872004-03-18 Andrew Cagney <cagney@redhat.com>
9688
9689 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9690 DEPRECATED_IN_SIGTRAMP.
9691 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9692 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9693 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9694 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9695 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9696 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9697 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9698 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9699 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9700 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9701
0cad6aec
AC
97022004-03-18 Andrew Cagney <cagney@redhat.com>
9703
9704 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9705 (struct frame_base_table_entry): Define.
9706 (struct frame_base_table): Re-implement as a linked list.
9707 (frame_base_init): Re-implement.
9708 (frame_base_table): Delete function.
9709 (append_predicate): Delete function.
9710 (frame_base_append_sniffer): Update.
9711 (frame_base_set_default): Update.
9712 (frame_base_find_by_frame): Update.
9713 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9714 * Makefile.in (frame-base.o): Update dependencies.
9715
9982c2e7
AC
97162004-03-17 Andrew Cagney <cagney@redhat.com>
9717
9718 * frame.c (legacy_get_prev_frame): Pass correct frame to
9719 frame_unwind_find_by_frame.
9720
8dfe8985
DC
97212004-03-17 David Carlton <carlton@kealia.com>
9722
9723 * NEWS: Mention C++ nested types and namespaces
9724
ed47347a
MC
97252004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9726
9727 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9728 and "Regressions since gdb 5.3.". Add known regressions since
9729 gdb 6.0.
9730
90aeadfc
DC
97312004-03-16 David Carlton <carlton@kealia.com>
9732
9733 * dwarf2read.c (process_structure_scope): Process children even
9734 when we're a declaration.
9735
73912b9b
AC
97362004-03-16 Andrew Cagney <cagney@redhat.com>
9737
9738 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9739 * blockframe.c (find_pc_partial_function)
9740 (find_pc_sect_partial_function): Merge into a single
9741 find_pc_partial_function.
9742
283accbc
MK
97432004-03-16 Mark Kettenis <kettenis@gnu.org>
9744
9745 * i386bsd-nat.c: s/regno/regnum/g.
9746 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9747 FP0_REGNUM.
9748 (store_inferior_registers): Likewise.
9749
f5b1afdf
MK
97502004-03-16 Mark Kettenis <kettenis@gnu.org>
9751
9752 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9753 of i387_fill_fsave.
9754 (store_inferior_registers): Call i387_collect_fsave and
9755 i387_collect_fxsave instead of i387_fill_fsave and
9756 i387_fill_fxsave.
9757
41fe5eb3
AC
97582004-03-15 Andrew Cagney <cagney@redhat.com>
9759
9760 * Makefile.in (frame-unwind.o): Update dependencies.
9761 * frame-unwind.c: Include "gdb_obstack.h".
9762 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9763 parameter.
9764 (append_predicate): Delete function.
9765 (struct frame_unwind_table_entry): New structure.
9766 (struct frame_unwind_table): Replace "sniffer" with "head" and
9767 "tail".
9768 (frame_unwind_append_sniffer): Update.
9769 (frame_unwind_find_by_frame): Update.
9770 (_initialize_frame_unwind): Registe frame_unwind_init using
9771 gdbarch_data_register_pre_init.
9772
3f63813d
MK
97732004-03-15 Mark Kettenis <kettenis@gnu.org>
9774
9775 * i386bsd-nat.c: Update copyright year.
9776 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9777 define unconditionally.
9778
3248c325 97792004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9780
9781 * i387-tdep.h (i387_collect_fsave): New prototype.
9782 * i387-tdep.c (i387_collect_fsave): New function containing most
9783 of the code from i387_fill_fsave.
3248c325 9784 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9785
871fbe6a
MK
97862004-03-15 Mark Kettenis <kettenis@gnu.org>
9787
9788 * i386-linux-tdep.c: Update copyright year.
9789 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9790 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9791 svr4_ilp32_link_map_offsets instead of
9792 i386_linux_svr4_fetch_link_map_offsets.
9793
8176b9b8
DC
97942004-03-15 David Carlton <carlton@kealia.com>
9795
9796 Fix for PR c++/1553:
9797 * dwarf2read.c (read_structure_type): Determine type name by
9798 calling determine_class_name.
9799 (determine_class_name): New.
9800 (determine_prefix): Look at TYPE_TAG_NAME and call
9801 determine_class_name when appropriate.
9802 (determine_prefix_aux, class_name): Delete.
9d58e29d 9803 (read_namespace): Set die->type.
8176b9b8 9804
fe8bf7d7
KB
98052004-03-15 Kevin Buettner <kevinb@redhat.com>
9806
9807 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9808 unused macro definition. The definition in target.h (or perhaps
9809 elsewhere) takes precedence.
9810
ed6edd9b
AC
98112004-03-15 Andrew Cagney <cagney@redhat.com>
9812
f9be684a
AC
9813 * ppc-tdep.h: Update copyright.
9814 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9815 function signatures to match "regsets.h".
9816 * ppc-linux-tdep.c: Include "regset.h".
9817 (ELF_GREGSET_SIZE): Delete.
9818 (right_supply_register): New function.
9819 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9820 using right_supply_register.
9821 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9822 functions.
9823 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9824 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9825 (_initialize_ppc_linux_tdep): Do not register
9826 ppc_linux_regset_core_fns.
9827 (ppc_linux_regset_from_core_section): Replace
9828 fetch_core_registers.
9829 (ppc_linux_regset_core_fns): Delete.
9830 * ppc-linux-nat.c: (right_fill_reg): New function.
9831 (supply_gregset): Update call to ppc_linux_supply_gregset.
9832 (fill_gregset): Clear the register set, use right_fill_reg.
9833 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9834 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9835
ed6edd9b
AC
9836 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9837 unsigned.
9838
030f20e1
AC
98392004-03-15 Andrew Cagney <cagney@redhat.com>
9840
9841 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9842 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9843 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9844 and register_gdbarch_data.
9845 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9846 (struct gdbarch_data): Replace "init" by "pre_init" and
9847 "post_init".
9848 * gdbarch.h, gdbarch.c: Re-generate.
9849 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9850 with"obstack", use OBSTACK_ZALLOC.
9851 (dwarf2_frame_ops): Delete.
9852 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9853 (dwarf2_frame_init_reg): Use gdbarch_data.
9854 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 9855 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
9856 (_initialize_svr4_solib): Update.
9857 * user-regs.c (_initialize_user_regs): Update.
9858 * reggroups.c (_initialize_reggroup): Update.
9859 * regcache.c (_initialize_regcache): Update.
9860 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9861 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9862 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9863 * frame-unwind.c (_initialize_frame_unwind): Update.
9864 * frame-base.c (_initialize_frame_base): Update.
9865 * user-regs.c (user_reg_add): Update.
9866 * reggroups.c (reggroup_add): Update.
9867 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9868 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9869 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9870 * frame-base.c (frame_base_table): Update.
9871 * remote.c (_initialize_remote): Update.
9872 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 9873
3111a3fc
AC
98742004-03-15 Andrew Cagney <cagney@redhat.com>
9875
9876 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9877
5ecb7103
KB
98782004-03-15 Kevin Buettner <kevinb@redhat.com>
9879
9880 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9881 * frv-linux-tdep.c: New file.
9882 * frv-tdep.c (struct gdbarch_tdep): Add new field
9883 ``sigcontext_reg_addr''.
9884 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9885 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9886 (frv_sigramp_frame_sniffer): New functions.
9887 (frv_sigtramp_frame_unwind): New static global.
9888 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9889 sniffers.
9890 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9891 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9892
1ccda5e9
KB
98932004-03-15 Kevin Buettner <kevinb@redhat.com>
9894
9895 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9896 but not via a call to error(), when unable to read memory.
9897
b375a0a5
KB
98982004-03-15 Kevin Buettner <kevinb@redhat.com>
9899
9900 * frv-tdep.c (frv_call_dummy_words): Delete.
9901 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9902
4fdf6121
AC
99032004-03-15 Andrew Cagney <cagney@redhat.com>
9904
9905 * infrun.c (handle_step_into_function, step_over_function): Only
9906 update and use STEP_FRAME_ID when the system is using legacy
9907 frames. Update comments.
9908
34021503
MK
99092004-03-14 Mark Kettenis <kettenis@gnu.org>
9910
187e21d1
MK
9911 * amd64-linux-tdep.h: Remove file.
9912 * amd64-linux-tdep.c: Don't include "inferior.h" and
9913 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9914 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9915 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9916 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9917 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9918 macros.
9919 (user_to_gdb_regmap): Remove variable.
9920 (amd64_linux_gregset_reg_offset): New variable.
9921 (amd64_core_fns): Remove variable.
9922 (fetch_core_registers): Remove function.
9923 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9924 functions.
9925 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9926 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9927 * Makefile.in (amd64_linux_tdep_h): Remove.
9928 (amd64-linux-nat.o): Update dependencies.
9929 (amd64-linux-tdep.o): Update dependencies.
9930
99679982
MK
9931 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9932 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9933 functions.
9934 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9935
34021503
MK
9936 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9937 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9938
134d01f1
DJ
99392004-03-14 Daniel Jacobowitz <drow@mvista.com>
9940
9941 * dwarf2read.c (read_structure_type): Rename from
8718a420 9942 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
9943 Return immediately if die->type is set. Call read_type_die before
9944 dwarf2_add_member_fn.
9945 (process_structure_scope): New function.
9946 (read_enumeration_type, process_enumeration_scope): New functions,
9947 broken out from read_enumeration. Don't create the enumeration
9948 type if it has already been created.
9949 (read_enumeration): Removed.
9950 (process_die): Call read_structure_type, process_structure_scope,
9951 read_enumeration_type, and process_enumeration_scope. Just call
9952 new_symbol for base and subrange types. Add a comment about other
9953 type dies.
9954 (read_type_die): Call read_enumeration_type.
9955 (add_partial_structure, new_symbol): Update comments.
9956
65760afb
SC
99572004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9958
9959 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9960
10f59415
SC
99612004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9962
9963 * tui/tui-win.h (tui_get_cmd_list): Declare.
9964 * tui/tui-win.c (tui_command): New function.
9965 (tui_get_cmd_list): New function.
9966 (_initialize_tui_win): Moved initialization of tui command in
9967 tui_get_cmd_list.
9968
9969 * tui/tui-data.c (init_content_element): Setup new data members.
9970 (init_win_info): Likewise.
9971 (free_content_elements): Free it.
9972 * tui/tui-data.h (struct tui_data_element): Store the register
9973 content to print.
9974 (struct tui_data_info): Keep the current register group.
9975
9976 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9977
9978 * tui/tui-regs.h (tui_show_registers): Update prototype.
9979 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9980 (tui_resize_all): No need to calculate anything for register window.
9981 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9982 (tui_set_register_element, tui_set_general_regs_content): Remove.
9983 (tui_set_special_regs_content): Remove.
9984 (tui_set_general_and_special_regs_content): Remove.
9985 (tui_set_float_regs_content): Remove.
9986 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9987 (tui_set_regs_content): Remove.
9988 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9989 (tui_v_show_registers_command_support): Remove.
9990 (tui_show_registers): Use a reggroup to specify the registers to show.
9991 (tui_show_register_group): New function.
9992 (tui_display_registers_from): Compute the layout of register window
9993 and refresh with new API; be sure to delete old register windows.
9994 (tui_check_register_values): Update to use tui_get_register and
9995 tui_display_data.
9996 (tui_display_register): Just refresh the register window part.
9997 (tui_register_format): Format registers and save in tui_data_element.
9998 (tui_get_register): New to combine tui_reg_value_has_changed and
9999 tui_get_register_raw_value; fix to use the new gdb API.
10000 (tui_show_float_command): Renamed tui_reg_float_command.
10001 (tui_show_general_command): Renamed tui_reg_general_command.
10002 (tui_show_special_command): Renamed tui_reg_system_command.
10003 (_initialize_tui_regs): Remove unused commands.
10004
c3364ea4
MK
100052004-03-13 Mark Kettenis <kettenis@gnu.org>
10006
27d1e716
MK
10007 * NEWS (New native configurations): Mention OpenBSD/amd64.
10008
c3364ea4
MK
10009 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10010 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10011 Remove defines.
10012 * config/i386/nm-fbsd64.h: Likewise.
10013 * config/i386/nm-obsd.h: Likewise.
10014 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10015 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10016
b2d6d697
KB
100172004-03-12 Kevin Buettner <kevinb@redhat.com>
10018
10019 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10020 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10021 New constants.
10022
76e43199
KB
10023 From Richard Sandiford <rsandifo@redhat.com>:
10024 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10025
34ce532e
KB
100262004-03-12 Kevin Buettner <kevinb@redhat.com>
10027
10028 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10029 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10030 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10031 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10032 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10033 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10034 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10035 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10036 definitions from frv-tdep.c to frv-tdep.h.
10037
c4d10515
KB
100382004-03-12 Kevin Buettner <kevinb@redhat.com>
10039
10040 Add shared library support for FR-V FDPIC ABI:
10041 * Makefile.in (solib-frv.o): Add dependencies.
10042 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10043 New functions.
10044 (frv_push_dummy_call): Add support for FDPIC ABI.
10045 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10046 for FDPIC ABI.
10047 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10048 (frv_fdpic_find_canonical_descriptor): Declare.
10049 * solib-frv.c: New file.
10050 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10051 * config/frv/tm-frv.h (solib.h): Include.
10052
ed1bd989
KB
100532004-03-12 Kevin Buettner <kevinb@redhat.com>
10054
10055 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10056 (frv-tdep.o): Update dependencies.
10057 * frv-tdep.h: New file.
10058 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10059 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10060 constants.
10061 (struct gdbarch_tdep): Add new member ``frv_abi''.
10062 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10063 functions.
10064 (new_variant): Set ``frv_abi'' field.
10065 (gdb_arch_init): Detect FDPIC executables.
10066
82b38f72
MK
100672004-03-12 Mark Kettenis <kettenis@gnu.org>
10068
10069 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10070 wrapper.
10071
db1ea9ba
AC
100722004-03-11 Andrew Cagney <cagney@redhat.com>
10073
10074 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10075
f8766ec1
KB
100762004-03-11 Kevin Buettner <kevinb@redhat.com>
10077
10078 * solist.h (master_so_list): New function.
10079 * solib.c (master_so_list): Likewise.
10080 * solib-svr4.c (enable_break): Iterate over so_list entries
10081 obtained from master list instead of entries obtained directly
10082 via svr4_current_sos().
10083
523f6a27
BE
100842004-03-10 Ben Elliston <bje@gnu.org>
10085
10086 * MAINTAINERS: Update my mail address.
10087
37814c18
KI
100882004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10089
10090 * remote-m32r-sdi.c: Support hardware watchpoint.
10091
8b9740d8
DJ
100922004-03-09 Daniel Jacobowitz <drow@mvista.com>
10093
10094 * user-regs.c: Update copyright years.
10095 (struct user_regs): Rename to gdb_user_regs.
10096 (append_user_reg, builtin_user_regs, user_regs_init)
10097 (user_reg_add, user_reg_map_name_to_regnum)
10098 (usernum_to_user_reg): Update.
10099
4bb7a0a7
DJ
101002004-03-09 Daniel Jacobowitz <drow@mvista.com>
10101
10102 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10103 (skip_children): New functions.
10104 (locate_pdi_sibling): Call skip_children.
10105
44e1a9eb
DJ
101062004-03-09 Daniel Jacobowitz <drow@mvista.com>
10107
10108 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10109 * gdbtypes.c (check_typedef): Update comments.
10110
f3dd6933
DJ
101112004-03-09 Daniel Jacobowitz <drow@mvista.com>
10112
10113 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10114 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10115 pointer. Update comment about comp_unit_head.
10116 (struct abbrev_info): Shorten two int flags.
10117 (dwarf_alloc_abbrev): Take a CU argument.
10118 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10119 each time through the loop. Update cleanup argument.
10120 (psymtab_to_symtab_1): Update cleanup call.
10121 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10122 abbrev_obstack.
10123 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10124 Just call obstack_free and clear the pointer.
10125
b40c7d58
DJ
101262004-03-09 Daniel Jacobowitz <drow@mvista.com>
10127
10128 * infrun.c (handle_inferior_event): Remove short-circuit code for
10129 events in a different thread.
10130
333dabeb
DJ
101312004-03-09 Daniel Jacobowitz <drow@mvista.com>
10132
10133 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10134 print the whole transfer.
10135 (initialize_targets): Update description of "set debug target".
10136
aa17d93e
DJ
101372004-03-09 Daniel Jacobowitz <drow@mvista.com>
10138
10139 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10140
0b71f08f
NW
101412004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10142
10143 * MAINTAINERS (write after approval): Add myself.
10144
3930f270
CV
101452004-03-08 Corinna Vinschen <vinschen@redhat.com>
10146
10147 * sh-tdep.c (sh_print_registers_info): Use for loop.
10148 Don't skip multiple registers when a float register is encountered.
10149
a2b4a96c
CV
101502004-03-08 Corinna Vinschen <vinschen@redhat.com>
10151
10152 Fix PR tdep/1291.
10153 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10154 to official SH documentation.
10155
f15a4bc0
AC
101562004-03-07 Andrew Cagney <cagney@redhat.com>
10157
10158 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10159 unused function.
10160
9498281f
DJ
101612004-03-07 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10164 (arm_get_next_pc): Handle BX and BLX.
10165
449e1137
AC
101662004-03-07 Andrew Cagney <cagney@redhat.com>
10167
eded0a31
AC
10168 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10169 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10170 HPPA_SP_REGNUM.
10171 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10172 (hppa_target_read_fp): Delete.
10173 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10174 register_virtual_size, max_register_raw_size,
10175 max_register_virtual_size, register_byte, register_size,
10176 target_read_fp, fp_regnum, and register_bytes. Set register_type
10177 instead of register_virtual_type.
10178 (hppa32_register_type, hppa64_register_type): Replace
10179 hppa32_register_virtual_type and hppa64_register_virtual_type.
10180 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10181 (HPPA_FP_REGNUM): Define.
10182
f5f907e2
AC
10183 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10184
69b4bbe4
AC
10185 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10186 (pa_do_registers_info): Delete.
10187 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10188 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10189 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10190
78161e48
AC
10191 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10192 GDB_TARGET_IS_HPPA code.
10193 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10194 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10195 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10196 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10197 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10198 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10199 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10200 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10201 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10202 (hppa_frameless_function_invocation, hppa64_store_return_value)
10203 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10204 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10205 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10206 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10207 (find_proc_framesize, deposit_21, restore_pc_queue)
10208 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10209 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10210
782eae8b
AC
10211 Unconditionally enable 64-bit frame and ABI code.
10212 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10213 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10214 push_dummy_frame, fix_call_dummy, push_arguments,
10215 call_dummy_location, extract_return_value, use_struct_convention,
10216 store_return_value, store_struct_return, saved_pc_after_call,
10217 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10218 frame_chain, frame_chain_valid, frameless_function_invocation,
10219 frame_saved_pc, and pop_frame.
78161e48 10220
449e1137
AC
10221 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10222 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10223 (hppa_gdbarch_init): Do not set PC_REGNUM.
10224
12507572
MK
102252004-03-06 Mark Kettenis <kettenis@gnu.org>
10226
10227 * config/alpha/tm-fbsd.h: Remove file.
10228 * config/alpha/fbsd.mt: Tweak comment.
10229 (TM_FILE): Set to tm-alpha.h.
10230
c107cc1b
AC
102312004-03-05 Andrew Cagney <cagney@redhat.com>
10232
10233 * infrun.c (step_over_function): When non-legacy code, and no
10234 step_frame_id, use the unwinder to get the caller's frame ID.
10235
f2e7c15d
MK
102362004-03-05 Mark Kettenis <kettenis@gnu.org>
10237
8b0c3633
MK
10238 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10239 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10240 bfd_arch_unknown. Adjust comment.
10241
f2e7c15d
MK
10242 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10243 * i386obsd-tdep.c: Correct spelling in comment.
10244 * i386nbsd-tdep.c: Correct spelling in comment.
10245 * sparc-tdep.c: Correct spelling in comments.
10246
1198ecbe
DC
102472004-03-05 David Carlton <carlton@kealia.com>
10248
10249 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10250 bug.
10251
9eb42ed1
MK
102522004-03-05 Mark Kettenis <kettenis@gnu.org>
10253
10254 * sparc-tdep.c: Fix typo in comment.
10255
52b5e991
JB
102562004-03-04 J. Brobecker <brobecker@gnat.com>
10257
10258 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10259
d8151005
DJ
102602004-03-04 Daniel Jacobowitz <drow@mvista.com>
10261
10262 * dwarf2read.c: Add comment describing memory lifetimes.
10263 (struct dwarf2_pinfo): Update comment.
10264 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10265 (read_enumeration, new_symbol): Don't use obsavestring.
10266
cbeae229
MK
102672004-03-04 Mark Kettenis <kettenis@gnu.org>
10268
722d18c2
MK
10269 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10270 instead of amd64_fill_fxsave.
10271 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10272 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10273
cbeae229
MK
10274 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10275 Reorganize code a bit.
10276
b4206d25
OF
102772004-03-04 Orjan Friberg <orjanf@axis.com>
10278
10279 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10280 when the frame pointer is pushed. Don't set the frame pointer's
10281 address on the stack unless it's actually located there.
b4206d25
OF
10282 Set the SRP's address on the stack correctly when the PC is still in
10283 the prologue.
10284 (cris_return_value): New function.
10285 (cris_gdbarch_init): Clear deprecated store_return_value,
10286 extract_return_value.
10287
49b0b195
JB
102882004-03-02 Jim Blandy <jimb@redhat.com>
10289
10290 * stabsread.c (reg_value_complaint): The maximum register number
10291 is one less than the number of registers.
10292
e9ff708b
AC
102932004-03-02 Andrew Cagney <cagney@redhat.com>
10294
10295 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10296 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10297 trailing comma and redundant assignment of I386_ST0_REGNUM.
10298 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10299 32-bit segment registers.
10300
d4715e41
AC
103012004-03-01 Andrew Cagney <cagney@redhat.com>
10302
10303 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10304 use frame_relative_level and get_next_frame.
10305
3ce2bf18
AC
103062004-02-29 Andrew Cagney <cagney@redhat.com>
10307
10308 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10309 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10310 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10311 Delete macro.
10312
2da6aac3
DJ
103132004-02-29 Daniel Jacobowitz <drow@mvista.com>
10314
10315 * inflow.c (terminal_inferior): Don't give up the terminal if we
10316 previously couldn't get the inferior's terminal state.
10317
6ba34a8d
DJ
103182004-02-29 Daniel Jacobowitz <drow@mvista.com>
10319
10320 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10321 PC_REGNUM.
10322
faae5abe
AC
103232004-02-28 Andrew Cagney <cagney@redhat.com>
10324
10325 * NEWS: Refer to GDB 6.1.
10326 * README: Refer to GDB 6.1.
10327 * PROBLEMS: Refer to GDB 6.1.
10328
2227a3c5
DJ
103292004-02-28 Daniel Jacobowitz <drow@mvista.com>
10330
10331 * thread-db.c (disable_thread_signals): Remove unused function.
10332
80571bff
MK
103332004-02-28 Mark Kettenis <kettenis@gnu.org>
10334
041bd74b
MK
10335 * amd64-nat.c: Include "gdb_string.h".
10336 (amd64_collect_native_gregset): Zero-extend the 32-bit
10337 general-purpose registers and %eip.
10338
3c017e40
MK
10339 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10340 * amd64-tdep.c (amd64_collect_fxsave): New function.
10341 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10342
80571bff
MK
10343 * i387-tdep.h: Update copyright year.
10344 (i387_collect_fxsave): New prototype.
10345 * i387-tdep.c: Update copyright year.
10346 (i387_collect_fxsave): New function containing most of the code
10347 from i387_fill_fxsave.
10348 (i387_fill_fxsave): Call i387_collect_fxsave.
10349
50d71875
AC
103502004-02-28 Andrew Cagney <cagney@redhat.com>
10351
10352 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10353 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10354
4a28816e
MK
103552004-02-28 Mark Kettenis <kettenis@gnu.org>
10356
10357 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10358
dbda9972
AC
103592004-02-28 Andrew Cagney <cagney@redhat.com>
10360
10361 * utils.c: Use "", instead of <>, to include readline.
10362 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10363 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10364 * source.c, solib.c, exec.c, event-top.c: Ditto.
10365 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10366 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10367 * Makefile.in: Update all dependencies.
10368 (readline_tilde_h, readline_history_h): Define.
10369 (readline_headers): Delete.
10370
83277a99
MK
103712004-02-28 Mark Kettenis <kettenis@gnu.org>
10372
91ae4303
MK
10373 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10374 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10375 "config/i386/tm-lx64.h".
10376
83277a99
MK
10377 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10378 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10379 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10380
6e1d7d6c
AC
103812004-02-28 Andrew Cagney <cagney@redhat.com>
10382
ecc9ac84
AC
10383 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10384
6e1d7d6c
AC
10385 * breakpoint.c (_initialize_breakpoint): Use
10386 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10387 Add help to show command.
10388
9671aeef
MK
103892004-02-28 Mark Kettenis <kettenis@gnu.org>
10390
7fa2737c
MK
10391 * i386-nat.c: Reformat to be closer to coding standards.
10392 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10393 `retval'. Make variables `align' and `size' local to while-loop.
10394 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10395 (_initialize_i386_nat): New prototype.
10396
9671aeef
MK
10397 * tui/tui.c: Include <readline/readline.h> instead of
10398 "readline/readline.h". Include it after <term.h> and
10399 "gdb_curses.h".
10400
fca7aa43
AC
104012004-02-27 Andrew Cagney <cagney@redhat.com>
10402
412275d5
AC
10403 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10404 the new frame unwind code.
10405 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10406 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10407 PCOQ_HEAD_REGNUM.
10408
fca7aa43
AC
10409 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10410 "return_value" and "push_dummy_call".
10411 (hppa32_use_struct_convention): Delete unused function.
10412 (hppa32_store_return_value): Delete unused function.
10413 (hppa32_extract_return_value): Delete unused function.
10414 (hppa32_stack_align): Delete function.
10415
e6a8a7d2
EZ
104162004-02-27 Eli Zaretskii <eliz@elta.co.il>
10417
10418 * coffread.c (enter_linenos): Don't let rawptr reference memory
10419 outside linetab[]'s limits.
10420
1797a8f6
AC
104212004-02-27 Andrew Cagney <cagney@redhat.com>
10422
10423 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10424 inferior stack space - the stack needs to grow upwards.
10425 (hppa32_frame_align): New function.
10426 (hppa64_frame_align): Replace hppa_frame_align.
10427 (hppa_gdbarch_init): Update.
10428
2e4b5889
OF
104292004-02-26 Orjan Friberg <orjanf@axis.com>
10430
10431 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10432 (dwarf2-frame.h): Include.
10433 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10434 Remove static variables related to ABI setting.
10435 (struct gdbarch_tdep): Remove cris_abi member.
10436 (struct frame_extra_info): Remove.
10437 (cris_unwind_cache, stack_item): New structs.
10438 (cris_frame_unwind, cris_frame_base): New variables.
10439 (push_stack_item, pop_stack_item)
10440 (cris_frame_unwind_cache, cris_frame_this_id)
10441 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10442 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10443 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10444 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10445 (cris_reg_struct_has_addr): New functions.
10446 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10447 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10448 (cris_store_struct_return, cris_frameless_function_invocation)
10449 (cris_pop_frame, cris_skip_prologue_main)
10450 (cris_abi_original_store_return_value)
10451 (cris_abi_v2_store_return_value)
10452 (cris_abi_original_extract_return_value)
10453 (cris_abi_v2_extract_return_value)
10454 (cris_abi_original_reg_struct_has_addr)
10455 (cris_abi_v2_reg_struct_has_addr)
10456 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10457 (cris_push_return_address, cris_abi_update): Remove.
10458 (_initialize_cris_tdep): Remove ABI command.
10459 (cris_dump_tdep): Ditto.
8718a420 10460 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10461 Set store_return_value, extract_return_value, push_dummy_code,
10462 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10463 frame_unwind_append_sniffer, frame_base_set_default.
10464 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10465 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10466 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10467 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10468 init_extra_frame_info, frameless_function_invocation, frame_chain,
10469 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10470 dummy_write_sp.
8718a420 10471
6b9acc27
JJ
104722004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10473
10474 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10475 * valprint.c (print_hex_chars): Change from static to external.
10476 (print_char_chars): New function.
10477 * printcmd.c (print_scalar_formatted): For integer and enum types
10478 that are longer than LONGEST, perform processing via appropriate
10479 print_*_chars routines.
10480
a431654a
AC
104812004-02-26 Andrew Cagney <cagney@redhat.com>
10482
10483 * Makefile.in: Update dependencies.
10484 Changes from Ulrich Weigand,
10485 * s390-tdep.c: Include "dwarf2-frame.h".
10486 (s390_dwarf2_frame_init_reg): New function.
10487 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10488 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10489
fa8d40ab
JJ
104902004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10491
10492 * breakpoint.c (pending_break_support): New setting variable.
10493 (break_command_1): Account for pending_break_support setting
10494 when creating pending breakpoints.
10495 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10496 (_initialize_breakpoint): Add "set breakpoint pending" and
10497 "show breakpoint pending" commands.
10498
0dcd613f
AC
104992004-02-26 Andrew Cagney <cagney@redhat.com>
10500
10501 Fix PR i18n/1570.
10502 * charset.c (backslashable, backslashed, represented): Remove 'e'
10503 from list of escaped characters, not part of ISO-C.
10504
479272a3
JB
105052004-02-25 J. Brobecker <brobecker@gnat.com>
10506
10507 From Peter Schauer <schauer@pdf.de>:
10508 * tui/tui.c: Move system header includes after local includes.
10509 Fixes a build failure on solaris systems.
10510
7613d933
JB
105112004-02-25 J. Brobecker <brobecker@gnat.com>
10512
10513 * configure.in: Refine the previous change.
10514 * configure: Regenerate.
10515
9c1488cb
MK
105162004-02-25 Mark Kettenis <kettenis@gnu.org>
10517
10518 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10519 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10520 "amd64-tdep.h" instead of "x86-64-tdep.h".
10521 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10522 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10523 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10524 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10525 and "x86-64-tdep.c".
10526 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10527 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10528 and "x86-64-tdep.c".
10529 * amd64bsd-nat.c: Update copyright year.
10530 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10531 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10532 "x86-64-tdep.h".
10533 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10534 "x86-64-tdep.h".
10535 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10536 "x86-64-tdep.h".
10537 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10538 "x86-64-tdep.h".
10539 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10540 "x86-64-tdep.h".
10541 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10542 "x86-64-tdep.h".
8718a420 10543 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10544 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10545 * Makefile.in (amd64_linux_tdep_h): Renamed from
10546 x86_64_linux_tdep_h.
10547 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10548 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10549 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10550 (amd64obsd-tdep.o): Update dependencies.
10551 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10552 dependencies.
10553 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10554 dependencies.
10555 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10556 amd64-linux-nat.c amd64-linux-tdep.c.
10557 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10558 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10559 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10560 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10561 amd64-tdep.o and amd64-linux-tdep.o.
10562 (TM_FILE): Set to tm-linux64.h.
10563 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10564 (NAT_FILE): Set to nm-linux64.h.
10565 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10566 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10567 amd64-tdep.o.
10568 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10569 amd64-tdep.o.
10570 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10571 amd64-tdep.o.
10572
4b8dad4a
RM
105732004-02-25 Roland McGrath <roland@redhat.com>
10574
10575 * remote.c (remote_protocol_qPart_auxv): New variable.
10576 (init_all_packet_configs): Initialize it.
10577 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10578 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10579 (show_remote_cmd): Call it.
10580 (_initialize_remote): Initialize commands.
10581 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10582 service TARGET_OBJECT_AUXV requests.
10583
66745969
JB
105842004-02-25 J. Brobecker <brobecker@gnat.com>
10585
10586 * configure.in: Make sure that the wborder function is available.
10587 Otherwise, search for it in the cur_colr library.
10588 * configure: Regenerate.
10589
79508e1e
AC
105902004-02-25 Andrew Cagney <cagney@redhat.com>
10591
10592 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10593
571ee600
MK
105942004-02-25 Mark Kettenis <kettenis@gnu.org>
10595
10596 * config/i386/tm-x86-64linux.h: Tweak comments.
10597
2b1b322f 105982004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10599
10600 * MAINTAINERS: Add self to write-after-approval list.
10601
4d2acc65
AC
106022004-02-25 Andrew Cagney <cagney@redhat.com>
10603
4b8dad4a 10604 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10605 * cli/cli-script.c (execute_control_command): Unconditionally
10606 install a cleanup. Default "ret" to "invalid_control". Use
10607 "break" instead of "return" to escape from the switch.
10608
4cfcaf21
JB
106092004-02-24 J. Brobecker <brobecker@gnat.com>
10610
10611 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10612 with the lines macro defined in term.h on AiX.
10613 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10614 a collision with the label_width macro defined in term.h on AiX.
10615
54a5c8d8
KB
106162004-02-23 David Mosberger <davidm@hpl.hp.com>
10617
10618 Committed by Kevin Buettner <kevinb@redhat.com>.
10619
10620 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10621 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10622 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10623 instead of ia64_write_pc().
10624 * ia64-linux-tdep.c (regcache.h): Include.
10625 (ia64_linux_write_pc): New function.
4b8dad4a 10626
8a1dac83
RM
106272004-02-23 Roland McGrath <roland@redhat.com>
10628
10629 * auxv.c (info_auxv_command): Fix typos in error messages.
10630
90f90721
MK
106312004-02-23 Mark Kettenis <kettenis@gnu.org>
10632
8a1dac83 10633 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10634 (enum amd64_regnum): New.
10635 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10636 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10637 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10638 (X86_64_XMM1_REGNUM): Removed.
10639 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10640 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10641 prototypes for renamed functions.
10642 * x86-64-tdep.c: Fix typo.
10643 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10644 register numbers.
10645 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10646 Use constants from `enum amd64_regnum' for register numbers.
10647 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10648 (amd64_analyze_prologue, amd64_frame_cache,
10649 amd64_sigtramp_frame_cache): Use constants from `enum
10650 amd64_regnum' for register numbers.
10651 (amd64_supply_fpregset): Adjust for renamed functions.
10652 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10653 `enum amd64_regnum' for register numbers.
10654 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10655 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10656 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10657 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10658 (amd64_linux_fill_gregset): Adjust for renamed macros.
10659 (fetch_core_registers): Adjust for renamed functions.
10660 (amd64_linux_init_abi): Adjust for renamed functions.
10661 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10662 renamed functions.
10663 * amd64-nat.c: Adjust for renamed macros.
10664 * amd64bsd-nat.c (fetch_inferior_registers)
10665 (store_inferior_registers): Use constants from `enum amd64_regnum'
10666 for register numbers. Adjust for renamed variables.
10667 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10668 renamed variables.
10669 (_initialize_amd64fbsd_nat): Use constants from `enum
10670 amd64_regnum' for register numbers.
10671 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10672 `enum amd64_regnum' for register numbers.
10673 (amd64fbsd_init_abi): Adjust for renamed functions.
10674 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10675 `enum amd64_regnum' for register numbers.
10676 (amd64nbsd_init_abi): Adjust for renamed functions.
10677 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10678 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10679 `enum amd64_regnum' for register numbers.
10680 (amd64obsd_init_abi): Adjust for renamed functions.
10681 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10682
d5479188
JJ
106832004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10684
10685 * breakpoint.c (print_one_breakpoint): Do not output spaces
10686 after printing <PENDING> for a pending breakpoint.
10687
81cb7cc9
JJ
106882004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10689
10690 * printcmd.c (print_scalar_formatted): Initialize val_long
10691 to remove compiler warning message.
10692
cbdeadca
JJ
106932004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10694
10695 * defs.h (nquery, yquery): New prototypes.
10696 * breakpoint.c (break_command_1): Use new nquery interface.
10697 * utils.c (defaulted_query, nquery, yquery): New functions.
10698
da6bab63
AC
106992004-02-23 Andrew Cagney <cagney@redhat.com>
10700
2f690297
AC
10701 * hppa-tdep.c (hppa_frame_align): New function.
10702 (hppa32_push_dummy_call): New function.
10703 (hppa64_push_dummy_call): New function.
10704 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10705 disabled.
8a1dac83 10706
da6bab63
AC
10707 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10708 FIX_CALL_DUMMY when push_dummy_call is available.
10709 (call_function_by_hand, push_dummy_code): Ditto.
10710
abf9b42d
AC
107112004-02-22 Andrew Cagney <cagney@redhat.com>
10712
10713 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10714 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10715 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10716 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10717 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10718 call_dummy_location to ON_STACK.
10719
10fc94a4
MK
107202004-02-22 Mark Kettenis <kettenis@gnu.org>
10721
51433e4b
MK
10722 * x86-64-linux-tdep.c: Tweak comment.
10723 (amd64_linux_supply_gregset): Renamed from
10724 x86_64_linux_supply_gresget.
10725 (amd64_linux_fill_gregset): Renamed from
10726 x86_64_linux_fill_gregset.
10727 (fetch_core_registers): Adjust for renamed functions.
10728 (amd64_core_fns): Renamed from x86_64_core_fns.
10729 (amd64_linux_sigtramp_start): Renamed from
10730 x86_64_linux_sigtramp_start.
10731 (amd64_linux_pc_in_sigtramp): Renamed from
10732 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10733 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10734 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10735 (amd64_linux_sigcontext_addr): Renamed from
10736 x86_64_linux_sigcontext_addr.
10737 (amd64_linux_sc_reg_offset): Renamed from
10738 x86_64_linux_sc_reg_offset.
10739 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10740 Adjust for renamed functions and variables.
10741 (_initialize_amd64_linux_tdep): Renamed from
10742 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10743 variables.
10744 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10745 Adjust for renamed functions.
10746
430eaf2e
MK
10747 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10748 from x86_64_linux_gregset64_reg_offset.
10749 (amd64_linux_gregset32_reg_offset): Rename from
10750 x86_64_linux_gregset64_reg_offset.
10751 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10752 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10753 (amd64_linux_dr_set_control): Renamed from
10754 x86_64_linux_dr_set_control. Adjust for renamed functions.
10755 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10756 Adjust for renamed functions.
10757 (amd64_linux_dr_reset_addr): Renamed from
10758 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10759 (amd64_linux_dr_get_status): Renamed from
10760 x86_64_linux_dr_get_status. Adjust for renamed functions.
10761 (_initialize_amd64_linux_nat): Renamed from
10762 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10763 functions.
10764 * config/i386/nm-x86-64linux.h: Update copyright year.
10765 Adjust for renamed functions.
10766
10fc94a4
MK
10767 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10768 amd64fbsd_sigtramp_start.
10769 (amd64fbsd_sigtramp_end_addr): Renamed from
10770 amd64fbsd_sigtramp_end.
10771 (amd64fbsd_init_abi): Adjust for renamed variables.
10772 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10773 variables.
10774 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10775 amd64fbsd_sigtramp_start.
10776 (amd64fbsd_sigtramp_end_addr): Renamed from
10777 amd64fbsd_sigtramp_end.
10778
343af405
AC
107792004-02-22 Andrew Cagney <cagney@redhat.com>
10780
537987fc
AC
10781 * hppa-tdep.c (hppa32_return_value): New function.
10782 (hppa64_return_value): New function.
10783 (hppa_gdbarch_init): Set return_value; keep disabled.
10784
fad850b2
AC
10785 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10786 struct-return and inferior function call methods.
10787
26d08f08
AC
10788 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10789 "frame-base.h".
10790 (struct hppa_frame_cache): Define.
10791 (hppa_frame_cache, hppa_frame_this_id): New functions.
10792 (hppa_frame_prev_register): New function.
10793 (hppa_frame_unwind, hppa_frame_base): New variables.
10794 (hppa_frame_unwind_sniffer): New function.
10795 (hppa_frame_base_address, hppa_unwind_pc): New function.
10796 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10797 sniffer, and frame base sniffer; keep disabled.
10798 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10799 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10800
e7d7bd65
AC
10801 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10802 to predicates for "seriously old code".
10803
e963316f
AC
10804 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10805 runtime if(0).
10806
56132691
AC
10807 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10808 unsigned.
10809 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10810
343af405
AC
10811 * config/pa/tm-hppa.h: Update copyright.
10812 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10813 (deprecated_init_frame_pc_default): Delete declaration.
10814 (hppa_frame_init_saved_regs): Delete declaration.
10815 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10816 * hppa-tdep.c: Include "arch-utils.h".
10817 (hppa_gdbarch_init): Set deprecated init_frame_pc
10818 and deprecated frame_init_saved_regs.
10819 (hppa_frame_init_saved_regs): Make static.
10820
f5859b4d
MK
108212004-02-22 Mark Kettenis <kettenis@gnu.org>
10822
86f6f8e7 10823 Remove old 386BSD support.
cf7c5c23 10824 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10825 * configure.host: Remove i[34567]86-*-bsd*.
10826 * configure.tgt: Remove i[34567]86-*-bsd*.
10827 * i386b-nat.c: Removed.
10828 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
10829 (i386b-nat.o): Remove dependencies.
10830
86f6f8e7
MK
10831 * config/i386/i386bsd.mh: Removed.
10832 * config/i386/i386bsd.mt: Removed.
10833 * config/i386/nm-i386bsd.h: Removed.
10834 * config/i386/tm-i386bsd.h: Removed.
10835 * config/i386/xm-i386bsd.h: Removed.
10836
971218cd
MK
10837 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10838
7e654c37
MK
10839 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10840 (amd64fbsd_init_abi): Set link map offsets.
10841 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10842 (amd64nbsd_init_abi): Set link map offsets.
10843 * amd64obsd-tdep.c: Include "solib-svr4.h".
10844 (amd64obsd_init_abi): Set link map offsets.
10845 * i386fbsd-tdep.c: Include "solib-svr4.h".
10846 (i386fbsd_init_abi): Set link map offsets.
10847 * i386nbsd-tdep.c: Include "solib-svr4.h".
10848 (i386nbsdelf_init_abi): Set link map offsets.
10849 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10850 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10851 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10852 solib-legacy.o and core-aout.o. Reformat.
10853 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10854 solib-svr4.o, solib-legacy.o. Reformat.
10855 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10856 * config/i386/nbsdelf.mh: Reformat.
10857 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10858 solib-svr4.o, solib-legacy.o and corelow.o.
10859 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10860 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10861 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10862 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10863 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10864 (TM_FILE): Set to tm-fbsd.h.
10865 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10866 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10867 solib-svr4.o.
10868 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10869 solib-svr4.o.
10870 (TM_FILE): Set to nm-nbsd.h.
10871 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10872 Simplify shared library support. Don't include "elf/common.h".
10873 (SVR4_SHARED_LIBS): Don't define.
10874 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10875 "solib.h".
10876 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10877 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10878 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10879 Don't include "i386/tm-i386.h". Include "solib.h".
10880 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10881 Don't include "i386/tm-i386.h".
10882 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10883 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10884 Include "i386/xm-i386.h".
10885 (HOST_LONG_DOUBLE_FORMAT): Remove.
10886
5d93ae8c
MK
10887 Fix OpenBSD/i386 sigtramp recognition.
10888 * i386-tdep.h: Update copyright year.
10889 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10890 (i386bsd_sigtramp_end): New prototypes.
10891 (i386fbsd_sigtramp_start_addr): Renamed from
10892 i386fbsd_sigtramp_start.
10893 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10894 (i386obsd_sigtramp_start_addr): Renamed from
10895 i386obsd_sigtramp_start.
10896 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10897 * i386bsd-tdep.c: Update copyright year.
10898 (i386bsd_pc_in_sigtramp): Make public.
10899 * i386fbsd-nat.c: Update copyright year.
10900 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10901 * i386fbsd-tdep.c: Update copyright year.
10902 (i386fbsd_sigtramp_start_addr): Renamed from
10903 i386fbsd_sigtramp_start.
10904 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10905 (i386fbsdaout_init_abi): Adjust for renamed variables.
10906 * i386obsd-nat.c: Update copyright year.
10907 (_initialize_i386obsd_nat): Adjust for renamed variables.
10908 * i386obsd-tdep.c: Include "target.h".
10909 (i386obsd_page_size): New variable.
10910 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10911 (i386obsd_sigtramp_end): New functions.
10912 (i386obsd_sigtramp_start_addr): Renamed from
10913 i386obsd_sigtramp_start.
10914 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10915 (i386obsd_init_abi): Adjust for renamed variables. Set
10916 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10917 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10918
84d04465
MK
10919 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10920 trampoline change in OpenBSD kernel.
10921
b053aceb
MK
10922 * amd64-nat.c: Update copyright year.
10923 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10924 architecture from REGCACHE.
10925
f5859b4d
MK
10926 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10927 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10928
e4bbbda8
MK
109292004-02-21 Mark Kettenis <kettenis@gnu.org>
10930
ba361932
MK
10931 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10932 i[34567]86-*-openbsd3.[0-3].
10933 * config/i386/obsdaout.mh: New file.
10934
d3e48264
MK
10935 * config/i386/obsd.mh (MH_FLAGS): Remove.
10936
60a6eeb6
MK
10937 Fix PR build/1549.
10938 * i386obsd-tdep.c: Update copyright years. Include
10939 "solib-svr4.h".
10940 (i386obsd_init_abi): Don't set regset_from_core_section here.
10941 (i386obsd_aout_init_abi): New function. Set
10942 regset_from_core_section here.
10943 (i386obsd_elf_init_abi): New function.
10944 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10945 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10946 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10947 (TM_FILE): Set to tm-nbsd.h.
10948
10949 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10950 solib-sunos.o.
10951
e4bbbda8
MK
10952 * solib-svr4.h: Update copyright year.
10953 (svr4_ilp32_fetch_link_map_offsets)
10954 (svr4_lp64_fetch_link_map_offsets): New prototype.
10955 * solib-svr4.c: Update copyright year.
10956 (svr4_ilp32_fetch_link_map_offsets)
10957 (svr4_lp64_fetch_link_map_offsets): New function.
10958
f6fe98ef
DJ
109592004-02-20 Daniel Jacobowitz <drow@mvista.com>
10960
10961 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10962 to the partial symbol table.
10963
589ca796
JB
109642004-02-20 J. brobecker <brobecker@gnat.com>
10965
10966 * PROBLEMS: Add description of problem documented under gdb/1560.
10967
2031c21a
MK
109682004-02-20 Mark Kettenis <kettenis@gnu.org>
10969
30b344b1
MK
10970 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10971 comments.
10972 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10973 functions.
10974 (amd64obsd_init_abi): Reorder initializations. Use
10975 amd64obsd_r_reg_offset to initialize the general-purpose register
10976 set details. Set regset_from_core_section.
10977 (_initialize_amd64obsd_tdep): Rename from
10978 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10979 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10980 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10981
2031c21a
MK
10982 * NEWS (New native configurations): Mention OpenBSD/alpha.
10983 * configure.tgt: Add alpha*-*-openbsd*.
10984 * configure.host: Add alpha*-*-openbsd*.
10985 * alphanbsd-tdep.c: Update copyright year.
10986 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10987
42471775
AC
109882004-02-20 Andrew Cagney <cagney@redhat.com>
10989
10990 Fix PR tdep/1372.
10991 * configure.tgt: Delete target "none-*-*".
10992 * configure.host: Delete host "none-*-*".
10993 * config/none/none.mh: Delete file.
10994 * config/none/none.mt: Delete file.
10995 * config/none/xm-none.h: Delete file.
10996 * config/none/tm-none.h: Delete file.
10997 * config/none/nm-none.h: Delete file.
10998
960ccd7d
FF
109992004-02-19 Fred Fish <fnf@redhat.com>
11000
11001 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11002 cache->uses_fp prior to setting it.
11003
5f883edd
FF
110042004-02-19 Fred Fish <fnf@redhat.com>
11005
11006 Fix for PR breakpoint/1558.
11007 * sh-tdep.c (IS_JSR): New macro.
11008 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11009
f98c22d5
JB
110102004-02-19 Jim Blandy <jimb@redhat.com>
11011
11012 * findvar.c (value_from_register): Doc fix.
11013
95051d27
JJ
110142004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11015
11016 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11017 type being greater than sizeof of host's LONGEST. Always use
11018 unpack_long() unless format 'f' chosen.
11019
ccefbec3
EZ
110202004-02-19 Joel Brobecker <brobecker@gnat.com>
11021
11022 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11023
ccefbec3
EZ
11024 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11025 contains a symbol wich is the best, non-exact match for the given
11026 pc. Update comments.
11027
110282004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11029
2ede629f
EZ
11030 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11031 macro, which was part of the now removed Mach 3 port.
11032 * utils.c (request_quit): Ditto.
11033
567ee972
MK
110342004-02-18 Mark Kettenis <kettenis@gnu.org>
11035
11036 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11037 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11038
50cca7bb
MK
110392004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11040
11041 Committed by Mark Kettenis <kettenis@gnu.org>.
11042
11043 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11044 Define.
11045
226361c4
AC
110462004-02-18 Andrew Cagney <cagney@redhat.com>
11047
11048 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11049 CONFIG_INSTALL and CONFIG_UNINSTALL.
11050 * configure: Re-generate.
11051 * interps.h (INTERP_TUI): Define.
11052 * Makefile.in: Update dependencies.
11053 (TUI): New macro.
11054 (tui-main.o): Specify dependencies.
11055 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11056 * tui/tui-main.c: New file.
11057
49cfa46f
MK
110582004-02-18 Mark Kettenis <kettenis@gnu.org>
11059
e2879ccb
MK
11060 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11061 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11062 dependencies.
11063 * configure.host: Add x86_64-*-openbsd*.
11064 * configure.tgt: Add x86_64-*-openbsd*.
11065 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11066
c43f4bec
MK
11067 * tui/tui.c: Don't include <malloc.h>.
11068
09ae75b6
MK
11069 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11070 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11071 amd64nbsd-tdep.c.
11072
49cfa46f 11073 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11074 static. Remove extraneous whitespace.
49cfa46f
MK
11075 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11076 static.
11077
05957fdb
JB
110782004-02-17 Jim Blandy <jimb@redhat.com>
11079
11080 * findvar.c (value_from_register): Doc fix.
11081
d0f54f9d
JB
110822004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11083
11084 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11085
8a1dac83 11086 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11087 CORE_ADDR as type for selectors. Correct types for GNU run time
11088 message lookup function to use double indirection.
11089 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11090 * objc-lang.h (lookup_child_selector): Adapt prototype.
11091
9cbd5950
JB
11092 * s390-nat.c (SUBOFF): New macro.
11093 (supply_gregset, fill_gregset): Use it to handle debugging
11094 of 32-bit exectuables running under a 64-bit kernel.
11095 * s390-tdep.c: Include "solib-svr4.h".
11096 (s390_svr4_fetch_link_map_offset): New function.
11097 (s390x_svr_fetch_link_map_offset): Likewise.
11098 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11099 * Makefile.in (s390-tdep.o): Update dependencies.
11100
a8c99f38
JB
11101 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11102 "frame-unwind.h".
11103 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11104 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11105 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11106 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11107 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11108 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11109 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11110 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11111 (struct frame_extra_info): Remove.
11112 (s390_memset_extra_info): Remove.
f73b1eff
JB
11113 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11114 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11115 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11116 (is_rse): Renamed to ...
11117 (is_rsy): ... this. Support long displacements.
11118 (is_rxe): Renamed to ...
11119 (is_rxy): ... this. Support long displacements.
11120 (compute_x_addr): Support long displacements.
11121 (struct s390_prologue_data): New data type.
11122 (s390_on_stack): Change API to use struct s390_prologue_data.
11123 (s390_store): Reimplement.
11124 (s390_load): New function.
11125 (s390_get_signal_frame_info): Remove.
11126 (s390_get_frame_info): Remove, replace by ...
11127 (s390_analyze_prolog): ... this new function.
11128 (s390_check_function_end): Remove.
11129 (s390_function_start): Remove.
11130 (s390_frameless_function_invokation): Remove.
11131 (s390_is_sigreturn): Remove.
11132 (s390_init_frame_pc_first): Remove.
11133 (s390_init_frame_extra_info): Remove.
11134 (s390_frame_init_saved_regs): Remove.
11135 (s390_frame_saved_pc_nofix): Remove.
11136 (s390_frame_saved_pc): Remove.
11137 (s390_frame_chain): Remove.
11138 (s390_fp_regnum, s390_read_fp): Remove.
11139 (s390_pop_frame_regular, s390_pop_frame): Remove.
11140 (s390_saved_pc_after_call): Remove.
11141 (s390_skip_prologue): Reimplement.
11142 (s390_in_function_epilogue_p): Support long displacements.
11143 (struct s390_unwind_cache): New data structure.
11144 (s390_frame_unwind_cache): New function.
11145 (s390_prologue_frame_unwind_cache): Likewise.
11146 (s390_backchain_frame_unwind_cache): Likewise.
11147 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11148 (s390_frame_unwind): Define.
11149 (s390_frame_sniffer): New function.
11150 (struct s390_pltstub_unwind_cache): New data structure.
11151 (s390_pltstub_frame_unwind_cache): New function.
11152 (s390_pltstub_frame_this_id): Likewise.
11153 (s390_pltstub_frame_prev_register): Likewise.
11154 (s390_pltstub_frame_unwind): Define.
11155 (s390_pltstub_frame_sniffer): New function.
11156 (struct s390_sigtramp_unwind_cache): New data structure.
11157 (s390_sigtramp_frame_unwind_cache): New function.
11158 (s390_sigtramp_frame_this_id): Likewise.
11159 (s390_sigtramp_frame_prev_register): Likewise.
11160 (s390_sigtramp_frame_unwind): Define.
11161 (s390_sigtramp_frame_sniffer): New function.
11162 (s390_frame_base_address, s390_local_base_address): New functions.
11163 (s390_frame_base): Define.
11164 (s390_unwind_pc, s390_unwind_sp): New function.
11165 (s390_push_dummy_call): Use new frame base location.
11166 (s390_unwind_dummy_id): Likewise.
11167 (s390_gdbarch_init): Remove calls to:
11168 set_gdbarch_frameless_function_invocation,
11169 set_gdbarch_deprecated_init_frame_pc,
11170 set_gdbarch_deprecated_frame_chain,
11171 set_gdbarch_deprecated_frame_init_saved_regs,
11172 set_gdbarch_deprecated_pop_frame,
11173 set_gdbarch_deprecated_init_extra_frame_info,
11174 set_gdbarch_deprecated_init_frame_pc_first,
11175 set_gdbarch_deprecated_target_read_fp,
11176 set_gdbarch_deprecated_frame_saved_pc,
11177 set_gdbarch_deprecated_saved_pc_after_call,
11178 set_gdbarch_deprecated_fp_regnum.
11179 Add calls to:
11180 set_gdbarch_in_solib_call_trampoline,
11181 frame_unwind_append_sniffer,
11182 frame_base_set_default,
11183 set_gdbarch_unwind_pc,
11184 set_gdbarch_unwind_sp.
11185 * Makefile.in (s390-tdep.o): Update dependencies.
11186
b0cf273e
JB
11187 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11188 (S390_STACK_FRAME_OVERHEAD): Remove.
11189 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11190 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11191 (s390_promote_integer_argument): Remove.
11192 (s390_cannot_extract_struct_value_address): Remove.
11193 (s390_use_struct_convention, s390_store_struct_return): Remove.
11194 (s390_extract_return_value, s390_store_return_value): Remove.
11195 (s390_return_value_convention, s390_return_value): New functions.
11196 (is_float_singleton): Handle typedefs.
8a1dac83 11197 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11198 Remove, replace by ...
11199 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11200 s390_function_arg_integer): ... these new functions.
11201 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11202 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11203 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11204 Fill in tdep->abi.
11205 Remove calls to:
11206 set_gdbarch_deprecated_store_struct_return,
11207 set_gdbarch_deprecated_extract_return_value,
11208 set_gdbarch_deprecated_store_return_value,
11209 set_gdbarch_use_struct_convention,
11210 set_gdbarch_extract_struct_value_address,
11211 set_gdbarch_deprecated_pc_in_call_dummy,
11212 set_gdbarch_deprecated_push_arguments,
11213 set_gdbarch_deprecated_save_dummy_frame_tos,
11214 set_gdbarch_deprecated_push_return_address,
11215 set_gdbarch_deprecated_sizeof_call_dummy_words,
11216 set_gdbarch_deprecated_call_dummy_words,
11217 set_gdbarch_deprecated_dummy_write_sp.
11218 Add calls to:
11219 set_gdbarch_push_dummy_call,
11220 set_gdbarch_unwind_dummy_id,
11221 set_gdbarch_return_value.
8a1dac83 11222
e1457d83
JB
11223 * config/s390/nm-linux.h: Update comments.
11224 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11225 (STOPPED_BY_WATCHPOINT): Redefine.
11226 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11227 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11228 (s390_stopped_by_watchpoint): Likewise.
11229 (watch_area_cnt): Remove.
11230 * s390-nat.c: Update comments.
11231 (watch_area): Remove typedef.
11232 Global replace watch_area by struct watch_area.
11233 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11234 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11235 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11236 (s390_fix_watch_points): Remove pid argument,
11237 use s390_inferior_tid. Recompute area spanned by watchpoints.
11238 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11239 argument. Reimplement.
11240
d0f54f9d
JB
11241 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11242 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11243 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11244 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11245 core-regset.o.
11246 * config/s390/s390x.mt: Remove.
11247 * config/s390/tm-s390.h: Remove.
11248 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11249 (TARGET_ELF64): Remove.
11250 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11251 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11252 s390*-*-* case; always set gdb_target to s390.
11253 * regformats/reg-s390.dat: Remove control registers.
11254 * regformats/reg-s390x.dat: Likewise.
11255 * s390-tdep.h: New file.
8a1dac83 11256 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11257 Include "inferior.h" and "s390-tdep.h".
11258 Remove private definition of offsetof.
11259 (s390_register_u_addr): Remove.
11260 (regmap_gregset, regmap_fpregset): Define.
11261 (supply_gregset, fill_gregset): Reimplement.
11262 (supply_fpregset, fill_fpregset): Likewise.
11263 (s390_inferior_tid): New function.
11264 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11265 (fetch_inferior_registers, store_inferior_registers): Likewise.
11266 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11267 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11268 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11269 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11270 (struct gdbarch_tdep): Define.
11271 (struct s390_register_info): Define.
11272 (s390_register_info): New variable.
11273 (s390_register_name): Reimplement.
11274 (s390_register_type): New function.
11275 (s390_register_raw_size, s390x_register_raw_size): Remove.
11276 (s390_cannot_fetch_register): Remove.
11277 (s390_register_byte): Remove.
11278 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11279 (s390_dwarf_regmap): New variable.
11280 (s390_dwarf_reg_to_regnum): New function.
11281 (s390_stab_reg_to_regnum): Remove.
11282 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11283 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11284 (s390_convert_register_p): Likewise.
11285 (s390_register_to_value, s390_value_to_register): Likewise.
11286 (s390_register_reggroup_p): Likewise.
11287 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11288 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11289 (s390_supply_regset, s390_regset_from_core_section): New functions.
11290 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11291 (S390_FPR_SIZE): Likewise.
11292 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11293 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11294 (S390_NUM_GPRS): Move here from tm-s390.h.
11295 (S390_NUM_FPRS): Likewise.
11296 (s390_in_function_epilogue_p): New function.
11297 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11298 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11299 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11300 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11301 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11302 Remove calls to:
11303 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11304 set_gdbarch_deprecated_max_register_virtual_size,
11305 set_gdbarch_deprecated_register_byte,
d0f54f9d 11306 set_gdbarch_cannot_fetch_register,
8a1dac83 11307 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11308 set_gdbarch_deprecated_register_size,
11309 set_gdbarch_deprecated_register_raw_size,
11310 set_gdbarch_deprecated_register_virtual_size,
11311 set_gdbarch_deprecated_register_virtual_type,
11312 set_gdbarch_deprecated_register_bytes.
11313 Add calls to:
11314 set_gdbarch_num_pseudo_regs,
11315 set_gdbarch_register_type,
11316 set_gdbarch_convert_register_p,
11317 set_gdbarch_register_to_value,
11318 set_gdbarch_value_to_register,
11319 set_gdbarch_register_reggroup_p,
11320 set_gdbarch_regset_from_core_section,
11321 set_gdbarch_pseudo_register_read,
11322 set_gdbarch_pseudo_register_write,
11323 set_gdbarch_in_function_epilogue_p.
11324 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11325 (s390_tdep_h): New variable.
11326
8cfe231d
JB
113272004-02-17 Jim Blandy <jimb@redhat.com>
11328
4589a601
JB
11329 * findvar.c (value_from_register): If the type has no length, just
11330 return an acceptable value --- don't report an internal error.
11331
8cfe231d
JB
11332 * stabsread.c (read_type): If we find any type numbers that are
11333 forward references, complain if the references aren't resolved by
11334 the time we're finished reading.
11335 (cleanup_undefined_types): Make error message more appropriate for
11336 a complaint.
11337
5bf0017e
EZ
113382004-02-17 Elena Zannoni <ezannoni@redhat.com>
11339
9d62932d
EZ
11340 * Makefile.in (defs_h): Remove dependency on progress_h.
11341 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11342 progress.h.
11343 * main.c (captured_main): Delete use of START_PROGRESS and
11344 END_PROGRESS.
11345
113462004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11347
5bf0017e
EZ
11348 * objfiles.c (terminate_minimal_symbol_table): Add back
11349 initialization of MSYMBOL_TYPE.
11350
9fc9f5e2
AC
113512004-02-17 David Mosberger <davidm@hpl.hp.com>
11352
11353 Committed by Andrew Cagney.
11354 * Makefile.in (ia64_tdep_h): New macro.
11355 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11356 (ia64-tdep.o): Likewise.
11357 * ia64-tdep.h: New file.
11358 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11359 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11360 (ia64_aix_sigcontext_register_address): Likewise.
11361 (ia64_linux_getunwind_table): Delete declaration.
11362 * ia64-linux-tdep.c: Likewise.
11363
76cd2bd9
CV
113642004-02-17 Corinna Vinschen <vinschen@redhat.com>
11365
11366 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11367 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11368 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11369
634aa483
AC
113702004-02-17 Andrew Cagney <cagney@redhat.com>
11371
11372 * symtab.c (skip_prologue_using_sal): New function.
11373 * symtab.h (skip_prologue_using_sal): Declare.
11374 * frv-tdep.c: Include "symtab.h".
11375 (skip_prologue_using_sal): Delete function.
11376 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11377 * rs6000-tdep.c (refine_prologue_limit): Mention
11378 skip_prologue_using_sal.
11379 * ia64-tdep.c (refine_prologue_limit): Ditto.
11380 * Makefile.in: Update dependencies.
11381
113822004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11383
39ce7b3f
AC
11384 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11385 START_INFERIOR_TRAPS_EXPECTED.
11386 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11387 START_INFERIOR_TRAPS_EXPECTED.
11388 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11389 Delete macro.
11390 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11391 macro, moved to "nm-osf.h". Update copyright.
11392 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11393 update copyright.
11394
19772a2c
AC
11395 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11396 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11397 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11398 frameless_look_for_prologue.
11399 * frame.h (legacy_frameless_look_for_prologue): Rename
11400 frameless_look_for_prologue.
11401 * gdbarch.h, gdbarch.c: Re-generate.
11402 * sh64-tdep.c (sh64_gdbarch_init): Update.
11403 * sh-tdep.c (sh_gdbarch_init): Update.
11404 * s390-tdep.c (s390_gdbarch_init): Update.
11405 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11406 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11407 * m68k-tdep.c (m68k_gdbarch_init): Update.
11408 (delta68_frame_args_address): Update.
11409 * m32r-tdep.c (m32r_gdbarch_init): Update.
11410 * hppa-tdep.c (hppa_gdbarch_init): Update.
11411 * h8300-tdep.c (h8300_gdbarch_init): Update.
11412 * frv-tdep.c (frv_gdbarch_init): Update.
11413 (frv_frameless_function_invocation): Update.
11414 * cris-tdep.c (cris_gdbarch_init): Update.
11415 (cris_frameless_function_invocation): Update.
11416 * avr-tdep.c (avr_gdbarch_init): Update.
11417 * arm-tdep.c (arm_gdbarch_init): Update.
11418 * stack.c (frame_info): Update, call predicate.
11419 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11420 * frame.c (legacy_get_prev_frame): Update, call predicate..
11421 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11422 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11423 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11424 invocation.
11425 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11426 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11427 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11428
11429 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11430 function.
11431
7dcaac91
DJ
114322004-02-16 Daniel Jacobowitz <drow@mvista.com>
11433
11434 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11435 initializations.
11436
88289b6e
AC
114372004-02-16 Andrew Cagney <cagney@redhat.com>
11438
11439 * tui/tui-windata.c: Include "gdb_string.h".
11440 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11441 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11442 * Makefile.in: Update dependencies.
11443
9f976b41
DJ
114442004-02-16 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11447 * infrun.c: Include "gdb_assert.h".
11448 (singlestep_ptid, saved_singlestep_ptid)
11449 (stepping_past_singlestep_breakpoint): New variables.
11450 (resume): Set singlestep_ptid. Check for singlestep thread
11451 hop.
11452 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11453 (handle_inferior_event): Handle singlestep thread hop.
11454
c324d747
AC
114552004-02-16 Andrew Cagney <cagney@redhat.com>
11456
f090b9b1
AC
11457 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11458 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11459 (dwarf2_frame_init_reg): Ditto.
11460
fd33e6cb
AC
11461 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11462 suggested by Joshua Neuheisel
11463
c324d747
AC
11464 * configure.in: Always check for curses, including pdcurses.
11465 Warn, instead of error, when no curses are found. Enable TUI when
11466 curses is available.
11467 * configure: Re-generate.
11468
b66ba949
CV
114692004-02-16 Corinna Vinschen <vinschen@redhat.com>
11470
11471 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11472 sh_sh4_register_convert_to_virtual.
11473 (sh_register_convert_to_raw): Rename from
11474 sh_sh4_register_convert_to_raw.
11475 (sh_pseudo_register_read): Accomodate above name change.
11476 (sh_pseudo_register_write): Ditto.
11477
b58cbbf2
CV
114782004-02-16 Corinna Vinschen <vinschen@redhat.com>
11479
11480 * sh-tdep.c (sh_generic_register_name): Remove.
11481 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11482
5929a910
AC
114832004-02-15 Andrew Cagney <cagney@redhat.com>
11484
4566dfcf
AC
11485 * configure.in (build_warnings): Add -Wunused-function.
11486 * configure: Re-generate.
11487
db11ed55
AC
11488 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11489 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11490
46ac7a5d
AC
11491 * procfs.c (procfs_init_inferior): Assume that
11492 START_INFERIOR_TRAPS_EXPECTED is defined.
11493 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11494 * config/ns32k/tm-nbsd.h: Delete file,
11495 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11496
ba801595
AC
11497 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11498 * config/vax/tm-vax.h: Delete file.
11499
5929a910
AC
11500 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11501 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11502 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11503 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11504 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11505 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11506 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11507
8f22cb90
MK
115082004-02-15 Mark Kettenis <kettenis@gnu.org>
11509
11510 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11511 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11512 (struct dwarf2_frame_ops): New.
11513 (dwarf2_frame_default_init_reg): New function, based on
11514 dwarf2_frame_init_reg.
11515 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11516 (dwarf2_frame_init_reg): Call architecture-specific function.
11517 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11518 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11519 instead of dwarf2_frame_data.
11520 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11521 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11522
8132723e
AC
115232004-02-15 Andrew Cagney <cagney@redhat.com>
11524
046a4708
AC
11525 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11526 register_gdbarch_swap.
11527 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11528 * f-lang.c (_initialize_f_language): Update, use
11529 DEPRECATED_REGISTER_GDBARCH_SWAP.
11530 * remote.c (_initialize_remote): Ditto.
11531 * regcache.c (_initialize_regcache): Ditto.
11532 * parse.c (_initialize_parse): Ditto.
11533 * infrun.c (_initialize_infrun): Ditto.
11534 * mi/mi-main.c (_initialize_mi_main): Ditto.
11535 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11536
549c1eea
AC
11537 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11538 poking .cacheable directly.
11539 * symfile.c (symfile_bfd_open): Ditto.
11540
0c0b39de
AC
11541 * Makefile.in: Update all dependencies.
11542
8132723e
AC
11543 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11544 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11545 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11546 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11547 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11548
b9d26eb9
AC
115492004-02-14 Andrew Cagney <cagney@redhat.com>
11550
8e1f669a
AC
11551 * arch-utils.c (legacy_convert_register_p): Check
11552 DEPRECATED_REGISTER_CONVERTIBLE_P.
11553 * findvar.c (value_of_register): Ditto.
11554
cd0bfa36
AC
11555 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11556 * gdbarch.h, gdbarch.c: Re-generate.
11557 * arch-utils.c (deprecated_register_convertible_not): Delete.
11558 * arch-utils.h (deprecated_register_convertible_not): Delete.
11559 * mi/mi-main.c (get_register): Update. Update copyright.
11560 * infcmd.c (default_print_registers_info): Update.
11561
b9d26eb9
AC
11562 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11563 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11564 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11565 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11566 * frame.c (deprecated_get_next_frame_hack): Delete function.
11567 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11568 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11569 Update.
11570 * infcall.c (call_function_by_hand): Update.
11571
9ab9195f
EZ
115722004-02-14 Elena Zannoni <ezannoni@redhat.com>
11573
11574 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11575 from here...
9ab9195f
EZ
11576 * objfiles.c (init_entry_point_info, entry_point_address):..to
11577 here.
11578 * symfile.h (init_entry_point_info, entry_point_address): Remove
11579 prototypes.
11580 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11581 prototypes.
9ab9195f
EZ
11582 * cris-tdep.c: Remove include of symfile.h. Add include of
11583 objfiles.h.
11584 * infcall.c: Ditto.
11585 * mcore-tdep.c: Ditto.
11586 * mn10300-tdep.c: Ditto.
11587 * sh64-tdep.c: Ditto.
11588 * v850-tdep.c: Ditto.
11589 * arm-tdep.c: Remove include of symfile.h.
11590 * blockframe.c: Ditto.
11591 * coffread.c: Ditto.
11592 * dbxread.c: Ditto.
11593 * dwarf2read.c: Ditto.
11594 * dwarfread.c: Ditto.
8a1dac83 11595 * frv-tdep.c: Ditto.
9ab9195f
EZ
11596 * ia64-tdep.c: Ditto.
11597 * mdebugread.c: Ditto.
11598 * mipsread.c: Ditto.
8a1dac83 11599 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11600 * s390-tdep.c: Ditto.
11601 * sh-tdep.c: Ditto.
8a1dac83 11602 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11603 * gdbarch.sh: Remove include of symfile.h.
11604 * gdbarch.c: Regenerate.
11605 * solib-irix.c (enable_break): Use entry_point_address().
11606 Add comment about include file.
11607 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11608 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11609 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11610 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11611 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11612 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11613
c4c5b7ba
AC
116142004-02-13 Andrew Cagney <cagney@redhat.com>
11615
11616 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11617 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11618 copyright.
11619 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11620
3e7879de
FF
116212004-02-12 Fred Fish <fnf@redhat.com>
11622
11623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11624 set_gdbarch_store_return_value.
11625
6a7760b6
AC
116262004-02-12 Andrew Cagney <cagney@redhat.com>
11627
11628 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11629 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11630 (interrupt_query): Ditto.
11631 (ofunc): Delete unused variable.
11632 * cris-tdep.c (cris_abi): Delete unused function.
11633 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11634 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11635 (cris_get_asr_quick_shift_steps): Ditto.
11636 (cris_skip_prologue_frameless_p): Ditto.
11637 * arm-tdep.c (arm_push_return_address): Delete unused function.
11638 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11639 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11640 * s390-tdep.c (s390_function_start): Delete unused function.
11641
31687c3c
AC
116422004-02-12 Andrew Cagney <cagney@redhat.com>
11643
11644 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11645 gdbarch.h, gdbarch.c: Re-generate.
11646 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11647 to generic_prologue_frameless_p.
11648 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11649 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11650
6de918a6
DJ
116512004-02-11 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * mips-linux-tdep.c: Include "frame.h".
11654 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11655 (mips_linux_skip_resolver): New functions.
11656 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11657 and set_gdbarch_in_solib_call_trampoline.
11658 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11659 to after set_gdbarch_in_solib_return_trampoline. Only set the
11660 solib hooks to mips16 functions if the OS ABI is unknown.
11661 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11662 including "config/tm-linux.h".
11663 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11664 * Makefile.in (mips-linux-tdep.o): Update.
11665
87b3ede8
DC
116662004-02-11 David Carlton <carlton@kealia.com>
11667
11668 * linespec.c (decode_compound): Only look for a class symbol when
11669 considering all but the rightmost component.
11670
5979bc46
AC
116712004-02-11 Andrew Cagney <cagney@redhat.com>
11672
11673 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11674 abi code are are separatly grouped.
11675
5867a2fb
AC
116762004-02-11 Andrew Cagney <cagney@redhat.com>
11677
11678 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11679 * gdbarch.h, gdbarch.c: Re-generate.
11680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11681 * v850-tdep.c (v850_gdbarch_init): Update.
11682 * sh64-tdep.c (sh64_gdbarch_init): Update.
11683 * sh-tdep.c (sh_gdbarch_init): Update.
11684 * s390-tdep.c (s390_gdbarch_init): Update.
11685 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11686 * mips-tdep.c (mips_gdbarch_init): Update.
11687 * mcore-tdep.c (mcore_gdbarch_init): Update.
11688 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11689 * m32r-tdep.c (m32r_gdbarch_init): Update.
11690 * ia64-tdep.c (ia64_gdbarch_init): Update.
11691 * hppa-tdep.c (hppa_gdbarch_init): Update.
11692 * h8300-tdep.c (h8300_gdbarch_init): Update.
11693 * frv-tdep.c (frv_gdbarch_init): Update.
11694 * d10v-tdep.c (d10v_gdbarch_init): Update.
11695 * cris-tdep.c (cris_gdbarch_init): Update.
11696 * avr-tdep.c (avr_gdbarch_init): Update.
11697 * arm-tdep.c (arm_gdbarch_init): Update.
11698 * alpha-tdep.c (alpha_gdbarch_init): Update.
11699
026a72f8
CV
117002004-02-11 Corinna Vinschen <vinschen@redhat.com>
11701
11702 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11703 comma.
11704 (sh_sh4al_dsp_register_name): Ditto.
11705
3903d437
AC
117062004-02-10 Andrew Cagney <cagney@redhat.com>
11707
11708 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11709 (mips_init_frame_pc_first): Delete function.
11710 (mips_frame_saved_pc): Delete function.
11711 (mips_frame_chain): Delete function.
11712 (mips_init_extra_frame_info): Delete function.
11713 (mips_xfer_register): Delete unused variable "reg".
11714 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11715 (mips_n32n64_return_value): Delete unused variable "reg".
11716 (mips_n32n64_return_value): Delete unused variable "pos".
11717 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11718 (mips_o32_return_value): Delete unused variable "pos".
11719 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11720 (mips_print_fp_register): Delete unused variable "namelen"
11721 (mips_print_fp_register): Delete unused variable "flt2"
11722 (get_frame_pointer): Delete function.
11723 (cached_proc_desc): Delete static variable.
11724 (mips_pop_frame): Delete function.
11725 (mips_find_saved_regs): Delete function.
11726 (mips_get_saved_register): Delete function.
11727 (mips_saved_pc_after_call): Delete function.
11728 (SIGFRAME_BASE): Delete macro.
11729 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11730 (SIGFRAME_PC_OFF): Delete macro.
11731 (SIGFRAME_REGSAVE_OFF): Delete macro.
11732 (mips_dump_tdep): Do not print deleted macro definitions.
11733
b9fb98bd
AC
117342004-02-10 Andrew Cagney <cagney@redhat.com>
11735
11736 * Makefile.in (SFILES): Remove explictly listed tui files.
11737 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11738
78ced177 117392004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11740
78ced177
JJ
11741 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11742 to use paddr functions to format ia64 addresses and long values.
11743 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11744 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11745 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11746 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11747 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11748
6a83354a
AC
117492004-02-10 Andrew Cagney <cagney@redhat.com>
11750
11751 * defs.h: Do not include "tui.h".
11752 * gdb_curses.h: New file.
11753 * tui/tui-hooks.h: New file.
11754 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11755 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11756 (tui_initialize_io): Delete declaration.
11757 (tui_initialize_readline: Delete redundant declaration.
11758 (struct tui_point): Delete definition.
11759 * tui/tui-data.h (struct tui_point): Define.
11760 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11761 * utils.c: Include "tui/tui.h".
11762 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11763 * printcmd.c [TUI]: Include "tui/tui.h".
11764 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11765 * tui/tui-command.c: Include "gdb_curses.h".
11766 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11767 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11768 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11769 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11770 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11771 * Makefile.in: Update all dependencies.
11772 (tui_hooks_h, gdb_curses_h): Define.
11773 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11774
997470ef
EZ
117752004-02-10 Elena Zannoni <ezannoni@redhat.com>
11776
11777 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11778 auxf2. Add comments about some other rarely used fields.
11779
4ff2cc4d
AC
117802004-02-10 Andrew Cagney <cagney@redhat.com>
11781
11782 * Makefile.in (init.c): Fix script removing duplicates. Problem
11783 reported by Peter Schauer.
11784
1ab21617
EZ
117852004-02-09 Elena Zannoni <ezannoni@redhat.com>
11786
11787 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11788 obstack_specify_allocation.
11789 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11790 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11791 (allocate_rt_common_objfile): Ditto.
11792 * symfile.c (reread_symbols): Ditto.
11793 * gdb_obstack.h: Add comment.
11794
17763fd9
EZ
117952004-02-09 Elena Zannoni <ezannoni@redhat.com>
11796
11797 * linespec.c (decode_line_1, locate_first_half)
11798 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11799 commented out code.
11800
ec5cdd75
DJ
118012004-02-09 Daniel Jacobowitz <drow@mvista.com>
11802
11803 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11804 obstack_free.
11805
43b54b88
AC
118062004-02-09 Andrew Cagney <cagney@redhat.com>
11807
11808 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11809 fails, try find_pc_section. Fix PR c++/1267.
11810 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11811 instead of find_pc_mapped_section.
11812 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11813 not default to the section containing PC. Fix PR symtab/1519.
11814
edfae063
AC
118152004-02-09 Andrew Cagney <cagney@redhat.com>
11816
11817 * Makefile.in (mips-tdep.o): Update dependencies.
11818 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11819 "trad-frame.h".
11820 (mips_unwind_pc): Return the pseudo PC register.
11821 (mips_unwind_dummy_id): New function.
11822 (mips16_fetch_instruction): New function.
11823 (mips32_fetch_instruction): New function.
11824 (struct mips_frame_cache): Define.
11825 (mips_mdebug_frame_cache): New function.
11826 (mips_mdebug_frame_this_id): New function.
11827 (mips_mdebug_frame_prev_register): New function.
11828 (mips_mdebug_frame_unwind): Define.
11829 (mips_mdebug_frame_sniffer): New function.
11830 (mips_mdebug_frame_base_address): New function.
11831 (mips_mdebug_frame_base): Define.
11832 (mips_mdebug_frame_base_sniffer): New function.
11833 (mips_gdbarch_init): Append unwind and base sniffers. Set
11834 unwind_dummy_id.
11835
defc864c
AC
118362004-02-08 Andrew Cagney <cagney@redhat.com>
11837
6764ddad
AC
11838 * frame.c: Print both the register number and name.
11839
defc864c
AC
11840 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11841 and a sed into a single sed. Make .c and .o patterns more robust.
11842 (OBS): Delete.
11843 (INIT_FILES): Replace OBS with COMMON_OBS.
11844 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11845
645d6d10
MK
118462004-02-08 Mark Kettenis <kettenis@gnu.org>
11847
11848 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11849 the PT_WCOOKIE request.
11850
23e3c3fc
AC
118512004-02-08 Andrew Cagney <cagney@redhat.com>
11852
58dfe9ff
AC
11853 * mips-tdep.c (mips_unwind_pc): New function.
11854 (mips_gdbarch_init): Set mips_unwind_pc.
11855
1152e35e
AC
11856 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11857 (get_frame_id): Allow the UNKNOWN_FRAME.
11858 (frame_register_unwind, get_frame_type): Ditto.
11859
31b75dbf
AC
11860 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11861 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11862 unwind_dummy_id indicates a legacy frame.
11863
3483b318
AC
11864 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11865 * configure: Re-generate.
11866
23e3c3fc
AC
11867 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11868 methods.
11869
33f8ca73
AC
118702004-02-08 Andrew Cagney <cagney@redhat.com>
11871
11872 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11873 makefile macro.
11874 * configure: Re-generate.
11875 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11876 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11877 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11878 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11879 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11880 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11881 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11882 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11883 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11884 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11885
6ba8e26f 118862004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 11887
20d286a5
AC
11888 * Makefile.in: Update all dependencies.
11889
d836ee13
AC
11890 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11891 * configure: Re-generate.
11892 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11893 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11894 (COMMON_OBS): Add "main.o" and "annotate.o".
11895 (ANNOTATE_OBS): Delete.
11896 (OBS): Remove ANNOTATE_OBS.
11897 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11898 CONFIG_INITS.
11899 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11900 against CONFIG_OBS and "main.o".
11901 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11902 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11903
d02c80cd
AC
11904 * tui/tui-command.c: Include "gdb_string.h", delete register
11905 attribute, use ISO-C function signatures.
11906 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11907 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11908 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11909 * tui/tui.c: Ditto.
6ba8e26f
AC
11910
11911 * tui/tui-command.c: Change variable and function names to lower
11912 case.
11913 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11914 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11915 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11916 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11917 * tui/tui-winsource.c, tui/tui.c: Ditto.
11918
4a146b47
EZ
119192004-02-07 Elena Zannoni <ezannoni@redhat.com>
11920
11921 * buildsym.c (free_pending_blocks, finish_block)
11922 (record_pending_block, make_blockvector, end_symtab): Replace
11923 symbol_obstack with objfile_obstack.
8a1dac83 11924 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 11925 (coff_read_enum_type): Ditto.
8a1dac83 11926 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 11927 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 11928 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
11929 (dwarf2_symbol_mark_computed): Ditto.
11930 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11931 * elfread.c (elf_symtab_read): Ditto.
11932 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11933 (hpread_read_enum_type, hpread_read_function_type)
11934 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11935 Ditto.
8a1dac83 11936 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 11937 (java_link_class_type): Ditto.
8a1dac83 11938 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
11939 (new_symbol): Ditto.
11940 * minsyms.c (install_minimal_symbols): Ditto.
11941 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11942 (terminate_minimal_symbol_table): Replace symbol_obstack with
11943 objfile_obstack.
11944 (free_objfile): Remove freeing of symbol_obstack.
11945 * objfiles.h: Remove symbol_obstack field.
11946 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11947 objfile_obstack.
11948 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11949 symbol_obstack.
11950 (solib_add_common_symbols): Replace symbol_obstack with
11951 objfile_obstack.
11952 * somsolib.c (som_solib_add): Ditto.
11953 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11954 (common_block_start, common_block_end): Ditto.
11955 * symfile.c (reread_symbols): Remove freeing and init of
11956 symbol_obstack.
11957 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11958 * symfile.h: Update comment.
11959 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11960 stats printing.
11961 * symtab.c (symbol_set_names): Replace symbol_obstack with
11962 objfile_obstack.
11963 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11964 Update comments.
11965 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11966 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11967 objfile_obstack.
11968
6d012f14
AC
119692004-02-07 Andrew Cagney <cagney@redhat.com>
11970
11971 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11972 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11973 fields and variables.
11974 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11975 (m_beInvisible): Delete macro.
11976 * tui/tui-data.h: Fix case case fields and variables.
11977 (m_genWinPtrIsNull): Delete macro.
11978 (tui_win_list): Rename winList.
11979 (TUI_SRC_WIN): Rename srcWin.
11980 (TUI_DISASM_WIN): Rename disassemWin.
11981 (TUI_DATA_WIN): Rename dataWin.
11982 (TUI_CMD_WIN): Rename cmdWin.
11983 (m_genWinPtrNotNull): Delete macro.
11984 (m_winPtrIsNull): Delete macro.
11985 (m_winPtrNotNull): Delete macro.
11986 (tui_win_is_source_type): Replace m_winIsSourceType
11987 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11988 (tui_win_has_locator): Replace m_hasLocator.
11989 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11990 m_setWinHighlightOff.
11991 * tui/tui-data.c: Update references.
11992 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11993 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11994 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11995 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11996 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11997 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11998 * tui/tui-winsource.c, tui/tui.c: Ditto.
11999
7d34766b
MK
120002004-02-07 Mark Kettenis <kettenis@gnu.org>
12001
1c800673
MK
12002 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12003 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12004 StackGhost.
12005
7d34766b
MK
12006 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12007 variable `i6' to `i7'.
12008 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12009
22940a24
AC
120102004-02-07 Andrew Cagney <cagney@redhat.com>
12011
12012 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12013 (TuiPoint, TuiPointPtr): Ditto.
12014 (TuiStatus, TuiStatusPtr): Ditto.
12015 (TuiWinType, TuiWinTypePtr): Ditto.
12016 (struct tui_point): Rename _TuiPoint.
12017 (tui_get_low_disassembly_address): Rename
12018 tuiGetLowDisassemblyAddress.
12019 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12020 (tuiFree): Delete declaration.
12021 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12022 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12023 * tui/tui.c (tuiFree): Delete function.
12024 * cli/cli-cmds.c (disassemble_command): Update references.
12025 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12026 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12027 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12028 * tui/tui-winsource.c: Ditto.
12029
8b92e4d5
EZ
120302004-02-07 Elena Zannoni <ezannoni@redhat.com>
12031
12032 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12033 coffstab_build_psymtabs, elfstab_build_psymtabs)
12034 (stabsect_build_psymtabs): Replace psymbol_obstack with
12035 objfile_obstack.
12036 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12037 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12038 Ditto.
12039 * dwarfread.c (scan_compilation_units): Ditto.
12040 * elfread.c (elfstab_offset_sections): Ditto.
12041 * hppa-tdep.c (read_unwind_info): Ditto.
12042 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12043 (hpread_end_psymtab): Ditto.
12044 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12045 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12046 Ditto.
12047 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12048 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12049 (build_objfile_section_table): Ditto.
12050 (allocate_objfile): Remove init of psymbol_obstack.
12051 (free_objfile): Remove freeing of psymbol_obstack.
12052 * objfiles.h (struct objfile): Remove field
12053 psymbol_obstack. Update comments.
12054 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12055 psymbol_obstack with objfile_obstack.
12056 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12057 psymbol_obstack.
12058 * somread.c (som_symfile_offsets, init_import_symbols)
12059 (init_export_symbols): Replace psymbol_obstack with
12060 objfile_obstack.
12061 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12062 * symfile.c (default_symfile_offsets, syms_from_objfile)
12063 (reread_symbols): Remove freeing and init of psymbol_obstack.
12064 (cashier_psymtab): Update comment.
12065 * symmisc.c (print_objfile_statistics): Don't report stats for
12066 psymbol obstack.
12067 * symtab.h (struct general_symbol_info, struct partial_symtab):
12068 Update comments.
12069 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12070 (xcoff_symfile_offsets): Replace psymbol_obstack with
12071 objfile_obstack.
12072
b99607ea
EZ
120732004-02-07 Elena Zannoni <ezannoni@redhat.com>
12074
12075 * objfiles.h (struct objfile): Add objfile_obstack field.
12076 Remove type_obstack field.
12077
12078 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12079 read_structure_scope read_enumeration, new_symbol): Replace
12080 type_obstack with objfile_obstack.
12081 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12082 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12083 (lookup_fundamental_type): Ditto.
12084 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12085 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12086 (hpread_read_doc_function_type, hpread_read_struct_type)
12087 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12088 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12089 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12090 (java_link_class_type): Ditto.
12091 * mdebugread.c (parse_type): Ditto.
12092 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12093 * solib-sunos.c (solib_add_common_symbols): Ditto.
12094 * stabsread.c (define_symbol, read_type, read_member_functions,
12095 read_cpp_abbrev, read_one_struct_field): Ditto.
12096 * symfile.c (reread_symbols): Ditto.
12097 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12098
2a8854a7
AC
120992004-02-07 Andrew Cagney <cagney@redhat.com>
12100
12101 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12102 (tui_exec_info_content): Rename TuiExecInfoContent.
12103 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12104 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12105 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12106 (TuiList, TuiListPtr): Ditto.
12107 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12108 (TuiDataType, TuiDataTypePtr): Ditto.
12109 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12110 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12111 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12112 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12113 (TuiDataElement, TuiDataElementPtr): Ditto.
12114 (TuiWinElement, TuiWinElementPtr): Ditto.
12115 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12116 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12117 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12118 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12119 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12120 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12121 * tui/tui-command.c, tui/tui-data.c: Update references.
12122 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12123 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12124 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12125 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12126
05cbe71a
MK
121272004-02-07 Mark Kettenis <kettenis@gnu.org>
12128
12129 * dwarf2-frame.h: Update copyright.
12130 (enum dwarf2_frame_reg_rule): New.
12131 (struct dwarf2_frame_state_reg): New.
12132 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12133 * dwarf2-frame.c: Update copyright.
12134 (enum dwarf2_reg_rule): Remove.
12135 (struct dwarf2_frame_state): Remove defenition of `struct
12136 dwarf2_frame_state_reg'.
12137 (read_reg): Call get_frame_arch to get the architecture instead of
12138 using CURRENT_GDBARCH.
12139 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12140 DWARF2_FRAME_.
12141 (dwarf2_frame_init_reg): New function.
12142 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12143 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12144 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12145 tags with DWARF2_FRAME_.
12146 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12147 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12148 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12149
ec7d9e56
AC
121502004-02-06 Andrew Cagney <cagney@redhat.com>
12151
dd1abb8c
AC
12152 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12153 (enum tui_data_type): Rename _TuiDataType.
12154 (struct tui_layout_def): Rename _TuiLayoutDef.
12155 (struct tui_source_element): Rename _TuiSourceElement.
12156 (struct tui_data_element): Rename _TuiDataElement.
12157 (struct tui_command_element): Rename _TuiCommandElement.
12158 (struct tui_locator_element): Rename _TuiLocatorElement.
12159 (union tui_which_element): Define.
12160 (struct tui_win_element): Rename _TuiWinElement.
12161 (struct tui_data_info): Rename _TuiDataInfo.
12162 (struct tui_source_info): Rename _TuiSourceInfo.
12163 (struct tui_command_info): Rename _TuiCommandInfo.
12164 (tui_initialize_static_data): Rename initializeStaticData.
12165 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12166 (tui_alloc_win_info): Rename allocWinInfo.
12167 (tui_init_generic_part): Rename initGenericPart.
12168 (tui_init_win_info): Rename initWinInfo.
12169 (tui_alloc_content): Rename allocContent.
12170 (tui_add_content_elements): Rename addContentElements.
12171 (tui_init_content_element): Rename initContentElement.
12172 (tui_free_window): Rename freeWindow.
12173 (tui_free_win_content): Rename freeWinContent.
12174 (tui_free_data_content): Rename freeDataContent.
12175 (tui_free_all_source_wins_content): Rename
12176 freeAllSourceWinsContent.
12177 (tui_del_window): Rename tuiDelWindow.
12178 (tui_del_data_windows): Rename tuiDelDataWindows.
12179 (tui_partial_win_by_name): Rename partialWinByName.
12180 (tui_win_name): Rename winName.
12181 (tui_current_layout): Rename currentLayout.
12182 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12183 (tui_term_height): Rename termHeight.
12184 (tui_set_term_height_to): Rename setTermHeightTo.
12185 (tui_term_width): Rename termWidth.
12186 (tui_set_term_width_to): Rename setTermWidthTo.
12187 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12188 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12189 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12190 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12191 (tui_source_windows): Rename sourceWindows.
12192 (tui_clear_source_windows): Rename clearSourceWindows.
12193 (tui_clear_source_windows_detail): Rename
12194 clearSourceWindowsDetail.
12195 (tui_clear_win_detail): Rename clearWinDetail.
12196 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12197 (tui_default_tab_len): Rename tuiDefaultTabLen.
12198 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12199 (tui_win_with_focus): Rename tuiWinWithFocus.
12200 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12201 (tui_layout_def): Rename tuiLayoutDef.
12202 (tui_win_resized): Rename tuiWinResized.
12203 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12204 (tui_next_win): Rename tuiNextWin.
12205 (tui_prev_win): Rename tuiPrevWin.
12206 (tui_add_to_source_windows): Rename addToSourceWindows.
12207 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12208 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12209 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12210 * tui/tui.c, tui/tui-data.c: Ditto.
12211 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12212 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12213
a358af15
AC
12214 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12215 (struct symtab): Declare.
12216 (tui_set_source_content): Rename tuiSetSourceContent.
12217 (tui_show_symtab_source): Rename tuiShowSource.
12218 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12219 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12220 * tui/tui-source.c: Update copyright. Update references.
12221 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12222 * tui/tui-stack.c: Update references.
12223
a21fcd8f
AC
12224 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12225 (struct tui_win_info): Declare.
12226 (tui_scroll_forward): Rename tuiScrollForward.
12227 (tui_scroll_backward): Rename tuiScrollBackward.
12228 (tui_scroll_left): Rename tuiScrollLeft.
12229 (tui_scroll_right): Rename tuiScrollRight.
12230 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12231 (tui_resize_all): Rename tuiResizeAll.
12232 (tui_refresh_all_win): Rename tuiRefreshAll.
12233 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12234 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12235 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12236 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12237
edae1ccf
AC
12238 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12239 (tui_erase_data_content): Rename tuiEraseDataContent.
12240 (tui_display_all_data): Rename tuiDisplayAllData.
12241 (tui_check_data_values): Rename tuiCheckDataValues.
12242 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12243 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12244 (tui_first_data_element_no_in_line): Rename
12245 tuiFirstDataElementNoInLine.
12246 (tui_delete_data_content_windows): Rename
12247 tuiDeleteDataContentWindows.
12248 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12249 (tui_display_data_from): Rename tuiDisplayDataFrom.
12250 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12251 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12252 * tui/tui-win.c, tui/tui-regs.c: Update references.
12253 * tui/tui-layout.c, tui/tui.c: Update references.
12254
ec7d9e56
AC
12255 * tui/tui-wingeneral.h: Update copyright.
12256 (m_allBeVisible): Delete macro.
8a1dac83 12257 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12258 (struct tui_gen_win_info): Declare.
12259 (struct tui_win_info): Declare.
12260 (tui_unhighlight_win): Rename unhighlightWin.
12261 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12262 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12263 (tui_make_window): Rename makeWindow.
12264 (tui_copy_win): Rename copyWin.
12265 (tui_box_win): Rename boxWin.
12266 (tui_highlight_win): Rename highlightWin.
12267 (tui_check_and_display_highlight_if_needed): Rename
12268 checkAndDisplayHighlightIfNeeded.
12269 (tui_refresh_all): Rename refreshAll.
12270 (tui_delete_win): Rename tuiDelwin.
12271 (tui_refresh_win): Rename tuiRefreshWin.
12272 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12273 (tui_make_visible, tui_make_invisible): New functions.
12274 (tui_make_all_visible, tui_make_all_invisible): New functions.
12275 (make_all_visible): Rename makeAllVisible.
12276 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12277 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12278 * tui/tui-windata.c, tui/tui-win.c: Update references.
12279 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12280 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12281
1e52e2eb
MK
122822004-02-06 Mark Kettenis <kettenis@gnu.org>
12283
12284 * proc-api.c (write_with_trace): Initialize local variable to
12285 silence compiler warning.
12286
f80bda8e
AC
122872004-02-06 Andrew Cagney <cagney@redhat.com>
12288
12289 * tui/tui-source.h: Do not include "defs.h".
12290 (struct tui_win_info): Declare.
12291 (tui_set_source_content_nil): Declare.
12292 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12293 (union tui_line_or_address): Rename _TuiLineOrAddress.
12294 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12295 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12296 (tui_update_source_window_as_is): Rename
12297 tuiUpdateSourceWindowAsIs.
12298 (tui_update_source_windows_with_addr): Rename
12299 tuiUpdateSourceWindowsWithAddr.
12300 (tui_update_source_windows_with_line): Rename
12301 tuiUpdateSourceWindowsWithLine.
12302 (tui_clear_source_content): Rename tuiClearSourceContent.
12303 (tui_erase_source_content): Rename tuiEraseSourceContent.
12304 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12305 (tui_show_source_content): Rename tuiShowSourceContent.
12306 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12307 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12308 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12309 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12310 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12311 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12312 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12313 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12314 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12315 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12316 (struct tui_win_info): Declare.
12317 * tui/tui-stack.c: Update references.
12318 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12319 * tui/tui-win.c, tui/tui-source.c: Ditto.
12320 * tui/tui.c, tui/tui-disasm.c: Ditto.
12321
9fbfb822
MK
123222004-02-06 Mark Kettenis <kettenis@gnu.org>
12323
12324 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12325 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12326
03cebad2
MK
123272004-02-05 Mark Kettenis <kettenis@gnu.org>
12328
12329 * infrun.c (handle_inferior_event): Allow for breakpoint
12330 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12331 and SIGEMT. Update comments.
12332 * NEWS (Revised SPARC target): Mention support for non-executable
12333 stack.
12334
290281b1
MK
123352004-02-04 Mark Kettenis <kettenis@gnu.org>
12336
12337 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12338 * inftarg.c: Update copyright year.
12339 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12340 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12341 (sparc_xfer_wcookie): New function.
12342 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12343 * Makefile.in (sparc-nat.o): Update dependencies.
12344 * config/sparc/nm-nbsd.h: Include "target.h".
12345 (NATIVE_XFER_WCOOKIE): New define.
12346 (sparc_xfer_wcookie): New prototype.
12347
212161df
AC
123482004-02-04 Andrew Cagney <cagney@redhat.com>
12349
12350 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12351 SYSCALL_TRAP function.
12352 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12353
6e4c6c91
DJ
123542004-02-04 Andrew Cagney <cagney@redhat.com>
12355 Daniel Jacobowitz <drow@mvista.com>
12356
12357 * objfiles.h: Delete comments refering to inside_entry_func and
12358 DEPRECATED_FRAME_CHAIN_VALID.
12359 * defs.h (inside_entry_func): Update prototype..
12360 * blockframe.c (inside_entry_func): Rename to
12361 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12362 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12363
cae688ec
JJ
123642004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12365
12366 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12367 outside of #ifdef SOLIB_ADD region.
12368 (do_restore_lang_radix_cleanup): Ditto.
12369 (resolve_pending_breakpoint): Ditto.
12370
19217676
AC
123712004-02-03 Andrew Cagney <cagney@redhat.com>
12372
12373 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12374 (process_note_abi_tag_sections): Delete unused function.
12375 (ia64_read_fp): Delete unused function.
12376 (gdbarch_extract_struct_value_address): Delete declaration.
12377
876753be
AC
123782004-02-02 Andrew Cagney <cagney@redhat.com>
12379
12380 * vax-tdep.c (vax_frame_chain): Delete call to
12381 deprecated_inside_entry_file.
12382 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12383
d4f10bf2
MK
123842004-02-02 Mark Kettenis <kettenis@gnu.org>
12385
12386 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12387 column that's "empty" or "same value" when eliminating REG_RA
12388 rules.
12389
cae688ec
JJ
123902004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12391
12392 * NEWS: Add information about new pending breakpoint support.
12393
0101ce28
JJ
123942004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12395
12396 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12397 and pending fields for pending breakpoint support.
12398 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12399 (condition_command): Only parse condition if not a pending
12400 breakpoint.
12401 (print_one_breakpoint): Add support for pending breakpoints.
12402 (describe_other_breakpoints): Add checks to verify we are not
12403 dealing with pending breakpoints.
12404 (check_duplicates): Don't check pending breakpoints.
12405 (set_raw_breakpoint): Initialize pending flag.
12406 (do_restore_lang_radix_cleanup): New cleanup routine.
12407 (resolve_pending_breakpoint): New function.
12408 (re_enable_breakpoints_in_shlibs): Try and resolve any
12409 pending breakpoints via resolve_pending_breakpoint.
12410 (mention): Add pending breakpoint support.
12411 (parse_breakpoint_sals): Add new parameter to pass to
12412 decode_line_1 to indicate silent errors when files or functions
12413 are not found. Change all callers.
12414 (do_captured_parse_breakpoint): New function.
12415 (break_command_1): Change prototype to return an rc value and to
12416 take an optional pending breakpoint pointer. Support creating
12417 a pending breakpoint if a "not found" form of error occurs when
12418 parsing the breakpoint. Also support resolving an existing pending
12419 breakpoint and be silent if the resolution fails.
12420 (create_breakpoints): Change prototype to take pending breakpoint
12421 pointer. When resolving a pending breakpoint, use the new pointer
12422 to provide a conditional or commands added by the end-user.
12423 (delete_breakpoint): Add appropriate check for pending.
12424 (breakpoint_re_set_one): Ditto.
12425 (do_enable_breakpoint): Ditto.
12426
8d577d32
DC
124272004-02-02 David Carlton <carlton@kealia.com>
12428
12429 * valops.c (enum oload_classification): New.
12430 (find_overload_match): Break implementation into separate
12431 functions; delete #if 0'd code; look for symbols within
12432 namespaces.
12433 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12434 (find_oload_champ,oload_method_static,classify_oload_match): New.
12435 * cp-support.h: Add declaration for cp_func_name; update
12436 declaration for make_symbol_overload_list.
12437 * cp-support.c (cp_func_name): New.
12438 (overload_list_add_symbol): Fix comment, use
12439 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12440 (make_symbol_overload_list): Take a function name and a namespace
12441 instead of a symbol; change implementation.
12442 (make_symbol_overload_list_using): New.
12443 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12444
22e8e3c7
FF
124452004-02-02 Fred Fish <fnf@redhat.com>
12446
12447 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12448 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12449 * remote-sim.c (gdb_os_write_stderr): Write output to
12450 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12451 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12452 gdb_stderr stream and update copyright years.
22e8e3c7 12453
6b753f60
DJ
124542004-02-01 Daniel Jacobowitz <drow@mvista.com>
12455
12456 * Makefile.in (mips-linux-nat.o): Update dependencies.
12457 * mips-linux-nat.c: Include mips-tdep.h.
12458
124592004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12460
12461 * sol-thread.c (sol_thread_xfer_partial): New function.
12462 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12463 (init_sol_core_ops): Likewise.
12464
12465 * procfs.c (procfs_xfer_partial): New function.
12466 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12467 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12468
12469 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12470 procfs_xfer_auxv function.
12471
12472 * procfs.c (procfs_make_note_section): If we can read
12473 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12474 * linux-proc.c (linux_make_note_section): Likewise.
12475
12476 * auxv.h: New file.
12477 * auxv.c: New file.
12478 * Makefile.in (auxv_h): New variable.
12479 (COMMON_OBS): Add auxv.o here.
12480 (auxv.o): New target.
12481
12482 * corelow.c (core_xfer_partial): New function.
12483 (init_core_ops): Use it for core_ops.to_xfer_partial.
12484
12485 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12486 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12487 macro if that is defined.
12488
fa5281d0
DJ
124892004-02-01 Daniel Jacobowitz <drow@mvista.com>
12490
12491 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12492 and check the specified thread for each breakpoint.
12493 * breakpoint.h (bpstat_stop_status): Update prototype.
12494 * infrun.c (handle_inferior_event): Update calls to
12495 bpstat_stop_status.
12496
26ee262d
DJ
124972004-02-01 Daniel Jacobowitz <drow@mvista.com>
12498
12499 * Makefile.in (cli-cmds.o): Add $(readline_h).
12500
d9b52655
DJ
125012004-02-01 Daniel Jacobowitz <drow@mvista.com>
12502
12503 * cli/cli-cmds.c: Include readline.h.
12504 (complete_command): Pass the start of the last word to
12505 complete_line.
12506
9709f61c
DJ
125072004-01-31 Daniel Jacobowitz <drow@mvista.com>
12508
12509 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12510 argument, and change first argument to a CORE_ADDR.
12511 * breakpoint.h (bpstat_stop_status): Update prototype.
12512 * infrun.c (adjust_pc_after_break): Add a new comment.
12513 (handle_inferior_event): Update calls to bpstat_stop_status.
12514
4f1280bb
DJ
125152004-01-31 Daniel Jacobowitz <drow@mvista.com>
12516
12517 * breakpoint.h: Update copyright years.
12518
4fa8626c
DJ
125192004-01-31 Daniel Jacobowitz <drow@mvista.com>
12520
12521 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12522 (bpstat_stop_status): Don't decrement PC.
12523 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12524 prototype.
12525 * infrun.c (adjust_pc_after_break): New function.
12526 (handle_inferior_event): Call it, early. Remove later references
12527 to DECR_PC_AFTER_BREAK.
12528 (normal_stop): Add commentary.
12529
fad0733a
DJ
125302004-01-31 Daniel Jacobowitz <drow@mvista.com>
12531
12532 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12533 2004-01-27 double-free fix.
12534
42cdca6c
MK
125352004-01-31 Mark Kettenis <kettenis@gnu.org>
12536
12537 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12538 (sparc32_frame_prev_register): Handle StackGhost.
12539 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12540
932d5416
RM
125412004-01-29 Roland McGrath <roland@redhat.com>
12542
12543 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12544 * configure: Regenerated.
12545
12546 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12547 * Makefile.in (procfs.o): Add dep.
12548
47d3492a
AC
125492004-01-28 Andrew Cagney <cagney@redhat.com>
12550
12551 * tui/tui-stack.h: Update copyright.
12552 (struct frame_info): Add opaque declaration.
12553 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12554 (tui_show_locator_content): Rename tuiShowLocatorContent.
12555 (tui_show_frame_info): Rename tuiShowFrameInfo.
12556 * tui/tui-stack.c: Update copyright. Update references.
12557 * tui/tui-winsource.c: Update references.
12558 * tui/tui-win.c: Update references.
12559 * tui/tui-layout.c: Update references.
12560 * tui/tui-hooks.c: Update copyright, update references.
12561 * tui/tui.c: Update copyright, update references.
12562 * tui/tui-disasm.c: Update references.
12563
5d51ca54
DC
125642004-01-28 David Carlton <carlton@kealia.com>
12565
12566 * dwarf2read.c (add_partial_structure): Use demangled name if
12567 namespace equals "".
12568
086ed43d
JB
125692004-01-27 Jim Blandy <jimb@redhat.com>
12570
12571 Clean up misapplied patch:
12572 * dwarf2read.c (determine_prefix): Change one of the two forward
12573 declarations for 'determine_prefix_aux' to a declaration for this.
12574 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12575 argument to 'die_specification'.
12576
2a35147e
JB
12577 * dwarf2read.c (read_func_scope): Re-indent comment.
12578
a355c7de 125792004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12580
a355c7de
AC
12581 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12582 b->exp to NULL after freeing so that error during re-parsing or
12583 evaluation of expressions associated with breakpoint don't
12584 eventually lead to re-freeing of storage.
12585 Committed by Andrew Cagney.
12586
63ff5125
AC
125872004-01-27 Andrew Cagney <cagney@redhat.com>
12588
12589 * source.c (ambiguous_line_spec): Delete undefined declaration.
12590 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12591 (m32r_set_server_address, m32r_set_download_path): Ditto.
12592 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12593
e142c38c
DJ
125942004-01-27 Daniel Jacobowitz <drow@mvista.com>
12595
12596 * dwarf2read.c: Update calls to changed and renamed functions, and
12597 references to moved variables.
12598
12599 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12600 language, language_defn, list_in_scope, and ftypes members.
12601 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12602 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12603 (baseaddr): Remove globals.
12604
12605 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12606 (set_cu_language, die_is_declaration, die_specification)
12607 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12608 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12609 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12610 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12611
12612 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12613 cu.list_in_scope. Don't initialize cu_header_offset.
12614 (add_partial_symbol): Add local baseaddr.
12615 (psymtab_to_symtab_1): Add local baseaddr. Use
12616 objfile->section_offsets for consistency. Don't initialize
12617 cu_header_offset; do initialize cu.header.offset and
12618 cu.list_in_scope.
12619 (read_file_scope, read_func_scope, read_lexical_block_scope)
12620 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12621
c6e06ede
MC
126222004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12623
fb328ecc 12624 * PROBLEMS: Add gdb/1516.
c6e06ede 12625
48184fd4
AC
126262003-12-29 Robert Millan <robertmh@gnu.org>
12627
12628 Patch committed by Andrw Cagney.
12629 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12630 * configure.tgt: Match knetbsd*-gnu.
12631
c1321b30
AC
126322004-01-26 Andrew Cagney <cagney@redhat.com>
12633
f3699be3
AC
12634 * breakpoint.c (catch_command_1): Delete #ifdef code.
12635 (catch_fork_command_1): Delete #ifdef wrapper.
12636 (catch_exec_command_1): Ditto.
12637 (catch_load_command_1): Ditto.
12638 (catch_unload_command_1): Ditto.
12639
c1321b30
AC
12640 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12641 (catch_breakpoint): Delete #if0ed function.
12642 (disable_catch_breakpoint): Ditto.
12643 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12644 (disable_catch, enable_catch, delete_catch): Ditto.
12645
b4501125
AC
126462004-01-26 Andrew Cagney <cagney@redhat.com>
12647
12648 * remote.c (echo_check, quit_flag): Delete variables.
12649 (cisco_kernel_mode): Delete variable.
12650 (minitelnet_return, tty_input, escape_count): Delete variables.
12651 (remote_cisco_mode): Delete variable.
12652 (remote_cisco_open, remote_cisco_close): Delete function.
12653 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12654 (init_remote_cisco_ops): Delete function.
12655 (_initialize_remote): Do not install "remote cisco" code.
12656 (read_frame): Delete cisco specific code.
12657 (remote_info_process): Delete function.
12658 (remote_wait): Delete cisco specific code.
12659 (remote_cisco_section_offsets): Delete function.
12660 (remote_cisco_objfile_relocate): Delete function.
12661 (remote_async_wait): Delete cisco specific code.
12662 (minitelnet, readtty, readsocket): Delete function.
12663
74055713
AC
126642004-01-26 Andrew Cagney <cagney@redhat.com>
12665
12666 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12667 comments mentioning extract_returned_value_address.
12668 * infcmd.c (print_return_value): Update. Add comments on
12669 extract_returned_value_address.
12670 * stack.c (return_command): Add comments on
12671 extract_returned_value_address.
12672 * values.c: Update comment.
12673 * m32r-tdep.c: Update comment.
12674 * sparc-tdep.c: Update comment.
12675 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12677 * sh64-tdep.c (sh64_gdbarch_init): Update.
12678 * sh-tdep.c (sh_gdbarch_init): Update.
12679 * s390-tdep.c (s390_gdbarch_init): Update.
12680 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12681 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12682 * m68k-tdep.c (m68k_gdbarch_init): Update.
12683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12684 * m32r-tdep.c (m32r_gdbarch_init): Update.
12685 * ia64-tdep.c (ia64_gdbarch_init): Update.
12686 * h8300-tdep.c (h8300_gdbarch_init): Update.
12687 * frv-tdep.c (frv_gdbarch_init): Update.
12688 * arm-tdep.c (arm_gdbarch_init): Update.
12689 * alpha-tdep.c (alpha_gdbarch_init): Update.
12690
a67af2b9
AC
126912004-01-26 Andrew Cagney <cagney@redhat.com>
12692
12693 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12694 SYMBOL_LOCATION_FUNCS
12695 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12696 "struct symbol_ops".
12697 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12698 type to "struct symbol_ops".
12699 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12700 (struct symbol): Replace ".aux_value.loc.funcs" and
12701 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12702 (SYMBOL_OBJFILE): Delete macro.
12703 (SYMBOL_LOCATION_FUNCS): Delete macro.
12704 (SYMBOL_LOCATION_BATON): Update.
12705 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12706 intead of SYMBOL_LOCATION_FUNCS.
12707 * ax-gdb.c (gen_var_ref): Ditto.
12708 * printcmd.c (address_info): Ditto.
12709 * findvar.c (read_var_value): Ditto.
12710 (symbol_read_needs_frame): Ditto.
12711
c034e007
AC
127122004-01-26 Andrew Cagney <cagney@redhat.com>
12713
12714 * dwarf2read.c (read_func_scope): Document frame-base hack.
12715
bb472c1e
MK
127162004-01-25 Mark Kettenis <kettenis@gnu.org>
12717
12718 * infcmd.c (print_return_value): Plug memory leak; delete
12719 ui_stream object. Rename argument `structure_return' to
12720 `struct_return'.
12721
c8e737d5
MK
127222004-01-25 Mark Kettenis <kettenis@gnu.org>
12723
f941662f
MK
12724 * infcmd.c (print_return_value): Wrap long lines.
12725 (finish_command_continuation, finish_command): Remove unused
12726 variable `funcaddr'. Fix some coding-standards problems.
12727
c558d81a 12728 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12729 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12730 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12731 TDEP->fpregset to zero.
12732
bf1e5861 12733 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12734 floating-point registers for traditional NetBSD core files.
12735 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12736 TDEP->sizeof_fpregset here.
12737
4c72d57a
MK
127382004-01-25 Mark Kettenis <kettenis@gnu.org>
12739
566626fa
MK
12740 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12741 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12742 function with code split out from
12743 sparc32nbsd_sigcontext_frame_cache.
12744 (sparc32nbsd_sigcontext_frame_cache): Use
12745 sparc32nbsd_sigcontext_saved_regs.
12746 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12747 OpenBSD.
12748 * sparcobsd-tdep.c: New file.
12749 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12750 (sparcobsd-tdep.o): New dependency.
12751 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12752 * config/sparc/obsd.mt: New file.
12753
4c72d57a
MK
12754 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12755 TDEP->fpregset to be initialized to enable core file register
12756 sets.
12757
7e5e9f88
MK
127582004-01-24 Mark Kettenis <kettenis@gnu.org>
12759
f0f207fd 12760 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12761 Add opaque declarations.
12762 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12763 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12764 function with code split out from
12765 sparc64nbsd_sigcontext_frame_cache.
12766 (sparc64nbsd_sigcontext_frame_cache): Use
12767 sparc64nbsd_sigcontext_saved_regs.
12768 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12769 OpenBSD.
12770 * sparc64obsd-tdep.c: New file.
12771 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12772 (sparc64obsd-tdep.o): New dependency.
12773 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12774 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12775 * config/sparc/obsd64.mt: New file.
12776
690668cc
MK
12777 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12778 read the instruction at PC.
12779
7e5e9f88
MK
12780 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12781 value of GDB_OSABI_DEFAULT.
12782 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12783 instead of GDB_OSABI_NETBSD_AOUT.
12784
68b6dce9
NR
127852004-01-24 Nick Roberts <nick@nick.uklinux.net>
12786
12787 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12788 copyright.
12789
080ce8c0
AC
127902004-01-23 Andrew Cagney <cagney@redhat.com>
12791
12792 * printcmd.c (display_command): Replace tui_set_display call with
12793 tui_set_layout_for_display_command.
12794 * tui/tui.h (enum tui_win_type): Define.
12795 (tui_set_layout): Delete declaration.
12796 (tui_set_layout_for_display_command): Rename set_tui_layout.
12797 * tui/tui-data.h (enum tui_layout_type): Define.
12798 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12799 "tui.h".
12800 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12801 (tui_default_win_height): Rename tuiDefaultWinHeight.
12802 (tui_default_win_viewport_height): Rename
12803 tuiDefaultWinViewportHeight.
12804 (tui_set_layout): RenametuiSetLayout.
12805 * tui/tui-layout.c: Update references.
12806 * tui/tui.c: Update references.
12807 * tui/tui-disasm.c: Update references.
12808
b368761e
DC
128092004-01-23 David Carlton <carlton@kealia.com>
12810
12811 Partial workaround for PR c++/1511:
12812 * cp-namespace.c: Include frame.h.
12813 (cp_lookup_transparent_type): New
12814 (cp_lookup_transparent_type_loop): New.
12815 * cp-support.h: Declare cp_lookup_transparent_type.
12816 * symtab.c (basic_lookup_transparent_type): Renamed from
12817 lookup_transparent_type.
12818 (lookup_transparent_type): Replace old body by a call to
12819 current_language->la_lookup_transparent_type.
12820 * symtab.h: Update copyright. Declare
12821 basic_lookup_transparent_type.
12822 * language.h: Update copyright.
12823 (struct language_defn): Add la_lookup_transparent_type.
12824 * language.c: Update copyright.
12825 (unknown_language_defn): Add basic_lookup_transparent_type.
12826 (auto_language_defn): Add basic_lookup_transparent_type.
12827 (local_language_defn): Add basic_lookup_transparent_type.
12828 * ada-lang.c: Update copyright.
12829 (ada_language_defn): Add basic_lookup_transparent_type.
12830 * c-lang.c: Update copyright.
12831 (c_language_defn): Add basic_lookup_transparent_type.
12832 (cplus_language_defn): Add basic_lookup_transparent_type.
12833 (asm_language_defn): Add basic_lookup_transparent_type.
12834 (minimal_language_defn): Add basic_lookup_transparent_type.
12835 * f-lang.c: Update copyright.
12836 (f_language_defn): Add basic_lookup_transparent_type.
12837 * jv-lang.c: Update copyright.
12838 (java_language_defn): Add basic_lookup_transparent_type.
12839 * m2-lang.c: Update copyright.
12840 (m2_language_defn): Add basic_lookup_transparent_type.
12841 * objc-lang.c: Update copyright.
12842 (objc_language_defn): Add basic_lookup_transparent_type.
12843 * p-lang.c: Update copyright.
12844 (p_language_defn): Add basic_lookup_transparent_type.
12845 * scm-lang.c: Update copyright.
12846 (scm_language_defn): Add basic_lookup_transparent_type.
12847 * Makefile.in (cp-namespace.o): Depend on frame.h.
12848
fdde2d81
DC
128492004-01-23 David Carlton <carlton@kealia.com>
12850
12851 Patch for PR c++/1520:
12852 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12853 properly if we have a specification die.
12854 (determine_prefix_aux): Rename from determine_prefix.
12855 (determine_prefix): Like the old determine_prefix, but never
12856 returns NULL.
12857
5b828b6b
TR
128582004-01-23 Theodore A. Roth <troth@openavr.org>
12859
12860 * avr-tdep.c: Update copyright.
12861 (avr_iaddr_p): Delete unused function.
12862 (avr_saddr_p): Delete unused function.
12863
a1b8c067
DC
128642004-01-23 David Carlton <carlton@kealia.com>
12865
12866 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12867 Fix for PR symtab/1534.
12868
f2cab569
MK
128692004-01-23 Mark Kettenis <kettenis@gnu.org>
12870
12871 * NEWS (New native configurations): Mention OpenBSD/sparc and
12872 OpenBSD/sparc64.
12873 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12874 * configure.host: Likewise.
12875 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12876 handler for OpenBSD.
12877 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12878
642d8300
MK
128792004-01-22 Mark Kettenis <kettenis@gnu.org>
12880
89aac506
MK
12881 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12882 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12883
36662fde
MK
12884 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12885 * cli/cli-cmds.c (shell_escape): Likewise.
12886
642d8300
MK
12887 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12888 OpenBSD .note.openbsd.ident sections.
12889
fae299cd
DC
128902004-01-22 David Carlton <carlton@kealia.com>
12891
12892 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12893 get_scope_pc_bounds.
12894 (read_file_scope): Ditto.
12895 (get_scope_pc_bounds): New function, produced by extracting code
12896 from the above two functions, consolidating it, and adding support
12897 for DW_TAG_namespace.
12898
a49d618c
MK
128992004-01-22 Mark Kettenis <kettenis@gnu.org>
12900
12901 * osabi.c (MAX_NOTESZ): New define.
12902 (check_note): New function.
12903 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12904 check_note.
12905
fe61caab
RM
129062004-01-21 Roland McGrath <roland@redhat.com>
12907
12908 * MAINTAINERS (write after approval): Add myself.
12909
ec145965
EZ
129102004-01-21 Eli Zaretskii <eliz@gnu.org>
12911
12912 * utils.c (init_page_info): Move declarations of `rows' and
12913 `cols' before the __GO32__-specific code. Move the closing brace
12914 outside the #ifdef __GO32__..#endif block.
12915 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12916
877522db
PB
129172004-01-21 Paul Brook <paul@codesourcery.com>
12918
12919 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12920 BPSTAT_WHAT_CHECK_SHLIBS.
12921
dbf5be1c
PB
129222004-01-21 Paul Brook <paul@codesourcery.com>
12923
12924 * MAINTAINERS: Add myself to write-after-approval.
12925
81f08b92
AC
129262004-01-20 Andrew Cagney <cagney@redhat.com>
12927
5a1efed7
AC
12928 * ax-gdb.c (print_axs_value): Delete unused function.
12929 * jv-lang.c (java_lookup_type): Delete unused function.
12930 * cli/cli-dump.c (dump_filetype): Delete unused function.
12931 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12932 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12933 (mips_getstring): Delete unused function.
12934 (pmon_insert_breakpoint): Delete #if0ed function.
12935 (PMON_MAX_BP): Delete #if0ed MACRO.
12936 (mips_pmon_bp_info): Delete #if0ed variable.
12937 (pmon_remove_breakpoint): Delete #if0ed function.
12938 * monitor.c (monitor_write_even_block): Delete unused function.
12939 (monitor_write_memory_block): Delete #if0ed code.
12940 * dink32-rom.c (dink32_load): Delete unused function.
12941 (_initialize_dink32_rom): Delete #if0ed code.
12942 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12943
b0a30fce
AC
12944 * tui/tui-command.c: Update references.
12945 * tui/tui-io.c: Update references.
12946 * tui/tui-command.h: Update copyright.
12947 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12948
81f08b92
AC
12949 * source.c (ambiguous_line_spec): Delete never-defined function.
12950 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12951 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12952 * cli/cli-cmds.c (validate_comname): Ditto.
12953
65f05602
AC
12954 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12955 "tui-data.h".
12956 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12957 (tui_show_disassem): Rename tuiShowDisassem.
12958 (tui_show_disassem_and_update_source): Rename
12959 tuiVerticalDisassemScroll.
12960 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12961 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12962 * tui/tui.h: Update copyright.
12963 (enum tui_status): Define.
12964 * tui/tui-data.h (enum tui_scroll_direction): Define.
12965 * tui/tui-disasm.c: Update copyright. Update references.
12966 * tui/tui-winsource.c: Update copyright. Update references.
12967 * tui/tui-win.c: Update references.
12968 * tui/tui-layout.c: Update references.
12969
6bb0384f
AC
129702004-01-20 Andrew Cagney <cagney@redhat.com>
12971
12972 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12973 sym2 to start of block.
12974
9175c9a3
MC
129752004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12976
12977 * MAINTAINERS: Delete mmalloc.
12978 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12979 * NEWS: Mention removal of --with-malloc.
12980 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12981 * config.in: Regenerate.
12982 * configure: Regenerate.
6bb0384f
AC
12983 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12984 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
12985 * gdbinit.in: Remove mmalloc.
12986 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12987 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12988 * config/i386/go32.mh: Likewise.
12989 * config/i386/interix.mh: Likewise.
12990 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12991
4fcef00a
JJ
129922004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12993
12994 * linespec.c (decode_variable, symtab_from_filename): Call
12995 error_silent with error message instead of throwing an exception
12996 directly.
12997 * defs.h (error_silent, error_output_message): Add prototypes.
12998 (catch_exceptions_with_msg): Ditto.
12999 * utils.c (error_silent, error_output_message): New functions.
13000 * top.c (catch_exceptions_with_msg): New function.
13001
8e94b928
NR
130022004-01-20 Nick Roberts <nick@nick.uklinux.net>
13003
13004 * mi/mi-cmds.h (enum print_values): Add definition.
13005
13006 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13007 type and value for simple data types and just the name and type
13008 for complex ones, if required.
13009
13010 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13011 children, if required.
13012
a02d6af8
KB
130132004-01-19 Kevin Buettner <kevinb@redhat.com>
13014
13015 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13016 unused declarations.
13017
78a4a9b9
AC
130182004-01-19 Andrew Cagney <cagney@redhat.com>
13019
13020 * top.h (mapped_symbol_files): Delete declaration.
13021 * main.c (captured_main): Delete option "m" and "mapped".
13022 * objfiles.c (mapped_symbol_files): Delete variable.
13023 * symfile.c (symbol_file_command): Delete mmap code.
13024 (symbol_file_add_with_addrs_or_offsets): Ditto.
13025 (add_symbol_file_command, reread_separate_symbols): Ditto.
13026 * objfiles.h (OBJF_MAPPED): Delete.
13027 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13028 (free_objfile) [USE_MMALLOC]: Ditto.
13029 (open_existing_mapped_file): Delete function.
13030 (open_mapped_file): Delete function.
13031 (map_to_file): Delete function.
13032
2dbd5e30
KB
130332004-01-19 Kevin Buettner <kevinb@redhat.com>
13034
13035 * infrun.c (step_into_function): Account for possible breakpoint
13036 adjustment when computing ``stop_func_start''.
13037
437b434f
KB
130382004-01-19 Kevin Buettner <kevinb@redhat.com>
13039
13040 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13041 the region size against the size of a pointer, not the size of
13042 a register as given by DEPRECATED_REGISTER_SIZE.
13043
55fb0713
AC
130442004-01-19 Andrew Cagney <cagney@redhat.com>
13045
13046 * tui/tui-regs.h: Include "tui-data.h".
13047 (tuiFirstRegElementNoInLine): Delete declaration.
13048 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13049 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13050 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13051 (tui_calculate_regs_column_count): Rename
13052 tuiCalculateRegsColumnCount.
13053 (tui_check_register_values): Rename tuiCheckRegisterValues.
13054 (tui_show_registers): Rename tuiShowRegisters.
13055 (tui_display_registers_from_line): Rename
13056 tuiDisplayRegistersFromLine.
13057 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13058 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13059 (tui_first_reg_element_no_inline): Rename
13060 tuiFirstRegElementNoInLine.
13061 * tui/tui-data.h: Update copyright.
13062 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13063 * tui/tui-windata.c: Update copyright, update references.
13064 * tui/tui-regs.c: Update copyright, update references.
13065 * tui/tui-win.c: Update copyright, update references.
13066 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13067
cebe9500
AC
130682004-01-18 Andrew Cagney <cagney@redhat.com>
13069
bcdf1568
AC
13070 * tui/tui-io.c: Update copyright.
13071 (key_is_end_sequence, key_is_backspace): New functions.
13072 (key_is_command_char, key_is_start_sequence): New function.
13073 (tui_getc): Update references.
13074 * tui/tui-io.h: Update copyright.
13075 (m_tuiStartNewLine): Delete macro.
13076 (m_isBackspace, m_isDeleteChar): Delete macros.
13077 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13078 (m_isNextPage, m_isPrevPage): Delete macros.
13079 (m_isLeftArrow, m_isRightArrow): Delete macros.
13080 (m_isXdbStyleCommandChar): Delete macro.
13081 (key_is_start_sequence): Declare, replace m_isStartSequence.
13082 (key_is_end_sequence): Declare, replace m_isEndSequence.
13083 (key_is_backspace): Declare ,replace m_isBackspace.
13084 (key_is_command_char): Declare, replace m_isCommandChar.
13085 * tui/tui-command.c: Update copyright.
13086 (tuiDispatchCtrlChar): Update references.
13087
130d87e6
AC
13088 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13089 tuiSourceWin.h.
13090
d7b2e967
AC
13091 * tui/tui-command.c: Rename tui/tuiCommand.c.
13092 * tui/tui-command.h: Rename tui/tuiCommand.h.
13093 * tui/tui-data.c: Rename tui/tuiData.c.
13094 * tui/tui-data.h: Rename tui/tuiData.h.
13095 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13096 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13097 * tui/tui-io.c: Rename tui/tuiIO.c.
13098 * tui/tui-io.h: Rename tui/tuiIO.h.
13099 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13100 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13101 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13102 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13103 * tui/tui-source.c: Rename tui/tuiSource.c.
13104 * tui/tui-source.h: Rename tui/tuiSource.h.
13105 * tui/tui-stack.c: Rename tui/tuiStack.c.
13106 * tui/tui-stack.h: Rename tui/tuiStack.h.
13107 * tui/tui-win.c: Rename tui/tuiWin.c.
13108 * tui/tui-win.h: Rename tui/tuiWin.h.
13109 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13110 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13111 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13112 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13113 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13114 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13115 * tui/tui-file.c: Update includes.
13116 * tui/tui-hooks.c: Update includes.
13117 * tui/tui-interp.c: Update includes.
13118 * tui/tui.c: Update includes.
13119 * Makefile.in: Update all tui/ dependencies.
13120 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13121
b2100910
AC
13122 * Makefile.in: Update copyright. Update dependencies.
13123
cebe9500
AC
13124 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13125 problem.
13126
c6f0559b
AC
131272004-01-18 Andrew Cagney <cagney@redhat.com>
13128
43e9390b
AC
13129 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13130 instead of register_gdbarch_init.
13131
c6f0559b
AC
13132 * remote-sds.c (tohex): Delete unused function. Update copyright.
13133 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13134 * v850-tdep.c (v850_register_virtual_size): Ditto.
13135 * target.c (normal_target_post_startup_inferior): Ditto.
13136 * source.c (ambiguous_line_spec): Ditto.
13137 * remote.c (adapt_remote_get_threadinfo): Ditto.
13138 * mi/mi-out.c (out_field_fmt): Ditto.
13139 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13140 (output_control_change_notification): Ditto.
13141 * m68k-tdep.c (m68k_register_byte): Ditto.
13142 (m68k_remote_breakpoint_from_pc): Ditto.
13143 * ui-out.c (init_ui_out_state): Delete unused declaration.
13144 * stabsread.c (search_value): Ditto.
13145 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13146 * maint.c (print_section_table): Ditto.
13147 * infrun.c (set_follow_fork_mode_command): Ditto.
13148
a8504492
MK
131492004-01-18 Mark Kettenis <kettenis@gnu.org>
13150
13151 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13152 DW_CFA_def_cfa_exporession. Add support for
13153 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13154 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13155
0bd8997e
AC
131562004-01-18 Andrew Cagney <cagney@redhat.com>
13157
13158 * ocd.c: Update copyright.
13159 (bdm_read_register_command): Delete unused function.
13160 (_initialize_remote_ocd): Delete commented out reference.
13161 (get_quoted_char, reset_packet): Delete #if0ed function.
13162 (output_packet, put_quoted_char): Delete #if0ed function.
13163 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13164 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13165 (BDM_BREAKPOINT): Delete #if0ed macro.
13166 (remote_timeout): Delete #if0ed variable.
13167
31bb40e4
MK
131682004-01-18 Mark Kettenis <kettenis@gnu.org>
13169
13170 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13171 (core-sol2.o): Remove dependency.
13172 * core-sol2.c: Remove file.
13173
887432a5
AC
131742004-01-17 Andrew Cagney <cagney@redhat.com>
13175
13176 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13177 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13178 enums.
13179
29182b13
DJ
131802004-01-17 Daniel Jacobowitz <drow@mvista.com>
13181
13182 * remote.c: Update copyright years.
13183
2963ee1d
DJ
131842004-01-17 Daniel Jacobowitz <drow@mvista.com>
13185
13186 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13187
79d45cd4
AC
131882004-01-17 Andrew Cagney <cagney@redhat.com>
13189
ee300cd4
AC
13190 * mdebugread.c: Update copyright.
13191 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13192 (parse_type, parse_procedure): Ditto.
13193 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13194
fcacc9c2
AC
13195 * cris-tdep.c (cris_store_struct_return): Put back accidently
13196 deleted function.
13197
79d45cd4
AC
13198 * gdbarch.sh: Update copyright year.
13199 * gdbarch.h, gdbarch.c: Re-generate.
13200
b263358a
DJ
132012004-01-17 Daniel Jacobowitz <drow@mvista.com>
13202
13203 Suggested by George Anzinger.
13204 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13205 correct stack offset. Include unknown opcode numbers in the error
13206 message.
13207
931aecf5
AC
132082004-01-17 Andrew Cagney <cagney@redhat.com>
13209
13210 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13211 extract_struct_value_address, i386 does not set it.
13212 * sparc64-tdep.c (sparc64_init_abi): Do not set
13213 extract_struct_value_address, never called.
13214 (sparc64_extract_struct_value_address): Delete function.
13215 * m68hc11-tdep.c: Update copyright.
13216 (m68hc11_gdbarch_init): Delete redundant assignment of
13217 extract_struct_value_address.
13218 * i386-tdep.c: Update copyright.
13219 (i386_gdbarch_init): Do not set extract_struct_value_address,
13220 never called.
13221 (i386_extract_struct_value_address): Delete function.
13222 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13223 extract_struct_value_address, never called.
13224 (sparc32_extract_struct_value_address): #if 0 function. Add
13225 comments explaining its future.
13226
756fe439
DJ
132272004-01-17 Daniel Jacobowitz <drow@mvista.com>
13228
13229 * arm-tdep.c (arm_write_pc): New function.
13230 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13231
e74f0f02
DJ
132322004-01-17 Daniel Jacobowitz <drow@mvista.com>
13233
13234 * breakpoint.c (must_shift_inst_regs): Delete.
13235 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13236 and SHIFT_INST_REGS.
13237 * infcmd.c (step_1, step_1_continuation): Delete references to
13238 SHIFT_INST_REGS.
13239 * infrun.c (keep_going): Likewise.
13240 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13241 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13242
b6cb9035
AC
132432004-01-17 Andrew Cagney <cagney@redhat.com>
13244
444a1e2e
AC
13245 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13246 * gdbarch.h, gdbarch.c: Re-generate.
13247 * infcmd.c (print_return_value): Delete reference to
13248 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13249
def7e6ed
AC
13250 * cris-tdep.c (cris_gdbarch_init): Do not set
13251 deprecated_extract_struct_value_address.
13252
07be497a
AC
13253 * xstormy16-tdep.c: Update copyright.
13254 (xstormy16_extract_struct_value_address): Update to current
13255 extract struct value address interface.
13256 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13257 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13258 current extract struct value address interface.
13259 (sh64_gdbarch_init): Set extract_struct_value_address.
13260
6b4d5c91
AC
13261 * cris-tdep.c: Update copyright.
13262 (cris_extract_struct_value_address): Delete function.
13263 (struct_return_address): Delete variable.
13264 (cris_store_struct_return): Do not set struct_return_address.
13265
464e0365
AC
13266 * mcore-tdep.c: Update copyright.
13267 (mcore_extract_struct_value_address): Delete function. Update
13268 comments.
13269 (mcore_gdbarch_init): Update.
13270 * mn10300-tdep.c: Update copyright.
13271 (mn10300_extract_struct_value_address): Delete function.
13272 (mn10300_gdbarch_init): Update.
13273 * v850-tdep.c: Update copyright.
13274 (v850_extract_struct_value_address): Delete.
13275 (v850_gdbarch_init): Update.
13276 * ns32k-tdep.c: Update copyright.
13277 (ns32k_extract_struct_value_address): Delete.
13278 (ns32k_gdbarch_init): Update.
13279 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13280 (hppa_gdbarch_init): Update.
13281 * vax-tdep.c: Update copyright.
13282 (vax_extract_struct_value_address): Delete.
13283 (vax_gdbarch_init): Update.
13284
afb18d0f
AC
13285 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13286 * gdbarch.h, gdbarch.c: Re-generate.
13287 * procfs.c (procfs_fetch_registers): Delete reference to
13288 DEPRECATED_NPC_REGNUM.
13289 (procfs_store_registers): Ditto.
13290 * regcache.c (generic_target_write_pc): Simplify.
13291 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13292
a698f53e
AC
13293 * core-sol2.c (fetch_core_registers): Replace
13294 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13295
adc11376
AC
13296 * hppa-tdep.c: Update copyright year.
13297 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13298 NPC_REGNUM.
13299 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13300
b6cb9035
AC
13301 * mips-tdep.c (mips_write_pc): New function.
13302 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13303 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13304 (mips_find_saved_regs, mips_software_single_step: Ditto.
13305 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13306 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13307
6d82d43b
AC
133082004-01-17 Andrew Cagney <cagney@redhat.com>
13309
13310 * mips-tdep.c: Re-indent. Group functions by ABI.
13311
71bd6bd4
AC
133122004-01-17 Andrew Cagney <cagney@redhat.com>
13313
13314 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13315 * gdbarch.c: Re-generate.
13316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13317 DECR_PC_AFTER_BREAK to zero.
13318 * vax-tdep.c (vax_gdbarch_init): Ditto.
13319 * v850-tdep.c (v850_gdbarch_init): Ditto.
13320 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13321 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13322 * sh-tdep.c (sh_gdbarch_init): Ditto.
13323 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13324 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13325 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13326 * mips-tdep.c (mips_gdbarch_init): Ditto.
13327 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13329 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13330 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13331 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13332 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13333 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13334 * frv-tdep.c (frv_gdbarch_init): Ditto.
13335 * cris-tdep.c (cris_gdbarch_init): Ditto.
13336 * avr-tdep.c (avr_gdbarch_init): Ditto.
13337 * arm-tdep.c (arm_gdbarch_init): Ditto.
13338 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13339
a02abb62
JB
133402004-01-17 J. Brobecker <brobecker@gnat.com>
13341
13342 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13343 Delete, no longer used.
13344 (read_subrange_type): New function, mostly extracted from
13345 read_array_type().
13346 (read_array_type): Replace extracted code by call to
13347 read_subrange_type().
13348 (dwarf2_get_attr_constant_value): New function.
13349 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13350 (add_partial_symbol): Likewise.
13351 (process_die): Likewise.
13352 (new_symbol): Likewise.
13353 (read_type_die): Likewise.
13354
cf5b2f1b
AC
133552004-01-16 Andrew Cagney <cagney@redhat.com>
13356
13357 * symfile.c: Update copyright year.
13358 (compare_symbols): Delete unused function.
13359 * stabsread.c: Update copyright year.
13360 (lrs_general_complaint): Delete unused function.
13361 (ref_search_value): Ditto.
13362 (get_substring): Delete declaration.
13363 * sh64-tdep.c: Update copyright year.
13364 (sh64_get_gdb_regnum): Delete unused function.
13365 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13366 Delete unused function.
13367
d33b9831
MK
133682004-01-17 Mark Kettenis <kettenis@gnu.org>
13369
13370 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13371 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13372
7aea86e6
AC
133732004-01-16 Andrew Cagney <cagney@redhat.com>
13374
13375 Changes from Peter Schauer.
13376 * rs6000-tdep.c: Update copyright year.
13377 (rs6000_push_dummy_call): Update the stack pointer before
13378 accessing the corresponding stack region.
13379 * rs6000-nat.c: Update copyright year.
13380 (set_host_arch): Set "info.abfd" to "exec_bfd".
13381
26b0da32
MK
133822004-01-15 Mark Kettenis <kettenis@gnu.org>
13383
13384 * blockframe.c: Update copyright year.
13385 (inside_entry_func): Don't treat a zero PC specially.
13386
86fbe6cc
EZ
133872004-01-14 Elena Zannoni <ezannoni@redhat.com>
13388
13389 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13390 variable.
13391 (gcore_create_callback): Ditto. Skip any memory segment that has
13392 no permissions set.
13393
63d06c5c
DC
133942004-01-14 David Carlton <carlton@kealia.com>
13395
13396 Change symbols for C++ nested types to contain the fully qualified
13397 name, if possible. (At least in the DWARF-2 case.) Partial fix
13398 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13399 c++/895.
13400 * c-exp.y (qualified_type): Handle types nested within classes.
13401 * cp-namespace.c: Update comments.
13402 (cp_set_block_scope): Delete #if 0.
13403 (cp_lookup_nested_type): Handle types nested within classes.
13404 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13405 when appropriate.
13406 (add_partial_symbol): Add the name of the enclosing namespace to
13407 types.
13408 (pdi_needs_namespace): New.
13409 (add_partial_namespace): Tweak comment.
13410 (add_partial_structure): New.
13411 (psymtab_to_symtab_1): Initialize processing_current_prefix
13412 here...
13413 (process_die): instead of here.
13414 (read_structure_scope): Try to figure out the name of the class or
13415 namespace that the structure might be defined within.
13416 (read_enumeration): Generate fully-qualified names, if possible.
13417 (read_namespace): Don't set name to NULL.
13418 (die_specification): New.
13419 (new_symbol): Generate fully-qualified names for types.
13420 (read_type_die): Determine appropriate prefix.
13421 (determine_prefix): New.
13422 (typename_concat): New.
13423 (class_name): New.
13424 * valops.c (value_aggregate_elt): Pass NOSIDE to
13425 value_struct_elt_for_reference.
13426 (value_struct_elt_for_reference): Make static, add NOSIDE
13427 parameter, call value_maybe_namespace_elt as a last resort.
13428 (value_namespace_elt): Break out code into
13429 value_maybe_namespace_elt.
13430 (value_maybe_namespace_elt): New.
13431
87783b8b
AC
134322004-01-12 Andrew Cagney <cagney@redhat.com>
13433
13434 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13435 cooked floating-point registers.
13436 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13437 and value_to_register.
13438
6503b91e
AC
134392004-01-13 Andrew Cagney <cagney@redhat.com>
13440
13441 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13442 * gdbarch.c: Re-generate.
13443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13444 FUNCTION_START_OFFSET.
13445 * v850-tdep.c (v850_gdbarch_init): Ditto.
13446 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13447 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13448 * sh-tdep.c (sh_gdbarch_init): Ditto.
13449 * s390-tdep.c (s390_gdbarch_init): Ditto.
13450 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13451 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13452 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13453 * mips-tdep.c (mips_gdbarch_init): Ditto.
13454 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13455 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13457 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13458 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13459 * i386-tdep.c (i386_gdbarch_init): Ditto.
13460 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13461 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13462 * frv-tdep.c (frv_gdbarch_init): Ditto.
13463 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13464 * cris-tdep.c (cris_gdbarch_init): Ditto.
13465 * avr-tdep.c (avr_gdbarch_init): Ditto.
13466 * arm-tdep.c (arm_gdbarch_init): Ditto.
13467 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13468
ea1dd7bc
DJ
134692004-01-13 Daniel Jacobowitz <drow@mvista.com>
13470
13471 * infrun.c (follow_fork_mode_ask): Remove.
13472 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13473 (follow_fork): Simplify and remove internal error for
13474 follow_fork_mode_ask.
13475 (_initialize_infrun): Update "set follow-fork-mode" help text.
13476
0f0cffd2
AC
134772004-01-13 Andrew Cagney <cagney@redhat.com>
13478
13479 * configure.in: Update copyright year.
13480 (build_warnings): Add -Wunused-label.
13481 * configure: Re-generate.
13482
de38af99
AC
134832004-01-12 Andrew Cagney <cagney@redhat.com>
13484
954a7fba
AC
13485 * exec.h (exec_ops): Make "extern".
13486
de38af99
AC
13487 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13488 the function is void.
13489 (mips_pseudo_register_write): Ditto.
13490
1a111ce3
AC
134912004-01-12 Andrew Cagney <cagney@redhat.com>
13492
13493 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13494 call. Never defined.
13495 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13496 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13497 (struct sparc_gregset, struct regcache): Ditto.
13498 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13499
48efe704
AC
135002004-01-12 Andrew Cagney <cagney@redhat.com>
13501
13502 * mi/ChangeLog: Delete file. Renamed to ...
13503 * mi/ChangeLog-1999-2003: New file.
13504 * tui/ChangeLog: Delete file. Renamed to ...
13505 * tui/ChangeLog-1998-2003: New file.
fe61caab 13506
a54124c5
MK
135072004-01-11 Mark Kettenis <kettenis@gnu.org>
13508
2ca62865
MK
13509 * sparc64nbsd-tdep.c: Include "regset.h".
13510 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13511 Remove variables.
13512 (fetch_core_registers): Remove function.
13513 (sparc64nbsd_core_fns): Remove variable.
13514 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13515 functions.
13516 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13517 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13518 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13519
ca9d58e9
MK
13520 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13521 sparc_extract_struct_value_address.
13522 (sparc32_gdbarch_init): Set extract_struct_value_address.
13523 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13524 function.
13525 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13526 return_value_on_stack.
13527
3cc87ec0
MK
13528 * NEWS: Mention that %cs and %ss have been added to the AMD64
13529 configurations
13530
5bf00f29
MK
13531 * frame.c: Update copyright year.
13532 (get_prev_frame): Improve comment.
13533
4f7ec84e
MK
13534 * sparc64fbsd-tdep.c: Include "regset.h".
13535 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13536 Remove variables.
13537 (fetch_core_registers): Remove function.
13538 (sparc64fbsd_core_fns): Remove variable.
13539 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13540 functions.
13541 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13542 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13543 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13544
4e7b0cd3
MK
13545 * sparcnbsd-tdep.c: Include "regset.h".
13546 (fetch_core_registers): Remove function.
13547 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13548 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13549 functions.
13550 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13551 TDEP->fpregset.
46b58ce9 13552 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13553
a54124c5
MK
13554 * sparc-tdep.h (struct regset): Provide opaque declaration.
13555 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13556 fpregset and sizeof_fpregset members.
13557 * sparc-tdep.c (struct regset): Provide opaque declaration.
13558 (sparc_regset_from_core_section): New function.
13559 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13560 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13561 Set regset_from_core_section when appropriate.
13562
29ff87c5
MK
135632004-01-10 Mark Kettenis <kettenis@gnu.org>
13564
79b1ab3d
MK
13565 * x86-64-tdep.c (amd64_non_pod_p): New function.
13566 (amd64_classify_aggregate): Return class memory for non-POD
13567 C++ structure types.
13568
6470d250
MK
13569 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13570 argument. Use it to reserve a register if necessary.
13571 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13572 amd64_push_arguments.
13573
562c50c2
MK
13574 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13575
af233647
MK
13576 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13577 register numbers in comments.
13578 * x86-64-tdep.h: Update copyright year.
13579 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13580 Adjust for addition of %cs and %ss.
13581 * amd64fbsd-nat.c: Update copyright year.
13582 (reg_offset): Add register offsets for %cs and %ss.
13583 * amd64fbsd-tdep.c: Update copyright year.
13584 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13585 (amd64fbsd_sc_reg_offset): Likewise.
13586 * x86-64-linux-nat.c: Update copyright year.
13587 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13588 and %ss.
13589 * amd64nbsd-nat.c: Update copyright year.
13590 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13591 * amd64nbsd-tdep.c: Update copyright year.
13592 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13593 * x86-64-linux-tdep.c: Update copyright year.
13594 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13595 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13596 * regformats/reg-x86-64.dat: Add %cs and %ss.
13597
29ff87c5
MK
13598 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13599 variables to prevent long lines. Update comments to reflect
13600 reality.
13601
38d518c9
EZ
136022004-01-09 David Carlton <carlton@kealia.com>
13603
13604 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13605 * dwarf2read.c (read_namespace): Pull out name-generating code
13606 into namespace_name. Rename previous_namespace to previous_prefix
13607 and processing_current_namespace to processing_current_prefix..
13608 (namespace_name): New function.
13609 (add_partial_symbol): Substitute uses of pdi->name with
13610 actual_name.
13611 * cp-support.h: Rename processing_current_namespace to
13612 processing_current_prefix.
13613 Update copyright year.
13614 * cp-namespace.c: Rename processing_current_namespace to
13615 processing_current_prefix.
13616 Update copyright year.
fe61caab 13617
1e4728e7
AC
136182004-01-09 Andrew Cagney <cagney@redhat.com>
13619
13620 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13621
c77c642a
MK
136222004-01-09 Mark Kettenis <kettenis@gnu.org>
13623
13624 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13625 complaining.
13626 (process_one_symbol): Deal with N_PATCH stabs.
13627
b44e9041
EZ
136282004-01-09 Elena Zannoni <ezannoni@redhat.com>
13629
13630 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13631 ifdeffed code.
13632 Update copyright year.
38d518c9 13633
eccfb640
MC
136342004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13635
13636 * config/pa/tm-hppa.h: Update extern declarations for
13637 hppa32_hpux_frame_saved_pc_in_sigtramp,
13638 hppa32_hpux_frame_base_before_sigtramp, and
13639 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13640
848c5feb
MC
136412004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13642
13643 * config/pa/tm-hppah.h: Update copyright years.
13644
3cc5d663
AC
136452004-01-08 Andrew Cagney <cagney@redhat.com>
13646
13647 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13648 (mips_o32_reg_struct_has_addr): Delete function.
13649 (mips_gdbarch_init): Update.
13650 (mips_extract_struct_value_address): Delete function.
13651
bfec0b41
JJ
136522004-01-08 David Mosberger <davidm@hpl.hp.com>
13653
13654 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13655 reality.
13656
16e109ca
AC
136572004-01-07 Andrew Cagney <cagney@redhat.com>
13658
6214a8a1
AC
13659 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13660 architecture's elf flags (when available).
13661
8d5838b5
AC
13662 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13663 FPU to the start, check the MIPS FPU when looking for an old
13664 architecture.
13665 (set_mipsfpu_single_command): Update the architecture.
13666 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13667
480d3dd2
AC
13668 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13669 (mips_mask_address_p): Add "tdep" parameter.
13670 (show_mask_address, mips_addr_bits_remove): Update.
13671 (mips_dump_tdep): Update.
13672 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13673 (MIPS_STACK_ARGSIZE): Delete macro.
13674 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13675 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13676 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13677 (mips_dump_tdep): Update.
13678 (MIPS_SAVED_REGSIZE): Delete macro.
13679 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13680 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13681 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13682 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13683 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13684 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13685 (mips_pop_frame, return_value_location): Update.
13686 (mips_n32n64_return_value, mips_dump_tdep): Update.
13687
ec03c1ac
AC
13688 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13689 MIPS ABI.
13690
16e109ca
AC
13691 * mips-tdep.c: Update copyright.
13692 (mips_gdbarch_init): Merge two code blocks handling the register
13693 name and number layout.
13694
15255275
MS
136952004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13696
13697 * tracepoint.c (validate_actionline): Fix segv at EOF
13698
9f9057da
MC
136992004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13700
13701 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13702 properly for static fields.
13703
0127c0d3 137042004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13705 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13706
13707 * disasm.c: Update copyright to include 2004.
13708 (do_mixed_source_and_assembly): For uiout asm list
13709 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13710 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13711 the tuple/list. Move check for whether to close off the
fe61caab 13712 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13713 on each loop iteration.
13714
5269965e
AC
137152004-01-05 Andrew Cagney <cagney@redhat.com>
13716
54f1137d
AC
13717 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13718 should be a switch case and not a label.
13719 * mips-tdep.c (mips32_next_pc): Delete unused labels
13720 "greater_equal_branch" and "less_zero_branch".
13721 * jv-valprint.c (java_print_value_fields): Delete unused label
13722 "flush_it".
13723
5269965e
AC
13724 * target.c (unpush_target): Only close a target that is in the
13725 target stack.
13726
dbc22fa1
MK
137272004-01-05 Mark Kettenis <kettenis@gnu.org>
13728
9515395e
MK
13729 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13730 address from [sp + 64] instead of %o2.
13731
dbc22fa1
MK
13732 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13733 fixes PR backtrace/1476.
13734
5439edaa
AC
137352004-01-05 Andrew Cagney <cagney@redhat.com>
13736
13737 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13738 move to start of file.
13739 * i386-tdep.h (struct regcache): Add opaque declaration.
13740 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13741 declaration.
13742 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13743 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13744 * win32-nat.c (fake_create_process): Use ISO C style definition.
13745 * stabsread.c (define_symbol): Delete #ifndef
13746 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13747 stabs_argument_has_addr call, macro never defined.
13748
19061abe
MC
137492004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13750
13751 * op50-rom.c: Delete.
13752 * w89k-rom.c: Delete.
13753 * Makefile.in: Remove references.
13754
e53bef9f
MK
137552004-01-04 Mark Kettenis <kettenis@gnu.org>
13756
13757 * x86-64-tdep.c: Update copyright year.
13758 (struct amd64_register_info): Rename from x86_64_register_info.
13759 (amd64_register_info): Rename from x86_64_register_info.
13760 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13761 (amd64_register_name): Rename from x86_64_register_name.
13762 (amd64_register_type): Rename from x86_64_register_type.
13763 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13764 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13765 (amd64_dwarf_reg_to_regnum): Rename from
13766 x86_64_dwarf_reg_to_regnum.
13767 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13768 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13769 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13770 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13771 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13772 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13773 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13774 (amd64_frame_cache): Rename from x86_64_frame_cache.
13775 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13776 (amd64_frame_prev_register): Rename from
13777 x86_64_frame_prev_register.
13778 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13779 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13780 (amd64_sigtramp_frame_cache): Rename from
13781 x86_64_sigtramp_frame_cache.
13782 (amd64_sigtramp_frame_prev_register): Rename from
13783 x86_64_sigtramp_frame_prev_register.
13784 (amd64_sigtramp_frame_unwind): Rename from
13785 x86_64_sigtramp_frame_unwind.
13786 (amd64_sigtramp_frame_sniffer): Rename from
13787 x86_64_sigtramp_frame_sniffer.
13788 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13789 (amd64_frame_base): Rename from x86_64_frame_base.
13790 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13791 (amd64_frame_align): Rename from x86_64_frame_align.
13792 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13793 (amd64_regset_from_core_section): Rename from
13794 x86_64_regset_from_core_section.
13795 (x86_64_init_abi): Update comments.
13796
fca6aa58
NR
137972004-01-04 Nick Roberts <nick@nick.uklinux.net>
13798
13799 * MAINTAINERS (write after approval): Add myself.
13800
8ada74e3
MK
138012004-01-04 Mark Kettenis <kettenis@gnu.org>
13802
13803 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13804 `float' arguments.
13805
5154b0cd
MK
138062004-01-04 Mark Kettenis <kettenis@gnu.org>
13807
13808 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13809 such that it mentions a specific version of GCC that exhibits this
13810 bug.
13811
fb316966
MK
138122004-01-03 Mark Kettenis <kettenis@gnu.org>
13813
200cc553
MK
13814 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13815 structure that has a single `float' member, store it in %f1 in
13816 addition to %f0.
13817
e226a4a0
MK
13818 * sparc-sol2-nat.c: Add missing '\'.
13819
b9d4c5ed
MK
13820 * sparc-tdep.c (sparc32_return_value): New function.
13821 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13822 Remove functions.
13823 (sparc32_gdbarch_init): Set return_value, don't set
13824 extract_return_value, store_return_value, use_struct_convention
13825 and return_value_on_stack.
13826
fb316966
MK
13827 * sparc-sol2-nat.c: Add missing ')'.
13828
1af510a8
JB
138292004-01-03 J. Brobecker <brobecker@gnat.com>
13830
13831 * infrun.c (handle_step_into_function): New function.
13832 (handle_inferior_event): Extract out some code into the new
13833 function above.
13834
5cf4d23a
JB
138352004-01-03 J. Brobecker <brobecker@gnat.com>
13836
13837 * infrun.c (handle_inferior_event): Move the declaration of
13838 real_stop_pc inside the if blocks where it is used.
13839
60af1db2
MK
138402004-01-03 Mark Kettenis <kettenis@gnu.org>
13841
13842 * sparc64-tdep.c (sparc64_16_byte_align_p)
13843 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13844 Use check_typedef to get subtypes of structures and unions.
13845 (sparc64_store_return_value): Fix calculation of the appropriate
13846 offset into VALBUF when storing a structure or union.
13847 (sparc64_return_value): New function.
13848 (sparc64_use_struct_convention): Remove function.
13849 (sparc64_init_abi): Set return_value, don't set
13850 extract_return_value, store_return_value and
13851 use_struct_convention.
13852
1a901d3f
EZ
138532004-01-03 Eli Zaretskii <eliz@elta.co.il>
13854
13855 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13856 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13857 gdb/config/alpha/xm-alphaosf.h,
13858 gdb/config/powerpc/tm-ppcle-eabi.h,
13859 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13860 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13861 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13862 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13863 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13864 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13865 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13866 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13867 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13868 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13869 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13870 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13871 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13872 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13873 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13874 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13875 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13876 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13877 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13878 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13879 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13880 Remove lines for .cvsignore files.
13881
ef52e463
JB
138822004-01-03 J. Brobecker <brobecker@gnat.com>
13883
13884 * infrun.c: Back out the previous change.
13885
cb1bf9dc
MK
138862004-01-03 Mark Kettenis <kettenis@gnu.org>
13887
f0424ef6
MK
13888 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13889 sparc-*-sunos4* to the list of REMOVED configurations.
13890
cb1bf9dc
MK
13891 * configure.tgt: Add back sparc-*-vxworks*.
13892 * remote-vxsparc.c: Remove all includes except for "defs.h",
13893 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13894 Include "sparc-tdep.h".
13895 (SPARC_R_G1): New define.
13896 (vxsparc_gregset): New variable.
13897 (ext_format_sparc): Remove extern declaration.
13898 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13899 sparc32_supply_fpregset.
13900 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13901 sparc_collect_rwindow and sparc32_collect_fpregset.
13902 * config/sparc/tm-vxworks.h: New file, based on recently removed
13903 tm-vxsparc.h.
13904 * config/sparc/vxworks.mt: New file, based on recently removed
13905 vxworks.mt.
fe61caab 13906
5e938f9f
JB
139072004-01-03 J. Brobecker <brobecker@gnat.com>
13908
13909 * infrun.c (handle_step_into_function): New function.
13910 (handle_inferior_event): Extract out some code into the new
13911 function above.
13912
386c036b
MK
139132004-01-02 Mark Kettenis <kettenis@gnu.org>
13914
13915 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13916 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13917 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13918 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13919 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13920 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13921 (sparc_nat_h): New variable.
13922 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13923 (tm-sun4os4.h): Remove dependency.
13924 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13925 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13926 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13927 sparc-tdep.o): Update dependencies.
13928 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13929 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13930 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13931 dependencies.
13932 * configure.host: Remove existing sparc-*-lynxos*,
13933 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13934 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13935 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13936 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13937 triplets.
13938 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13939 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13940 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13941 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13942 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13943 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13944 sparc64-*-solaris2* and sparc64-*-* triplets.
13945 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13946 "symtab.h" and "objfiles.h".
13947 (BIAS): Remove define.
13948 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13949 (X_DISP19): Remove macros.
13950 (sparc_fetch_instruction): Remove function.
13951 (struct gdbarch_tdep): Remove definition.
13952 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13953 (sparc_breakpoint_from_pc): Remove function.
13954 (struct sparc64_frame_cache): Remove definition.
13955 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13956 sparc64_unwind_pc): Remove functions.
13957 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13958 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13959 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13960 (sparc64_frame_cache): Change return type to `struct
13961 sparc_frame_cache *'. Simply call sparc_frame_cache.
13962 (sparc64_frame_this_id, sparc64_frame_prev_register,
13963 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13964 instead of `struct sparc64_frame_cache.
13965 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13966 sparc_analyze_control_transfer, sparc_software_single_step,
13967 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13968 _initialize_sparc64_tdep): Remove functions.
13969 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13970 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13971 macros.
13972 (sparc64_supply_gregset, sparc64_collect_gregset,
13973 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13974 (sparc64_init_abi): New function.
13975 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13976 inclusion guard. Include "sparc-tdep.h".
13977 (BIAS): Define.
13978 (r_tstate_offset, r_fprs_offset): New defines.
13979 (enum sparc_regnum): Remove defenition.
13980 (enum sparc64_regnum): Reformat.
13981 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13982 (sparc64_init_abi, sparc64_supply_gregset,
13983 sparc64_collect_gregset, sparc64_supply_fpregset,
13984 sparc64_collect_fpregset): New prototypes.
13985 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13986 Add extern declarations.
13987 (sparc64_sol2_init_abi): New prototype.
13988 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13989 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13990 prototypes.
13991 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13992 "sparnbsd-nat.h".
13993 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13994 functions.
13995 (_initialize_sparc64fbsd_nat): Remove initialization of
13996 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13997 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 13998 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
13999 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14000 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14001 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14002 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14003 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14004 (sparc64fbsd_r_y_offset): Remove variables.
14005 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14006 Make static and const.
14007 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14008 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14009 functions.
14010 (sparc64fbsd_gregset): New variable.
14011 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14012 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14013 and sparc64_supply_fpregset.
14014 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14015 (sparc64fbsd_sigtramp_frame_this_id)
14016 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14017 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14018 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14019 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14020 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14021 * sparcnbsd-tdep.c: Update copyright year. Include
14022 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14023 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14024 "value.h" and "sparcnbsd-tdep.h".
14025 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14026 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14027 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14028 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14029 defines.
14030 (sparcnbsd_gregset): New variable.
14031 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14032 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14033 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14034 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14035 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14036 variables.
14037 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14038 (sparc32nbsd_sigcontext_frame_this_id)
14039 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14040 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14041 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14042 (sparcnbsd_get_longjmp_target_32,
14043 sparcnbsd_get_longjmp_target_64): Remove functions.
14044 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14045 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14046 sparcnbsd_init_elf): Remove.
14047 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14048 (sparcnbsd_elf_init_abi): New functions.
14049 (_initialize_sparcnbsd_tdep): New prototype.
14050 (_initialize_sparnbsd_tdep): Update.
14051 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14052 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14053 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14054 * config/sparc/linux.mh: Update comment.
14055 (XM_FILE, HOST_IPC): Remove variables.
14056 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14057 sparc-linux-nat.o.
14058 * config/sparc/linux.mt: Update comment.
14059 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14060 * config/sparc/nbsd.mt: Reformat.
14061 * config/sparc/nbsd64.mh: Update comment.
14062 (NATDEPFILES): Add sparc-nat.o.
14063 * config/sparc/nbsd64.mt: Update comment.
14064 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14065 (TM_FILE): Set to tm-nbsd.h.
14066 * config/sparc/nbsdelf.mh: Update comment.
14067 (NATDEPFILES): Add sparc-nat.o.
14068 (XM_FILE): Delete.
14069 * config/sparc/nbsdaout.mh: Update comment.
14070 (NATDEPFILES): Add sparc-nat.o
14071 (XM_FILE): Delete.
14072 * config/sparc/nm-linux.h: Update copyright year. Don't include
14073 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14074 inclusion.
14075 (KERNEL_U_SIZE): Remove define.
14076 (kernel_u_size): Remove prototype.
14077 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14078 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14079 "regcache.h".
14080 (CHILD_PREPARE_TO_STORE): Remove define.
14081 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14082 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14083 sparcnbsd-nat.c: Rewrite files.
14084 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14085 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14086 sparcnbsd-tdep.h: Remove files.
14087 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14088 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14089 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14090 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14091 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14092 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14093 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14094 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14095 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14096 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14097 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14098 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14099 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14100 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14101 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14102 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14103 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14104 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14105 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14106
ee84457a
AC
141072004-01-02 Andrew Cagney <cagney@redhat.com>
14108
14109 From 2003-12-18 Kazuhiro Inaoka:
14110 * configure.host: Add m32r-linux target.
14111
0bc2134e
MC
141122004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14113
14114 * top.c (print_gdb_version): Update year to 2004.
14115
89a72f9c
MM
141162004-01-02 Mark Mitchell <mark@codesourcery.com>
14117
14118 * MAINTAINERS: Add myself to the write-after-approval category.
14119
86b013ed
DJ
141202004-01-02 Daniel Jacobowitz <drow@mvista.com>
14121
14122 From Bernardo Innocenti <bernie@develer.com>:
14123 * configure.tgt: Add uClinux target.
14124
e42c9534
AC
141252004-01-02 Andrew Cagney <cagney@redhat.com>
14126
14127 * utils.c (do_my_cleanups): Make static, add forward declaration.
14128 * defs.h (do_my_cleanups): Delete declaration.
14129
162467d3
EZ
141302004-01-02 Eli Zaretskii <eliz@elta.co.il>
14131
14132 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14133 bfd/ChangeLog-0203.
14134
78434e59
MK
141352004-01-02 Mark Kettenis <kettenis@gnu.org>
14136
14137 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14138 in <machine/reg.h>.
14139 * configure, config.in: Regenerate.
14140
48efe704
AC
14141For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14142tui/ChangeLog-1998-2003.
c906108c
SS
14143\f
14144Local Variables:
14145mode: change-log
14146left-margin: 8
14147fill-column: 74
14148version-control: never
14149End:
This page took 1.797211 seconds and 4 git commands to generate.