2004-11-13 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e84ecc99
AC
12004-11-13 Andrew Cagney <cagney@gnu.org>
2
3 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
4 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
5 sparc-*-vxworks*.
6 * NEWS: Mention that vxworks was deleted.
7 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
8 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
9 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
10 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
11 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
12 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
13 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
14 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
15 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
16 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
17 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
18 * remote-vxmips.c, remote-vx.c: Delete.
19 * remote-vx68.c: Delete.
20 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
21 * config/m68k/os68k.mt, ada-lang.h: Ditto.
22 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
23 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
24
01e937bc
EZ
252004-11-13 Eli Zaretskii <eliz@gnu.org>
26
29247324
EZ
27 * config/i386/xm-go32.h: Don't include fopen-bin.h.
28 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
29
30 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
31 branch that doesn't define CRLF_SOURCE_FILES; always use
32 binary-mode open.
33 (print_source_lines_base, forward_search_command)
34 (reverse_search_command): Enable the code that accepts DOS-style
35 CRLF line endings on all platforms (this removes the need for
36 CRLF_SOURCE_FILES).
37
f8f0d88a 38 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 39 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 40
01e937bc
EZ
41 * config/djgpp/fnchange.lst: Group renames for opcode directory
42 together.
43
44 * config/djgpp/djconfig.sh: Replace file names that don't exist
45 anymore with existing files, for checking the unpacked
46 distribution.
47
48 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
49 Export pre-cooked values in configure-* targets that begin with
50 "@test -f stage_last".
51
25ae5d16
AC
522004-11-12 Andrew Cagney <cagney@gnu.org>
53
54 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
55 * value.h (struct value): Update comment.
56 * valops.c (value_assign): Fold lval_reg_fame_relative into
57 lval_register.
58 * findvar.c (value_from_register, locate_var_value): Ditto.
59
d7318818
RC
602004-11-12 Randolph Chung <tausq@debian.org>
61
62 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
63 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
64 (write_exp_msymbol): Remove conditional check for symbols starting
65 with $. Update comments.
66
89676665
RC
672004-11-12 Randolph Chung <tausq@debian.org>
68
69 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
70 so_lib_thread_start_addr.
71 * pa64solib.h (so_list): Forward declare.
72 (pa64_solib_thread_start_addr): Prototype.
73 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
74 (no_shared_libraries): Remove.
75 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
76 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
77 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
78 the elf solib handler to find the start address.
79
80 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
81 files to the target makefile.
82 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
83 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
84 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
85
86 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 87 files for symbol reading and shared library handling here.
89676665 88 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
89 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
90 without bringing in 64-bit support.
89676665 91
df407dfe
AC
922004-11-12 Andrew Cagney <cagney@gnu.org>
93
4991999e
AC
94 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
95 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
96 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
97 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
98 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
99 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
100 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
101
9ee8fc9d
AC
102 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
103 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
104 (VALUE_REGNUM): Define.
105 (struct value): Delete location.regnum, rename "regno" to
106 "regnum".
107 * value.c, valops.c, valarith.c, findvar.c: Update.
108
df407dfe
AC
109 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
110 (VALUE_BITPOS): Delete.
111 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
112 * value.c (value_type, value_offset, value_bitpos)
113 (value_bitsize): New functions. Update references.
114 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
115 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
116 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
117 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
118 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
119 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
120 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
121 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
122 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
123
61c82a3b
AC
1242004-11-12 Andrew Cagney <cagney@gnu.org>
125
126 * cris-tdep.c (cris_register_offset): Delete, never called.
127 (cris_spec_reg_applicable): Delete cris_ver_sim.
128 * MAINTAINERS: List d10v as OBSOLETE.
129 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
130 FOPEN_WB et.al., defined by "fopen-bin.h".
131
5aac166f
RC
1322004-11-12 Randolph Chung <tausq@debian.org>
133
134 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
135 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
136 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
137 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
138
4fab48b9
MK
1392004-11-12 Mark Kettenis <kettenis@jive.nl>
140
141 * tui/tui-io.c: Don't include "terminal.h".
142 * Makefile.in (tui-io.o): Update dependencies.
143
9b098f24
KI
1442004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
145
146 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
147 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
148 set_gdbarch_regset_from_core_section for core file support.
149 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
150 New functions.
151
a71f8c30
RC
1522004-11-11 Randolph Chung <tausq@debian.org>
153
154 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
155 stop_after_branch parameter and use it to determine if we should look
156 at the delay slot of the first branch insn to find prologue insns.
157 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
158 (hppa_frame_cache): Likewise.
159
50b2f48a
RC
1602004-11-11 Randolph Chung <tausq@debian.org>
161
162 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
163 register so that it can be unwound from anywhere in the prologue.
164
be723e22
MS
1652004-11-10 msnyder <msnyder@redhat.com>
166
167 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
168 must invalidate lr_reg (so we don't try to save it again).
169 Ditto for cr_offset and cr_reg.
170
d6f7abdf
AC
1712004-11-05 Jon Beniston <jon@beniston.com>
172
216c5547 173 Committed by Andrew Cagney.
d6f7abdf
AC
174 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
175 when an unexpected packet is received, as the target stubs
176 continually retransmit the same packet until ACKed.
177
1d225535
RC
1782004-11-10 Randolph Chung <tausq@debian.org>
179
180 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 181 frame's type.
1d225535 182
2315ffec
RC
1832004-11-10 Randolph Chung <tausq@debian.org>
184
185 * blockframe.c (inside_entry_func): Move to .....
186 * frame.c (inside_entry_func): ... here, and make static.
187 (backtrace_past_entry): New flag.
188 (get_prev_frame): Stop backtrace at the entry function if enabled
189 by flag. Update comments.
190 (_initialize_frame): Add command to set backtrace_past_entry flag.
191 * defs.h (inside_entry_func): Remove prototype.
192
917c78fc
MK
1932004-11-10 Mark Kettenis <kettenis@gnu.org>
194
195 * dwarf2read.c: Fix formatting.
196
994b9211
AC
1972004-11-10 Andrew Cagney <cagney@gnu.org>
198
199 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
200 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
201 macros with function declarations.
202 * value.c (coerce_ref, coerce_array, coerce_number)
203 (coerce_enum): New functions.
204 (value_as_long, value_as_address): Update.
205 * ada-lang.c (ada_coerce_ref, ada_value_binop)
206 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
207 * jv-lang.c (evaluate_subexp_java): Update.
208 * valarith.c (value_less, value_neg, value_complement)
209 (value_binop, value_add, value_subscript, value_x_binop)
210 (value_logical_not, value_sub): Update.
211 * valops.c (check_field, value_struct_elt, value_ind)
212 (value_find_oload_method_list, value_cast, value_assign): Update.
213 * eval.c (evaluate_subexp_standard): Update.
214
06987e64
MK
2152004-11-10 Mark Kettenis <kettenis@gnu.org>
216
217 * mips-tdep.c (mips32_relative_offset): Change return type to
218 LONGEST, change argument type to ULONGEST. Fix sign-extension.
219
4a302917
RC
2202004-11-10 Randolph Chung <tausq@debian.org>
221
222 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
223 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
224 (hppa_fetch_pointer_argument): Likewise.
225 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
226 deprecated_read_memory_nobpt.
227 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
228 add_set_cmd sequence with add_setshow_boolean_cmd.
229
390e974f
AC
2302004-11-09 Andrew Cagney <cagney@gnu.org>
231
232 GDB 6.3 released from GDB 6.3 branch.
233
92e023d6
AC
2342004-11-09 Andrew Cagney <cagney@gnu.org>
235
236 * values.c: Rename to ...
237 * value.c: ..., new file.
238 * Makefile.in: Update.
239
d10891d4
DJ
2402004-11-09 Daniel Jacobowitz <dan@debian.org>
241
242 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
243 size.
244
00a4c844
AC
2452004-11-09 Andrew Cagney <cagney@gnu.org>
246
c44523e7
AC
247 * TODO: Delete.
248
00a4c844
AC
249 * value.h (struct value): Delete field bfd_section.
250 (VALUE_BFD_SECTION): Delete macro.
251 (COERCE_REF): Update.
252 (value_at, value_at_lazy): Delete asection parameter.
253 * printcmd.c (print_formatted, x_command): Update.
254 (do_examine): Delete asection parameter.
255 (next_section): Delete variable.
256 * valops.c (value_cast, value_at, value_at_lazy)
257 (value_coerce_function, value_addr, value_ind, value_string)
258 (find_rt_vbase_offset, value_full_object): Update.
259 * hpacc-abi.c (hpacc_virtual_fn_field)
260 (hpacc_value_rtti_type): Update.
261 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
262 (gnuv3_baseclass_offset): Update.
263 * f-valprint.c (f_val_print): Update.
264 * c-valprint.c (c_val_print): Update.
265 * p-valprint.c (pascal_val_print): Update.
266 * jv-valprint.c (java_value_print): Update.
267 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
268 * ada-lang.c (ada_value_primitive_packed_val)
269 (ada_evaluate_subexp): Update.
270 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
271 * expprint.c (print_subexp_standard): Update.
272 * infcall.c (call_function_by_hand): Update.
273 * valarith.c (value_add): Update.
274 * eval.c (evaluate_subexp_standard): Update.
275 * values.c (allocate_value, value_copy, value_static_field): Update.
276 * findvar.c (read_var_value, locate_var_value): Update.
277
5cb2fe25
AC
2782004-11-09 Andrew Cagney <cagney@gnu.org>
279
280 * i386-linux-tdep.c: Include "dwarf2-frame.h".
281 * Makefile.in: Update all dependencies.
282
cbafadeb
AC
2832004-11-08 Andrew Cagney <cagney@gnu.org>
284
285 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
286 (sentinel_frame_unwinder): Add the prev_pc method.
287 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
288 available. Do not handle the sentinel-frame case.
289 * frame-unwind.h (frame_prev_register_ftype): Define.
290 (struct frame_unwind): Add prev_pc;
291
3b78cdbb
DA
2922004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
293
294 * configure.in: Check for ncurses/term.h.
295 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
296 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
297 * tui/tui.c: Don't include term.h.
298 * configure, config.in: Rebuilt.
299
bcfca652
MK
3002004-11-08 Mark Kettenis <kettenis@gnu.org>
301
302 * m68kbsd-nat.c: Include "inf-ptrace.h".
303 (_initialize_m68kbsd_nat): Fix pasto.
304 * Makefile.in (m68kbsd-nat.o): Update dependencies.
305
527159b7
RC
3062004-11-08 Randolph Chung <tausq@debian.org>
307
308 * infrun.c (debug_infrun): New variable.
309 (resume, proceed, wait_for_inferior): Annotate with debug messages.
310 (handle_inferior_event, keep_going): Likewise.
311 (_initialize_infrun): Register "set debug infrun" command.
312
c874c7fc
AS
3132004-11-08 Andreas Schwab <schwab@suse.de>
314
315 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
316 PTRACE_EVENT_VFORKDONE.
317 (child_follow_fork): Adjust.
318
3c8fa307
AC
3192004-11-08 Andrew Cagney <cagney@gnu.org>
320
5c26072a
AC
321 * README: Refer to 6.3, not 6.2, update directory listing droppng
322 references to intl/ and mmalloc/.
323 * PROBLEMS: Refer to 6.3 not 6.2.
324
3c8fa307
AC
325 * PROBLEMS: Delete no-longer applicable problems.
326
12b8a2cb
DJ
3272004-11-07 Andrew Cagney <cagney@redhat.com>
328 Daniel Jacobowitz <dan@debian.org>
329 Roland McGrath <roland@redhat.com>
330
331 * Makefile.in (symfile-mem.o): Update dependencies.
332 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
333 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
334 * inf-ptrace.c (inf_ptrace_attach): Call
335 observer_notify_inferior_created.
336 * inftarg.c (child_attach): Likewise.
337 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
338 (symbol_file_add_from_memory): Take NAME argument. Use it for
339 the new BFD's filename.
340 (add_symbol_file_from_memory_command): Update call to
341 symbol_file_add_from_memory.
342 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
343 (symbol_file_add_from_memory_wrapper): New.
344 (_initialize_symfile_mem): Register add_vsyscall_page as an
345 inferior_created observer.
346
abbc6945
MK
3472004-11-07 Mark Kettenis <kettenis@gnu.org>
348
349 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
350 fetch_inferior_registers. Make static.
351 (m68kbsd_store_inferior_registers): Rename from
352 store_inferior_registers. Make static.
353 (_initialize_m68kbsd_nat): Construct and add target vector.
354 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
355 inftarg.o. Add inf-ptrace.o.
356 (NAT_FILE): Set to tm-solib.h.
357 (LOADLIBES): New variable.
358 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
359 inftarg.o. Add inf-ptrace.o.
360 (NAT_FILE): Delete variable.
361 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
362 inftarg.o. Add inf-ptrace.o.
363 (NAT_FILE): Set to tm-solib.h.
364 * config/m68k/nm-nbsdaout.h: Remove file.
365
3ed09a32
DJ
3662004-11-07 Daniel Jacobowitz <dan@debian.org>
367
368 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
369 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
370 (dwarf2_signal_frame_unwind): New.
371 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
372 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
373
8e763687
MK
3742004-11-07 Mark Kettenis <kettenis@gnu.org>
375
4fb31ed0
MK
376 * Makefile.in (mips64obsd-tdep.o): Fix typo.
377
fabe86c8
MK
378 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
379 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
380 to only include the structure members we actually need.
381 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
382 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
383 only include the structure members we actually need.
384 (mipsnbsd_init_abi): Update.
385
366e93e8
MK
386 * mips64obsd-nat.c: Include "mips-tdep.h".
387 (MIPS64OBSD_NUM_REGS): Remove define.
388 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
389 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
390 floating-point registers correctly.
391 * Makefile.in (mips64obsd-nat.o): Update dependencies.
392
8e763687
MK
393 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
394 "gdb_assert.h".
395 (mips64obsd_sigframe_init): New function.
396 (mips64obsd_sigframe): New variable.
397 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
398 unwinder.
399 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
400
5f6a2351
JB
4012004-11-06 Joel Brobecker <brobecker@gnat.com>
402
403 * alpha-mdebug-tdep.c: #include mdebugread.h.
404 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
405 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
406
f059bf6f
AC
4072004-11-05 Andrew Cagney <cagney@gnu.org>
408
409 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
410 CFI and the init_reg method leave the register unspecified.
411 Include the register name in the "Incomplete CFI data" complaint.
412 Supress leading zeros in the address.
413
1234d960
MK
4142004-11-05 Mark Kettenis <kettenis@gnu.org>
415
416 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
417 skipping a personality routine in a CIE augmentation.
418
d75e3c94
JJ
4192004-11-05 Jeff Johnston <jjohnstn@redhat.com>
420
421 * defs.h (fatal, vfatal): New function prototypes.
422 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
423 via catch_errors.
424 (backtrace_command): Change to call backtrace_command_stub via
425 catch_errors instead of calling backtrace_command_1 directly.
426 (backtrace_full_command): Ditto.
427 * utils.c (error_stream_1): New static function.
428 (verror): Change to call error_stream_1 instead of error_stream.
429 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
430 (vfatal, fatal): New functions.
431
98f276a0
AC
4322004-11-05 Andrew Cagney <cagney@gnu.org>
433
434 * stack.c (parse_frame_specification_1): Clear selected_frame_p
435 when not using selected frame.
436
f724bf08
MK
4372004-11-05 Mark Kettenis <kettenis@jive.nl>
438
439 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
440 personality routine in a CIE augmentation.
441
c789492a
FL
4422004-11-05 Felix Lee <felix+log1@specifixinc.com>
443
444 * stack.c (set_current_sal_from_frame): New function.
445 (print_args_stub): Use it.
446 (print_frame_info): Don't set sal here.
447
a81b10ae
MK
4482004-11-04 Mark Kettenis <kettenis@gnu.org>
449
450 * dwarf2-frame.c (read_encoded_value): Change type of third
451 argument to `unsigned char *'. Add support for LEB128 encodings.
452
ad766c0a
JB
4532004-11-04 Jim Blandy <jimb@redhat.com>
454
455 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
456 prevent cross-objfile references.
457 (make_cv_type): Doc fix. Don't create cross-objfile references,
458 even for stub types.
459 (replace_type): Add assertion to prevent cross-objfile references.
460 (check_typedef): Never resolve a stub type by copying over a type
461 from another file.
462
c46b0409 4632004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 464
c46b0409
KI
465 * Makefile.in (m32r-tdep.o): Update dependencies.
466 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
467 ABI-specific overrides.
468
9f0b0322 4692004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 470
9f0b0322
KI
471 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
472 unnecessary parallel execution bit.
473 (m32r_memory_remove_breakpoint): Ditto.
474 (m32r_breakpoint_from_pc): Update.
475
d5c27f81
RC
4762004-11-03 Randolph Chung <tausq@debian.org>
477
478 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 479 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
480 (hppa_frame_this_id): Likewise.
481
4577593c
AC
4822004-11-03 Andrew Cagney <cagney@gnu.org>
483
484 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
485 packet, obsolete configurations, end-of-life deprecated_registers.
486
b04de778
MK
4872004-11-02 Mark Kettenis <kettenis@gnu.org>
488
489 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
490 encodings as well as unsigned encodings.
491
9f2feefc
AC
4922004-11-02 Andrew Cagney <cagney@gnu.org>
493
494 * value.h (COERCE_VARYING_ARRAY): Delete.
495 * valops.c (value_cast, value_slice): Delete use.
496 * valarith.c (value_subscript, value_concat): Delete use.
497
117ea3cf
PH
4982004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
499
500 * NEWS: GDB understands GNAT Ada.
501
0bbc026e
JM
5022004-11-01 Joseph S. Myers <joseph@codesourcery.com>
503
504 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
505 (amd64-sol2-tdep.o): Add dependencies.
506 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
507 config/i386/sol2-64.mt: New files.
508 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
509 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
510 (supply_gregset): Correct order of arguments to
511 amd64_supply_native_gregset.
512 (fill_gregset): Correct order of arguments to
513 amd64_collect_native_gregset.
514 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
515 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
516 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
517 for definition of NEW_PROC_API.
518 * configure: Regenerate.
519
3d38a0a5
JM
5202004-11-01 Joseph S. Myers <joseph@codesourcery.com>
521
522 * MAINTAINERS (Write After Approval): Add myself.
523
f81cd1cf
AC
5242004-11-01 Andrew Cagney <cagney@gnu.org>
525
526 * configure.tgt: Mark d10v-*-* as obsolete.
527 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
528
f4e88c8e
PH
5292004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
530
531 * values.c (modify_field): Correct handling of bit-fields that
532 don't fit in 32 bits. Use unsigned operations throughout and
533 simplify the code a bit. Document preconditions.
534
84674fe1
AC
5352004-10-31 Andrew Cagney <cagney@gnu.org>
536
96693b3a
AC
537 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
538 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
539 (in_plt_section): Delete.
540
6f296f8f
AC
541 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
542 (mips_gdbarch_init): Do not set same.
543
618501c0
AC
544 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
545 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
546
b22e8f02
AC
547 * gdbarch.sh (in_solib_call_trampoline): Delete.
548 * gdbarch.h, gdbarch.c: Re-generate.
549
84674fe1
AC
550 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
551 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
552 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
553 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
554 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
555
c6d1029f
MK
5562004-10-31 Mark Kettenis <kettenis@gnu.org>
557
558 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
559 (mipsnbsd_fetch_inferior_registers): Rename from
560 fetch_inferior_registers. Make static.
561 (mipsnbsd_store_inferior_registers): Rename from
562 store_inferior_registers. Make static.
563 (_initialize_mipsnbsd_nat): New function and prototype.
564 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
565 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
566 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
567 inf-ptrace.o.
568
bd9ca83f
AC
5692004-10-31 Andrew Cagney <cagney@gnu.org>
570
19d718a3
AC
571 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
572 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
573 delete corresponding unused function.
574 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
575 in_solib_call_trampoline.
576 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
577 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
578 * config/mips/tm-nbsd.h: Ditto.
579 * config/arm/tm-linux.h: Ditto.
580 * config/mips/tm-linux.h: Ditto.
581
e8ce19c0
AC
582 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
583 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
584 in_solib_call_trampoline, delete corresponding unused function.
585 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
586 (vaxnbsd_aout_init_abi): Ditto.
587 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
588 (sparc32nbsd_aout_init_abi): Ditto.
589 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
590 (ppc_linux_init_abi): Ditto.
591 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
592 (ns32knbsd_init_abi_aout): Ditto.
593 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
594 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
595 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
596 (m68kbsd_aout_init_abi): Ditto.
597 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
598 (i386_cygwin_init_abi): Ditto.
599 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
600 (i386bsd_init_abi): Ditto.
601
af380d61
AC
602 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
603 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
604 isn't used by this architecture.
605 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
606 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
607 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
608 * s390-tdep.c (s390_gdbarch_init): Ditto.
609 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
610 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
611 * i386-tdep.c (i386_svr4_init_abi): Ditto.
612 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
613 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
614 * amd64-tdep.c (amd64_init_abi): Ditto.
615
0528d9f7
AC
616 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
617 in_solib_call_trampoline to its default value of
618 generic_in_solib_call_trampoline.
619 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
620 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
621 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
622 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
623 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
624 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
625
f9f9eacb
AC
626 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
627
a4ffd1e7
AC
628 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
629
82e34d2f
AC
630 * config/mips/tm-mips.h: Delete file.
631 * remote-mips.c: Delete tm-mips.h from comment.
632 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
633 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
634 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
635 * config/mips/tm-linux.h: Don't include tm-mips.h.
636 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
637 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
638 * config/mips/tm-wince.h: Don't include.
639
75dec9cf
AC
640 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
641 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
642 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
643 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
644
bd9ca83f
AC
645 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
646 * mdebugread.c (ecoff_relocate_efi): Delete function.
647 * objfiles.c (objfile_relocate): Delete #ifdef
648 MDEBUG_EFI_SYMBOL_NAME code.
649
3352ef37
AC
6502004-10-31 Orjan Friberg <organ.friberg@axis.com>
651 Andrew Cagney <cagney@gnu.org>
652
653 * gdbarch.sh (single_step_through_delay): Add.
654 * gdbarch.h, gdbarch.c: Re-generate.
655 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
656 (mips_step_skips_delay): Delete.
657 * mips-tdep.c (mips_single_step_through_delay): Replace
658 mips_step_skips_delay.
659 (mips_gdbarch_init): Set single_step_through_delay.
660 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
661
2440b685
MK
6622004-10-31 Mark Kettenis <kettenis@gnu.org>
663
664 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
665 from TRAMP_FRAME frame type.
666
56a2fed5
AC
6672004-10-31 Andrew Cagney <cagney@gnu.org>
668
9b792b1d
AC
669 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
670
0a5e8d98
AC
671 * mips-tdep.c (mips_ignore_helper): Delete.
672 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
673 * infrun.c (handle_inferior_event): Delete #ifdef
674 DEPRECATED_IGNORE_HELPER_CALL code.
675
56a2fed5
AC
676 * config/mips/tm-mips.h (RA_REGNUM): Delete.
677
f69c55b2
MK
6782004-10-31 Mark Kettenis <kettenis@gnu.org>
679
680 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
681 (fill_fpregset): Do not compile for 64-bit systems.
682 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
683 * Makefile.in (i386-sol2-nat.o): Update dependencies.
684 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
685
d37cca3d
AC
6862004-10-30 Andrew Cagney <cagney@gnu.org>
687
36b8628e
AC
688 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
689 (struct mdebug_extra_func_info): Define.
690 * config/alpha/tm-alpha.h: Delete same.
691 * config/mips/tm-mips.h: Delete same.
692 * mdebugread.c: Delete same.
693 * Makefile.in: Update dependencies.
694 * mips-mdebug-tdep.c: Include "mdebugread.h".
695
5b123146
AC
696 * objfiles.c: Include "mdebugread.h".
697 * mdebugread.c: Include "mdebugread.h".
698 (ecoff_relocate_cfi): Delete.
699 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
700 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
701 * mdebugread.h (ecoff_relocate_efi): New file.
702 * Makefile.in: Update dependencies.
703
b9c3a7de
AC
704 * mips-tdep.c (struct frame_extra_info): Delete.
705 (temp_proc_desc): Delete.
706
f92761ec
AC
707 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
708 MIPS_EFI_SYMBOL_NAME.
709 (mips_extra_func_info_t, mips_extra_func_info): Delete.
710 (struct mdebug_extra_func_info): Replace struct
711 alpha_extra_func_info and alpha_extra_func_info_t.
712 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
713 MIPS_EFI_SYMBOL_NAME.
714 (struct mdebug_extra_func_info): Replace struct
715 alpha_extra_func_info and alpha_extra_func_info_t.
716 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
717 * mdebugread.c, alpha-mdebug-tdep.c:
718
0bb57b31
AC
719 Suggested by Mark Kettenis.
720 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
721 fields frame_adjust and high_addr.
722 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
723 (non_heuristic_proc_desc): Delete references.
724
a5c9623c
AC
725 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
726 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
727 * mips-tdep.c: Update.
728
607fc93c
AC
729 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
730 (MIPS_LAST_EMBED_REGNUM): Add.
731 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
732 (LAST_EMBED_REGNUM): Delete.
733 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
734
24e05951
AC
735 * config/mips/tm-mips.h (PS_REGNUM): Delete.
736 * mips-tdep.h (MIPS_PS_REGNUM): Add.
737 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
738 * mips-linux-nat.c: Update.
739
613e114f
AC
740 * mips-tdep.h: Add comments on registers.
741 (MIPS_UNUSED_REGNUM): Define.
742 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
743 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
744 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
745 * mips-linux-nat.c, remote-mips.c: Update.
746
d37cca3d
AC
747 * config/mips/tm-mips.h (t_insn): Delete.
748 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
749 Replace t_insn with ULONGEST.
750
ceb41096
MK
7512004-10-30 Mark Kettenis <kettenis@gnu.org>
752
d1180b0f
MK
753 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
754 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
755 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
756 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
757 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
758 (mipsnbsd_core_osabi_sniffer): New function.
759 (mipsnbsd_init_abi): Set regset_from_core_section.
760 (_initialize_mipsnbsd_tdep): Remove calls to
761 deprecated_add_core_fns.
762 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
763 (mipsnbsd_regset_from_core_section): New functions.
764 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
765 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
766
ceb41096
MK
767 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
768 Remove optimization for DEPRECATED_FP_REGNUM.
769
ec4045ea
AC
7702004-10-30 Andrew Cagney <cagney@gnu.org>
771
cd65c8f6
AC
772 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
773 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
774 (alpha_setup_arbitrary_frame): Delete.
775 * mips-tdep.c (setup_arbitrary_frame): Delete.
776 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
777 (setup_arbitrary_frame): Delete.
778 * stack.c (parse_frame_specification_1): When specified, call
779 create_new_frame with two parameters. Delete #ifdef
780 SETUP_ARBITRARY_FRAME.
781
95ac2dcf
AC
782 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
783 (MIPS_INSTLEN): Delete.
784 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
785 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
786 * remote-mips.c, mips-tdep.c: Update.
787
1a8da44d
AC
788 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
789 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
790 * mips-tdep.c (mips_mdebug_frame_cache)
791 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
792 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
793 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
794 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
795 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
796 (mips_gdbarch_init): Do not append mdebug sniffers.
797 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
798 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
799 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
800 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
801 * Makefile.in: Update dependencies.
802
e6bc2e8a
AC
803 * mips-tdep.h (mips_abi_regsize): Declare.
804 * mips-tdep.c (mips_abi_regsize): Make non-static.
805
ec4045ea
AC
806 * mips-tdep.c (gdb_print_insn_mips): Simplify.
807 (make_mips16_addr): Delete.
e6bc2e8a 808
6b16acab
MK
8092004-10-30 Mark Kettenis <kettenis@gnu.org>
810
811 * i386-sol2-nat.c: New file.
812 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
813 i386-sol2-tdep.c.
814 (i386-sol2-nat.o): Update dependencies.
815 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
816 i386-sol2-nat.o.
817
8b622e6a
AC
8182004-10-30 Andrew Cagney <cagney@gnu.org>
819
820 Total breakage identified by Joel Brobecker.
821 * mips-tdep.c (after_prologue): Delete.
822 (mips_skip_prologue): Use skip_prologue_using_sal.
823 (heuristic_proc_desc): Delete, unused.
824
772cf8be
MK
8252004-10-30 Mark Kettenis <kettenis@gnu.org>
826
827 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
828 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
829 Cleanup coding style.
830
9c8fdbfa
AC
8312004-10-30 Andrew Cagney <cagney@gnu.org>
832
0fe7e7c8
AC
833 * mips-tdep.h (mips_pc_is_mips16): Declare.
834 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
835 non-static. Update calls.
836
1b295c3d
AC
837 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
838 * command.h (add_setshow_enum_cmd): Declare.
839 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
840
6bcadd06
AC
841 * mips-tdep.c (_initialize_mips_tdep): Use
842 add_setshow_zinteger_cmd.
843
9c8fdbfa
AC
844 * mips-tdep.c (mips_eabi_extract_return_value)
845 (mips_o64_extract_return_value, mips_o64_store_return_value)
846 (return_value_location, mips_eabi_reg_struct_has_addr)
847 (mips_eabi_use_struct_convention)
848 (mips_eabi_store_return_value): Delete.
849 (mips_eabi_store_return_value): New function.
850 (mips_eabi_return_value): New function.
851 (mips_gdbarch_init): For O64 and EABI, delete
852 extract_return_value, store_return_value, use_struct_convention
853 and reg_struct_has_addr, add return_value.
854
1d93fe1a
AC
855 * mips-tdep.c (read_signed_register): Use
856 regcache_cooked_read_signed.
857
303d2914
MK
8582004-10-30 Mark Kettenis <kettenis@gnu.org>
859
860 * mipsread.c: Cleanup coding style.
861 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
862 (mipscoff_symfile_finish): Remove prototypes.
863
8642004-10-29 Mark Kettenis <kettenis@gnu.org>
865
866 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
867 (mips_mdebug_frame_cache, mips16_scan_prologue)
868 (mips32_scan_prologue, mips_stub_frame_cache)
869 (heuristic_proc_start, heuristic_proc_desc)
870 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
871 (mips_n32n64_return_value, mips_o32_push_dummy_call)
872 (mips_o32_return_value, mips_o64_push_dummy_call)
873 (mips_step_skips_delay, mips_skip_trampoline_code)
874 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
875 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
876 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
877 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
878 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
879 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
880 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
881 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
882 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
883 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
884 ZERO_REGNUM.
885 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
886 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
887 ZERO_REGNUM.
888 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
889 A0_REGNUM.
890 * mipsnbsd-nat.c: Include "mips-tdep.h".
891 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
892 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
893
1c8831c5
AC
8942004-10-29 Andrew Cagney <cagney@gnu.org>
895
896 * stack.c (parse_frame_specification_1): New function based on
897 parse_frame_specification. Add message and selected_frame_p
898 paramters. Truely always return non-NULL.
899 (parse_frame_specification): Call parse_frame_specification_1.
900 (frame_info): Update. Eliminate target_has_stack check.
901 (select_frame_command): Update.
902
b04f3ab4
AC
9032004-10-29 Andrew Cagney <cagney@gnu.org>
904
905 * frame.h (get_selected_frame): Add message parameter.
906 * frame.c (get_selected_frame): Add and use message parameter.
907 * stack.c (current_frame_command, return_command, locals_info)
908 (catch_info, args_info, up_silently_base, down_silently_base): Use
909 get_selected_frame with an explicit message.
910 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
911 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
912 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
913 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
914 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
915 * breakpoint.c: Update.
916
9172004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
918
919 * trad-frame.c (trad_frame_get_prev_register): Use
920 frame_unwind_register instead of frame_register_unwind, do not
921 recurse the register's location.
922 * xstormy16-tdep.c (xstormy16_frame_prev_register):
923 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
924 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
925 * sh-tdep.c (sh_frame_prev_register): Ditto.
926 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
927 * i386-tdep.c (i386_frame_prev_register): Ditto.
928 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
929 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
930
7a952542
MK
9312004-10-28 Mark Kettenis <kettenis@jive.nl>
932
c18c06be
MK
933 * proc-events.c: Fix several coding-style issues. Consistently
934 use #ifdef instead of #if defined().
935 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
936 ARRAY_SIZE.
937 (_initialize_proc_events): New prototype.
938
7a952542
MK
939 * proc-why.c: Fix several coding-style issues.
940 (proc_prettyfprint_why): Use ARRAY_SIZE.
941
fcad0fa4
JB
9422004-10-27 Jim Blandy <jimb@redhat.com>
943
944 * remote.c (fetch_register_using_p): Construct 'p' packet in a
945 manner independent of the host byte order.
946
c163184f
MK
9472004-10-27 Mark Kettenis <kettenis@gnu.org>
948
949 * mips-tdep.c (id_delayed): Remove prototype.
950
9c46b6f0
MK
9512004-10-26 Mark Kettenis <kettenis@gnu.org>
952
953 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
954 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
955 to enum with register numbers.
956 (enum mips_insn_size): New enum.
957
0d0266c6
AC
9582004-10-26 Andrew Cagney <cagney@gnu.org>
959
e7d6a6d2
AC
960 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
961 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
962 (mips_gdbarch_init): Update.
963 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
964
c5115f39
AC
965 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
966 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
967 IN_SOLIB_RETURN_TRAMPOLINE.
968 * mips-tdep.c (mips_dump_tdep): Do not print
969 IN_SOLIB_RETURN_TRAMPOLINE.
970 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
971 (mips_gdbarch_init): Update.
972
0d0266c6
AC
973 * mips-tdep.h (mips_software_single_step): Move to here ...
974 * config/mips/tm-mips.h: ... from here.
975 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
976 (SOFTWARE_SINGLE_STEP): Delete.
977 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
978
156a53ca
AC
9792004-10-25 Andrew Cagney <cagney@gnu.org>
980
981 * NEWS: Add Changes since GDB 6.3 section.
982
f27cf670
AS
9832004-10-23 Andreas Schwab <schwab@suse.de>
984
156a53ca
AC
985 * ada-lang.c (grow_vect): Return the new array instead of
986 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
987 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
988
121d8485
UW
9892004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
990
991 * s390-tdep.c (enum pv_boolean): Remove.
992 (pv_is_array_ref): Remove.
993 (s390_on_stack): Remove.
994 (S390_NUM_SPILL_SLOTS): Remove.
995 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
996 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
997 (s390_store): Track all stores of orginal incoming registers to the
998 stack constant offsets relative to the CFA, instead of only tracking
999 stores into specific spill slots.
1000 (s390_load): Likewise.
1001 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1002 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1003 defined as call-saved by the ABI.
1004 (s390_push_dummy_call): Use bottom of dummy call argument save area
1005 as return value, not the top. Do not store to the called function's
1006 register save area.
1007 (s390_unwind_dummy_id): Adapt accordingly.
1008
0a6ddd08
AC
10092004-10-23 Andrew Cagney <cagney@gnu.org>
1010
1011 * objfiles.h (struct objfile): Rename obj_private to
1012 deprecated_obj_private, sym_private to deprecated_sym_private, and
1013 sym_stab_info to deprecated_sym_stab_info.
1014 * gdb-stabs.h: Update.
1015 * elfread.c: Update.
1016 * dbxread.c: Update.
1017 * coffread.c: Update.
1018 * xcoffread.c: Update.
1019 * symfile.c: Update.
1020 * somread.c: Update.
1021 * nlmread.c: Update.
1022 * mdebugread.c: Update.
1023 * hpread.c: Update.
1024 * coffread.c: Update.
1025
abc08782
MK
10262004-10-23 Mark Kettenis <kettenis@gnu.org>
1027
1028 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1029 * configure.host: Add mips64*-*-openbsd*.
1030 * configure.tgt: Add mips64*-*-openbsd*.
1031 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1032 mips64obsd-tdep.c.
1033 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1034 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1035
fc062ac6
JB
10362004-10-21 Joel Brobecker <brobecker@gnat.com>
1037
1038 * symtab.c (symbol_search_name): Minor reformatting.
1039
5bccb4d1
JB
10402004-10-20 Joel Brobecker <brobecker@gnat.com>
1041
1042 * symtab.h: Fix typo in comment.
1043
a738430d
MK
10442004-10-19 Mark Kettenis <kettenis@gnu.org>
1045
1046 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1047 (dwarf_decode_line_header): Likewise.
1048
f2cb65ca
MC
10492004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1050
1051 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1052
09e55376
AC
10532004-10-19 Andrew Cagney <cagney@gnu.org>
1054
1055 GDB 6.3 branch created.
1056 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1057
bc5f45f8
JB
10582004-10-15 Joel Brobecker <brobecker@gnat.com>
1059
1060 * dwarf2read.c (set_cu_language): Set language to Ada for
1061 DW_LANG_Ada83 and DW_LANG_Ada95.
1062
2941da8c
MC
10632004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1064
1065 From Andreas Schwab <schwab@suse.de>:
1066 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1067 for xmalloc and xrealloc.
1068
34a17005
AC
10692004-10-15 Andrew Cagney <cagney@gnu.org>
1070
1071 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1072 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1073 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1074 Update dependencies.
1075
714e53ab
PH
10762004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1077
1078 * ada-lang.c (ada_lookup_symbol): Correct comment.
1079 (ada_evaluate_subexp): Change error message for
1080 OP_FUNCALL case so as not to indicate an internal error.
1081
10822004-10-15 Joel Brobecker <brobecker@gnat.com>
1083
1084 Committed by Paul Hilfinger.
1085 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1086 type sizes in XVE/XVU types, and emit a warning when that happens,
1087 instead of rounding up the size of the resulting type.
1088 Some minor reformatting.
1089 (ada_is_aligner_type): Do not consider a type as an aligner type
1090 if there is a corresponding XVS type as well.
1091 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1092 have several levels of pointer indirection to the array.
1093
10942004-10-15 Jerome Guitton <guitton@gnat.com>
1095
1096 Committed by Paul Hilfinger.
1097 * ada-lang.c (check_size): New function.
1098 (coerce_unspec_val_to_type): call check_size to make sure
1099 that the object size is reasonable.
1100 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1101 Implements the case when we get a reference when we evaluate
1102 the expression of one of the bounds of the slice.
1103 (ada_value_struct_elt): when a packed array field is
1104 a reference, use ada_coerce_ref to dereference it; use
1105 ada_value_ind only if it is a pointer.
1106
29639122
JB
11072004-10-15 Joel Brobecker <brobecker@gnat.com>
1108
1109 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1110 a bit to avoid the necessity of an advance declaration. Remove
1111 declaration.
1112 (set_reg_offset): Move implemenation up.
1113 (mips16_get_imm): Likewise.
1114 (mips16_scan_prologue): Likewise.
1115 (reset_saved_regs): Likewise.
1116 (mips32_scan_prologue): Likewise.
1117
a65bbe44
JB
11182004-10-14 Joel Brobecker <brobecker@gnat.com>
1119
1120 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1121 Remove sp as a parameter, compute it internally instead. Move
1122 prologue scanning limit from heuristic_proc_desc to here.
1123 (mips16_scan_prologue): Likewise.
1124 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1125 by call to mips16_scan_prologue.
1126 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1127 by call to mips32_scan_prologue.
1128 (heuristic_proc_desc): Remove code that's no longer necessary.
1129 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1130 (mips_skip_prologue): Update calls to mips16_scan_prologue
1131 and mips32_scan_prologue.
1132
1c645fec
JB
11332004-10-14 Joel Brobecker <brobecker@gnat.com>
1134
1135 * mips-tdep.c (mips16_scan_prologue): Merge code from
1136 mips16_skip_prologue. Now return the address of the first
1137 instruction past the function prologue.
1138 (mips16_skip_prologue): Remove, no longer necessary.
1139 (mips_skip_prologue): Replace call to mips16_skip_prologue
1140 by call to mips16_scan_prologue.
1141
98b4dd94
JB
11422004-10-14 Joel Brobecker <brobecker@gnat.com>
1143
1144 * mips-tdep.c (mips32_scan_prologue): Merge code from
1145 mips32_skip_prologue. Now return the address of the first
1146 instruction past the function prologue.
1147 (mips32_skip_prologue): Remove. No longer necessary.
1148 (mips16_skip_prologue): Add parameter end_pc instead of
1149 computing it.
1150 (mips_skip_prologue): Compute the upper limit for the
1151 prologue scanning. Update call to mips16_skip_prologue.
1152 Replace call to mips32_skip_prologue by call to
1153 mips32_scan_prologue.
1154
ad4c72d2
MK
11552004-10-14 Mark Kettenis <kettenis@gnu.org>
1156
dfaf8edb
MK
1157 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1158 NetBSD system call stubs that store %rp in the ERP slot of the
1159 stack frame.
1160
3e3a28f1
MK
1161 * source.c: Always define O_BINARY to 0 if not defined already.
1162 (openp): Unconditionally use O_BINARY.
1163
ad4c72d2
MK
1164 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1165 * event-top.c (gdb_readline2): Likewise.
1166
52bd1401
OF
11672004-10-14 Orjan Friberg <orjanf@axis.com>
1168
1169 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1170 deprecated_add_core_fns which was removed by mistake.
1171
e0e25c6c
KB
11722004-10-13 Kevin Buettner <kevinb@redhat.com>
1173
1174 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1175 references to deprecated_registers[] with equivalent code.
1176
9f335945
KB
11772004-10-13 Kevin Buettner <kevinb@redhat.com>
1178
1179 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1180 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1181 instead of explicit test and print statement.
1182
06c2338d
MK
11832004-10-12 Mark Kettenis <kettenis@gnu.org>
1184
1b9445c2
MK
1185 * sparc-nat.c: Include "inf-ptrace.h".
1186 (sparc_target): New function.
1187 * sparc-nat.h: Update copyright year.
1188 (sparc_target): New prototype.
1189 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1190 (_initialize_sparcnbsd_nat): Construct and add target vector.
1191 * sparc64nbsd-nat.c: Include "target.h".
1192 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1193 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1194 Update dependencies.
1195 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1196 inftarg.o, add inf-ptrace.o.
1197 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1198 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1199 (NAT_FILE): Set to nm-bsd.h.
1200 (LOADLIBES): New variable.
1201 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1202 infarg.o, add inf-ptrace.o.
1203 * config/sparc/nm-nbsdaout.h: Remove file.
1204 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1205 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1206 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1207
06c2338d
MK
1208 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1209 "fopen-same.h". Update comment.
1210
3303a276
MK
12112004-10-11 Mark Kettenis <kettenis@gnu.org>
1212
1213 * i386gnu-nat.c: Include "gdb_string.h".
1214 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1215 registers when the floating-point state isn't initialized.
1216 * Makefile.in (i386gnu-nat.o): Update dependencies.
1217
04c663e3
DA
12182004-10-11 David Anderson <davea@sgi.com>
1219
1220 * regcache.c (regcache_raw_read): Comment was missing "to".
1221 Extraneous ' removed.
1222 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1223 comment now describes use.
1224
a5f6c8f5
OF
12252004-10-11 Orjan Friberg <orjanf@axis.com>
1226
1227 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1228 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1229 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1230 (cris_sigtramp_frame_sniffer): New functions.
1231 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1232 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1233 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1234 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1235 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1236 command.
1237 (cris_version_update): Remove, replace with ...
1238 (set_cris_version): New function.
1239 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1240 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1241 (_initialize_cris_tdep): Remove CRIS mode command.
1242 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1243 cris-fpless-backtrace command.
1244 (cris_scan_prologue): Fix prologue scanning limit.
1245 (cris_register_type): Update to reflect actual registers.
1246 (cris_register_bytes_ok) Remove.
1247 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1248 Remove set_gdbarch_deprecated_register_size,
1249 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1250
77109804
AC
12512004-10-10 Andrew Cagney <cagney@gnu.org>
1252
1253 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1254 comment.
1255
25652d4f
JB
12562004-10-10 Joel Brobecker <brobecker@gnat.com>
1257
1258 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1259
1e05a7bf
JB
12602004-10-10 Joel Brobecker <brobecker@gnat.com>
1261
1262 * mips-tdep.c (mips16_scan_prologue): Renames
1263 mips16_heuristic_proc_desc. Update comment.
1264 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1265 (heuristic_proc_desc): Update calls to the 2 functions above.
1266
c68a4142
JB
12672004-10-10 Joel Brobecker <brobecker@gnat.com>
1268
1269 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1270 Update comments. Also immediately return empty cache when the start
1271 address of our function could not be found.
1272 (mips_insn32_frame_cache): Likewise.
1273
0fce0821
JB
12742004-10-10 Joel Brobecker <brobecker@gnat.com>
1275
1276 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1277 (mips_insn16_frame_cache): Pass frame cache in call to
1278 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1279 Remove code that became redundant as a consequence.
1280 (mips32_heuristic_proc_desc): No longer compute a fake
1281 procedure descriptor. Compute the full frame cache instead.
1282 Some minor comment reformatting.
1283
b672553e
JB
12842004-10-10 Jim Blandy <jimb@redhat.com>
1285
1286 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1287 reader, tracing bytecode stuff): Remove self.
1288
9cc52bde
MK
12892004-10-10 Mark Kettenis <kettenis@gnu.org>
1290
cc9784b6
MK
1291 * sparc64-linux-tdep.c: Update copyright year. Don't include
1292 "solib-svr4.h".
1293 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1294 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1295 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1296
ee8aef23
MK
1297 * sparc-linux-tdep.c: Update copyright year.
1298 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1299 to struct frame_info *. Use safe_frame_unwind_memory instead of
1300 deprecated_read_memory_nobpt.
1301 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1302 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1303 changed signature of sparc_linux_sigtramp_start.
1304 (sparc32_linux_pc_in_sigtramp): Remove function.
1305 (sparc32_linux_sigtramp_p): New function.
1306 (sparc32_linux_sigtramp_frame_sniffer): Use
1307 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1308
bc73f8cc
MK
1309 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1310 Remove function.
1311 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1312
a2249542
MK
1313 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1314 (decode_packed_array_type, value_subscript_packed)
1315 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1316 argument in call to lim_warning.
1317
9cc52bde
MK
1318 * configure.in: Really disable the TUI if an enhanced curses
1319 library isn't found.
1320 * configure: Regenerate.
1321
151fc45b
MK
13222004-10-09 Mark Kettenis <kettenis@gnu.org>
1323
1324 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1325 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1326 * config/i386/nm-nbsdaout.h: Remove file.
1327 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1328 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1329 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1330 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1331 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1332 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1333 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1334 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1335 (ldd, ld_un, ld_2): Remove defines.
1336 * config/i386/nm-obsd.h: Likewise.
1337
375c0479
PH
13382004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1339
1340 * ada-lex.l: Remove useless rule whose right-context clause
1341 causes unreferenced static function warning for yyrealloc.
1342 (ada_flex_use): Remove the artificial reference to yyrealloc.
1343
c8e73a31
AC
13442004-10-08 Andrew Cagney <cagney@gnu.org>
1345
1346 * target.h (struct target_ops): Rename to_xfer_memory to
1347 deprecated_xfer_memory.
1348 * target.c: Update.
1349 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1350 * wince.c: Update.
1351 * win32-nat.c: Update.
1352 * v850ice.c: Update.
1353 * uw-thread.c: Update.
1354 * thread-db.c: Update.
1355 * sol-thread.c: Update.
1356 * remote.c: Update.
1357 * remote-vx.c: Update.
1358 * remote-st.c: Update.
1359 * remote-sim.c: Update.
1360 * remote-sds.c: Update.
1361 * remote-rdp.c: Update.
1362 * remote-rdi.c: Update.
1363 * remote-mips.c: Update.
1364 * remote-m32r-sdi.c: Update.
1365 * remote-e7000.c: Update.
1366 * procfs.c: Update.
1367 * ppc-bdm.c: Update.
1368 * nto-procfs.c: Update.
1369 * monitor.c: Update.
1370 * linux-nat.c: Update.
1371 * inftarg.c: Update.
1372 * hpux-thread.c: Update.
1373 * go32-nat.c: Update.
1374 * gnu-nat.c: Update.
1375 * exec.c: Update.
1376 * corelow.c: Update.
1377 * bsd-kvm.c: Update.
1378 * aix-thread.c: Update.
1379
aa869812
AC
13802004-10-08 Andrew Cagney <cagney@gnu.org>
1381
1382 * target.c (debug_target): Move to near start of file.
1383 (target_stopped_data_address_p): Re-org logic, add casts.
1384
8dcef9cf
MK
13852004-10-02 Mark Kettenis <kettenis@gnu.org>
1386
1387 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1388 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1389 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1390 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1391 New defines.
1392
4aa7a7f5
JJ
13932004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1394
1395 * target.h (to_stopped_data_address): Change prototype to
1396 take a CORE_ADDR pointer and return an int.
1397 * target.c (update_current_target): Change to_stopped_data_address
1398 to match new prototype.
1399 (debug_to_stopped_data_address): Change appropriately.
1400 * breakpoint.c (bpstat_stop_status): Change call to
1401 target_stopped_data_address to use new prototype.
1402 * frv-tdep.c (frv_have_stopped_data_address): New function.
1403 (frv_stopped_data_address): Change to new prototype and
1404 functionality.
1405 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1406 prototype and functionality.
1407 (ia64_stopped_by_watchpoint): New function.
1408 * i386-nat.c (i386_stopped_data_address): Change to new
1409 prototype and functionality.
1410 (i386_stopped_by_watchpoint): New function.
1411 * remote.c (remote_stopped_data_address): Change to new prototype
1412 and functionality.
1413 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1414 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1415 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1416 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1417 new i386_stopped_by_watchpoint function.
1418 (i386_stopped_by_watchpoint): New prototype.
1419 (i386_stoppped_data_address): Change to new prototype.
1420 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1421 new ia64_stopped_by_watchpoint function.
1422 (ia64_stopped_by_watchpoint): New prototype.
1423 (ia64_stopped_data_address): Ditto.
1424
61ee279c
PH
14252004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1426
1427 * ada-typeprint.c (ada_print_type): Use int_string for printing
1428 modulus of modular type.
1429 * ada-lang.h (ada_modulus): Change return type to unsigned.
1430 * ada-lang.c (ada_language_arch_info): Correct type of
1431 string_char_type.
1432 (ada_modulus): Return unsigned result.
1433 (ada_lookup_symbol): Remove user disambiguation and modify comment
1434 accordingly.
1435
14362004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1437
1438 Committed by Paul Hilfinger.
1439 * ada-lang.c (decode_packed_array): On big-endian targets,
1440 left-justify the value if it comes with a modular type.
1441
14422004-10-08 Joel Brobecker <brobecker@gnat.com>
1443
1444 Committed by Paul Hilfinger.
1445 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1446 (is_name_suffix): Add support for "___JM" suffixes.
1447 (ada_check_typedef): Renames ada_completed_type.
1448 Update all users of CHECK_TYPEDEF, check_typedef, and
1449 ada_complete_type to call ada_check_typedef.
1450 * ada-typeprint.c: Likewise.
1451 * ada-valprint.c: Likewise.
1452
b6c25a56
CV
14532004-10-08 Corinna Vinschen <vinschen@redhat.com>
1454
1455 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1456
83ca6a46
NR
14572004-10-08 Nick Roberts <nickrob@snap.net.nz>
1458
1459 * MAINTAINERS: Update e-mail address.
1460
1fd8cd20
DJ
14612004-10-07 Daniel Jacobowitz <dan@debian.org>
1462
1463 From Maciej W. Rozycki <macro@mips.com>:
1464 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1465 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1466
cea15572
KI
14672004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1468
1469 * m32r-tdep.c (decode_prologue): Support functions written
1470 in assembler language. Recognize trap instructions as the
1471 end of prologue.
1472 (m32r_frame_unwind_cache): Ditto.
1473 (m32r_skip_prologue): Extend search limit. Quit analyzing
1474 prologue if pc's location is not readable.
1475
23485554
PH
14762004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1477
1478 * Makefile.in (.l.c): Do conversions of names of alloc and free
1479 functions that are done for .y.c files, plus special one
1480 for yy_flex_realloc. Also, correct missing-file tests here.
1481 * ada-lex.l (malloc, free): Remove macros.
1482 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1483 xrealloc.
1484 (ada_flex_use): Dummy definition to remove warnings about unused
1485 functions.
1486 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1487 to suppress warning.
1488
c0409442
CV
14892004-10-06 Corinna Vinschen <vinschen@redhat.com>
1490
1491 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1492 RETURN_VALUE.
1493 (sh_return_value_fpu): Ditto for CPUs with FPU.
1494 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1495 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1496 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1497 RETURN_VALUE functions.
1498
9bed62d7
CV
14992004-10-06 Corinna Vinschen <vinschen@redhat.com>
1500
1501 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1502 (sh_pseudo_register_write): Ditto.
1503
03131d99
CV
15042004-10-06 Corinna Vinschen <vinschen@redhat.com>
1505
1506 * sh-tdep.c (IS_MACL_STS): New define.
1507 (IS_MOVI20): Ditto.
1508 (IS_MACL_LDS): Ditto.
1509 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1510 instructions in prologue.
1511 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1512 instructions in epilogue.
1513
da962468
CV
15142004-10-06 Corinna Vinschen <vinschen@redhat.com>
1515
1516 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1517 (sh_sh_register_name): Add eight empty register names.
1518 (sh_sh3_register_name): Ditto.
1519 (sh_sh3e_register_name): Ditto.
1520 (sh_sh2e_register_name): Ditto.
1521 (sh_sh2a_register_name): New function, defining SH2A register set.
1522 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1523 in nofpu case.
1524 (sh_sh_dsp_register_name): Add eight empty register names.
1525 (sh_sh3_dsp_register_name): Ditto.
1526 (sh_sh4_register_name): Ditto.
1527 (sh_sh4_nofpu_register_name): Ditto.
1528 (sh_sh4al_dsp_register_name): Ditto.
1529 (sh2a_show_regs): New function.
1530 (sh2a_nofpu_show_regs): New function.
1531 (sh_sh2a_register_type): New function.
1532 (do_bank_register_info): New function.
1533 (sh_print_pseudo_register): Call do_bank_register_info.
1534 Call sh_print_pseudo_register for valid "bank" register.
1535 (sh_sh2a_register_sim_regno): New function.
1536 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1537 Increment pseudo register count by one for all sh variants with
1538 pseudo registers to accomodate pseudo bank register.
1539 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1540 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1541 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1542 Increment pseudo register numbers.
1543
1326e61b
CV
15442004-10-06 Corinna Vinschen <vinschen@redhat.com>
1545
1546 * dwarf2read.c (read_subroutine_type): Call make_function_type
1547 instead of lookup_function_type.
1548
146c42e3
JB
15492004-10-05 Jim Blandy <jimb@redhat.com>
1550
1551 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1552 (Previous change missed some uses.)
1553
1df84f13
AC
15542004-10-05 Andrew Cagney <cagney@gnu.org>
1555
1556 * target.h (deprecated_child_ops): Rename child_ops.
1557 * wince.c: Update copyright. Rename child_ops.
1558 * win32-nat.c: Rename child_ops.
1559 * target.c: Rename child_ops.
1560 * rs6000-nat.c: Rename child_ops.
1561 * linux-nat.c: Rename child_ops.
1562 * infttrace.c: Rename child_ops.
1563 * inftarg.c: Rename child_ops.
1564 * infptrace.c: Rename child_ops.
1565 * hppah-nat.c: Update copyright. Rename child_ops.
1566 * hpux-thread.c: Update copyright. Rename child_ops.
1567
21e3b9b9
DJ
15682004-10-05 Daniel Jacobowitz <dan@debian.org>
1569
1570 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1571
de83afe7
AC
15722004-10-05 Andrew Cagney <cagney@gnu.org>
1573
1574 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1575
10b3939b
DJ
15762004-10-05 Daniel Jacobowitz <dan@debian.org>
1577
1578 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1579 (die_ref_table): Remove.
1580 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1581 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1582 the usage of this type.
1583 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1584 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1585 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1586 (dwarf2_create_include_psymtab): Update comment.
1587 (find_partial_die): Remove third argument. Remove unreachable call
1588 to error ().
1589 (dwarf2_find_containing_comp_unit): Update comments. Change one
1590 assertion to an error. Remove an unreachable error.
1591 (dwarf2_find_comp_unit): Update comments.
1592 (type_at_offset): Remove dead code.
1593 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1594 (store_in_ref_table): Add CU argument.
1595 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1596 inter-compilation-unit references.
1597 (load_full_comp_unit, process_full_comp_unit): New functions, based
1598 on psymtab_to_symtab_1.
1599 (psymtab_to_symtab_1): Use them.
1600 (dwarf2_add_dependence): New function.
1601 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1602 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1603 (partial_die_parent_scope, guess_structure_name): Update for changes
1604 to find_partial_die.
1605 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1606 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1607 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1608 (read_die_and_children): Update call to store_in_ref_table.
1609 (do_free_die_list_cleanup): Remove.
1610 (fixup_partial_die): Update for changes to find_partial_die.
1611 (read_full_die): Handle queueing absolute references.
1612 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1613 (dwarf2_attr, die_specification, die_type)
1614 (die_containing_type, dwarf2_extension): Update calls to
1615 follow_die_ref.
1616 (dump_die): Update DW_FORM_ref* handling.
1617 (dwarf2_get_ref_die_offset): Likewise.
1618 (free_one_comp_unit): Release the dies list.
1619 (dwarf2_mark_helper): New function.
1620 (dwarf2_mark): Use it.
1621
998bdd68
MK
16222004-10-05 Mark Kettenis <kettenis@jive.nl>
1623
1624 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1625 when writing to memory.
1626
14588880
KI
16272004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1628
1629 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1630 (m32r_extract_struct_value_address): Delete function.
1631 (m32r_return_value): New function.
1632 (m32r_gdbarch_init): Instead of store_return_value,
1633 extract_return_value, deprecated_extract_struct_value_address
1634 and deprecated_use_struct_convention, set return_value.
1635
dd5e6932
DJ
16362004-10-03 Daniel Jacobowitz <dan@debian.org>
1637
1638 * dwarf2read.c (read_subrange_type): Add comment for variable
1639 sized arrays.
1640
7dc1ef8d
PH
16412004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1642
1643 * Makefile.in (.l.c): Modify rule for compatibility with recent
1644 versions of flex, and remove most command-line options.
1645 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1646 options.
1647
1f8173e6
PH
16482004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1649
1650 Turn on initial Ada support (mainly expression evaluation).
1651
1652 * Makefile.in (SFILES): Remove ada-tasks.c.
1653 (HFILES_NO_SRCDIR): Add ada-lang.h.
1654 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1655 (YYOBJ): Add ada-exp.o.
1656 (rule .l.c): Generalize to not mention ada.
1657 * symtab.c: Include ada-lang.h.
1658 (symbol_natural_name, symbol_demangled_name)
1659 (symbol_search_name): Add Ada case.
1660
cb85a953
AC
16612004-10-01 Andrew Cagney <cagney@gnu.org>
1662
3f3db248
AC
1663 * Makefile.in (COMMON_OBS): Add inf-child.o.
1664 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1665 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1666 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1667 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1668 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1669 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1670 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1671 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1672 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1673 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1674 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1675 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1676 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1677
cb85a953
AC
1678 * target.c (xfer_using_stratum): Change return type to LONGEST.
1679 On each iteration offset, readbuf and writebuf.
1680 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1681 partial_length, and read/modify/write predicate, update comments.
1682 Pass buffer.word to ptrace write.
1683
963a6417
PH
16842004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1685
1686 * symfile.c (init_filename_language_table): Add extensions for
1687 Ada.
1688 * defs.h (enum language): Add language_ada.
1689 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1690 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1691 (add_symbols_from_enclosing_procs): Make a no-op for now.
1692 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1693 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1694 (find_line_in_linetable, find_next_line_in_linetable)
1695 (read_all_symtabs, is_plausible_func_for_line)
1696 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1697 (is_runtime_sym_defined, check_size): Remove declaration.
1698 (function_name_from_pc, ada_translate_error_message)
1699 (ada_lookup_minimal_symbol): Remove definition.
1700 (ada_add_block_symbols): Remove useless label.
1701 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1702 useless declaration.
1703 (ada_is_exception_sym): Likewise.
1704
9b32d526
KI
17052004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1706
1707 Add m32r-linux support.
1708 * configure.tgt: Add m32r*-*-linux*.
1709 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1710 and m32r-linux-tdep.c.
1711 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1712 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1713 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1714 m32r-linux-tdep.c.
1715 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1716 config/m32r/linux.mh, config/m32r/linux.mt,
1717 config/m32r/nm-linux.h: New files.
1718
2de118d3
JB
17192004-09-30 Joel Brobecker <brobecker@gnat.com>
1720
1721 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1722 (mips32_fetch_instruction): Remove, unused.
1723
a9fe69d1
JB
17242004-09-30 Joel Brobecker <brobecker@gnat.com>
1725
1726 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1727 conditions that will always be true.
1728
bc8ffc12
MK
17292004-09-30 Mark Kettenis <kettenis@gnu.org>
1730
ba0cd111
MK
1731 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1732 (vaxbsd_fetch_inferior_registers): Rename from
1733 fetch_inferior_registers. Make static.
1734 (vaxbsd_store_inferior_registers): Rename from
1735 store_inferior_registers. Make static.
1736 (_initialize_vaxbsd_nat): Construct and add target vector.
1737 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1738 inftarg.o. Add inf-child.o and inf-ptrace.o.
1739 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1740 inftarg.o. Add inf-child.o and inf-ptrace.o.
1741 (NAT_FILE): Remove.
1742 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1743 inftarg.o. Add inf-child.o and inf-ptrace.o.
1744 (NAT_FILE): Remove.
1745 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1746
bc8ffc12
MK
1747 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1748 (m88kbsd_fetch_inferior_registers): Rename from
1749 fetch_inferior_registers. Make static.
1750 (m88kbsd_store_inferior_registers): Rename from
1751 store_inferior_registers. Make static.
1752 (_initialize_m88kbsd_nat): New prototype and function.
1753 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1754 inftarg.o. Add inf-child.o and inf-ptrace.o.
1755 (NAT_FILE): Remove.
1756 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1757
27394598
AC
17582004-09-30 Andrew Cagney <cagney@gnu.org>
1759
1760 * target.c (target_xfer_partial): New function.
1761 (target_read_memory_partial, target_write_memory_partial)
1762 (default_xfer_partial, target_read_partial, target_write_partial)
1763 (xfer_using_stratum): Use.
1764 (debug_to_xfer_partial): Delete function.
1765 (setup_target_debug): Do not override to_xfer_partial.
1766
74a4fe32
MK
17672004-09-30 Mark Kettenis <kettenis@chello.nl>
1768
1769 * fork-child.c: Update copyright year. Fix coding style.
1770
982526a1
MK
17712004-09-29 Mark Kettenis <kettenis@gnu.org>
1772
1773 * defs.h (msavestring, mstrsave): Remove prototypes.
1774 * utils.c (msavestring, mstrsave): Remove functions.
1775 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1776 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1777 of mstrsave.
1778 * source.c (find_and_open_source): Use xstrdup instead of
1779 mstrsave.
1780
b8eb5af0
AC
17812004-09-30 Andrew Cagney <cagney@gnu.org>
1782
0779438d
AC
1783 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1784 (inf_ptrace_xfer_memory): Delete.
1785 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1786 (target_read_memory, target_write_memory): Use xfer_using_stratum
1787 when target_xfer_partial_p.
1788 (debug_target): Move to start of file.
1789 (target_read_memory_partial, target_write_memory_partial): Use
1790 to_xfer_partial when target_xfer_partial_p.
1791
f929a579
AC
1792 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1793 inf_ptrace_xfer_memory with equivalent code.
1794 * inftarg.c (child_xfer_partial): When performing a write, pass
1795 writebuf to child_xfer_memory.
1796
b8eb5af0
AC
1797 * target.c (target_read_string): Use target_read_memory instead of
1798 target_xfer_memory.
1799
ee21b650
AC
18002004-09-29 Andrew Cagney <cagney@gnu.org>
1801
d3e05d0d
AC
1802 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1803 the address of status.
1804
ee21b650
AC
1805 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1806 (kill_inferior): Inline ptrace_wait call.
1807 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1808 * inftarg.c (child_wait): Inline ptrace_wait call.
1809
a182eed6
AC
1810 * target.h (struct target_ops): Delete field to_post_wait.
1811 (target_post_wait): Delete macro.
1812 (child_post_wait): Delete declaration.
1813 * target.c (update_current_target, update_current_target)
1814 (debug_to_post_wait, setup_target_debug): Delete functions and
1815 references.
1816 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1817 * inftarg.c (child_post_wait): Delete.
1818 (init_child_ops): Do not set to_post_wait.
1819 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1820 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1821 * inf-child.c (inf_child_post_wait): Delete.
1822 (inf_child_target): Do not set to_post_wait.
1823 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1824 (inf_ptrace_target): Do not set to_post_wait.
1825
ba0c540b
AC
1826 * wince.c (child_ops): Delete.
1827 * win32-nat.c (child_ops): Delete.
1828
81977402
AC
1829 * inftarg.c (inftarg_set_find_memory_regions)
1830 (inftarg_set_make_corefile_notes): Delete functions.
1831 (_initialize_linux_nat): Inline calls.
1832
5ac10fd1
AC
1833 * target.h (child_ops): Declare.
1834 * inftarg.c (child_ops): Move from here ...
1835 * target.c (child_ops): ... to here.
1836 * wince.c (child_ops): Delete extern declaration.
1837 * win32-nat.c (child_ops): Delete extern declaration.
1838 * linux-nat.c (child_ops): Delete extern declaration.
1839 * hpux-thread.c (child_ops): Delete extern declaration.
1840
663408c2 18412004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
1842
1843 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1844
0dad8a66
MK
18452004-09-28 Mark Kettenis <kettenis@gnu.org>
1846
1847 * configure.in: Only set host_makefile_frag when building a native
1848 debugger.
1849 * configure: Regenerate.
e8d74ed3
MK
1850
1851 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1852 for OpenBSD ELF.
1853
dba24537
AC
18542004-09-28 Andrew Cagney <cagney@gnu.org>
1855
e979516b
AC
1856 Problem identified by Paul Hilfinger.
1857 * Makefile.in (ada_lex_c): Define.
1858 (ada-lex.o): Delete rule.
1859
dba24537
AC
1860 * linux-proc.c: Delete file.
1861 * Makefile.in: Update.
1862 * config/sparc/linux64.mh (NATDEPFILES):
1863 * config/sparc/linux.mh (NATDEPFILES): Update.
1864 * config/s390/s390.mh (NATDEPFILES): Update.
1865 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1866 * config/powerpc/linux.mh (NATDEPFILES): Update.
1867 * config/pa/linux.mh (NATDEPFILES): Update.
1868 * config/mips/linux.mh (NATDEPFILES): Update.
1869 * config/m68k/linux.mh (NATDEPFILES): Update.
1870 * config/ia64/linux.mh (NATDEPFILES): Update.
1871 * config/i386/linux64.mh (NATDEPFILES): Update.
1872 * config/i386/linux.mh (NATDEPFILES): Update.
1873 * config/arm/linux.mh (NATDEPFILES): Update.
1874 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1875 * linux-nat.c: Update copyright. Include <sys/param.h>,
1876 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1877 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1878 (O_LARGEFILE): Possibly define.
1879 (_initialize_linux_nat, linux_proc_pending_signals)
1880 (add_line_to_sigset, linux_proc_xfer_memory)
1881 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1882 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1883 (struct linux_corefile_thread_data)
1884 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1885 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1886
d6b0e80f
AC
18872004-09-16 Andrew Cagney <cagney@gnu.org>
1888
1889 * lin-lwp.c: Delete file.
1890 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1891 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1892 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1893 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1894 (linux_nat_attach, detach_callback, linux_nat_detach)
1895 (resume_callback, resume_clear_callback, linux_nat_resume)
1896 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1897 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1898 (status_callback, running_callback, count_events_callback)
1899 (select_singlestep_lwp_callback, select_event_lwp_callback)
1900 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1901 (child_wait, stop_and_resume_callback, linux_nat_wait)
1902 (kill_callback, kill_wait_callback, linux_nat_kill)
1903 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1904 (linux_nat_xfer_memory, linux_nat_thread_alive)
1905 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1906 (_initialize_linux_nat): New functions.
1907 * Makefile.in: Update all dependencies.
1908 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1909 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1910 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1911 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1912 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1913 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1914 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1915 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1916 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1917 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1918 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1919 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1920 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1921
5a174d79
MK
19222004-09-27 Mark Kettenis <kettenis@gnu.org>
1923
2f604c28
MK
1924 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1925 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1926
5a174d79
MK
1927 * configure.in: Don't comment out NATDEPFILES in the generated
1928 Makefile if NAT_FILE is unset.
1929 * configure: Regenerate.
1930
b2ed1746
AC
19312004-09-27 Andrew Cagney <cagney@gnu.org>
1932
44cbf7b5
AC
1933 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1934 (insert_step_resume_breakpoint): Delete.
1935 (insert_step_resume_breakpoint_at_frame): New function.
1936 (insert_step_resume_breakpoint_at_sal): New function.
1937 (handle_inferior_event, step_into_function)
1938 (insert_step_resume_breakpoint): Simplify by using same.
1939
b2ed1746
AC
1940 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1941
3691b3be
MK
19422004-09-26 Mark Kettenis <kettenis@gnu.org>
1943
36f391e8
MK
1944 * fbsd-proc.c: Remove file.
1945 * Makefile.in (fbsd-proc.o): Remove dependency.
1946
771e236c
MK
1947 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1948 code together.
1949
3691b3be
MK
1950 * config/i386/nm-fbsd64.h: Remove file.
1951 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1952
6a5c78a3
MK
19532004-09-26 Mark Kettenis <kettenis@gnu.org>
1954
1955 * amd64-nat.h: Update copyright year.
1956 (amd64bsd_target): New prototype.
1957 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1958 (amd64bsd_target): New function.
1959 (amd64bsd_fetch_inferior_registers): Rename from
1960 fetch_inferior_registers. Make static.
1961 (amd64bsd_store_inferior_registers): Rename from
1962 store_inferior_registers. Make static.
1963 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1964 (_initialize_amd64fbsd_nat): Construct and add target vector.
1965 * amd64nbsd-nat.o: Include "target.h".
1966 (_initialize_amd64nbsd_nat): Construct and add target vector.
1967 * amd64obsd-nat.c: Include "target.h".
1968 (_initialize_amd64obsd_nat): Construct and add target vector.
1969 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1970 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1971 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1972 fbsd-nat.o.
1973 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1974 Remove infptrace.o and inftarg.o. Add inf-child.o and
1975 inf-ptrace.o.
1976 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1977 (amd64obsd-nat.o): Update dependencies.
1978
27acbe61
MK
19792004-09-25 Mark Kettenis <kettenis@gnu.org>
1980
509a5e7d
MK
1981 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1982 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1983 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1984 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1985 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1986
6e1e94ea
MK
1987 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1988 Inline attach call.
1989 (inf_ptrace_detach): Inline detach call.
1990
8b9cf735
MK
1991 * configure.in: Check for waddstr instead of mvwaddstr when
1992 searching for curses library. Check for wborder.
1993 * configure, config.in: Regenerate.
1994 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1995 available.
1996
27acbe61
MK
1997 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1998
b96ec7ac
AC
19992004-09-24 Robert Picco <Robert.Picco@hp.com>
2000
2001 Committed by Andrew Cagney.
2002 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2003 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2004 configuration.
2005 (fetch_register_using_p): Implement 'p' packet. Based on code by
2006 Fernando Nasser.
2007 (remote_fetch_registers): Call fetch_register_using_p.
2008 (init_all_packet_configs, show_remote_cmd)
2009 (_initialize_remote): Add p-packet.
2010
62ece330
MK
20112004-09-24 Mark Kettenis <kettenis@gnu.org>
2012
2013 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2014 instead of call_ptrace. Call wait directly instead of
2015 ptrace_wait.
2016 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2017 (inf_ptrace_wait): Inline ptrace_wait call.
2018
00937274
PH
20192004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2020
2021 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2022 rolled back instead.
2023
3f2c7a45
PH
20242004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2025
2026 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2027 the new argument order.
2028
b6fcb393
CV
20292004-09-23 Corinna Vinschen <vinschen@redhat.com>
2030
2031 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2032 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2033 (struct gdbarch_tdep): Remove.
2034 (struct xstormy16_frame_cache): New frame cache structure.
2035 (xstormy16_register_byte, xstormy16_register_raw_size)
2036 (xstormy16_reg_virtual_type, xstormy16_register_type)
2037 (xstormy16_push_arguments, xstormy16_push_return_address)
2038 (xstormy16_pop_frame, xstormy16_store_struct_return)
2039 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2040 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2041 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2042 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2043 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2044 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2045 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2046 (xstormy16_extract_return_value, xstormy16_store_return_value):
2047 Regcachify. Drop useless struct convention handling.
2048 (xstormy16_register_type, xstormy16_return_value)
2049 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2050 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2051 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2052 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2053 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2054 (xstormy16_unwind_dummy_id) : New functions.
2055 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2056 of xstormy16_scan_prologue.
2057 (xstormy16_frame_unwind): New frame_unwind structure.
2058 (xstormy16_frame_base): New frame_base structure.
2059 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2060 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2061
1285b746
MK
20622004-09-22 Mark Kettenis <kettenis@gnu.org>
2063
2064 * language.c (language_gdbarch_post_init): Fix off-by one error.
2065
1c379e20
DJ
20662004-09-21 Daniel Jacobowitz <dan@debian.org>
2067
2068 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2069 (struct dwarf2_offset_and_type): New.
2070 (set_die_type, reset_die_and_siblings_types, get_die_type)
2071 (offset_and_type_hash, offset_and_type_eq): New functions.
2072 (read_structure_type, read_enumeration_type, read_array_type)
2073 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2074 (read_tag_reference_type, read_tag_const_type)
2075 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2076 (read_typedef, read_base_type, read_subrange_type): Use
2077 set_die_type.
2078
ae038cb0
DJ
20792004-09-20 Daniel Jacobowitz <dan@debian.org>
2080
2081 * Makefile.in (dwarf2read.o): Update dependencies.
2082 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2083 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2084 and read_in_chain.
2085 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2086 mark, and has_form_ref_addr.
2087 (struct dwarf2_per_cu_data): New.
2088 (dwarf2_max_cache_age): New.
2089 (dwarf2_build_psymtabs_hard): Free cached compilation units
2090 after loading. Create and manage the list of compilation units.
2091 Remove unnecessary NULL initialization. Fix indentation.
2092 (psymtab_to_symtab_1): Initialize all of CU.
2093 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2094 (find_partial_die): Use dwarf2_find_containing_comp_unit
2095 and load_comp_unit.
2096 (free_stack_comp_unit): Update comments. Clear the per-cu
2097 pointer. Handle aging.
2098 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2099 (age_cached_comp_units, free_one_cached_comp_unit)
2100 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2101 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2102 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2103 (show_dwarf2_cmd): New.
2104 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2105 and "maint show dwarf2 max-cache-age".
2106 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2107 externs.
2108 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2109 global.
2110
987504bb
JJ
21112004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2112
2113 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2114 and dwarf2_cu struct pointer as arguments. Change function to use
2115 obstack if provided and use dwarf2_cu to determine language-specific
2116 separator.
2117 (partial_die_parent_scope): Change comment to include java. Use
2118 new version of typename_concat instead of obconcat.
2119 (partial_die_full_name): Use typename_concat.
2120 (read_namespace): Ditto.
2121 (read_enumeration_type): Use typename_concat instead of obconcat.
2122 (new_symbol): Ditto.
2123 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2124 (guess_structure_name): Ditto.
2125 (read_subroutine_type): Ditto.
2126 (read_structure_type): Ditto.
2127 (is_vtable_name): Add Java support.
2128 (determine_class_name): Switch to new typename_concat call.
2129 (determine_prefix): Switch to new typename_concat call.
2130 * jv-exp.y (FuncStart): New pattern.
2131 (MethodInvocation): Add support for simple function calls. Change
2132 warning message for other forms of inferior call currently not
2133 supported.
2134 * valarith.c (value_subscript): Treat an array with upper-bound
2135 of -1 as unknown size.
2136
d9c8471e
DJ
21372004-09-20 Daniel Jacobowitz <dan@debian.org>
2138
2139 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2140 (lookup_partial_symtab): Use symtab_to_fullname.
2141
d73f140a
JB
21422004-09-19 Jim Blandy <jimb@redhat.com>
2143
2144 * minsyms.c (lookup_minimal_symbol): Doc fix.
2145
adbef1f0
AC
21462004-09-20 Andrew Cagney <cagney@gnu.org>
2147
2148 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2149 CHILD_RESUME.
2150 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2151 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2152 KILL_INFERIOR.
2153 * infptrace.c: Update.
2154
d092d1a2
DJ
21552004-09-19 Daniel Jacobowitz <dan@debian.org>
2156
2157 * symtab.c (output_source_filename): Mark first argument as const.
2158 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2159 for "info sources" output.
2160
86d9e1d7
MK
21612004-09-20 Mark Kettenis <kettenis@gnu.org>
2162
2163 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2164 <machine/vmparam.h>.
2165 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2166 (register_u_addr): Remove prototype.
2167
9a6c8ef4
MK
21682004-09-19 Mark Kettenis <kettenis@gnu.org>
2169
9692934b
MK
2170 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2171 (i386bsd_fetch_inferior_registers): Rename from
2172 fetch_inferior_registers. Make static.
2173 (i386bsd_store_inferior_registers): Rename from
2174 store_inferior_registers. Make static.
2175 (i386bsd_target): New function.
2176 * i386bsd-nat.h: New file.
2177 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2178 "i386bsd-nat.h".
2179 (i386fbsd_resume): Rename from child_resume. Make static.
2180 (_initialize_i386fbsd_nat): Construct and add target vector.
2181 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2182 (_initialize_i386nbsd_nat): Construct and add target vector.
2183 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2184 Remove defines.
2185 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2186 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2187 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2188 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2189 (LOADLIBES): New variable.
2190 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2191 inf-ptrace.o. Remove inftarg.o.
2192 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2193 inf-ptrace.o. Remove inftarg.o.
2194 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2195 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2196 (LOADLIBES): New variable.
2197 * Makefile.in (i386bsd_nat_h): New variable.
2198 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2199 dependencies.
2200
3510d1f2
MK
2201 * sparc64nbsd-tdep.c: Include "objfiles.h".
2202 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2203 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2204 svr4_lp64_fetch_link_map_offsets.
2205 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2206 "nbsd-tdep.h".
2207 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2208 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2209 svr4_lp64_fetch_link_map_offsets.
2210 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2211 dependencies.
2212
578c1c03
MK
2213 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2214 * fbsd-nat.h: New file.
2215 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2216 (fbsd_nat_h): New variable.
2217 (fbsd-nat.o): New dependency.
2218
7a7b73b7
MK
2219 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2220 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2221
9a6c8ef4
MK
2222 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2223 comment.
2224
72d5681a
PH
22252004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2226
2227 * ada-exp.y (type_int): New function to add layer of abstraction
2228 around references to expression types.
2229 (type_long): Ditto.
2230 (type_long_long): Ditto.
2231 (type_float): Ditto.
2232 (type_double): Ditto.
2233 (type_long_double): Ditto.
2234 (type_char): Ditto.
2235 (type_system_address): Ditto.
2236 (simple_exp): Use type_* functions in place of builtin_*
2237 variables.
2238 (exp): Ditto.
2239 (write_var_from_name): Ditto.
2240 (write_object_renaming): Ditto.
2241 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2242 declaration.
2243 (build_ada_types): Remove, replacing with...
2244 (ada_language_arch_info): New function to initialize primitive
2245 type vector in language_arch_info.
2246 (ada_array_length): Remove use of builtin_type_ada_int.
2247 (value_pos_atr): Ditto.
2248 (ada_evaluate_subexp): Ditto.
2249 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2250 builtin_type_ada_long_long, builtin_type_ada_char,
2251 builtin_type_ada_float, builtin_type_ada_double,
2252 builtin_type_ada_long_double, builtin_type_ada_natural,
2253 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2254 (ada_builtin_types): Remove.
2255 (ada_language_defn): Remove entries for la_builtin_type_vector and
2256 string_char_type and use ada_language_arch_info.
2257 (_initialize_ada_language): Do type-vector initialization along
2258 the lines of c-lang.c.
2259 (ada_create_fundamental_type): Break up line.
2260 (ada_dump_symtab): Remove unused function.
2261 (enum ada_primitive_types): Define.
2262 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2263 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2264 builtin_type_ada_float, builtin_type_ada_double,
2265 builtin_type_ada_long_double, builtin_type_ada_natural,
2266 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2267 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2268 (processInt): Ditto.
2269 (processReal): Ditto.
2270 (name_lookup): Ditto.
2271 * ada-typeprint.c (print_range): Use builtin_type_int, not
2272 builtin_type_ada_int.
2273
4f0be353
MK
22742004-09-18 Mark Kettenis <kettenis@gnu.org>
2275
30b0e2d8
MK
2276 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2277
4f0be353
MK
2278 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2279 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2280 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2281 * configure.in: Improve checks for curses library by checking for
2282 mvwaddstr instead of initscr. Drop HP curses in favour of
2283 standard curses on HP-UX.
2284 * configure: Regenerated.
2285
72d5681a 22862004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2287
2288 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2289 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2290 Minor formatting changes.
2291 (empty_array): Slight rewrite for formatting.
2292 (emit_char,parse,ada_language_defn,build_ada_types,
2293 ada_is_exception_sym, _initialize_ada_language): Move
2294 definitions around.
2295 (ada_dump_symtab): Remove unused definition.
2296 (ada_maybe_exception_partial_symbol): Remove unused definition.
2297
1c8c7407
AC
22982004-09-16 Andrew Cagney <cagney@gnu.org>
2299
7681f339
AC
2300 * inf-child.c: Include "gdb_string.h".
2301 (inf_child_core_file_to_sym_file): Delete.
2302 (inf_child_target): Set to_fetch_registers and to_store_registers.
2303 * inf-ptrace.c: Include "gdb_string.h".
2304 * Makefile.in: Update all dependencies.
2305
1c8c7407
AC
2306 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2307 problem.
2308
65596487
JB
23092004-09-14 Joel Brobecker <brobecker@gnat.com>
2310
2311 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2312 call to heuristic_proc_desc. Remove code that became redundant
2313 as a consequence.
2314 (read_next_frame_reg): Remove special case for SP_REGNUM.
2315 (set_reg_offset): Fix small typo.
2316 (reset_saved_regs): New procedure.
2317 (mips32_heuristic_proc_desc): No longer compute a fake
2318 procedure descriptor. Compute the full frame cache instead.
2319 Some minor comment reformatting.
2320
95575b2e
AC
23212004-09-14 Andrew Cagney <cagney@gnu.org>
2322
f200c492
AC
2323 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2324 maintainer.
2325
95575b2e
AC
2326 * thread-db.c (thread_db_new_objfile): Assume that there is a
2327 child process.
2328
69657671
JB
23292004-09-13 Jim Blandy <jimb@redhat.com>
2330
2331 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2332 so that its storage isn't referenced after its lifetime ends.
2333
6c4182dd
JB
2334 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2335 and never assigned to. Delete it, and the 'if (use_buffer)'
2336 clauses. Delete 'raw_buffer', since it is now unused.
2337
ee31a58d
AC
23382004-09-13 Andrew Cagney <cagney@gnu.org>
2339
2c0fc042
AC
2340 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2341 * configure: Re-generate.
2342 * nlm/Makefile.in (TAGS): Update.
2343 * Makefile.in (TAGS): Update.
2344 * config/vax/nbsd.mt (TM_FILE): Update.
2345 * config/sparc/vxworks.mt (TM_FILE): Update.
2346 * config/sparc/sol2.mt (TM_FILE): Update.
2347 * config/sparc/sol2-64.mt (TM_FILE): Update.
2348 * config/sparc/obsd64.mt (TM_FILE): Update.
2349 * config/sparc/obsd.mt (TM_FILE): Update.
2350 * config/sparc/nbsd64.mt (TM_FILE): Update.
2351 * config/sparc/nbsd.mt (TM_FILE): Update.
2352 * config/sparc/linux64.mt (TM_FILE): Update.
2353 * config/sparc/linux.mt (TM_FILE): Update.
2354 * config/sparc/fbsd.mt (TM_FILE): Update.
2355 * config/sh/wince.mt (TM_FILE): Update.
2356 * config/sh/nbsd.mt (TM_FILE): Update.
2357 * config/sh/linux.mt (TM_FILE): Update.
2358 * config/sh/embed.mt (TM_FILE): Update.
2359 * config/s390/s390.mt (TM_FILE): Update.
2360 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2361 * config/rs6000/rs6000.mt (TM_FILE): Update.
2362 * config/rs6000/aix4.mt (TM_FILE): Update.
2363 * config/powerpc/vxworks.mt (TM_FILE): Update.
2364 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2365 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2366 * config/powerpc/obsd.mt (TM_FILE): Update.
2367 * config/powerpc/nbsd.mt (TM_FILE): Update.
2368 * config/powerpc/linux.mt (TM_FILE): Update.
2369 * config/powerpc/aix.mt (TM_FILE): Update.
2370 * config/pa/obsd.mt (TM_FILE): Update.
2371 * config/pa/linux.mt (TM_FILE): Update.
2372 * config/pa/hppahpux.mt (TM_FILE): Update.
2373 * config/pa/hppa64.mt (TM_FILE): Update.
2374 * config/pa/hppa.mt (TM_FILE): Update.
2375 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2376 * config/mips/wince.mt (TM_FILE): Update.
2377 * config/mips/vxmips.mt (TM_FILE): Update.
2378 * config/mips/nbsd.mt (TM_FILE): Update.
2379 * config/mips/linux.mt (TM_FILE): Update.
2380 * config/mips/irix6.mt (TM_FILE): Update.
2381 * config/mips/irix5.mt (TM_FILE): Update.
2382 * config/mips/embed.mt (TM_FILE): Update.
2383 * config/m68k/vxworks68.mt (TM_FILE): Update.
2384 * config/m68k/st2000.mt (TM_FILE): Update.
2385 * config/m68k/os68k.mt (TM_FILE): Update.
2386 * config/m68k/obsd.mt (TM_FILE): Update.
2387 * config/m68k/nbsd.mt (TM_FILE): Update.
2388 * config/m68k/monitor.mt (TM_FILE): Update.
2389 * config/m68k/linux.mt (TM_FILE): Update.
2390 * config/m68k/cisco.mt (TM_FILE): Update.
2391 * config/ia64/linux.mt (TM_FILE): Update.
2392 * config/ia64/aix.mt (TM_FILE): Update.
2393 * config/ia64/ia64.mt (TM_FILE): Update.
2394 * config/i386/vxworks.mt (TM_FILE): Update.
2395 * config/i386/obsd64.mt (TM_FILE): Update.
2396 * config/i386/obsd.mt (TM_FILE): Update.
2397 * config/i386/nto.mt (TM_FILE): Update.
2398 * config/i386/nbsd64.mt (TM_FILE): Update.
2399 * config/i386/nbsd.mt (TM_FILE): Update.
2400 * config/i386/linux64.mt (TM_FILE): Update.
2401 * config/i386/linux.mt (TM_FILE): Update.
2402 * config/i386/i386sol2.mt (TM_FILE): Update.
2403 * config/i386/i386lynx.mt (TM_FILE): Update.
2404 * config/i386/fbsd64.mt (TM_FILE): Update.
2405 * config/i386/fbsd.mt (TM_FILE): Update.
2406 * config/i386/cygwin.mt (TM_FILE): Update.
2407 * config/h8300/h8300.mt (TM_FILE): Update.
2408 * config/frv/frv.mt (TM_FILE): Update.
2409 * config/cris/cris.mt (TM_FILE): Update.
2410 * config/arm/wince.mt (TM_FILE): Update.
2411 * config/arm/nbsd.mt (TM_FILE): Update.
2412 * config/arm/linux.mt (TM_FILE): Update.
2413 * config/arm/embed.mt (TM_FILE): Update.
2414 * config/alpha/nbsd.mt (TM_FILE): Update.
2415 * config/alpha/fbsd.mt (TM_FILE): Update.
2416 * config/alpha/alpha.mt (TM_FILE): Update.
2417 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2418 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2419
362646f5
AC
2420 Eliminate event_loop_p, always has the value 1.
2421 * defs.h (event_loop_p): Delete macro.
2422 * breakpoint.c (until_break_command): Simplify.
2423 * utils.c (prompt_for_continue): Simplify.
2424 * tracepoint.c (read_actions): Simplify.
2425 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2426 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2427 (set_prompt, init_main): Simplify.
2428 (init_signals, disconnect): Delete, unused.
2429 * remote.c (remote_async_resume)
2430 (extended_remote_async_create_inferior): Simplify.
2431 * mi/mi-interp.c (mi_input): Delete, unused.
2432 (mi_interpreter_resume, mi_command_loop): Simplify.
2433 * interps.c (current_interp_command_loop): Simplify.
2434 * infrun.c (proceed): Simplify.
2435 * infcmd.c (run_command, continue_command, step_1, jump_command)
2436 (until_command, advance_command, finish_command)
2437 (interrupt_target_command): Simplify.
2438 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2439
ee31a58d
AC
2440 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2441 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2442 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2443 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2444 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2445 * mips-tdep.c (mips_dump_tdep): Do not print same.
2446
b7ffc4a8
AC
24472004-09-12 Andrew Cagney <cagney@gnu.org>
2448
2bfb72ee
AC
2449 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2450 const.
2451 * Makefile.in (valprint.o): Delete explict rule.
2452
4f17c3c1
AC
2453 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2454 reported by Dave Anderson.
2455
f810308b
AC
2456 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2457
b7ffc4a8
AC
2458 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2459
28b41c52
AC
24602004-09-12 Salvador E. Tropea <set@users.sf.net>
2461 Andrew Cagney <cagney@gnu.org>
2462
2463 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2464 (mi_cmd_data_list_register_values)
2465 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2466 the register number computation.
2467
5bf970f9
AC
24682004-09-12 Andrew Cagney <cagney@gnu.org>
2469
2470 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2471 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2472 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2473 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2474 target.
2475 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2476 inf-ptrace.o and inf-child.o.
2477 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2478 * Makefile.in: Update dependencies.
2479
0759e0bf
AC
24802004-09-11 Andrew Cagney <cagney@gnu.org>
2481
2482 * language.c (hex_string, hex_string_custom): Move from here ...
2483 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2484 (CELLSIZE): Increase to 50.
2485 * language.h (hex_string, hex_string_custom): Move from here ...
2486 * defs.h: ... to here.
2487 * Makefile.in: Update all dependencies.
2488
bb599908
PH
24892004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2490
2491 * language.c (local_hex_format_custom): Remove.
2492 (local_hex_string): Rename to hex_string, use C format, and move to
2493 utils.c
2494 (local_hex_string_custom): Rename to hex_string_custom and change
2495 interface. Now uses C format. Move to utils.c
2496 (local_octal_format_custom): Remove.
2497 (local_decimal_format_custom): Remove.
2498 (unknown_language_defn): Remove language-specific number
2499 formatting entries.
2500 (auto_language_defn): Ditto.
2501 (local_language_defn): Ditto.
2502 * language.h (struct language_format_info): Delete declaration.
2503 (struct language_defn): Remove language_format_info fields
2504 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2505 (local_binary_format): Remove macro.
2506 (local_binary_format_prefix): Remove macro.
2507 (local_binary_format_specifier): Remove macro.
2508 (local_binary_format_suffix): Remove macro.
2509 (local_octal_format): Remove macro.
2510 (local_octal_format_prefix): Remove macro.
2511 (local_octal_format_specifier): Remove macro.
2512 (local_octal_format_suffix): Remove macro.
2513 (local_decimal_format): Remove macro.
2514 (local_decimal_format_prefix): Remove macro.
2515 (local_decimal_format_specifier): Remove macro.
2516 (local_decimal_format_suffix): Remove macro.
2517 (local_hex_format): Remove macro.
2518 (local_hex_format_prefix): Remove macro.
2519 (local_hex_format_specifier): Remove macro.
2520 (local_hex_format_suffix): Remove macro.
2521 (local_decimal_format_custom): Remove.
2522 (local_octal_format_custom): Remove.
2523 (local_hex_format_custom): Remove.
2524 (local_hex_string): Rename to hex_string and move to defs.h.
2525 (local_hex_string_custom): Rename to hex_string_custom, change
2526 interface, and move to defs.h.
2527 * utils.c: (int_string): New function.
2528 (hex_string): New function (from language.c).
2529 (hex_string_custom): New function (from language.c).
2530 (octal2str): New function.
2531 (decimal2str): Add width parameter.
2532 (paddr_u): Use new decimal2str interface.
2533 (paddr_d): Ditto.
2534 * defs.h (hex_string): Declare.
2535 (hex_string_custom): Declare.
2536 (int_string): Declare.
2537 * printcmd.c (print_scalar_formatted): Remove localized binary
2538 formatting.
2539 * valprint.c (print_longest): Use int_string.
2540 (print_floating): Use C hex format.
2541 (print_hex_chars): Ditto.
2542 (print_binary_chars): Remove language-specific formatting.
2543 (print_octal_chars): Use C octal format.
2544 (print_decimal_chars): Delocalize format.
2545 (print_decimal): Remove.
2546 * ada-lang.c (ada_language_defn): Remove language-specific number
2547 formatting entries.
2548 * p-lang.c (pascal_language_defn): Ditto.
2549 * c-lang.c (c_language_defn): Ditto.
2550 (cplus_language_defn): Ditto.
2551 (asm_language_defn): Ditto.
2552 (minimal_language_defn): Ditto.
2553 * f-lang.c (f_language_defn): Ditto.
2554 * jv-lang.c (java_language_defn): Ditto.
2555 * m2-lang.c (m2_language_defn): Ditto.
2556 * scm-lang.c (scm_language_defn): Ditto.
2557 * objc-lang.c (objc_language_defn): Ditto.
2558 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2559 new interface.
2560 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2561 * ui-out.c (ui_out_field_core_addr): Ditto.
2562 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2563 * exec.c (print_section_info): Ditto.
2564 * i387-tdep.c (print_i387_status_word): Ditto.
2565 (print_i387_control_word): Ditto.
2566 (i387_print_float_info): Ditto.
2567 * maint.c (maint_print_section_info): Ditto.
2568 * solib.c (info_sharedlibrary_command): Ditto.
2569 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2570 * symtab.c (print_msymbol_info): Ditto.
2571 * tracepoint.c (tracepoints_info): Ditto.
2572 * solib-frv.c (lm_base): Ditto.
2573 (frv_current_sos): Ditto.
2574 (enable_break2): Ditto.
2575 (enable_break): Ditto.
2576 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2577 (process_one_symbol): Ditto.
2578 * infcmd.c (program_info): Ditto.
2579 * mdebugread.c (parse_partial_symbols): Ditto.
2580 * symfile.c (add_symbol_file_command): Ditto.
2581 * cli/cli-cmds.c (edit_command): Ditto.
2582 (list_command): Ditto.
2583 * infcall.c (call_function_by_hand): Ditto.
2584 * remote-vx.c (vx_run_files_info): Ditto.
2585 (vx_wait): Ditto.
2586 (vx_attach): Ditto.
2587 (vx_detach): Ditto.
2588 (vx_kill): Ditto.
2589 * aix-thread.c (pdc_symbol_addrs): Ditto.
2590 (pdc_read_regs): Ditto.
2591 (pdc_write_regs): Ditto.
2592 (pdc_read_data): Ditto.
2593 (pdc_write_data): Ditto.
2594 * d10v-tdep.c (display_trace): Ditto.
2595 * rs6000-nat.c (find_toc_address): Ditto.
2596 * aix-thread.c: Don't include language.h.
2597 * buildsym.c: Ditto.
2598 * dbxread.c: Ditto.
2599 * mdebugread.c: Ditto.
2600 * rs6000-nat.c: Ditto.
2601 * buildsym.c (make_blockvector): Use renamed hex_string.
2602
33f2d567
JM
26032004-09-10 Jason Molenda (jmolenda@apple.com)
2604
2605 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2606 chars after 'if' or 'while' commands in user-defined commands.
2607
7b90c3f9
JB
26082004-09-08 Jim Blandy <jimb@redhat.com>
2609
2610 Fix bug reported and analyzed by Olivier Crete:
2611 * symfile.c (copy_section_addr_info): New function.
2612 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2613 original set of address arguments, instead of handwritten code
2614 that uses one length to allocate and a different length to
2615 initialize. Use make_cleanup_free_section_addr_info.
2616 * symfile.h (copy_section_addr_info): New declaration.
2617 * utils.c: #include "symfile.h".
2618 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2619 New functions.
2620 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2621 * Makefile.in (utils.o): Update dependencies.
2622
b26a6851
AC
26232004-09-08 Andrew Cagney <cagney@gnu.org>
2624
2625 * thread-db.c (keep_thread_db): Delete.
2626 (thread_db_new_objfile, thread_db_create_inferior)
2627 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2628
be24b061
MK
26292004-09-08 Mark Kettenis <kettenis@gnu.org>
2630
f6792ef4
MK
2631 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2632 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2633 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2634 (i386_frameless_signal_p): Remove prototype.
2635 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2636 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2637 I386_SSE_NUM_REGS.
2638 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2639 instead of FP0_REGNUM.
2640 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2641 of FP0_REGNUM and FPC_REGNUM.
2642
eeefdaa7
MK
2643 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2644 (sunos_solib_create_inferior_hook): Don't call
2645 sunos_relocate_main_executable.
2646
be24b061
MK
2647 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2648 solib_svr4_fetch_link_map_offsets to
2649 svr4_ilp32_fetch_link_map_offsets.
2650 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2651 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2652 svr4_ilp32_fetch_link_map_offsets.
2653 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2654
7c679d16
JB
26552004-09-07 Jim Blandy <jimb@redhat.com>
2656
2657 * frame.h (frame_register): Doc fix.
2658
1f04aa62
AC
26592004-09-07 Andrew Cagney <cagney@gnu.org>
2660
2661 * vx-share/wait.h: Delete #ifdef USG.
2662 * utils.c (request_quit): Ditto.
2663 * tui/tui.c (tui_reset): Ditto.
2664 * remote.c: Ditto.
2665 * remote-sds.c: Ditto.
2666 * remote-rdi.c: Ditto.
2667 * mdebugread.c: Ditto.
2668 * m68klinux-nat.c: Ditto.
2669 * infttrace.c: Ditto.
2670 * infptrace.c: Ditto.
2671 * i386v-nat.c: Ditto.
2672 * exec.c: Ditto.
2673 * dbxread.c: Ditto.
2674 * core-aout.c: Ditto.
2675
90edbfbc
JB
26762004-09-05 Joel Brobecker <brobecker@gnat.com>
2677
2678 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2679 heuristic_proc_desc.
2680 (mips_insn32_frame_cache): Likewise.
2681
01f4bf2b
JB
26822004-09-04 Joel Brobecker <brobecker@gnat.com>
2683
2684 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2685 left behind by error.
2686
8511a048
JB
26872004-09-04 Joel Brobecker <brobecker@gnat.com>
2688
2689 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2690 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2691
649dfe9f
JB
26922004-09-04 Joel Brobecker <brobecker@gnat.com>
2693
2694 * config/rs6000/xm-aix4.h: Remove this file.
2695 * config/rs6000/aix4.mh (XM_FILE): Delete.
2696
6e50f889
JB
26972004-09-04 Joel Brobecker <brobecker@gnat.com>
2698
2699 * config/rs6000/xm-rs6000.h: Remove this file.
2700 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2701
b8c4aece
AC
27022004-09-03 Andrew Cagney <cagney@gnu.org>
2703
fb603883
AC
2704 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2705 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2706 only use.
2707
c9343fd1
AC
2708 * mips-tdep.c (temp_saved_regs): Delete.
2709 (set_reg_offset): Replace saved_regs parameter with this_cache.
2710 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2711 (mips32_heuristic_proc_desc): Add this_cache parameter.
2712 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2713 (after_prologue): Pass a NULL this_cache.
2714
9733cfe1
AC
2715 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2716 non-kernel trap prologues.
2717
0d5febcc
AC
2718 * mips-tdep.c (find_proc_desc): Delete function.
2719 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2720 simplify.
2721 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2722 mips_insn32_frame_cache.
2723
9733cfe1 2724 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
2725 Simplify as NEXT_FRAME is NULL.
2726 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2727
177f84a3
AC
2728 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2729 local variable.
2730 (mips_skip_prologue): Update.
2731
465f7520
AC
2732 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2733 "cur_frame" parameter.
177f84a3
AC
2734 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2735 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 2736
e38b8658
AC
2737 * config/vax/nm-obsd.h: Delete file.
2738 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2739 * config/vax/nm-nbsd.h: Delete file.
2740 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2741 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2742 * config/sh/nm-nbsd.h: Delete file.
2743 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2744 * config/rs6000/nm-rs6000ly.h: Delete file.
2745 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2746 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2747 * config/powerpc/nm-obsd.h: Delete file.
2748 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2749 * config/powerpc/nm-nbsd.h: Delete file.
2750 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2751 * config/pa/nm-obsd.h: Delete file.
2752 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2753 * config/mips/nm-nbsd.h: Delete file.
2754 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2755 * config/m88k/nm-obsd.h: Delete file.
2756 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2757 * config/m68k/nm-nbsd.h: Delete file.
2758 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2759 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2760 * config/i386/nm-nbsd.h: Delete file.
2761 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2762 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2763 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2764 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2765 * config/i386/nm-i386lynx.h: Delete file.
2766 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2767 * config/arm/nm-nbsd.h: Delete file.
2768 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2769 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2770
be1ed680
AC
2771 * config/i386/tm-fbsd.h: Delete file.
2772 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2773 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2774
4b392b26
AC
2775 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2776 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2777 * config/rs6000/aix4.mt (TM_FILE): Set to
2778 config/rs6000/tm-rs6000.h.
2779 * config/powerpc/tm-ppc-aix.h: Delete file.
2780 * config/powerpc/aix.mt (TM_FILE): Set to
2781 config/rs6000/tm-rs6000.h.
2782 * config/m68k/tm-linux.h: Delete file.
2783 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2784 * config/i386/tm-linux64.h: Delete file.
2785 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2786 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2787
f3219c75
AC
2788 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2789 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2790 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2791 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2792 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2793 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2794 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2795 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2796 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2797
b8c4aece
AC
2798 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2799 gdb_host_cpu.
2800
8ac2e020
JB
28012004-09-02 Joel Brobecker <brobecker@gnat.com>
2802
2803 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2804 Minor reformatting. Some code factoring.
2805
c185a355
AC
28062004-09-02 Andrew Cagney <cagney@gnu.org>
2807
63f22f0d
AC
2808 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2809 * config/vax/tm-nbsd.h: Delete file.
2810 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2811 * config/sparc/tm-vxworks.h: Delete file.
2812 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2813 * config/sparc/tm-nbsd.h: Delete file.
2814 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2815 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2816 * config/sparc/tm-linux.h: Delete file.
2817 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2818 * config/s390/tm-linux.h: Delete file.
2819 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2820 * config/pa/tm-bsd.h: Delete file.
2821 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2822 * config/m68k/tm-obsd.h: Delete file.
2823 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2824 * config/m68k/tm-nbsd.h: Delete file.
2825 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2826 * config/i386/tm-vxworks.h: Delete file.
2827 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2828 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2829 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2830 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2831 * config/i386/tm-nbsd.h: Delete file.
2832 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2833 * config/i386/tm-i386lynx.h: Delete file.
2834 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2835 * config/cris/tm-cris.h: Delete file.
2836
0f475e27
AC
2837 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2838 * configure: Re-generate.
2839 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2840 * config/arm/tm-nbsd.h: Delete file.
2841
458ed000
AC
2842 * config/powerpc/tm-ppcle-sim.h: Delete.
2843 * config/powerpc/tm-ppcle-eabi.h: Delete.
2844 * config/powerpc/tm-nbsd.h: Delete.
2845 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2846 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2847 tm-ppcle-eabi.h.
2848
f14375f3
AC
2849 * config/i386/nto.mh (NAT_FILE): Delete.
2850 * config/i386/nm-nto.h: Delete.
2851
c34d127c
AC
2852 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2853 * config/m68k/tm-os68k.h: Ditto.
2854 * config/m68k/tm-monitor.h: Ditto.
2855 * config/m68k/tm-cisco.h: Ditto.
2856 * config/m68k/st2000.mt (TM_FILE): Delete.
2857 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2858 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2859 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2860 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2861
f7f0fe03
AC
2862 * config/m68k/tm-st2000.h: Delete.
2863 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2864 * config/sparc/fbsd.mt (TM_FILE): Delete.
2865 * config/sparc/tm-fbsd.h: Delete.
2866
a2558533
AC
2867 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2868 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2869 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2870
b78960be
AC
2871 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2872 GDB_TM_FILE and GDB_XM_FILE.
2873 * gdbarch.c: Re-generate.
2874 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2875 quotes in macro definition.
2876 * configure.in: Re-generate.
2877
4d60522e
AC
2878 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2879 validating architecture methods.
2880 * gdbarch.c: Re-generate.
2881
5010d38b
AC
2882 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2883 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2884 GDB_MULTI_ARCH_PARTIAL.
2885 * gdbarch.h: Re-generate.
2886
c185a355
AC
2887 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2888 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2889 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2890 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2891 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2892 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2893 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2894 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2895 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2896 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2897 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2898 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2899
14aaa6ab
AC
29002004-09-01 Andrew Cagney <cagney@gnu.org>
2901
2902 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2903 and main_func_highpc.
2904 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2905 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2906 * nlmread.c (nlm_symfile_read): Update.
2907
a343eb3c
JB
29082004-09-01 Joel Brobecker <brobecker@gnat.com>
2909
2910 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2911 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2912 (find_proc_desc): Remove dead code.
2913
4fbbbd07
JB
29142004-09-01 Joel Brobecker <brobecker@gnat.com>
2915
2916 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2917
84acb35a
JJ
29182004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2919
2920 * observer.sh: Add struct so_list declaration.
2921 * Makefile.in: Add dependencies on observer.h for solib.c and
2922 breakpoint.c.
2923 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2924 function.
2925 (_initialize_breakpoint): Register
2926 disable_breakpoints_in_unloaded_shlib as an observer of the
2927 "solib unloaded" observation event.
2928 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2929 call decode_line_1 so unfound breakpoint errors are silent.
2930 * solib.c (update_solib_list): When a solib is discovered to have
2931 been unloaded by the program, notify all observers of the
2932 "solib unloaded" observation event.
2933
c8cd9f6c
AC
29342004-09-01 Andrew Cagney <cagney@gnu.org>
2935
2936 * frame.c: Include "objfiles.h".
2937 (inside_main_func): New function.
2938 (get_prev_frame): Use new inside_main_func.
2939 * Makefile.in (frame.o): Update dependencies.
2940 * defs.h (inside_main_func): Delete declaration.
2941 * blockframe.c (inside_main_func): Delete function.
2942
1168df01
JB
29432004-08-31 Jim Blandy <jimb@redhat.com>
2944
2945 * dwarf2read.c (is_vtable_name): New function, based on logic from
2946 read_structure_type, but passing the correct length to strncmp,
2947 and using 'sizeof' instead of 'strlen'.
2948 (read_structure_type): Call it.
2949
f14f9744
JB
29502004-08-31 Joel Brobecker <brobecker@gnat.com>
2951
2952 * config/powerpc/aix.mh: Add comment.
2953
386d4518
PG
29542004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2955
2956 * MAINTAINERS: Add self to Write-After-Approval.
2957
7d97d5e2
MI
29582004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2959
2960 * MAINTAINERS: Add self to Write-After-Approval.
2961
68f53502
AC
29622004-08-30 Andrew Cagney <cagney@gnu.org>
2963
2964 Fix PR breakpoints/1757.
2965 * infrun.c (struct execution_control_state): Replace
2966 remove_breakpoints_on_following_step with
2967 step_after_step_resume_breakpoint.
2968 (init_execution_control_state): Update.
2969 (handle_inferior_event): For signals, when stepping off a
2970 breakpoint, set step_after_step_resume_breakpoint. When
2971 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2972 (keep_going): Delete code handling
2973 remove_breakpoints_on_following_step.
2974
7ca2d3a3
DL
29752004-08-29 David Lecomber <david@streamline-computing.com>
2976
2977 Fix PR gdb/648
2978 * language.h (enum array_ordering): New enum.
2979 * language.h (struct language_defn): New la_array_ordering
2980 attribute.
2981 * language.c (unknown_language_defn, auto_language_defn)
2982 (local_language_defn): Ditto.
2983 * ada-lang.c (ada_language_defn): Ditto.
2984 * c-lang.c (c_language_defn, cplus_language_defn)
2985 (asm_language_defn, minimal_language_defn): Ditto.
2986 * f-lang.c (f_language_defn): Ditto.
2987 * jv-lang.c (java_language_defn): Ditto.
2988 * m2-lang.c (f_language_defn): Ditto.
2989 * objc-lang.c (objc_language_defn): Ditto.
2990 * p-lang.c (pascal_language_defn): Ditto.
2991 * scm-lang.c (scm_language_defn): Ditto.
2992 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2993 oriented large to small in type structure.
2994 * dwarf2read.c (read_array_order): New function.
2995 (read_array_type): Use read_array_order to check row/column
2996 major ordering.
2997
e354df01
NW
29982004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2999
3000 * target.c (target_resize_to_sections): Check
3001 current_target.to_sections for an old value when updating.
3002
9185ddce
JB
30032004-08-27 Joel Brobecker <brobecker@gnat.com>
3004
3005 * procfs.c (dbx_link_bpt_addr): New static global variable.
3006 (dbx_link_shadow_contents): New static global variable.
3007 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3008 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3009 if we just hit it.
3010 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3011 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3012 from run to run.
3013 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3014 after the inferior has been forked.
3015 (remove_dbx_link_breakpoint): New function.
3016 (dbx_link_addr): New function.
3017 (insert_dbx_link_bpt_in_file): New function.
3018 (insert_dbx_link_bpt_in_region): New function.
3019 (insert_dbx_link_breakpoint): New function.
3020 (proc_trace_syscalls_1): New function, extracted from
3021 proc_trace_syscalls.
3022 (proc_trace_syscalls): Replace extract code by call to
3023 proc_trace_syscalls_1.
3024 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3025 is no longer valid.
3026
e6742ace
JB
30272004-08-25 Jim Blandy <jimb@redhat.com>
3028
3029 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3030
8fb3e588
AC
30312004-08-25 Andrew Cagney <cagney@gnu.org>
3032
629a41ee
AC
3033 * infrun.c (struct execution_control_state): Delete field
3034 "stepping_through_sigtramp".
3035 (init_execution_control_state): Do not set same.
3036 (context_switch): Do not pass same to save_infrun_state and
3037 load_infrun_state.
3038 * gdbthread.h (struct thread_info): Delete field
3039 stepping_through_sigtramp.
3040 (save_infrun_state, load_infrun_state): Delete parameter
3041 stepping_through_sigtramp.
3042 * thread.c (load_infrun_state, save_infrun_state): Update.
3043
8fb3e588
AC
3044 * infrun.c: Re-indent. Move expression operators to the beginning
3045 of the line. Remove long disabled #if 0 code.
3046
49c54768
AC
30472004-08-24 Andrew Cagney <cagney@gnu.org>
3048
3049 * doublest.h (floatformat_ieee_quad): Rename
3050 floatformat_ia64_quad.
3051 * doublest.c (floatformat_ieee_quad): Rename
3052 floatformat_ia64_quad.
3053 (_initialize_doublest): Update.
3054
5ca2e327
JB
30552004-08-24 Jim Blandy <jimb@redhat.com>
3056
87808bd6
JB
3057 * dwarf2expr.h (struct dwarf_expr_context): New members
3058 'num_pieces' and 'pieces', for returning the result of an
3059 expression that uses DW_OP_piece.
3060 (struct dwarf_expr_piece): New struct type.
3061 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3062 pieces.
3063 (free_dwarf_expr_context): Free pieces, if any.
3064 (add_piece): New function.
3065 (execute_stack_op): Implement DW_OP_piece.
3066 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3067 expression is a list of pieces, print an error message.
3068 (dwarf2_loc_desc_needs_frame): If the expression yields
3069 pieces, and any piece is in a register, then we need a frame.
3070
5ca2e327
JB
3071 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3072 the stack until we've decided what sort of result the evaluation
3073 has produced. Use separate variables, with more specific names.
3074
2afeb6b8
RE
30752004-08-23 Richard Earnshaw <rearnsha@arm.com>
3076
3077 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3078 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3079 (arm_netbsd_init_abi_common): Register them.
3080
5885ab49
MK
30812004-08-22 Mark Kettenis <kettenis@gnu.org>
3082
fda820a6
MK
3083 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3084
1c5bf419
MK
3085 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3086 safe_frame_unwind_memory instead of target_read_memory.
3087
8cbba7c8
MK
3088 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3089 Reorder includes.
3090 (fetch_register, store_register): Remove prototypes.
3091 (child_resume): Reorganize code and comments such that it is
3092 grouped a bit more logically.
3093 (attach): Explicitly compare errno against 0.
3094 (detach): Likewise. Use perror_with_name instead of
3095 print_sys_errmsg.
3096 * Makefile.in (infptrace.o): Update dependencies.
3097
c5fa4245
MK
3098 * ia64-linux-nat.c: Update copyright year.
3099 (fetch_debug_register, store_debug_register)
3100 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3101 PTRACE_TYPE_ARG3.
3102 * config/ia64/nm-linux.h: Update copyright year.
3103 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3104
387c058c
MK
3105 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3106 from CORE_ADDR to struct frame_info *. Use
3107 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3108 (amd64_linux_sigtramp_p): Adjust for changed signature of
3109 and64_linux_sigtramp_start
3110
277215a6
MK
3111 * gdb_ptrace.h: GNU/Linux.
3112
25f6178e
MK
3113 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3114 Remove defines.
3115
652fc137
MK
3116 * infptrace.c: Include "gdb_assert.h".
3117 (PTRACE_XFER_TYPE): Remove define.
3118 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3119 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3120 Tweak comment.
3121 (fetch_inferior_registers, store_inferior_registers): Remove
3122 redundant culry braces. Tweak comment. s/regno/regnum.
3123 * Makefile.in (infptrace.o): Update dependencies.
3124
5885ab49
MK
3125 * configure.in: Change test for return type of ptrace to default
3126 to `long' instead of `int'.
3127 * configure: Regenerate.
3128
11003ae3
MK
31292004-08-21 Mark Kettenis <kettenis@gnu.org>
3130
6b95110c
MK
3131 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3132
bcb3dc3d
MK
3133 * configure.in: Check for ttrace function.
3134 * configure, config.in: Regenerate.
3135
11003ae3
MK
3136 * gdb_ptrace.h: New file.
3137 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3138 <sys/ptrace.h>.
3139 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3140 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3141 (attach): Don't define PT_ATTACH.
3142 (detach): Don't define PT_DETACH.
3143 * Makefile.in (gdb_ptrace_h): New variable.
3144 (infptrace.o): Update dependencies.
3145
f8707cac
MK
31462004-08-16 Mark Kettenis <kettenis@gnu.org>
3147
3148 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3149 instead of `int' if not already defined.
3150 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3151 PTRACE_TYPE_ARG3.
3152 * infptrace.c (call_ptrace): Revert change that replaced
3153 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3154
655c5466
MK
31552004-08-15 Mark Kettenis <kettenis@gnu.org>
3156
156e5ba7
MK
3157 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3158 Remove defines.
3159
de9a9e51
MK
3160 * linux-nat.c (kill_inferior): Add missing third and fourth
3161 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3162
88800403
MK
3163 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3164 PTRACE_TYPE_RET.
3165
849a1d7c
MK
3166 * proc-why.c (proc_prettyfprint_why): Fix format string.
3167
61ad16d1
MK
3168 * solib-osf.c (osf_current_sos): Remove unsused label.
3169
a6ed5501
MK
3170 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3171 curses headers.
3172 * configure, config.in: Regenerate.
3173 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3174 <ncurses/ncurses.h>.
3175
016ddeca
MK
3176 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3177 * config/nm-nbsd.h: Update copyright year.
3178 (PTRACE_ARG3_TYPE): Remove define.
3179
49ec097f
MK
3180 * sparc-nat.c (fetch_inferior_registers)
3181 (store_inferior_registers, sparc_xfer_wcookie):
3182 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3183
9f8e0089
MK
3184 * alphabsd-nat.c (fetch_inferior_registers):
3185 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3186 PTRACE_TYPE_ARG3.
3187 * amd64bsd-nat.c (fetch_inferior_registers)
3188 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3189 PTRACE_TYPE_ARG3.
3190 * armnbsd-nat.c: Update copyright year.
3191 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3192 (store_register, store_regs, store_fp_register, store_fp_regs):
3193 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3194 * hppabsd-nat.c (fetch_inferior_registers)
3195 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3196 PTRACE_TYPE_ARG3.
3197 * i386bsd-nat.c (fetch_inferior_registers)
3198 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3199 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3200 * m68kbsd-nat.c (fetch_inferior_registers)
3201 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3202 PTRACE_TYPE_ARG3.
3203 * m88kbsd-nat.c (fetch_inferior_registers)
3204 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3205 PTRACE_TYPE_ARG3.
3206 * mipsnbsd-nat.c: Update copyright year.
3207 (fetch_inferior_registers, store_inferior_registers):
3208 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3209 * ns32knbsd-nat.c: Update copyright year.
3210 (fetch_inferior_registers, store_inferior_registers):
3211 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3212 * ppcnbsd-nat.c (fetch_inferior_registers):
3213 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3214 PTRACE_TYPE_ARG3.
3215 * ppcobsd-nat.c (fetch_inferior_registers):
3216 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3217 PTRACE_TYPE_ARG3.
3218 * shnbsd-nat.c: Update copyright year.
3219 (fetch_inferior_registers, store_inferior_registers):
3220 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3221 * vaxbsd-nat.c (fetch_inferior_registers)
3222 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3223 PTRACE_TYPE_ARG3.
3224
655c5466
MK
3225 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3226 PTRACE_TYPE_ARG3.
3227 * infptrace.c (call_ptrace, child_resume, attach, detach)
3228 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3229 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3230 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3231 PTRACE_TYPE_ARG3.
3232
c40d0d10
MK
32332004-08-14 Mark Kettenis <kettenis@gnu.org>
3234
5cb0ff31
MK
3235 * defs.h: Remove out-of-date comment.
3236 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3237 [!GETENV_PROVIDED] (getenv): Remove prototype.
3238
5f0f34cb
MK
3239 * standalone.c: Remove file.
3240 * Makefile.in (standalone.o): Remove dependency.
3241
7532965f
MK
3242 * i386-linux-nat.c (dummy_sse_values): Remove function and
3243 prototype.
3244 (i386_linux_dr_get): Fix typo in comment.
3245 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3246
1bdc6c53
MK
3247 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3248
c40d0d10
MK
3249 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3250 from declaration.
3251 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3252 from definition.
3253
64218d3e
MK
32542004-08-13 Mark Kettenis <kettenis@gnu.org>
3255
3256 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3257 parenthesis in definition.
3258 * configure: Regenerated.
3259
926c94e7
MC
32602004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3261
3262 * PROBLEMS: Mention build/1411.
3263
69489883
NN
32642004-08-09 Robert Millan <robertmh@gnu.org>
3265
3266 Committed by Nathanael Nerode.
3267 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3268 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3269
ebb7c577
AC
32702004-08-12 Andrew Cagney <cagney@gnu.org>
3271
3272 * NEWS: Mention fixes in GDB 6.2.1.
3273 * PROBLEMS: Remove mention of mips-irix.
3274
232d697c
JB
32752004-08-11 Joel Brobecker <brobecker@gnat.com>
3276
3277 * config/powerpc/xm-aix.h: Delete.
3278 * config/powerpc/aix.mh (MH_FILE): Remove.
3279 * config/powerpc/aix432.mh (MH_FILE): Remove.
3280
72f4e82b
JB
32812004-08-11 Joel Brobecker <brobecker@gnat.com>
3282
3283 * config/powerpc/aix.mh: Remove obsolete comment.
3284 * config/powerpc/aix432.mh: Likewise.
3285
0687ccb2
JB
32862004-08-11 Joel Brobecker <brobecker@gnat.com>
3287
3288 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3289
dbf3ada7
JB
32902004-08-11 Joel Brobecker <brobecker@gnat.com>
3291
e08e1886
JB
3292 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3293 this file is now empty.
3294 * config/xm-aix4.h: Remove, this file is no longer included
3295 anywhere.
3296
32972004-08-11 Joel Brobecker <brobecker@gnat.com>
3298
3299 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3300 that file is now empty.
dbf3ada7
JB
3301 (termdef): Remove prototype, function no longer used.
3302
4c525ef6
JB
33032004-08-11 Joel Brobecker <brobecker@gnat.com>
3304
3305 * doc/gdbint.texinfo (Host Definition): Remove documentation
3306 for USE_O_NOCTTY, no longer used.
3307 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3308 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3309
82e0b968
JB
33102004-08-11 Joel Brobecker <brobecker@gnat.com>
3311
3312 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3313 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3314 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3315
f2acbe1c
MK
33162004-08-11 Mark Kettenis <kettenis@gnu.org>
3317
daa98270
MK
3318 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3319 instead of FIVE_ARG_PTRACE.
3320
f2acbe1c
MK
3321 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3322 (new_tty): Use O_NOCTTY unconditionally.
3323
cc377e6b
MK
33242004-08-10 Mark Kettenis <kettenis@gnu.org>
3325
3326 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3327 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3328 fflush on stdout.
3329
3bcc18fa
JB
33302004-08-10 Joel Brobecker <brobecker@gnat.com>
3331
3332 * xcoff_symfile_finish: Replace last call to xmfree by call
3333 to xfree.
3334
7936743b
AC
33352004-08-10 Andrew Cagney <cagney@gnu.org>
3336
cc503c8a
AC
3337 * main.c (captured_main): Delete call to init_malloc.
3338 * defs.h (init_malloc): Delete declaration.
3339 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3340 (init_malloc): Delete functions.
3341
2dc74dc1
AC
3342 * defs.h (xmfree): Delete.
3343 * utils.c (xmfree): Delete function.
3344 (xfree): Inline calls to xmfree and mfree.
3345 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3346 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3347 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3348 * somread.c (som_symfile_finish): Ditto.
3349 * objfiles.c (allocate_objfile, free_objfile):
3350 * nlmread.c (nlm_symfile_finish): Ditto.
3351 * hpread.c (hpread_symfile_finish): Ditto.
3352 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3353 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3354 * coffread.c (coff_symfile_finish): Ditto.
3355
aa2ee5f6
AC
3356 * defs.h (xmcalloc): Delete declaration.
3357 * utils.c (xmcalloc): Delete.
3358 (xcalloc): Inline calls to xmcalloc and mcalloc.
3359 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3360 xcalloc and xfree.
3361 * symtab.c (create_demangled_names_hash): Ditto.
3362
0efffb96
AC
3363 * defs.h (xmrealloc): Delete.
3364 * utils.c (xmrealloc): Delete.
3365 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3366 * symmisc.c (extend_psymbol_list): Use xrealloc.
3367 * source.c (find_source_lines): Ditto.
3368 * hpread.c (hpread_lookup_type): Ditto.
3369 * dbxread.c (add_bincl_to_list): Ditto.
3370
7936743b
AC
3371 * utils.c (xmmalloc): Delete.
3372 (xmalloc): Inline xmmalloc and mmalloc calls.
3373 (msavestring): Use xmalloc.
3374 * defs.h (xmmalloc): Delete declaration.
3375 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3376 xmmalloc.
3377 * symmisc.c (extend_psymbol_list): Ditto.
3378 * symfile.c (init_psymbol_list): Ditto.
3379 * source.c (find_source_lines): Ditto.
3380 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3381 * elfread.c (elf_symtab_read): Ditto.
3382 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3383 * coffread.c (coff_symfile_init): Ditto.
3384
252ab814
DC
33852004-08-10 David Carlton <carlton@bactrian.org>
3386
3387 * MAINTAINERS: Remove David Carlton from c++ testsuite
3388 maintainers.
3389
8f5ba92b
JG
33902004-08-10 Jerome Guitton <guitton@gnat.com>
3391
3392 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3393 print a line feed before the prompt.
3394
21749010
MK
33952004-08-10 Mark Kettenis <kettenis@gnu.org>
3396
3397 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3398
1f011ce2
JB
33992004-08-09 Joel Brobecker <brobecker@gnat.com>
3400
3401 General cleanup of the AIX xm include file:
3402 * config/xm-aix4.h (fd_set): Remove undefine.
3403 Remove include of <sys/select.h>.
3404 (HAVE_TERMIO): Remove define.
3405 (USG): Likewise.
3406 (NULL): Remove redefine.
3407 (alloca): Remove #pragma.
3408 (vfork): Remove define.
3409 (termdef): Remove.
3410 (SIGWINCH_HANDLER): Remove.
3411 (SIGWINCH_HANDLER_BODY): Remove.
3412
cf4e7692
MK
34132004-08-09 Mark Kettenis <kettenis@gnu.org>
3414
3415 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3416 GDB_OSABI_OPENBSD_ELF.
3417
ac5754fa
MK
34182004-08-07 Robert Millan <robertmh@gnu.org>
3419
3420 * bsd-kvm.c: Check for nlist.h before including it.
3421
086ec9eb
MK
34222004-08-09 Mark Kettenis <kettenis@gnu.org>
3423
bbe06c74
MK
3424 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3425 sigcontext' offset consistency checks for ancient BSD.
3426
3aa7b3b3
MK
3427 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3428
086ec9eb
MK
3429 * configure.in: Check for <sys/types.h>. Check return and
3430 argument types of ptrace.
3431 * configure, config.in: Regenerate.
3432
09991fa0
JB
34332004-08-09 Jim Blandy <jimb@redhat.com>
3434
3435 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3436 rs6000_register_sim_regno): Doc fixes.
3437
fed7ba43
JB
34382004-08-08 Joel Brobecker <brobecker@gnat.com>
3439
3440 * mips-tdep.c: Include "floatformat.h".
3441 (n32n64_floatformat_always_valid): New function.
3442 (floatformat_n32n64_long_double_big): New constant.
3443 (mips_gdbarch_init): Set size and format of long double
3444 for N32 and N64 ABIs.
3445 * Makefile.in (mips-tdep.o): Update dependencies.
3446
456fcf94
AC
34472004-08-08 Andrew Cagney <cagney@gnu.org>
3448
2f9b146e
AC
3449 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3450 print. Improve script's error messages.
3451 * gdbarch.h: Re-generate.
3452
456fcf94
AC
3453 * gdbarch.sh (pformat): New function.
3454 (float_format, double_format, long_double_format): List with bit
3455 members. Use pformat when printing.
3456 * gdbarch.c, gdbarch.h: Re-generate.
3457
69e9e646
NW
34582004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3459
3460 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3461 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3462 (ppcnbsd_supply_pcb): New function.
3463 (_initialize_ppcnbsd_nat): New prototype and function.
3464 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3465 (LOADLIBES): New variable.
3466 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3467
5ef2d0aa
AC
34682004-08-08 Andrew Cagney <cagney@gnu.org>
3469
3470 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3471 (builtin_type_ieee_double, builtin_type_ia64_quad)
3472 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3473 BE/LE floating-point types.
3474 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3475 (builtin_type_ieee_double, builtin_type_ia64_quad)
3476 (builtin_type_ia64_spill): Declare.
3477 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3478 (floatformat_ieee_double, floatformat_arm_ext)
3479 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3480 of LE/BE floatformats.
3481 * doublest.h: (struct floatformat, floatformat_ieee_single)
3482 (floatformat_ieee_double, floatformat_arm_ext)
3483 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3484
5c7f2947
MK
34852004-08-08 Mark Kettenis <kettenis@gnu.org>
3486
ecac404d
MK
3487 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3488
9b8607ce
MK
3489 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3490 instead of regcache_raw_supply when storing the registers.
3491
f6052080
MK
3492 * i386gnu-nat.c: Update copyright year.
3493 (gnu_store_registers): Don't use deprecated_registers and
3494 deprecated_registers_valid. Use regcache_valid_p and
3495 regcache_raw_supply instead.
3496
17777823
MK
3497 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3498 frame_pc_unwind.
3499
5240ceac
MK
3500 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3501 variables. Incapitalized "process".
3502
5c7f2947
MK
3503 * configure.in: Add cursesX to the list of possible curses libs.
3504 Add cursesX.h to the list of possible curses headers.
3505 * configure, config.in: Regenerate.
3506
da7d81e3
NW
35072004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3508
3509 * configure.in: Test for struct lwp in <sys/lwp.h>.
3510 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3511 the offset of l_addr in struct lwp.
3512
7f245d65
NW
35132004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3514
3515 * bsd-kvm.c: Include "gdbcore.h"
3516 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3517
47b3f456
AC
35182004-08-07 Andrew Cagney <cagney@gnu.org>
3519
70bd8e24
AC
3520 * gdbtypes.c (build_flt, build_complex): New functions.
3521 (gdbtypes_post_init): Use.
3522
9b0dea39
AC
3523 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3524
5cf7abac
AC
3525 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3526 through to builtin_type_uint128.
3527
64d2b26d
AC
3528 * c-exp.y: Use builtin_type function to obtain builtin types.
3529
7ad6570d
AC
3530 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3531 builtin_uint128.
3532 * gdbtypes.c (gdbtypes_post_init): Update.
3533 (build_gdbtypes): Move initialization of builtin_type_int0
3534 through to builtin_type_uint128 from here ...
3535 (_initialize_gdbtypes): ... to here.
3536 * d10v-tdep.c (d10v_register_type): Update.
3537
47b3f456
AC
3538 * doublest.c: Update copyright.
3539 (floatformat_from_length): Call error when floatformat is NULL.
3540 (extract_floating_by_length): Remove NULL fmt check.
3541 (store_floating_by_length): Ditto.
3542
0a8146bf
AC
35432004-08-07 Andrew Cagney <cagney@gnu.org>
3544
3545 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3546 that the register is valid.
3547
c0ccb908
MK
35482004-08-05 Mark Kettenis <kettenis@chello.nl>
3549
8e6bed05
MK
3550 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3551 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3552 struct frame_info *. Use safe_frame_unwind_memory instead of
3553 deprecated_read_memory_nobpt.
3554 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3555 changed signature of i386_linux_sigtramp_start and
3556 i386_linux_rt_sigtramp_start.
3557
24f9f5e3
MK
3558 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3559 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3560 instead of deprecated_read_memory_nobpt.
3561 (i386nbsd_sigtramp_p): Adjust for changed signature of
3562 i386nbsd_sigtramp_offset.
3563
c822af0c
MK
3564 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3565 safe_frame_unwind_memory instead of target_read_memory.
3566
c0ccb908
MK
3567 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3568 !NO_SYS_FILE.
3569 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3570 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3571 (_initialize_kernel_u_addr): Remove prototype and function.
3572 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3573 !NO_SYS_FILE.
3574 * xcoffread.c: Likewise.
3575
b9e1c0d6
MK
35762004-08-06 Mark Kettenis <kettenis@gnu.org>
3577
3578 * vax-nat.c: New file.
3579 * vaxbsd-nat.c: Tweak comment.
3580 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3581 vaxnbsd-tdep.c.
3582 (vax-nat.o): New dependency.
3583 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3584 (vax-*-ultrix2*): Remove.
3585 * config/vax/vax.mh: New file.
3586 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3587 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3588 (vax_register_u_addr): New prototype.
3589 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3590 * config/vax/vaxult2.mh: Remove file.
3591 * config/vax/vaxult.mh: Remove file.
3592 * config/vax/vaxbsd.mh: Remove file.
3593 * config/vax/vax.mt (TM_FILE): Remove.
3594 * config/vax/tm-vaxbsd.h: Remove file.
3595
9ad7bec7
JB
35962004-08-06 Joel Brobecker <brobecker@gnat.com>
3597
3598 * aix-thread.c (get_signaled_thread): New function.
3599 (iter_trap): Delete, no longer used.
3600 (iter_tid): New function.
3601 (pd_update): Find the thread that received the SIGTRAP signal
3602 by first locating the kernel thread, and then finding its
3603 associated thread.
3604
bf0d233d
UW
36052004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3606
3607 * lin-lwp.c (child_wait): Continue inferior after processing
3608 PTRACE_EVENT_CLONE event.
3609
d0f853e1
NN
36102004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3611
3612 * MAINTAINERS: Add self to Write-After-Approval.
3613
ab14aeb0
JJ
36142004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3615
3616 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3617 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3618
9c8dbfa9
AC
36192004-08-05 Andrew Cagney <cagney@gnu.org>
3620
c8f3ca46
AC
3621 * config/xm-sysv4.h: Delete file.
3622 * config/mips/xm-irix5.h: Delete file.
3623 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3624 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3625 * config/ia64/xm-aix.h: Delete file.
3626 * config/ia64/aix.mh (XM_FILE): Delete.
3627 * config/pa/xm-hppah.h: Delete file.
3628 * config/pa/hpux11w.mh (XM_FILE): Delete.
3629 * config/pa/hpux11.mh (XM_FILE): Delete.
3630 * config/pa/hpux1020.mh (XM_FILE): Delete.
3631 * config/pa/hppahpux.mh (XM_FILE): Delete.
3632
5f7daaff
AC
3633 * config/alpha/xm-alphalinux.h: Delete file.
3634 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3635 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3636 * config/alpha/xm-alphaosf.h: Delete file.
3637 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3638 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3639 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3640 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3641
69babf95
AC
3642 * config/i386/xm-i386v.h: Delete file.
3643 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3644 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3645 * config/i386/xm-i386sco.h: Delete file.
3646 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3647 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3648 * config/i386/xm-i386v4.h: Delete file.
3649 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3650 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3651 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3652 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3653
6f009c8a
AC
3654 * config/vax/xm-vax.h: Delete file.
3655 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3656 * config/vax/xm-vaxult2.h: Delete file.
3657 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3658 * config/vax/vaxult2.mh (XM_FILE): Delete.
3659 * config/vax/xm-vaxult.h: Delete file.
3660 * config/vax/vaxult.mh (XM_FILE): Delete.
3661 * config/vax/xm-vaxbsd.h: Delete file.
3662 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3663
9c8dbfa9
AC
3664 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3665 * gdbarch.h, gdbarch.c: Re-generate.
3666 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3667 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3668 * frame.h: Delete deprecated_read_fp from comments.
3669 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3670 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3671
84367a3e
MK
36722004-08-04 Mark Kettenis <kettenis@gnu.org>
3673
9c8e3411
MK
3674 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3675 trampoline in OpenBSD 3.5-current.
3676
b87bc0d8
MK
3677 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3678 SSE registers.
3679
84367a3e
MK
3680 * Makefile.in: Remove embedded page breaks.
3681
a44bddec
JB
36822004-08-04 Jim Blandy <jimb@redhat.com>
3683
7ab3286f
JB
3684 * regcache.c (regcache_raw_read): Assert that, after calling
3685 target_fetch_registers, the register we're reading is cached.
3686
a44bddec
JB
3687 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3688 a call to 'internal_error', with a more helpful error message.
3689 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 3690 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 3691
35124113
AC
36922004-08-04 Andrew Cagney <cagney@gnu.org>
3693
3694 * Makefile.in: Update dependencies.
3695
9f643768
JB
36962004-08-04 Jim Blandy <jimb@redhat.com>
3697
6ced10dd
JB
3698 Change the layout of the PowerPC E500 raw register cache to allow
3699 the lower 32-bit halves of the GPRS to be their own raw registers,
3700 not pseudoregisters.
3701 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3702 add ppc_ev0_upper_regnum flag.
3703 * rs6000-tdep.c: #include "reggroups.h".
3704 (spe_register_p): Recognize the ev upper half registers as SPE
3705 registers.
3706 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3707 registers.
3708 (e500_move_ev_register): New function.
3709 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3710 vector registers are the pseudo-registers now, formed by splicing
3711 together the gprs and the upper-half registers.
3712 (e500_register_reggroup_p): New function.
3713 (P): Macro deleted.
3714 (P8, A4): New macro.
3715 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3716 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3717 macros.
3718 (registers_e500): Rearrange register set so that the raw register
3719 set contains 32-bit GPRs and upper-half registers, and the SPE
3720 vector registers become pseudo-registers.
3721 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3722 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3723 register numbers are now the same for the E500 as they are for
3724 other PowerPC variants. Register e500_register_reggroup_p as the
3725 register group function for the E500.
3726 * Makefile.in (rs6000-tdep.o): Update dependencies.
3727
3728 Adapt PPC E500 native support to the new raw regcache layout.
3729 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3730 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3731 (fetch_spe_register, store_spe_register): Handle fetching/storing
3732 all the SPE registers at once, if regno == -1. These now take
3733 over the job of fetch_spe_registers and store_spe_registers.
3734 (fetch_spe_registers, store_spe_registers): Deleted.
3735 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3736 unconditionally; they're always raw. Fetch/store SPE upper half
3737 registers, if present, instead of ev registers.
3738 (fetch_register, store_register): Remove sanity checks: gprs are
3739 never pseudo-registers now, so we never need to even mention any
3740 registers that are ever pseudoregisters.
3741
9f643768
JB
3742 Use a fixed register numbering when communicating with the PowerPC
3743 simulator.
3744 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3745 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3746 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3747 New functions.
3748 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3749 init_sim_regno_table.
3750 * Makefile.in (gdb_sim_ppc_h): New variable.
3751 (rs6000-tdep.o): Update dependencies.
3752
1e2279c8
AC
37532004-08-02 Andrew Cagney <cagney@gnu.org>
3754
1d94326f
AC
3755 * cris-tdep.c (cris_register_size): Restore function, still used
3756 locally.
3757
331ae7ed
AC
3758 * gdbarch.sh (deprecated_target_read_fp)
3759 (deprecated_frame_locals_address, deprecated_frame_args_address)
3760 (deprecated_frame_chain_valid, deprecated_frame_chain)
3761 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3762 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3763 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3764 * gdbarch.h, gdbarch.c: Re-generate.
3765 * regcache.c (deprecated_read_fp): Do not call
3766 DEPRECATED_TARGET_READ_FP_P.
3767 * infcmd.c (default_print_registers_info): Do not call
3768 DEPRECATED_DO_REGISTERS_INFO.
3769 * frame-base.c (default_frame_locals_address): Do not call
3770 DEPRECATED_FRAME_LOCALS_ADDRESS.
3771 (default_frame_args_address): Do not call
3772 DEPRECATED_FRAME_ARGS_ADDRESS.
3773
1e2279c8
AC
3774 * gdbarch.sh (deprecated_register_raw_size)
3775 (deprecated_register_virtual_size:int): Delete.
3776 * gdbarch.h, gdbarch.c: Re-generate.
3777 * cris-tdep.c (cris_register_size): Delete.
3778 (cris_gdbarch_init): Update.
3779 * alpha-tdep.c (alpha_register_raw_size)
3780 (alpha_register_virtual_size): Delete.
3781 (alpha_gdbarch_init): Update.
3782
a90c06b4
AC
3783 * gdbarch.sh (deprecated_register_virtual_type)
3784 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3785 (deprecated_dummy_write_sp): Delete.
3786 * gdbarch.h, gdbarch.c: Re-generate.
3787
f42accbe
AC
3788 * gdbarch.sh (deprecated_register_bytes): Delete.
3789 * gdbarch.h, gdbarch.c: Re-generate.
3790 * regcache.c (deprecated_register_bytes): New function.
3791 * regcache.h (deprecated_register_bytes): Declare.
3792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3793 * v850-tdep.c (v850_gdbarch_init): Update.
3794 * sh64-tdep.c (sh64_gdbarch_init): Update.
3795 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3796 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3797 * mcore-tdep.c (mcore_gdbarch_init): Update.
3798 * cris-tdep.c (cris_gdbarch_init): Update.
3799 * arm-tdep.c (arm_gdbarch_init): Update.
3800 * remote.c (init_remote_state): Update.
3801 * remote-vx.c (vx_prepare_to_store): Update.
3802 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3803 * irix5-nat.c (fetch_core_registers): Update.
3804 * cris-tdep.c (cris_register_bytes_ok): Update.
3805 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3806
45c9dd44
AC
3807 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3808 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3809 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3810 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3811 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3812 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3813 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3814 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3815 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3816 with mips_insn16 and mips_insn32.
3817
3acba339
AC
3818 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3819 * rs6000-tdep.c (rs6000_push_dummy_call)
3820 (rs6000_extract_return_value): Use register_size.
3821 * xstormy16-tdep.c (xstormy16_get_saved_register)
3822 (xstormy16_extract_return_value): Ditto.
3823 * valops.c (value_assign): Ditto.
3824 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3825 * v850-tdep.c (v850_extract_return_value): Ditto.
3826 * tracepoint.c (collect_symbol): Ditto.
3827 * target.c (debug_print_register): Ditto.
3828 * stack.c (frame_info): Ditto.
3829 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3830 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3831 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3832 (store_register_using_P): Ditto.
3833 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3834 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3835 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3836 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3837 * regcache.c (deprecated_read_register_bytes)
3838 (deprecated_write_register_bytes, read_register)
3839 (write_register): Ditto.
3840 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3841 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3842 * monitor.c (monitor_supply_register, monitor_fetch_register)
3843 (monitor_store_register): Ditto.
3844 * mn10300-tdep.c (mn10300_pop_frame_regular)
3845 (mn10300_print_register): Ditto.
3846 * mipsv4-nat.c (fill_fpregset): Ditto.
3847 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3848 (mips64_fill_fpregset): Ditto.
3849 * mi/mi-main.c (register_changed_p, get_register)
3850 (mi_cmd_data_write_register_values): Ditto.
3851 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3852 * irix5-nat.c (fill_gregset, fetch_core_registers):
3853 * infrun.c (write_inferior_status_register): Ditto.
3854 * infptrace.c (fetch_register, store_register): Ditto.
3855 * infcmd.c (default_print_registers_info): Ditto.
3856 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3857 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3858 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3859 * hpux-thread.c (hpux_thread_fetch_registers)
3860 (hpux_thread_store_registers): Ditto.
3861 * hppah-nat.c (store_inferior_registers, fetch_register):
3862 * findvar.c (value_from_register): Ditto.
3863 * dve3900-rom.c (fetch_bitmapped_register):
3864 * cris-tdep.c (cris_gdbarch_init): Ditto.
3865 * alpha-tdep.h: Ditto.
3866 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3867
01e1877c
AC
3868 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3869 DEPRECATED_REGISTER_RAW_SIZE from comments.
3870 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3871 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3872 DEPRECATED_REGISTER_RAW_SIZE.
3873 * findvar.c (value_of_register): Simplify by assuming that the
3874 registers raw and virtual sizes are identical.
3875 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3876 comment.
3877 * arch-utils.c (generic_register_size): Simplify by assuming
3878 register_type.
3879
73f458fb
AC
3880 * regcache.c (legacy_read_register_gen, real_register)
3881 (legacy_write_register_gen): Delete, not used.
3882
336a3131
AC
3883 * regcache.c (struct regcache_descr): Delete legacy_p.
3884 (init_legacy_regcache_descr): Delete function.
3885 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3886 Do not use deprecated register functions.
3887 (regcache_raw_read, deprecated_write_register_gen):
3888 (deprecated_read_register_gen, regcache_raw_write): Delete code
3889 predicated on legacy_p.
3890 (register_size): Delete check against register raw size.
3891
c1d546cd
AC
3892 * cris-tdep.c (cris_register_type): Replace
3893 cris_register_virtual_type.
3894 (cris_gdbarch_init): Update, set register_type.
3895
48c2c0a6
AC
3896 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3897 * gdbarch.h, gdbarch.c: Re-generate.
3898 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3899 (arm_gdbarch_init) Do not set frameless function invocation.
3900 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3901 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3902 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3903 (frv_gdbarch_init): Do not set frameless function invocation.
3904 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3905 * sh-tdep.c (sh_gdbarch_init): Ditto.
3906 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3907 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3908 * avr-tdep.c (avr_gdbarch_init): Ditto.
3909
474093a6
AC
3910 * blockframe.c (legacy_frame_chain_valid): Delete function.
3911
3c109c8b
AC
3912 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3913 and pc. Update comments.
3914 (pc_in_dummy_frame): Delete function.
3915 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3916 use the "id".
3917 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3918 call_hi, top and pc, use the id.
3919 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3920
96860204
AC
3921 * dummy-frame.c: Include "gdb_string.h".
3922 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3923 (generic_save_dummy_frame_tos): Delete.
3924 (dummy_frame_push): New function, replaces above.
3925 * dummy-frame.h: Update copyright.
3926 (dummy_frame_push): Declare.
3927 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3928 (generic_save_call_dummy_addr): Delete declarations.
3929 * infcall.c: Include "dummy-frame.h".
3930 (call_function_by_hand): Add locals caller_regcache,
3931 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3932 with call to frame_save_as_regcache plus cleanup. Delete calls to
3933 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3934 Move clear_proceed_status to just before the resume, add call to
3935 dummy_frame_push (discard cleanup).
3936 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3937 (dummy-frame.o): Add $(gdb_string_h).
3938
d67ec5db
AC
39392004-08-01 Andrew Cagney <cagney@gnu.org>
3940
3941 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3942 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3943 * dummy-frame.c (find_dummy_frame): Delete.
3944 (struct dummy_frame_cache, dummy_frame_sniffer)
3945 (dummy_frame_prev_register, dummy_frame_this_id)
3946 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3947 frame unwinder using a dummy_frame_cache.
3948
a81dcb05
AC
39492004-08-01 Andrew Cagney <cagney@gnu.org>
3950
3951 * frame.h (frame_save_as_regcache): Declare.
3952 * frame.c (frame_save_as_regcache): New function.
3953 (do_frame_read_register): Replace do_frame_unwind_register.
3954 (frame_pop): Use frame_save_as_regcache.
3955 * dummy-frame.c (generic_push_dummy_frame): Use
3956 frame_save_as_regcache.
3957
aa495d11
JB
39582004-08-01 Joel Brobecker <brobecker@gnat.com>
3959
3960 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3961 file as included until we record the first line in the linetable.
3962
ff65ac78
AC
39632004-08-01 Andrew Cagney <cagney@gnu.org>
3964
3965 * frame.h (deprecated_pop_dummy_frame)
3966 (deprecated_read_register_dummy)
3967 (deprecated_generic_find_dummy_frame): Delete.
3968 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3969 (deprecated_read_register_dummy)
3970 (deprecated_find_dummy_frame_regcache)
3971 (discard_innermost_dummy)
3972 (deprecated_pop_dummy_frame): Delete.
3973 (dummy_frame_this_id): Simplify.
3974 (struct dummy_frame): Delete "fp" and "sp".
3975 (find_dummy_frame): Simplify.
3976 (generic_push_dummy_frame): Do not set "fp" or "sp".
3977 (fprint_dummy_frames): Do not print "fp" and "sp"
3978
37bdc87e
MK
39792004-08-01 Mark Kettenis <kettenis@gnu.org>
3980
3981 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3982 (struct i386_insn): New structure.
3983 (i386_match_insn): New function.
3984 (i386_frame_setup_skip_insns): New variable.
3985 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3986 array i386_frame_setup_insns of instructions that should be
3987 skipped inside the frame setup sequence.
3988
8241eaa6
AC
39892004-08-01 Andrew Cagney <cagney@gnu.org>
3990
5bc602c7
AC
3991 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3992 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3993 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3994 * stack.c (frame_info): Delete references to
3995 DEPRECATED_FRAME_INIT_SAVED_REGS and
3996 deprecated_get_frame_saved_regs.
3997 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3998 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3999 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4000 (frame_unwind_register_signed)
4001 (frame_unwind_register_unsigned)
4002 (frame_unwind_unsigned_register): Use register_size.
4003 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4004 (deprecated_frame_xmalloc_with_cleanup)
4005 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4006 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4007
03d363a1
AC
4008 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4009 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4010 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4011 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4012
8241eaa6
AC
4013 * infcall.c (call_function_by_hand): Do not use
4014 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4015 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4016 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4017 DEPRECATED_STACK_ALIGN.
4018
f00df8b7
AC
40192004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4020
4021 Committed by Andrew Cagney.
4022 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4023
eec63939
AC
40242004-08-01 Andrew Cagney <cagney@gnu.org>
4025
4026 * mips-tdep.c (mips16_frame_cache)
4027 (mips16_frame_this_id, mips16_frame_prev_register)
4028 (mips16_frame_unwind, mips16_frame_sniffer)
4029 (mips16_frame_base_address, mips16_frame_base)
4030 (mips16_frame_base_sniffer, mips32_frame_cache)
4031 (mips32_frame_this_id, mips32_frame_prev_register)
4032 (mips32_frame_unwind, mips32_frame_sniffer)
4033 (mips32_frame_base_address, mips32_frame_base)
4034 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4035 separate heuristic mips16 and mips32 unwinders.
4036 (mips_stub_frame_cache, mips_stub_frame_this_id)
4037 (mips_stub_frame_prev_register)
4038 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4039 (mips_stub_frame_base_address, mips_stub_frame_base)
4040 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4041 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4042 match true mdebug frames.
4043 (non_heuristic_proc_desc): Add forward declaration.
4044
e66299b3
AC
40452004-08-01 Andrew Cagney <cagney@gnu.org>
4046
83cbbf3e
AC
4047 * config/mips/tm-irix6.h: Delete file.
4048 * config/mips/tm-irix5.h: Delete file.
4049 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4050 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4051
22d41b37
AC
4052 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4053 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4054 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4055 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4056 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4057 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4058 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4059 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4060 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4061 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4062 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4063 (TARGET_SIGNAL_RAW_VALUES): Delete.
4064 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4065 Delete.
4066 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4067 (TARGET_HW_WATCH_LIMIT): Delete.
4068 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4069 * minimon.h: Delete file.
4070
e66299b3
AC
4071 * trad-frame.c (trad_frame_get_this_base)
4072 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4073 functions.
4074 * trad-frame.h (trad_frame_set_this_base)
4075 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4076
1f67027d
AC
40772004-07-31 Andrew Cagney <cagney@gnu.org>
4078
4079 * trad-frame.c (trad_frame_get_prev_register): Rename
4080 trad_frame_get_prev_register.
4081 * vax-tdep.c (vax_frame_prev_register): Update.
4082 * trad-frame.h: Update.
4083 * trad-frame.c (trad_frame_get_register): Update.
4084 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4085 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4086 Update.
4087 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4088 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4089 Update.
4090 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4091 Update.
4092 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4093 Update.
4094 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4095 Update.
4096 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4097 Update.
4098 * s390-tdep.c (s390_frame_prev_register)
4099 (s390_stub_frame_prev_register)
4100 (s390_sigtramp_frame_prev_register): Update.
4101 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4102 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4103 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4104 * m88k-tdep.c (m88k_frame_prev_register)
4105 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4106 * m32r-tdep.c (m32r_frame_prev_register): Update.
4107 * hppa-tdep.c (hppa_frame_prev_register_helper)
4108 * frv-tdep.c (frv_frame_prev_register): Update.
4109 * d10v-tdep.c (d10v_frame_prev_register): Update.
4110 * cris-tdep.c (cris_frame_prev_register): Update.
4111 * avr-tdep.c (avr_frame_prev_register): Update.
4112 * arm-tdep.c (arm_prologue_prev_register)
4113 (arm_sigtramp_prev_register): Update.
4114
c1bf6f65
AC
41152004-07-31 Andrew Cagney <cagney@gnu.org>
4116
4117 * frame.h (legacy_saved_regs_unwind)
4118 (legacy_frame_chain_valid, legacy_frame_p)
4119 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4120 * dummy-frame.c (dummy_frame_this_id): Simplify.
4121 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4122 * frame.c (struct frame_info): Delete the field "type".
4123 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4124 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4125 (legacy_saved_regs_unwind, legacy_frame_p)
4126 (frame_type_from_pc): Delete.
4127 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4128 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4129
dc856692
MK
41302004-07-31 Mark Kettenis <kettenis@gnu.org>
4131
5a5effe1
MK
4132 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4133 indentation.
4134
d4fd50a6
MK
4135 * mips-nat.c: Remove file.
4136 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4137 (mips-nat.o): Remove dependency.
4138
2689df5a
MK
4139 * infptrace.c: Update copyright year.
4140 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4141 explicitly setting the buffer to all zeroes.
4142
dc856692
MK
4143 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4144 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4145
763910e0
AC
41462004-07-30 Andrew Cagney <cagney@gnu.org>
4147
4148 * GDB 6.2 released from gdb_6_2-branch.
4149
0b66e38c
EZ
41502004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4151
4152 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4153
4154 * exec.c (exec_file_attach):
4155 * nto-tdep.c (nto_find_and_open_solib):
4156 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4157 * solib.c (solib_open):
4158 * somsolib.c (som_solib_sizeof_symbol_table):
4159 * source.c (is_regular_file, openp, open_source_file):
4160 * symfile.c (symfile_bfd_open):
4161 * wince.c (upload_to_device): Differentiate between the search for
4162 binary and source files.
4163
be7d7357
AC
41642004-07-30 Andrew Cagney <cagney@gnu.org>
4165
4166 * complaints.c (_initialize_complaints): Pass NULL to
4167 add_setshow_zinteger_cmd for help_doc.
4168 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4169
ddc9cd0f
AC
41702004-07-30 Andrew Cagney <cagney@gnu.org>
4171
4172 Fix PR i18n/761.
4173 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4174 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4175 $(PACKAGE).pot and update-po.
4176 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4177 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4178 (update-po): New rules.
4179 (localedir): Define using autoconf.
4180 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4181 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4182 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4183 * configure.in: Generate CATALOGS and LINGUAS from contents of
4184 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4185 * configure: Re-generate.
4186 * po/gdbtext: New file
4187
e92f3704
JG
41882004-07-30 Jerome Guitton <guitton@gnat.com>
4189
4190 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4191 order.
4192
b0f35d58
DL
41932004-07-30 David Lecomber <dsl@sources.redhat.com>
4194
4195 * dwarf2read.c (read_file_scope): Set producer if attribute
4196 present.
4197 (struct dwarf2_cu): Added new member producer.
4198
ce7d4522
JG
41992004-07-30 Jerome Guitton <guitton@gnat.com>
4200
4201 * inflow.c (kill_command): release file handles in BFD.
4202 * exec.c (exec_file_attach): Ditto.
4203 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4204
05ee07c7
AC
42052004-07-29 Andrew Cagney <cagney@gnu.org>
4206
4207 * PROBLEMS (mips-irix): Note that it is broken.
4208
62eceb47
AC
42092004-07-29 Andrew Cagney <cagney@gnu.org>
4210
e57b8d41
AC
4211 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4212 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4213
d334389b
AC
4214 * config/xm-nbsd.h: Delete file.
4215 * config/arm/xm-nbsd.h: Delete file.
4216 * config/i386/xm-nbsd.h: Delete file.
4217 * config/ns32k/xm-nbsd.h: Delete file.
4218 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4219 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4220 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4221 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4222 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4223
e910f676
AC
4224 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4225 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4226 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4227 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4228 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4229 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4230
6fa856b9
AC
4231 * config/powerpc/xm-linux.h: Delete empty file.
4232 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4233 * config/powerpc/linux.mh (XM_FILE): Delete.
4234 * config/m68k/xm-linux.h: Delete empty file.
4235 * config/m68k/linux.mh (XM_FILE): Delete.
4236 * config/ia64/xm-linux.h: Delete empty file.
4237 * config/ia64/linux.mh (XM_FILE): Delete.
4238 * config/arm/xm-linux.h: Delete empty file.
4239 * config/arm/linux.mh (XM_FILE): Delete.
4240
471ae5ae
AC
4241 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4242 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4243 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4244 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4245 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4246 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4247 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4248 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4249
62eceb47
AC
4250 * config/m68k/xm-m68k.h: Delete file.
4251 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4252 copyright.
4253 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4254 * config/pa/xm-linux.h: Delete empty file.
4255 * config/pa/linux.mh (XM_FILE): Delete.
4256 * config/i386/xm-i386.h: Delete empty file.
4257 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4258 "i386/xm-i386.h".
4259 * config/i386/obsdaout.mh (XM_FILE): Delete.
4260 * config/i386/obsd64.mh (XM_FILE): Delete.
4261 * config/i386/fbsd64.mh (XM_FILE): Delete.
4262 * config/i386/nto.mh (XM_FILE): Delete.
4263 * config/i386/obsd.mh (XM_FILE): Delete.
4264 * config/i386/linux64.mh (XM_FILE): Delete.
4265 * config/i386/linux.mh (XM_FILE): Delete.
4266 * config/i386/i386sol2.mh (XM_FILE): Delete.
4267 * config/i386/i386gnu.mh (XM_FILE): Delete.
4268 * config/i386/fbsd.mh (XM_FILE): Delete.
4269 * config/i386/nbsd64.mh (XM_FILE): Delete.
4270
c35f4ffc
AC
42712004-07-29 Andrew Cagney <cagney@gnu.org>
4272
4273 * config/pa/xm-linux.h: Do not include "floatformat.h".
4274 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4275 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4276 * config/i386/xm-i386.h: Do not include "floatformat.h".
4277 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4278 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4279 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4280 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4281 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4282 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4283 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4284 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4285 * configure, config.in: Regenerate.
4286 * configure.host (gdb_host_float_format, gdb_host_double_format)
4287 (gdb_host_long_double_format): Set according to the host.
4288
624a44a3
AC
42892004-07-29 Andrew Cagney <cagney@gnu.org>
4290
4291 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4292
0dea2468
AC
42932004-07-28 Andrew Cagney <cagney@gnu.org>
4294
4295 * PROBLEMS: Mention threads/1650.
4296 * NEWS: Mention the NPTL fix.
4297
b3f42336
AC
42982004-07-28 Andrew Cagney <cagney@gnu.org>
4299
4300 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4301 (add_setshow_cmd_full): Make static.
4302 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4303 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4304 * cli/cli-decode.c (add_setshow_filename_cmd)
4305 (add_setshow_string_cmd): New functions.
4306 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4307 * mips-tdep.c (_initialize_mips_tdep): Update.
4308 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4309 * cli/cli-logging.c (_initialize_cli_logging): Update.
4310 * complaints.c (_initialize_complaints): Update.
4311 * remote.c (_initialize_remote): Update.
4312
3b64bf98
AC
43132004-07-28 Andrew Cagney <cagney@gnu.org>
4314
4315 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4316 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4317 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4318 print parameters. Make string parameters constant.
4319 * command.h: Update. Update copyright.
4320 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4321 * observer.c (_initialize_observer): Ditto.
4322 * frame.c (_initialize_frame): Ditto.
4323 * complaints.c (_initialize_complaints): Ditto.
4324 * maint.c (_initialize_maint_cmds): Ditto.
4325 * target.c (initialize_targets): Ditto.
4326 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4327 * infcall.c (_initialize_infcall): Ditto.
4328 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4329 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4330 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4331 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4332 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4333
e9667a65
AC
43342004-07-28 Andrew Cagney <cagney@gnu.org>
4335
54a5b07d
AC
4336 * gdbtypes.c (lookup_primitive_typename): Delete function.
4337 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4338 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4339 * gdbtypes.c (lookup_typename): Ditto.
4340 * f-exp.y (yylex): Ditto.
4341 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4342
e9667a65
AC
4343 * scm-lang.c (c_builtin_types): Delete extern declaration.
4344 (scm_language_defn): Replace
4345 string_char_type and primitive_type_vector with
4346 la_language_arch_info.
4347 * jv-lang.c (java_language_defn): Replace
4348 string_char_type and primitive_type_vector with
4349 la_language_arch_info.
4350 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4351 c_builtin_types in comment.
4352 * c-lang.h (struct language_arch_info): Declare opaque.
4353 (c_language_arch_info): Declare.
4354 (c_builtin_types): Delete declaration.
4355 * c-lang.c (c_language_arch_info): Set string_char_type to
4356 builtin_char, not builtin_true_char. Make global.
4357 (c_builtin_types): Delete array.
4358 (asm_language_defn, minimal_language_defn): Replace
4359 string_char_type and primitive_type_vector with
4360 la_language_arch_info.
4361
685419e2
AC
43622004-07-28 Andrew Cagney <cagney@gnu.org>
4363
4364 * gdbtypes.h (struct builtin_type): Rename true_char to
4365 builtin_true_char.
4366 * gdbtypes.c (gdbtypes_post_init): Update.
4367 * c-lang.c (arch_info): New function.
4368 (enum c_primitive_types): New enum.
4369 (c_language_defn): Instead of string_char_type and
4370 primitive_type_vector set la_language_arch_info.
4371
5a44ea29
AC
43722004-07-28 Andrew Cagney <cagney@gnu.org>
4373
4374 * language.h (struct language_arch_info): Fix typo
4375 s/primative/primitive/.
4376 * gdbtypes.c (lookup_primitive_typename): Ditto.
4377 * language.c (language_lookup_primitive_type_by_name)
4378 (unknown_language_arch_info): Ditto.
4379
f290d38e
AC
43802004-07-27 Andrew Cagney <cagney@gnu.org>
4381
4382 * defs.h (enum language): Add nr_languages.
4383 * language.h (struct language_arch_info): Define.
4384 (struct language_defn): Add la_language_arch_info.
4385 (language_lookup_primative_type_by_name): Declare.
4386 (language_string_char_type): Declare.
4387 * language.c (_initialize_language, language_gdbarch_post_init)
4388 (struct language_gdbarch, language_gdbarch_data): Implement
4389 per-architecture language information.
4390 (unknown_language_arch_info, language_string_char_type)
4391 (language_lookup_primative_type_by_name): New functions.
4392 (unknown_language_defn, auto_language_defn)
4393 (local_language_defn): Set la_language_arch_info to
4394 unknown_language_arch_info.
4395 (unknown_builtin_types): Delete.
4396 * gdbtypes.c (lookup_primitive_typename): Use
4397 language_lookup_primative_type_by_name.
4398 (create_string_type): Use language_string_char_type.
4399 * values.c (value_from_string): Use language_string_char_type.
4400 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4401 * p-lang.c (pascal_language_defn): Ditto.
4402 * m2-lang.c (m2_language_defn): Ditto.
4403 * jv-lang.c (java_language_defn): Ditto.
4404 * objc-lang.c (objc_language_defn): Ditto.
4405 * f-lang.c (f_language_defn): Ditto.
4406 * c-lang.c (c_language_defn, cplus_language_defn)
4407 (asm_language_defn, minimal_language_defn): Ditto.
4408
000177f0
AC
44092004-07-27 Andrew Cagney <cagney@gnu.org>
4410
4411 * gdbtypes.h (struct builtin_type): Declare.
4412 (builtin_type): Declare.
4413 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4414 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4415 (gdbtypes_post_init): New function.
4416 (builtin_type): New function.
4417
e22f895c
KI
44182004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4419
4420 * remote-m32r-sdi.c: Fix breakpoint bug.
4421 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4422 recv_char_data, recv_long_data): New functions to replace communication
4423 sequences.
4424
536517dd
MC
44252004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4426
4427 Document PR threads/1650.
4428 * PROBLEMS (Threads): Document problem with many threads
4429
a0a44d18
AC
44302004-07-26 Andrew Cagney <cagney@gnu.org>
4431
4432 * gdb-mi.el: Move from here ...
4433 * mi/gdb-mi.el: ... to here.
4434
7ac4ac06
AC
44352004-07-26 Andrew Cagney <cagney@gnu.org>
4436
4437 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4438 * main.c (captured_main): When in batch mode always detach.
4439
a1b461bf
AC
44402004-07-26 Andrew Cagney <cagney@gnu.org>
4441
4442 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4443 and h8300 as broken.
4444 * NEWS: END-OF-LIFE frame compatibility module.
4445 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4446 specific comments.
4447
cb1a6d5f
AC
44482004-07-26 Andrew Cagney <cagney@gnu.org>
4449
4450 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4451 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4452 * wince.c (_initialize_wince): Update.
4453 * win32-nat.c (_initialize_win32_nat): Update.
4454 * varobj.c (_initialize_varobj): Update.
4455 * valops.c (_initialize_valops): Update.
4456 * utils.c (initialize_utils, initialize_utils): Update.
4457 * tui/tui-win.c (_initialize_tui_win): Update.
4458 * top.c (init_main): Update.
4459 * symfile.c (_initialize_symfile): Update.
4460 * source.c (_initialize_source): Update.
4461 * somsolib.c (_initialize_som_solib): Update.
4462 * solib.c (_initialize_solib): Update.
4463 * solib-frv.c (_initialize_frv_solib): Update.
4464 * serial.c (_initialize_serial): Update.
4465 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4466 * remote.c (_initialize_remote, _initialize_remote): Update.
4467 * remote-vx.c (_initialize_vx): Update.
4468 * remote-utils.c (_initialize_sr_support): Update.
4469 * remote-sds.c (_initialize_remote_sds): Update.
4470 * remote-mips.c (_initialize_remote_mips): Update.
4471 * remote-e7000.c (_initialize_remote_e7000): Update.
4472 * proc-api.c (_initialize_proc_api): Update.
4473 * printcmd.c: Update.
4474 * parse.c (_initialize_parse): Update.
4475 * pa64solib.c (_initialize_pa64_solib): Update.
4476 * p-valprint.c (_initialize_pascal_valprint): Update.
4477 * monitor.c (_initialize_remote_monitors): Update.
4478 * mips-tdep.c (_initialize_mips_tdep): Update.
4479 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4480 * maint.c (_initialize_maint_cmds): Update.
4481 * lin-lwp.c (_initialize_lin_lwp): Update.
4482 * language.c (_initialize_language): Update.
4483 * kod.c (_initialize_kod): Update.
4484 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4485 * i386-tdep.c (_initialize_i386_tdep): Update.
4486 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4487 * gdbarch.sh: Update.
4488 * gdbarch.c: Re-generate.
4489 * gdb-events.sh: Update.
4490 * gdb-events.c: Re-generate.
4491 * frame.c (_initialize_frame): Update.
4492 * exec.c: Update.
4493 * demangle.c (_initialize_demangler): Update.
4494 * dcache.c (_initialize_dcache): Update.
4495 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4496 * cp-valprint.c (_initialize_cp_valprint): Update.
4497 * corefile.c (_initialize_core): Update.
4498 * command.h: Update.
4499 * cli/cli-decode.h: Update.
4500 * cli/cli-cmds.c (init_cli_cmds): Update.
4501 * charset.c (_initialize_charset): Update.
4502 * breakpoint.c (_initialize_breakpoint): Update.
4503 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4504 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4505 * aix-thread.c (_initialize_aix_thread): Update.
4506
b4632131
MK
45072004-07-24 Mark Kettenis <kettenis@gnu.org>
4508
4509 Partial fix for PR backtrace/1718.
4510 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4511 that GCC migrates into the prolugue. Don't handle any
4512 instructions that clobber %ebx.
4513
822c9732
AC
45142004-07-23 Andrew Cagney <cagney@gnu.org>
4515
4516 Use regcache_raw_collect instead of regcache_collect.
4517 * regcache.h (regcache_collect): Delete declaration.
4518 * regcache.c (regcache_colect): Delete function.
4519 * win32-nat.c (do_child_store_inferior_registers): Update.
4520 * sol-thread.c (sol_thread_store_registers): Update.
4521 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4522 * rs6000-nat.c (store_register): Update.
4523 * remote.c (store_register_using_P, remote_store_registers): Update.
4524 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4525 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4526 (fill_vrregset, store_spe_registers, fill_gregset)
4527 (fill_gregset): Update.
4528 * nto-procfs.c (procfs_store_registers): Update.
4529 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4530 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4531 * m68klinux-nat.c (store_register, fill_gregset): Update.
4532 * m68k-tdep.c (fill_gregset): Update.
4533 * infptrace.c (store_register): Update.
4534 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4535 * i386-linux-nat.c (store_register, fill_gregset): Update.
4536 * hppa-linux-nat.c (fill_gregset): Update.
4537 * go32-nat.c (store_register): Update.
4538 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4539 (store_fp_regs): Update.
4540 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4541 (store_nwfpe_extended, store_fpregister, store_fpregs)
4542 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4543 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4544 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4545 (store_regs_user_thread, store_regs_kernel_thread): Update.
4546
32b05c07
MK
45472004-07-24 Mark Kettenis <kettenis@gnu.org>
4548
4549 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4550 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4551 encoding.
4552 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4553 member of `struct comp_unit'.
4554
8567c30f
AC
45552004-07-23 Andrew Cagney <cagney@gnu.org>
4556
4557 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4558 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4559
f6da8dd8
MH
45602004-07-23 Martin Hunt <hunt@redhat.com>
4561 Kevin Buettner <kevinb@redhat.com>
4562
4563 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4564 alignment was being added to the offset instead of multiplied.
4565
bd921882
MK
45662004-07-23 Mark Kettenis <kettenis@gnu.org>
4567
24f033e8
MK
4568 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4569 changed signal trampoline in OpenBSD 3.5-current.
4570
90f3cecd
MK
4571 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4572 <machine/pcb.h> and "bsd-kvm.h".
4573 (sparc64nbsd_supply_pcb): New function.
4574 (_initialize_sparc64nbsd_nat): Renamed from
4575 _initialize_sparcnbsd_nat. Enable libkvm interface.
4576 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4577 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4578 (LOADLIBES): New variable.
4579
a4954a62
MK
4580 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4581
bd921882
MK
4582 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4583
23a6d369
AC
45842004-07-21 Andrew Cagney <cagney@gnu.org>
4585
4586 Use regcache_raw_supply instead of supply_register.
4587 * regcache.h (supply_register): Delete declaration.
4588 * regcache.c (supply_register): Delete function.
4589 * wince.c (do_child_fetch_inferior_registers): Update.
4590 * win32-nat.c (do_child_fetch_inferior_registers)
4591 (fetch_elf_core_registers): Update.
4592 * v850ice.c (v850ice_fetch_registers): Update.
4593 * thread-db.c (thread_db_store_registers): Update.
4594 * sol-thread.c (sol_thread_store_registers): Update.
4595 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4596 * rs6000-nat.c (fetch_register): Update.
4597 * rom68k-rom.c (rom68k_supply_one_register): Update.
4598 * remote.c (remote_wait, remote_async_wait): Update.
4599 * remote-st.c (get_hex_regs): Update.
4600 * remote-sim.c (gdbsim_fetch_register): Update.
4601 * remote-sds.c (sds_fetch_registers): Update.
4602 * remote-rdp.c (remote_rdp_fetch_register): Update.
4603 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4604 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4605 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4606 * remote-hms.c (init_hms_cmds): Update.
4607 * remote-est.c (init_est_cmds): Update.
4608 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4609 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4610 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4611 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4612 (fetch_register, supply_vrregset, supply_vrregset)
4613 (fetch_spe_registers): Update.
4614 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4615 * monitor.c (monitor_supply_register): Update.
4616 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4617 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4618 (mipsnbsd_supply_fpreg): Update.
4619 * mips-nat.c (fetch_inferior_registers)
4620 (fetch_core_registers): Update.
4621 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4622 (supply_fpregset, mips64_supply_gregset)
4623 (mips64_supply_fpregset): Update.
4624 * m68klinux-nat.c (fetch_register, supply_gregset)
4625 (supply_fpregset): Update.
4626 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4627 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4628 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4629 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4630 * infptrace.c (fetch_register): Update.
4631 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4632 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4633 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4634 (gnu_fetch_registers, gnu_store_registers): Update.
4635 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4636 * i386-linux-nat.c (fetch_register, supply_gregset)
4637 (dummy_sse_values): Update.
4638 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4639 * hppah-nat.c (fetch_register): Update.
4640 * hppa-linux-nat.c (fetch_register, supply_gregset)
4641 (supply_fpregset): Update.
4642 * go32-nat.c (fetch_register): Update.
4643 * dve3900-rom.c (fetch_bitmapped_register)
4644 (_initialize_r3900_rom): Update.
4645 * cris-tdep.c (supply_gregset): Update.
4646 * abug-rom.c (init_abug_cmds): Update.
4647 * core-aout.c (fetch_core_registers): Update.
4648 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4649 (fetch_register, fetch_fp_register): Update.
4650 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4651 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4652 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4653 * alphanbsd-tdep.c (fetch_core_registers): Update.
4654 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4655 * alpha-nat.c (fetch_osf_core_registers)
4656 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4657 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4658 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4659
73cc75f3
AC
46602004-07-21 Andrew Cagney <cagney@gnu.org>
4661
4662 * PROBLEMS: Mention breakpoints/1702.
4663 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4664 that is known to work.
4665
a53c66de
AC
46662004-07-21 Andrew Cagney <cagney@gnu.org>
4667
4668 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4669 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4670 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4671 (handle_inferior_event): Wrap call to deprecated
4672 IGNORE_HELPER_CALL in #ifdef.
4673 * config/mips/tm-nbsd.h: Update.
4674
708ff411
JB
46752004-07-20 Jim Blandy <jimb@redhat.com>
4676
412b3060
JB
4677 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4678 bfd_mach_ppc has no segment registers.
4679
13ac140c
JB
4680 Include PowerPC SPR numbers for special-purpose registers.
4681 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4682 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4683 new member in initializer.
4684 (S, S4, SN4, S64): New macros for defining special-purpose
4685 registers.
4686 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4687 registers_403, registers_403GC, registers_505, registers_860,
4688 registers_601, registers_602, registers_603, registers_604,
4689 registers_750, registers_e500): Use them.
4690
708ff411
JB
4691 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4692 replace references with expression used to initialize variable.
4693
1f602b35
AC
46942004-07-20 Andrew Cagney <cagney@gnu.org>
4695
4696 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4697 read_memory_nobpt.
4698 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4699 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4700 (s390_sigtramp_frame_sniffer): Update.
4701 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4702 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4703 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4704 (mips32_fetch_instruction): Update.
4705 * mcore-tdep.c (get_insn): Update.
4706 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4707 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4708 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4709 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4710 (i386_linux_rt_sigtramp_start): Update.
4711 * i386-linux-nat.c (child_resume): Update.
4712 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4713 * hppa-linux-tdep.c (insns_match_pattern): Update.
4714 * gdbcore.h: Update.
4715 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4716 * frame.c (safe_frame_unwind_memory): Update.
4717 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4718 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4719 * alpha-tdep.c (alpha_read_insn): Update.
4720
2cd8546d
AC
47212004-07-20 Andrew Cagney <cagney@gnu.org>
4722
4723 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4724 containing both bytes and mask. Add "frame_type".
4725 * tramp-frame.c (tramp_frame_start): Update.
4726 (tramp_frame_prepend_unwinder): Update.
4727 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4728 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4729 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4730 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4731
f928dd62
EZ
47322004-07-19 Eli Zaretskii <eliz@gnu.org>
4733
4734 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4735 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4736 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4737 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4738
d5c560f7
AC
47392004-07-17 Andrew Cagney <cagney@gnu.org>
4740
860660cb
AC
4741 * NEWS, PROBLEMS: Update for 6.2.
4742
8c266f54
AC
4743 * README: Update to 6.2.
4744
a552edd9
AC
4745 * utils.c (xvasprintf): Call xstrvprintf.
4746
c4a172b5
AC
4747 * parse.c: Update copyright.
4748 (null_post_parser): Eliminate ARGSUSED.
4749
da745b36
AC
4750 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4751 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4752 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4753
9cbc6ef0
AC
4754 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4755 * ppc-linux-nat.c: Use "Linux kernel".
4756 * hppa-linux-tdep.c: Use GNU/Linux.
4757 * hppa-linux-nat.c: Use GNU/Linux.
4758 * dwarfread.c: Add [sic] to use of Linux.
4759
1b89295f
AC
4760 * hppa-linux-nat.c: Do not include <string.h>.
4761 (supply_fpregset): Remove "register" attribute.
4762
d5c560f7
AC
4763 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4764
7ddd7709
MK
47652004-07-17 Mark Kettenis <kettenis@gnu.org>
4766
b1d19a62
MK
4767 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4768 * configure, config.in: Regenerated.
4769
7ddd7709
MK
4770 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4771 "bsd-kvm.h".
4772 (vaxbsd_supply_pcb): New function.
4773 (_initialize_vaxbsd_nat): New prototype and function.
4774 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4775 solib-sunos.o.
4776 (LOADLIBES): New variable.
4777 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4778 (LOADLIBES): New variable.
4779 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4780 (LOADLIBES): New variable.
4781 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4782
2c07db7a
AC
47832004-07-16 Andrew Cagney <cagney@gnu.org>
4784
4785 * defs.h (event_loop_p): Replace variable declaration with macro,
4786 always 1.
4787 * main.c (captured_main): Delete options "-async" and "-noasync".
4788 (event_loop_p): Delete variable.
4789 * NEWS: Mention that "-async" and "-noasync" were removed.
4790
717eb1cf
AC
47912004-07-16 Andrew Cagney <cagney@gnu.org>
4792
4793 * remote-m32r-sdi.c: Re-indent.
4794
c101bc14
JB
47952004-07-16 Jim Blandy <jimb@redhat.com>
4796
5109a438
JB
4797 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4798 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4799 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4800 missing MPC823 SPRs.
4801 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4802 incorrect. (This was corrected in GDB's register name tables on
4803 2004-07-14.)
4804
c101bc14
JB
4805 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4806 should be "esasrr" ("ESA Save and Restore Register").
4807
7ce450bd
AC
48082004-07-16 Andrew Cagney <cagney@gnu.org>
4809
4810 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4811 calls, no longer applicable. Update comments and rename parameter
4812 "step_frame" to "return_frame".
4813
ca73dd9d
AC
48142004-07-16 Andrew Cagney <cagney@gnu.org>
4815
4816 * frame.c (fprint_field): New function.
4817 (fprint_frame_id): Use fprint_field.
4818
31941f6d
JB
48192004-07-15 Joel Brobecker <brobecker@gnat.com>
4820
4821 * ada-lang.c (ada_language_defn): Remove commented out code.
4822
f86a7158
JB
48232004-07-15 Jim Blandy <jimb@redhat.com>
4824
4825 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4826 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4827
c24791ec
JB
48282004-07-14 Jim Blandy <jimb@redhat.com>
4829
29bb1356
JB
4830 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4831
cc98b5cc
JB
4832 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4833
8f088af7
JB
4834 * ppc-tdep.h (ppc_num_srs): New enum constant.
4835
0ea0ec5f
JB
4836 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4837 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4838 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4839 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4840 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4841 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4842 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4843 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4844 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4845 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4846 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4847 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4848 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4849 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4850 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4851 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4852 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4853 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4854 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4855 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4856 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4857 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4858 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4859 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4860 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4861 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4862 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4863 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4864 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4865 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4866 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4867 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4868 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4869 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4870 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4871 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4872 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4873 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4874 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4875 special-purpose register numbers.
4876
c24791ec
JB
4877 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4878 manual mentions 'md_twb', but many mention 'm_twb', and at that
4879 point in the register list.)
4880
d833db3b
AC
48812004-07-14 Andrew Cagney <cagney@gnu.org>
4882
4883 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4884 instead of "internal-error".
4885
080228b2
JB
48862004-07-10 Joel Brobecker <brobecker@gnat.com>
4887
4888 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4889 that was inserted inside a comment.
4890
c268433a
RC
48912004-07-10 Randolph Chung <tausq@debian.org>
4892
4893 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4894 function.
4895 (hppa_hpux_push_dummy_code): New function.
4896 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4897 Set find_global_pointer method.
4898
71009278
MK
48992004-07-10 Mark Kettenis <kettenis@gnu.org>
4900
4901 * NEWS: Mention BSD libkvm interface.
4902
b2fa5097
MS
49032004-07-10 Michael Snyder <msnyder@redhat.com>
4904
4905 * symfile.c (generic_load): Comment typo.
4906 * stack.c (get_selected_block): Ditto.
4907 * regcache.c (regcache_cooked_read): Ditto.
4908 * monitor.c (monitor_debug): Ditto.
4909 * mips-tdep.c (mips_read_pc): Ditto.
4910 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4911 * gdb_mbuild.sh: Ditto.
4912 * gdbarch.sh: Ditto.
4913 * gdbarch.h: Ditto.
4914
c3e5cd34
PH
49152004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4916
8a2225b2
PH
4917 * ada-tasks.c: Remove file.
4918
c3e5cd34
PH
4919 Remove ARI problems:
4920
4921 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4922 beginning of line.
4923
4924 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4925 Add comment.
4926 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4927 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4928 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4929 (UMIN_OF_SIZE): Remove.
4930 (max_of_type): New function to replace orphan macro in gdbtypes.h
4931 (min_of_type): Ditto.
4932 (discrete_type_high_bound): Use max_of_type.
4933 (discrete_type_low_bound): Use min_of_type.
4934 (possible_user_operator_p): Move operator to beginning of line.
4935 (ada_is_variant_part): Ditto.
4936 (ensure_lval): Rewrite to avoid deprecated operations.
4937 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4938 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4939 (ada_enum_name): Remove assignments in 'if' statements.
4940 (build_ada_types): Add gdbarch parameter.
4941 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4942 with gdbarch_data_register_post_init.
4943 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4944 add_show_from_set.
4945
4946 * ada-valprint.c (inspect_it): Remove declaration.
4947 (repeat_count_threshold): Remove declaration.
4948 (ada_print_floating): Remove assignments in 'if' statements.
4949 (print_str): Move operator to beginning of line.
4950
61ce229a
JB
49512004-07-08 Jim Blandy <jimb@redhat.com>
4952
4953 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4954
09bcec80
BR
49552004-07-08 Bob Rossi <bob@brasko.net>
4956
4957 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4958
31c27f77
JJ
49592004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4960
4961 * language.h (struct_language_defn): Add new function pointer:
4962 la_class_name_from_physname. Also add new prototype for
4963 language_class_name_from_physname.
4964 * language.c (language_class_name_from_physname): New function.
4965 (unk_lang_class_name): Ditto.
4966 (unknown_language_defn, auto_language_defn): Change
4967 to add unk_lang_class_name function pointer for
4968 la_class_name_from_physname.
4969 (local_language_defn): Ditto.
4970 * dwarf2read.c (guess_structure_name): Change to call
4971 language_class_name_from_physname.
4972 (determine_class_name): Ditto.
4973 * cp-support.c (class_name_from_physname): Renamed.
4974 (cp_class_name_from_physname): New name of function.
4975 * cp-support.h: Ditto.
4976 * c-lang.c (c_language_defn): Change to add NULL
4977 for class_name_from_physname function pointer.
4978 (cplus_language_defn): Change to add cp_class_name_from_physname.
4979 * jv-lang.c (java_class_name_physname): New function.
4980 (java_find_last_component): New static routine.
4981 (java_language_defn): Add java_class_name_from_physname pointer.
4982 * ada-lang.c (ada_language_defn): Change to add NULL
4983 for class_name_from_physname function pointer.
4984 * f-lang.c (f_language_defn): Ditto.
4985 * m2-lang.c (m2_language_defn): Ditto.
4986 * objc-lang.c (objc_language_defn): Ditto.
4987 * p-lang.c (pascal_language_defn): Ditto.
4988 * scm-lang.c (scm_language_defn): Ditto.
4989
ee28ca0f
AC
49902004-07-06 Andrew Cagney <cagney@gnu.org>
4991
4992 Patch from Bart Robinson.
4993 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4994 (O_LARGEFILE): Define to 0, if not defined.
4995
fdb1bf9d
MK
49962004-07-03 Mark Kettenis <kettenis@gnu.org>
4997
cb162ff6
MK
4998 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4999 <machine/pcb.h> and "bsd-kvm.h".
5000 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5001 (m68kbsd_supply_pcb): New function.
5002 (_initialize_m68kbsd_nat): New prototype and function.
5003 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5004 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5005 (LOADLIBES): New variable.
5006 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5007 (LOADLIBES): New variable.
5008
fdb1bf9d
MK
5009 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5010
963c4174
MK
50112004-07-03 Mark Kettenis <kettenis@gnu.org>
5012
5013 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5014 <sys/proc.h>.
5015 (bsd_kvm_cmdlist): New variable.
5016 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5017 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5018 command and "kvm proc" command.
5019 * Makefile.in (bsd-kvm.o): Update dependencies.
5020
533f1d8f
MK
50212004-07-02 Mark Kettenis <kettenis@gnu.org>
5022
5023 * osabi.c: Update copyright year.
5024 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5025 notes if EI_OSABI is set to ELFOSABI_HPUX.
5026
6780dcde
MS
50272004-07-01 Michael Snyder <msnyder@redhat.com>
5028
5029 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5030 that seems to have gotten whacked out of line.
5031
67bebe79
MK
50322004-07-01 Mark Kettenis <kettenis@gnu.org>
5033
5034 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5035 code.
5036
0b5d8877
PH
50372004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5038
5039 * ada-lang.c (decode_packed_array): Minor change to comment.
5040 (ada_value_slice_ptr): New function.
5041 (ada_value_slice): New function.
5042 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5043 test. Don't know why it is there.
5044 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5045 to avoid dereferencing huge arrays from which one is slicing.
5046 (empty_array): Correct to return an array rather than
5047 a subrange value.
5048 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5049 on empty arrays (let'em use 'FIRST instead).
5050
19c1ef65
PH
50512004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5052
5053 Address complaints from gdb_ari.sh:
5054
5055 * ada-exp.y: Include gdb_string.h rather than string.h.
5056 (convert_char_literal): Reformat declaration.
5057 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5058 * ada-lex.l: Change use of free to xfree (the macro would do so
5059 anyway, but this is harmless).
5060 Include gdb_string.h rather than string.h.
5061 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5062
5063 * ada-lang.c (parse): Remove K&Rism in parameter list.
5064 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5065
d81cbc94
MK
50662004-06-30 Mark Kettenis <kettenis@gnu.org>
5067
5068 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5069 dead code.
5070
07681759
MK
50712004-06-30 Mark Kettenis <kettenis@gnu.org>
5072
5073 * alphabsd-nat.c: Update copyright year.
5074 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5075
f7948b5f
JB
50762004-06-29 Joel Brobecker <brobecker@gnat.com>
5077
6e0cdd28 5078 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5079 (i386_cygwin_in_solib_call_trampoline): New function.
5080 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5081 and skip_trampoline_code gdbarch methods.
5082
8f113c9a
JB
50832004-06-29 Jim Blandy <jimb@redhat.com>
5084
5085 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5086 name actually used in the dependency lists.
5087
97dc871c
RC
50882004-06-29 Randolph Chung <tausq@debian.org>
5089
5090 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5091
47216e51
CV
50922004-06-29 Corinna Vinschen <vinschen@redhat.com>
5093
5094 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5095 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5096 functionality.
5097
e623b504
AC
50982004-06-28 Andrew Cagney <cagney@gnu.org>
5099
5100 * defs.h (xstrvprintf): Declare.
5101 * utils.c (xstrvprintf): New function.
5102 (internal_vproblem, xstrprintf, xasprintf)
5103 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5104 * serial.c (serial_printf): Ditto.
5105 * complaints.c (vcomplaint): Ditto.
5106
79acc9b3
CV
51072004-06-29 Corinna Vinschen <vinschen@redhat.com>
5108
5109 * infcmd.c (attach_command): Move call to target_terminal_inferior
5110 behind loading symbol table.
5111
1daf35d9
AC
51122004-06-28 Andrew Cagney <cagney@gnu.org>
5113
5114 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5115 change - add back extern deprecated_ui_loop_hook declaration.
5116
b435e160
AC
51172004-06-28 Andrew Cagney <cagney@gnu.org>
5118
5119 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5120 xstrprintf.
5121 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5122 (c_value_of_variable): Ditto.
5123 * utils.c (internal_vproblem): Ditto.
5124 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5125 * remote.c (add_packet_config_cmd): Ditto.
5126 * remote-rdp.c (rdp_set_command_line): Ditto.
5127 * regcache.c (regcache_dump): Ditto.
5128 * frv-tdep.c (new_variant, new_variant): Ditto.
5129 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5130 (fbsd_find_memory_regions): Ditto.
5131 * breakpoint.c (create_thread_event_breakpoint)
5132 (create_breakpoints): Ditto.
5133 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5134 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5135
06d5cf63
JB
51362004-06-28 Joel Brobecker <brobecker@gnat.com>
5137
5138 * ada-lang.c: Re-indent file, with some massaging to help indent
5139 a bit when the result is otherwise really too ugly.
5140
35809fad
UW
51412004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5142
5143 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5144 code_addr_p and special_addr_p to 'unsigned int'.
5145
40e20472
MK
51462004-06-27 Mark Kettenis <kettenis@gnu.org>
5147
5148 * i386v4-nat.c: Update copyright year and tweak comment.
5149 (regmap): Remove trailing comma.
5150 (supply_gregset): Rename local variable i to regnum. Call
5151 regcache_raw_supply instead of supply_register.
5152 (fill_gregset): Rename argument regno to regnum. Call
5153 regcache_raw_collect instead of regcache_collect.
5154
12b0b6de
UW
51552004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5156
5157 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5158 and special_addr_p.
5159 (frame_id_build, frame_id_build_special): Update comments.
5160 (frame_id_build_wild): New prototype.
5161 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5162 struct frame_id fields.
5163 (frame_id_build_wild): New function.
5164 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5165
47b42a3e
MK
51662004-06-27 Mark Kettenis <kettenis@gnu.org>
5167
5168 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5169 hppabsd-tdep.c.
5170
1265e4aa
JB
51712004-06-27 Joel Brobecker <brobecker@gnat.com>
5172
5173 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5174
76a01679
JB
51752004-06-27 Joel Brobecker <brobecker@gnat.com>
5176
5177 * ada-lang.c: Re-indent file.
5178
7aca490a
JB
51792004-06-27 Joel Brobecker <brobecker@gnat.com>
5180
5181 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5182 (no_symtab_msg): Likewise.
5183
5e987968
AS
51842004-06-27 Andreas Schwab <schwab@suse.de>
5185
5186 * source.c: Fix whitespace.
5187
315c4276
MK
51882004-06-27 Mark Kettenis <kettenis@gnu.org>
5189
d15be926
MK
5190 * configure.in: Include <sys/param.h> for td_pcb test.
5191 * configure: Regenerated.
5192
9062529b
MK
5193 * i386nbsd-nat.c: New file.
5194 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5195 i386obsd-nat.c and i386obsd-tdep.c.
5196 (i386nbsd-nat.o): New dependency.
5197 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5198 bsd-kvm.o.
5199 (LOADLIBES): New variable.
5200 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5201 bsd-kvm.o.
5202 (LOADLIBES): New variable.
5203
8010310e
MK
5204 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5205 (LOADLIBES): New variable.
5206
efe1d7b9
MK
5207 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5208 fetching from BSD_KVM_PADDR. Correctly lookup address for
5209 "_thread0".
5210
315c4276
MK
5211 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5212 "bsd-kvm.h".
5213 (amd64fbsd_supply_pcb): New funcion.
5214 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5215
399cfac6
DL
52162004-06-27 <david@streamline-computing.com>
5217
5218 Partial fix for PR cli/1056.
5219 * valarith.c: Check for zero in division and remainder
5220 evaluation.
5221
6235f9c8
MK
52222004-06-27 Mark Kettenis <kettenis@gnu.org>
5223
5224 * i387-tdep.c: Remove excessive whitespace.
5225
2726dafc
AC
52262004-06-26 Andrew Cagney <cagney@gnu.org>
5227
5228 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5229 * gdb-events.h, gdb-events.c: Re-generate.
5230 * tui/tui-hooks.c (tui_install_hooks): Update.
5231 (tui_remove_hooks): Update.
5232 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5233
0e56aeaf
MK
52342004-06-26 Mark Kettenis <kettenis@gnu.org>
5235
cb461069
MK
5236 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5237 (gregset_t, fpregset_t): Remove typedefs.
5238 (REG_OFFSET): Rename argument.
5239 (amd64bsd_r_reg_offset): Rename from reg_offset.
5240 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5241 Remove functions.
5242 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5243 of reg_offset.
5244 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5245
ecba89de
MK
5246 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5247
4cd80476
MK
5248 * vax-tdep.c: Tweak comment.
5249
0e56aeaf
MK
5250 Add OpenBSD/hppa support.
5251 * NEWS (New native configurations): Mention OpenBSD/hppa.
5252 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5253 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5254 files.
5255 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5256 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5257 * configure.host: Add hppa*-*-openbsd*.
5258 * configure.tgt: Add hppa*-*-openbsd*.
5259
98bbd631
AC
52602004-06-25 Andrew Cagney <cagney@gnu.org>
5261
5262 * defs.h (deprecated_ui_loop_hook): Deprecated.
5263 * wince.c (child_wait): Update.
5264 * win32-nat.c (child_wait): Update.
5265 * v850ice.c (v850ice_wait): Update.
5266 * top.c (deprecated_ui_loop_hook): Update.
5267 * serial.h: Update.
5268 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5269 (do_unix_readchar): Update.
5270 * ser-tcp.c (net_open): Update.
5271 * remote-sim.c (gdb_os_poll_quit): Update.
5272 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5273
769d7dc4
AC
52742004-06-24 Andrew Cagney <cagney@gnu.org>
5275
5276 * defs.h (deprecated_pre_add_symbol_hook)
5277 (deprecated_post_add_symbol_hook): Deprecated.
5278 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5279 (symbol_file_add_with_addrs_or_offsets): Update references.
5280
11c949aa
AC
52812004-06-24 Andrew Cagney <cagney@gnu.org>
5282
5283 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5284 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5285 * wince.c (ui_loop_hook): Delete extern declaration.
5286 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5287 * v850ice.c (ui_loop_hook): Delete extern declaration..
5288 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5289 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5290 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5291 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5292 ui_loop_hook declaration.
5293
eedc19af
AC
52942004-06-24 Andrew Cagney <cagney@gnu.org>
5295
5296 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5297 entry_func_highpc fields.
5298 * objfiles.c (init_entry_point_info): Do not clear
5299 entry_func_lowpc and entry_func_highpc.
5300 (objfile_relocate): Do not relocate entry_func_lowpc and
5301 entry_func_highpc.
5302 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5303 entry_func_highpc.
5304 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5305 entry_func_highpc.
5306 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5307 entry_func_lowpc and entry_func_highpc with call to
5308 inside_entry_func.
5309
d47079be
MK
53102004-06-24 Mark Kettenis <kettenis@gnu.org>
5311
5312 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5313 quad-precision floating point arguments in registers.
5314
2107e348
MK
53152004-06-24 Mark Kettenis <kettenis@gnu.org>
5316
5317 From Michael Mueller <m.mueller99@kay-mueller.de>:
5318 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5319 account.
5320
46587c42
JJ
53212004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5322
5323 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5324 to -1.
5325 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5326 untriggered watchpoints to a separate if clause. Update function
5327 comment regarding STOPPED_BY_WATCHPOINT argument.
5328
226f5cf4
JB
53292004-06-22 Jim Blandy <jimb@redhat.com>
5330
5331 * gdbarch.sh: Doc fix.
5332
f10683bb
MH
53332004-06-21 Martin Hunt <hunt@redhat.com>
5334 Kevin Buettner <kevinb@redhat.com>
5335
5336 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5337 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5338 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5339 to set_gdbarch_sp_regnum(). Use cooked register number.
5340 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5341
412d5987
AC
53422004-06-21 Andrew Cagney <cagney@gnu.org>
5343
5344 * gdbarch.sh: When the macro field is empty, do not generate a
5345 macro definition. When the macro field is "=", generate the macro
5346 name from the upper-case function name.
5347 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5348 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5349 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5350 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5351 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5352 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5353 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5354 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5355 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5356 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5357 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5358 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5359 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5360 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5361 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5362 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5363 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5364 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5365 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5366 (DEPRECATED_USE_STRUCT_CONVENTION)
5367 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5368 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5369 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5370 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5371 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5372 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5373 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5374 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5375 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5376 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5377 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5378 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5379 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5380 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5381 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5382 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5383 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5384 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5385
68908a3e
AC
53862004-06-21 Andrew Cagney <cagney@gnu.org>
5387
48f7351b
AC
5388 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5389 macro name, and the function rather than macro value. Only wrap
5390 macro print statements in #ifdef. Move format logic to where it
5391 is needed.
5392 * gdbarch.c: Re-generate.
5393
283354d8
AC
5394 * gdbarch.sh (read): Delete "print_p" and "description", add
5395 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5396 Delete references to print_p.
5397 (TARGET_ARCHITECTURE): Delete print predicate.
5398 * gdbarch.c: Re-generate.
5399
68908a3e
AC
5400 * gdbarch.sh: Check that multi-arch methods do not provide a
5401 macro.
5402 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5403 (print_registers_info, print_float_info, print_vector_info)
5404 (adjust_breakpoint_address, remote_translate_xfer_address)
5405 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5406 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5407 name from the multi-arch definition.
5408
a2428dbe
AC
54092004-06-20 Andrew Cagney <cagney@gnu.org>
5410
5411 * gdbarch.sh: Sort by the function, instead of macro name.
5412 * gdbarch.c: Re-generate.
5413
750eb019
AC
54142004-06-20 Andrew Cagney <cagney@gnu.org>
5415
66d659b1
AC
5416 * gdbarch.sh: Use the function, instead of macro name in
5417 errors and the log file.
5418 (return_value): Remove stray ":" in spec.
5419
750eb019
AC
5420 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5421 * gdbarch.h, gdbarch.c: Re-generate.
5422 * Makefile.in (arch-utils.o): Update dependencies.
5423 * values.c (using_struct_return): Move code calling
5424 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5425 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5426 to legacy_return_value, simplify.
5427 * infcmd.c (print_return_value): Move code calling
5428 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5429 to legacy_return_value, simplify.
5430 * infcall.c (call_function_by_hand): Move code calling
5431 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5432 * arch-utils.c: Update copyright. Include "gdbcore.h".
5433 (legacy_return_value): New function.
5434 * arch-utils.h: Update copyright.
5435 (legacy_return_value): Declare.
5436
b5622e8d
AC
54372004-06-20 Andrew Cagney <cagney@gnu.org>
5438
5439 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5440 * gdbarch.h, gdbarch.c: Re-generate.
5441 * values.c (using_struct_return): Update call.
5442 * mcore-tdep.c: Update comment.
5443 * infcall.c (call_function_by_hand): Update comment.
5444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5445 * arch-utils.h (always_use_struct_convention): Update.
5446 * v850-tdep.c (v850_gdbarch_init): Update.
5447 * sh64-tdep.c (sh64_gdbarch_init): Update.
5448 * sh-tdep.c (sh_gdbarch_init): Update.
5449 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5450 * mips-tdep.c (mips_gdbarch_init): Update.
5451 * mcore-tdep.c (mcore_gdbarch_init): Update.
5452 * m32r-tdep.c (m32r_gdbarch_init): Update.
5453 * ia64-tdep.c (ia64_gdbarch_init): Update.
5454 * h8300-tdep.c (h8300_gdbarch_init): Update.
5455 * frv-tdep.c (frv_gdbarch_init): Update.
5456 * cris-tdep.c (cris_gdbarch_init): Update.
5457 * arm-tdep.c (arm_gdbarch_init): Update.
5458 * alpha-tdep.c (alpha_gdbarch_init): Update.
5459
5191de37
MC
54602004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5461
5462 * PROBLEMS: Add more specific information, and a work-around,
5463 for PR gdb/1458.
5464
782263ab
AC
54652004-06-18 Andrew Cagney <cagney@gnu.org>
5466
5467 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5468 * gdbarch.h, gdbarch.c: Re-generate.
5469 * ada-lang.c (ada_finish_decode_line_1): Update.
5470 * infrun.c (handle_inferior_event): Update.
5471 * infcall.c (find_function_addr): Update.
5472 * linespec.c (minsym_found): Update.
5473 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5474 Update.
5475 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5476 * cli/cli-cmds.c (disassemble_command): Update.
5477 * vax-tdep.c (vax_gdbarch_init): Update.
5478
2f305df1
MK
54792004-06-18 Mark Kettenis <kettenis@gnu.org>
5480
5481 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5482
e5fe55f7
AC
54832004-06-17 Andrew Cagney <cagney@gnu.org>
5484
5485 GDB 6.1.1 released from the GDB 6.1 branch.
5486 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5487 * PROBLEMS: Ditto.
5488
473b7be6
DJ
54892004-06-16 Daniel Jacobowitz <dan@debian.org>
5490
5491 PR gdb/1658
5492 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5493 operation as a uleb128. Found by Michael Coulter.
5494
96d887e8
PH
54952004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5496
5497 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5498 make it non-static.
5499 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5500 to ada-lang.h; this is needed to be able to implement the kill command
5501 in multi-task mode.
5502 (task_ptid): Ditto.
5503 (task_entry): Ditto.
5504 (task_list): Ditto.
5505 (ada_build_task_list): Ditto.
5506
5507 * ada-lang.c: Conditionalize routines and data structures related
5508 to breakpoints, exceptions, completion, and symbol caching on
5509 GNAT_GDB, since these are not yet used in the submitted public sources.
5510 (ada_main_name): Editorial: Move definition out of exception-related
5511 code.
5512
31eef181
AC
55132004-06-15 Andrew Cagney <cagney@gnu.org>
5514
5515 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5516 deprecated_pc_in_call_dummy.
5517
2c500098
AM
55182004-06-15 Alan Modra <amodra@bigpond.net.au>
5519
5520 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5521 bfd_get_section_size_before_reloc or _raw_size.
5522 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5523 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5524 (dwarf2_read_section): Likewise.
5525 * elfread.c (elf_locate_sections): Likewise.
5526 * gcore.c (derive_heap_segment): Likewise.
5527 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5528 * remote-e7000.c (e7000_load): Likewise.
5529 * remote-m32r-sdi.c (m32r_load): Likewise.
5530 * remote-mips.c (mips_load_srec): Likewise.
5531 (pmon_load_fast): Likewise.
5532 * remote.c (compare_sections_command): Likewise.
5533 * symfile.c (add_section_size_callback): Likewise.
5534 (load_section_callback): Likewise.
5535 (pc_in_unmapped_range): Likewise.
5536 (pc_in_mapped_range): Likewise.
5537 (sections_overlap): Likewise.
5538 (list_overlays_command): Likewise.
5539 (simple_overlay_update_1): Likewise.
5540 (simple_overlay_update): Likewise.
5541 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5542 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5543
90f943f1
RC
55442004-06-14 Randolph Chung <tausq@debian.org>
5545
5546 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5547 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5548 static.
5549 (hppa_hpux_inferior_created): New function.
5550 (hppa_hpux_init_abi): Register observer.
5551 * symfile.c (hp_cxx_exception_support_initialized)
5552 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5553 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5554
700c15aa
RC
55552004-06-14 Randolph Chung <tausq@debian.org>
5556
3973a7d3
AC
5557 * MAINTAINERS (Write After Approval): Alphabetize my entry
5558 correctly.
700c15aa 5559
cea4838c
AC
55602004-06-14 Andrew Cagney <cagney@gnu.org>
5561
5562 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5563 testsuite maintainer.
5564
97092415
AC
55652004-06-13 Andrew Cagney <cagney@gnu.org>
5566
e8c3165b
AC
5567 * infcmd.c (print_return_value): Fix logic, allow
5568 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5569
bceabdd8
AC
5570 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5571 defining any macros.
5572 * gdbarch.h: Re-generate.
5573
57010b1c
AC
5574 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5575 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5576 * gdbarch.h: Re-generate.
5577
bc87dfa0
AC
5578 * values.c (generic_use_struct_convention): Don't check gcc_p.
5579
15ac804d
AC
5580 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5581 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5582 * gdbarch.h, gdbarch.c: Regenerate.
5583 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5584 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5586 deprecated_max_register_raw_size and
5587 deprecated_max_register_virtual_size.
5588 * v850-tdep.c (v850_gdbarch_init): Ditto.
5589 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5590 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5591 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5592 * cris-tdep.c (cris_gdbarch_init): Ditto.
5593
97092415
AC
5594 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5595 * gdbarch.h, gdbarch.c: Re-generate.
5596 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5597 (m68hc11_use_struct_convention): Delete function.
5598 (m68hc11_extract_struct_value_address): Delete function.
5599 (m68hc11_return_value): New function.
5600 (m68hc11_gdbarch_init): Instead of store_return_value,
5601 extract_return_value, return_value_on_stack,
5602 deprecated_extract_struct_value_address and use_struct_convention,
5603 set return_value.
5604 * values.c (using_struct_return): Do not call
5605 RETURN_VALUE_ON_STACK.
5606 * arch-utils.h (generic_return_value_on_stack_not): Delete
5607 declaration.
5608 * arch-utils.c (generic_return_value_on_stack_not): Delete
5609 function.
5610
44e5158b
AC
56112004-06-12 Andrew Cagney <cagney@gnu.org>
5612
5613 * values.c (register_value_being_returned): Delete function.
5614 * infcmd.c (legacy_return_value): Delete function.
5615 * infcall.c (call_function_by_hand): Inline
5616 "register_value_being_returned", simplify.
5617 * values.c (using_struct_return): Update comment, refer to
5618 print_return_value instead of register_value_being_returned.
5619 * infcmd.c (print_return_value): Inline calls to
5620 register_value_being_returned and legacy_return_value. Simplify.
5621
b887c273
RC
56222004-06-11 Randolph Chung <tausq@debian.org>
5623
5624 * somread.c (som_symtab_read): Exclude gcc local symbols.
5625
1b2bfbb9
RC
56262004-06-11 Randolph Chung <tausq@debian.org>
5627
3973a7d3
AC
5628 * infrun.c (handle_inferior_event): Handle the case when a
5629 trampoline ends up in the runtime resolver, and if the trampoline
5630 has no name. Rearrange the code so that all the trampoline
5631 processing happens before other step-out-of-range handling.
1b2bfbb9 5632
a9d61c86
MH
56332004-06-11 Martin Hunt <hunt@redhat.com>
5634
5635 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5636 has no fpu.
5637
2c87cf5a
AC
56382004-06-10 Andrew Cagney <cagney@gnu.org>
5639
5640 * blockframe.c (legacy_inside_entry_func): Delete.
5641 (legacy_frame_chain_valid): Inline call to
5642 legacy_inside_entry_func, simplify.
5643
0b67b468 56442004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
5645
5646 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
5647 * dwarf2read.c (partial_die_info): Add dirname field.
5648 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5649 (read_partial_die): Save away DW_AT_comp_dir.
5650 * defs.h (symtab_to_filename): Removed.
5651 * source.c (find_and_open_source): Added.
57c22c6c 5652 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
5653 (symtab_to_filename): Removed.
5654 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
5655 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5656 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5657 symtab_to_filename.
5658 * symtab.h (partial_symtab): Add dirname field.
5659 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
5660 (mi_cmd_file_list_exec_source_file): Call new function
5661 symtab_to_fullname to find fullname.
57c22c6c 5662 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 5663 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
5664 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5665
9a1dd1ad
AC
56662004-06-10 Andrew Cagney <cagney@gnu.org>
5667
239ae8c7
AC
5668 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5669 to generic_use_struct_convention, the default value.
5670
fc720350
AC
5671 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5672 of abort.
5673
9a1dd1ad
AC
5674 * ns32k-tdep.c (ns32k_push_arguments): New function.
5675 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5676 * infcall.c (call_function_by_hand): Call error instead of
5677 legacy_push_arguments.
5678 * value.h (legacy_push_arguments): Delete declaration.
5679 * valops.c (legacy_push_arguments): Delete function.
5680 (value_push): Delete function.
5681
fea25152
BF
56822004-06-10 Brian Ford <ford@vss.fsi.com>
5683
5684 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5685 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5686 info.
5687 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5688
30a4a8e0
AC
56892004-06-10 Andrew Cagney <cagney@gnu.org>
5690
5691 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5692 * gdbarch.h, gdbarch.c: Re-generate.
5693 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5694 parameters.
5695 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5696 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5697 deprecated_pc_in_call_dummy instead of
5698 DEPRECATED_PC_IN_CALL_DUMMY.
5699 (arm_skip_prologue): Ditto.
5700 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5701 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5702 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5703 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5704 Ditto.
5705 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5706 (sh64_init_extra_frame_info, sh64_get_saved_register)
5707 (sh64_pop_frame): Ditto.
5708 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5709 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5710 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5711 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5712 (h8300_pop_frame): Ditto.
5713 * blockframe.c (legacy_inside_entry_func)
5714 (legacy_frame_chain_valid): Ditto.
5715 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5716 to deprecated_pc_in_call_dummy.
5717
81cfbe54
AC
57182004-06-09 Andrew Cagney <cagney@gnu.org>
5719
a1f4a1b6
AC
5720 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5721 provide a default value.
5722 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5723 * gdbarch.h, gdbarch.c: Re-generate.
5724 * arch-utils.c (generic_convert_register_p): Rename
5725 legacy_convert_register_p
5726 (legacy_register_to_value, legacy_value_to_register): Delete
5727 functions.
5728 * arch-utils.h (generic_convert_register_p): Rename
5729 legacy_convert_register_p.
5730 (legacy_register_to_value, legacy_value_to_register): Delete
5731 declarations.
5732
9730f241
AC
5733 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5734 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5735 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5736 * gdbarch.h, gdbarch.c: Re-generate.
5737 * infcmd.c (default_print_registers_info): Simplify.
5738 * findvar.c (value_of_register): Simplify.
5739 * mi/mi-main.c (get_register): Simplify.
5740 * arch-utils.c (legacy_convert_register_p): Always return 0.
5741 (legacy_register_to_value, legacy_value_to_register): Always call
5742 internal_error.
5743
8a1bf479
AC
5744 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5745 #ifdef CLEAR_INSN_CACHE code.
5746 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5747 Delete #ifdef CLEAR_DEFERRED_STORES code.
5748
4b38d6f1
AC
5749 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5750
2d62ecc7
AC
5751 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5752 copyright.
5753 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5754
be4f7469
AC
5755 * config/mips/mipsv4.mh: Delete file.
5756
81cfbe54
AC
5757 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5758 unreferenced macro.
5759 (hpread_adjust_stack_address): Delete declaration.
5760
d966f0cb
AC
57612004-06-08 Andrew Cagney <cagney@gnu.org>
5762
5763 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5764 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5765 PTRACE_ATTACH / PTRACE_DETACH available call error.
5766 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5767 * infttrace.c (update_thread_state_after_attach, attach, detach):
5768 Remove #ifdef wrappers.
5769 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5770 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5771 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5772 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5773 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5774 * config/nm-linux.h (ATTACH_DETACH): Delete.
5775 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5776 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5777 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5778 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5779 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5780
d91670b9
CV
57812004-06-08 Corinna Vinschen <vinschen@redhat.com>
5782
5783 * configure.in: Set $configdir to the right OS specific value.
5784 Use value when setting $tcldir and $tkdir.
5785 * configure: Regenerate.
5786
28ba0b33
PB
57872004-06-06 Paul Brook <paul@codesourcery.com>
5788
5789 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5790 records.
5791
f26caa11
PH
57922004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5793
5794 * ada-lang.c (lookup_symbol_in_language): New function to allow
5795 re-use of another language's symbol lookup code. (Placed here
5796 temporarily while Ada support is being integrated into the public
5797 tree).
5798 (restore_language): New auxiliary function for
5799 lookup_symbol_in_language.
5800 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5801 temporarily while Ada support is being integrated into the public
5802 tree).
5803
d560a54b
AO
58042004-06-08 Alexandre Oliva <aoliva@redhat.com>
5805
e75d110c
AO
5806 * Makefile.in (check//%): New.
5807
d560a54b
AO
5808 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5809 (mn10300_store_return_value): Rewrite.
5810 (mn10300_type_align): New.
5811 (mn10300_use_struct_convention): Rewrite.
5812 (mn10300_return_value): New, using all of the above.
5813 (mn10300_pop_frame_regular): Add saved_regs_size.
5814 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5815
a72fbdb7
AO
5816 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5817 regs if PC is on movm.
5818
01904826
JB
58192004-06-07 Jim Blandy <jimb@redhat.com>
5820
5821 Add native Linux support for the PowerPC E500.
5822 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5823 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5824 all architectures except the E500.
5825 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5826 #definitions.
5827 (struct gdb_evrregset_t): New type.
5828 (have_ptrace_getsetevrregs): New variable.
5829 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5830 fetch_spe_registers): New functions.
5831 (fetch_register): Call fetch_spe_register as appropriate.
5832 Assert that we're only passed raw register numbers.
5833 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5834 Don't fetch gprs if they're pseudoregisters.
5835 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5836 store_spe_registers): New functions.
5837 (store_register): Call store_spe_register as appropriate.
5838 Assert that we're only passed raw register numbers.
5839 (store_ppc_registers): Call store_spe_registers as appropriate.
5840 Don't store gprs if they're pseudoregisters.
5841
f90ef764
JJ
58422004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5843
5844 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5845 struct if one exists, even if we are dealing with a zombie thread.
5846
45b75230
AC
58472004-06-07 Andrew Cagney <cagney@gnu.org>
5848
5849 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5850 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5851 Rename PC_REQUIRES_RUN_BEFORE_USE.
5852 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5853 #ifdef.
5854
1658da49
RC
58552004-06-07 Randolph Chung <tausq@debian.org>
5856
5857 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5858 unwinding after sp has been saved to the stack but before the end
5859 of the prologue, and after the fp has been modified but before it has
5860 been saved to the stack.
5861 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5862 Remove superfluous definitions.
5863 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5864
9a727a3c
RC
58652004-06-07 Guy Martin <gmsoft@gentoo.org>
5866
5867 Committed by Randolph Chung.
5868 * hppa-linux-nat.c: Include the correct version of the header file
5869 depending on the kernel version.
5870
9e500012
RC
58712004-06-06 Randolph Chung <tausq@debian.org>
5872
5873 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5874 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5875
3388d7ff
RC
58762004-06-06 Randolph Chung <tausq@debian.org>
5877
5878 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5879 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5880 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5881 * hppa-tdep.c (hppa_symbol_address): New function definition.
5882 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5883
d49771ef
RC
58842004-06-06 Randolph Chung <tausq@debian.org>
5885
5886 * hppa-tdep.h (struct value): Forward declaration.
5887 (gdbarch_tdep): Define tdep find_global_pointer method.
5888 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5889 associated with the function we are trying to call, and write it
5890 to the gp register.
5891 (hppa32_convert_from_funct_ptr_addr): New function.
5892 (hppa_find_global_pointer): New function.
5893 (hppa_gdbarch_init): Set default find_global_pointer method; set
5894 convert_from_func_ptr_addr method.
5895 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5896 (hppa_linux_init_abi): Set find_global_pointer method.
5897 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5898
7d9b040b
RC
58992004-06-06 Randolph Chung <tausq@debian.org>
5900
5901 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5902 to struct value *function.
5903 * gdbarch.c: Regenerate.
5904 * gdbarch.h: Likewise.
5905 * infcall.c (call_function_by_hand): Pass entire function value
5906 to push_dummy_call.
5907
5908 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5909 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5910 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5911 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5912 * arm-tdep.c (arm_push_dummy_call): Likewise.
5913 * avr-tdep.c (avr_push_dummy_call): Likewise.
5914 * cris-tdep.c (cris_push_dummy_call): Likewise.
5915 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5916 * frv-tdep.c (frv_push_dummy_call): Likewise.
5917 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5918 * hppa-tdep.c (hppa32_push_dummy_call)
5919 (hppa64_push_dummy_call): Likewise.
5920 * i386-tdep.c (i386_push_dummy_call): Likewise.
5921 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5922 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5923 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5924 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5925 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5926 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5927 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5928 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5929 (ppc64_sysv_abi_push_dummy_call): Likewise.
5930 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5931 (ppc64_sysv_abi_push_dummy_call): Likewise.
5932 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5933 * s390-tdep.c (s390_push_dummy_call): Likewise.
5934 * sh-tdep.c (sh_push_dummy_call_fpu)
5935 (sh_push_dummy_call_nofpu): Likewise.
5936 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5937 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5938 * vax-tdep.c (vax_push_dummy_call): Likewise.
5939
4a19ea35
JB
59402004-06-04 Jim Blandy <jimb@redhat.com>
5941
8327ccee
JB
5942 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5943 gdbarch argument to register_size.
5944
a3c001ce
JB
5945 * rs6000-tdep.c (rs6000_store_return_value): Use
5946 regcache_cooked_write_part instead of
5947 deprecated_write_register_bytes.
5948 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5949 not gdbarch_deprecated_store_return_value.
5950
4a19ea35
JB
5951 * ppc-linux-nat.c (store_register, fetch_register): Remove
5952 incorrect assertions. Simplify and generalize handling of
5953 transfers whose sizes are not multiples of, or less than, sizeof
5954 (PTRACE_XFER_TYPE).
5955
b9b5d7ea
JJ
59562004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5957
5958 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5959 as a new thread event.
720c7d64 5960 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 5961 zombie, return TD_THR_ZOMBIE.
720c7d64 5962 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
5963 TD_THR_ZOMBIE, check if the thread is still on the thread list
5964 and return a -1 ptid if not found.
5965 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5966 change the status to TARGET_WAITKIND_SPURIOUS.
5967
c8a3b559
CV
59682004-06-03 Corinna Vinschen <vinschen@redhat.com>
5969
5970 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5971 double values in little endian mode.
5972
20605361
AC
59732004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5974
5975 Committed by Andrew Cagney.
5976 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5977 after last enum constant to avoid error from IBM C
5978 compiler.
5979
bc97b3ba
JB
59802004-06-02 Jim Blandy <jimb@redhat.com>
5981
5982 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5983 to 'message', and make it local to the lone block that uses it.
5984
1da28ab0
JB
5985 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5986
4c4b4cd2
PH
59872004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5988
8a2225b2
PH
5989 * ada-exp.y: Update copyright notice.
5990 Include block.h.
5991
5992 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5993 SPECIAL_VARIABLE and unify the treatment of these cases.
5994
5995 (write_attribute_call0): Remove.
5996 (write_attribute_call1): Remove.
5997 (write_attribute_calln): Remove.
5998 (save_qualifier): Add missing semicolon.
5999
6000 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6001 temporarily disabled to allow compilation with FSF head version.
6002
6003 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6004 use individual operators (OP_*) for all attributes.
6005 (exp syntax): Use write_int.
6006 Handle STRING literals with OP_STRING.
6007 (variable syntax): Add limit parameter to calls to
6008 write_object_renaming.
6009
6010 (temp_parse_space): New definition to hold entities that need
6011 only live until the next call to ada_parse.
6012 (string_to_operator): Rename fields of ada_opname_table entries.
6013
6014 (write_var_from_sym): Record block.
6015 (write_var_from_name): Minor reformatting.
6016 Make sure saved name is properly encoded in the case of multiple
6017 matches, and set its language to Ada.
6018 Update comment.
6019 Modify to indicate unresolved name as symbol in the UNRESOLVED
6020 namespace, allocated in temp_parse_space.
6021 (write_int): New function.
6022
6023 (write_object_renaming): Add max_depth parameter to limit
6024 chains of object renamings.
6025 Handle case where root of renaming expression is itself a renaming.
6026 Use temp_parse_space for temporary name buffer.
6027 Handle renamings to dereferenced pointers (___XEXA suffices).
6028
6029 (ada_parse, yyerror, string_to_operator,
6030 write_var_from_sym, write_var_from_name, write_attribute_call0,
6031 write_attribute_call1, write_attribute_calln,
6032 write_object_renaming): Protoize.
6033
6034 (_initialize_ada_exp): New function.
6035
6036 * ada-lang.c: Update copyright notice.
6037 General terminology change to conform to GNAT compiler usage:
6038 mangle => encode, demangle => decode
6039 Include gdb_obstack.h.
6040 Include gdb_regex.h
6041 Include frame.h
6042 Include hashtab.h
6043 Include completer.h
6044 Include gdb_stat.h
6045 Include block.h
6046 Include infcall.h
6047
6048 (ADA_RETAIN_DOTS): Make sure this is defined.
6049 (TRUNCATION_TOWARDS_ZERO): Define.
6050 (struct string_vector): Define.
6051 (unresolved_names): Remove definition.
6052 (xnew_string_vector): New function.
6053 (string_vector_append): New function.
6054 (extract_string): Make static.
6055 (ada_unqualified_name): New function.
6056 (add_angle_brackets): New function.
6057 (function_name_from_pc): New function.
6058 (place_on_stack): Rename to ensure_lval.
6059
6060 (ensure_lval): Renamed from place_on_stack.
6061 Make identity on lvals.
6062 Update comment.
6063 (is_nonfunction): New interface.
6064 Only symbols in LOC_CONST class can be enumerals.
6065 (fill_in_ada_prototype): Remove; now independent of language.
6066 (add_defn_to_vec): Add obstack and symtab arguments.
6067 Use obstack to hold collected definitions.
6068 (num_defns_collected): New function.
6069 (defns_collected): New function.
6070 (ada_resolve_subexp): Rename to resolve_subexp.
6071 (resolve_subexp): Renamed from ada_resolve_subexp.
6072 (ada_op_name): Return non-const result.
6073 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6074 other purposes.
6075
6076 (to_fixed_array_type): Add declaration.
6077 (coerce_unspec_val_to_type): Remove offset parameter.
6078 (find_sal_from_funcs_and_line): New interface.
6079 (find_line_in_linetable): Ditto.
6080
6081 (all_sals_for_line): Rename to ada_sals_for_line and make
6082 global.
6083 Add new parameter. When set, do not ask the user to choose the
6084 instance, but use the first one found instead.
6085 Use given line number in returned sals.
6086 Fix comment.
6087 Skip the prologue if funfirstline is set.
6088 Correct for memory leak when 0 lines found.
6089
6090 (value_pos_atr): Use pos_atr.
6091 (pos_atr): New function.
6092 (standard_lookup): Add block parameter.
6093
6094 (makeTimeStart): Remove declaration and uses.
6095 (makeTimeStop): Remove declaration and uses.
6096
6097 (ada_completer_word_break_characters): Allow for VMS.
6098 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6099 (raise_sym_name): New constant.
6100 (raise_unhandled_sym_name): New constant.
6101 (raise_assert_sym_name): New constant.
6102 (process_raise_exception_name): New constant.
6103 (longest_exception_template): New constant.
6104 (warning_limit): New variable to limit warnings during expression
6105 evaluation.
6106 (warnings_issued): New variable to keep track of warnings issued.
6107 (known_runtime_file_name_patterns): New constant.
6108 (known_auxiliary_function_name_patterns): New constant.
6109 (symbol_list_obstack): New variable.
6110
6111 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6112 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6113 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6114 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6115 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6116 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6117 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6118 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6119 and strcmp.
6120
6121 (ada_get_field_index): New function.
6122 (lim_warning): New function.
6123 (ada_translate_error_message): New function.
6124 (MAX_OF_SIZE): New function.
6125 (MIN_OF_SIZE): New function.
6126 (UMAX_OF_SIZE): New function.
6127 (UMIN_OF_SIZE): New function.
6128 (discrete_type_high_bound): New function.
6129 (discrete_type_low_bound): New function.
6130 (base_type): New function.
6131 (do_command): Remove.
6132
6133 (ada_update_initial_language): Use language_ada, not language_unknown.
6134 (ada_encode): Renamed from ada_mangle.
6135 Obey ADA_RETAIN_DOTS.
6136 (ada_decode): Renamed from ada_demangle.
6137 Update coding conventions.
6138 (decoded_names_store): New hash table.
6139 (ada_decode_symbol): New function.
6140 (ada_la_decode): New function.
6141
6142 (modify_general_field): Correct computations of offset and bit
6143 position.
6144 (desc_base_type): Handle ref types, too.
6145 (ada_is_direct_array_type): New function.
6146
6147 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6148 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6149 (ada_is_bogus_array_descriptor,ada_type_of_array,
6150 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6151 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6152 ada_is_array_descriptor_type.
6153
6154 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6155 (ada_is_packed_array_type): Handle pointers or
6156 references to packed arrays as well.
6157 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6158 (decode_packed_array_type): Search for the packed array type
6159 symbol in the currently selected block and associated
6160 superblocks too.
6161 Use lookup_symbol again.
6162
6163 (decode_packed_array): Handle pointers and references.
6164 Update call to coerce_unspec_val_to_type.
6165 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6166 (ada_value_primitive_packed_val): Improve comment.
6167
6168 (ada_index_type): Substitute int type for "undefined".
6169 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6170 ada_array_langth, ada_is_string_type): Use renamed
6171 ada_is_simple_array_type.
6172 (empty_array): New function.
6173
6174 (ada_resolve): Rename to resolve.
6175 (resolve): Make static.
6176 Call renamed resolve_subexp.
6177 Update comment.
6178 (ada_resolve_subexp): Rename to resolve_subexp.
6179 (resolve_subexp): Update comment.
6180 Decomment disabled code.
6181 Add LOC_COMPUTED* cases.
6182 Modify to use temporary struct symbols (marked as being in
6183 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6184 OP_UNRESOLVED_VALUE.
6185 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6186 Add OP_STRING case.
6187 Remove OP_ARRAY.
6188 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6189 Use new ada_lookup_symbol_list interface.
6190 Use new ada_resolve_function interface.
6191 Remove OP_TYPE case.
6192
6193 (ada_args_match): Idiot proof against null actuals.
6194 Use intermediate variables to clarify.
6195 (ada_resolve_function): Update comment and interface.
6196 (mangled_ordered_before): Rename to encoded_ordered_before and
6197 update comment.
6198 (sort_choices): Update comment and interface.
6199 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6200 (user_select_syms): New interface.
6201 Use new sort_choices interface.
6202 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6203 (possible_user_operator_p): Idiot-proof against null values.
6204 (ada_simple_renamed_entity): Don't make cleanup; rely on
6205 caller to free result string.
6206 Remove const from return type.
6207 (make_array_descriptor): Rename uses of place_on_stack to
6208 ensure_lval.
6209 Make sure that arrays are on stack.
6210
6211 (HASH_SIZE): Define.
6212 (struct cache_entry): Define.
6213 (cache_space): Define.
6214 (cache): Define.
6215 (clear_ada_sym_cache): New function.
6216 (find_entry): New function.
6217 (lookup_cached_symbol): New function.
6218 (defn_vector_size): Define.
6219 (cache_symbol): New function.
6220 (defn_symbols): Remove.
6221
6222 (standard_lookup): Use lookup_symbol_in_language to get effect of
6223 C lookup.
6224 Cache results.
6225
6226 (symbol_completion_match): New function.
6227 (symbol_completion_add): New function.
6228 (ada_make_symbol_completion_list): New function.
6229
6230 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6231 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6232 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6233 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6234
6235 (ada_lookup_simple_minsym): New function.
6236 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6237
6238 (add_symbols_from_enclosing_procs): New interface.
6239 Conditionalize more helpfully.
6240 Don't bother if program isn't running.
6241 Use new interface to get_frame_block.
6242 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6243
6244 (remove_extra_symbols): New interface.
6245 (xget_renaming_scope): New function.
6246 (is_package_name): New function.
6247 (renaming_is_visible): New function.
6248 (remove_out_of_scope_renamings): New function.
6249
6250 (ada_lookup_symbol_list): New interface.
6251 Properly reinitialize the symbol list obstack.
6252 Don't call add_symbols_from_enclosing_procs if we start from a
6253 static or global block.
6254 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6255 add_symbols_from_enclosing_procs.
6256 Add symtab data to cached entries.
6257 Handle symbols prefixed with
6258 "standard__" specially; strip prefix and don't look in local symbols.
6259 Do not include out of scope renaming symbols in list of
6260 symbols returned.
6261 Add const to block parameter.
6262 Move check for non-local, non-global symbols earlier.
6263 Remove timing stuff.
6264 (ada_lookup_symbol): New interface.
6265 Find symtab as well.
6266 (ada_lookup_symbol_nonlocal): New function.
6267
6268 (is_name_suffix): Enhance suffix detection to recognize
6269 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6270 (is_dot_digits_suffix): New function.
6271 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6272
6273 (ada_add_block_symbols): New interface. Use obstack to return results
6274 in a vector of struct ada_symbol_infos. Add symtab argument.
6275 Use new interface to add_defn_to_vec.
6276 Remove calls to fill_in_ada_prototype.
6277 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6278
6279 (ada_finish_decode_line_1): Add const qualification to local to fix
6280 warning.
6281 Start looking in static block for functions to avoid attempts
6282 to search frame chain for up-level variables.
6283 Adapt to new ada_sals_for_line interface.
6284 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6285 Handle quoting of the function name inside the spec string.
6286 Skip prologue when funfirstline is set and update the
6287 function documentation to that effect.
6288
6289 (debug_print_lines, debug_print_block, debug_print_blocks,
6290 debug_print_symtab): Remove.
6291
6292 (ada_main_name): New function.
6293 (ada_exception_breakpoint_type): New function.
6294 (is_known_support_routine): New function.
6295 (ada_find_printable_frame): Renamed from find_printable_frame and made
6296 global.
6297 Remove level parameter.
6298 Use new interface to select_frame.
6299
6300 (begin_command): Remove.
6301 (ada_adjust_exception_stop): New function.
6302 (ada_print_exception_stop): New function.
6303 (exception_name_from_cond): New function.
6304 (ada_report_exception_break): Replace disabled code with
6305 conditionalization on GNAT_GDB.
6306 Get the exception name from the condition string.
6307 Remove and move functionality into new functions
6308 ada_print_exception_breakpoint_task and
6309 ada_print_exception_breakpoint_nontask.
6310 (error_breakpoint_runtime_sym_not_found): New function.
6311 (is_runtime_sym_defined): New function.
6312 (ada_breakpoint_rewrite): Uncomment suppressed code.
6313 Use symbolic error-message and runtime-symbol names.
6314 Surround runtime symbol names in quotes.
6315 Allow non-specific breakpoints on exceptions and assertions before
6316 program starts.
6317
6318 (ada_is_tagged_type): Add parameter.
6319 (ada_is_tag_type): New function.
6320 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6321 (ada_variant_discrim_type): Ditto.
6322 (value_tag_from_contents_and_address): New function.
6323 (type_from_tag): New function.
6324 (struct tag_args): New structure used to communicate with
6325 ada_tag_name_1.
6326 (ada_tag_name_1): New function.
6327 (ada_tag_name): New function.
6328
6329 (ada_scan_number): Update comment.
6330 (find_struct_field): New function.
6331 (ada_search_struct_field): Make static.
6332 (ada_value_struct_elt): New version that returns references when
6333 given pointers or references to structs.
6334 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6335 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6336 interface.
6337 (ada_value_ind): Use new ada_to_fixed_value interface.
6338 (ada_coerce_ref): Ditto.
6339 (field_offset): Remove.
6340
6341 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6342 (ada_find_renaming_symbol): New function.
6343 (ada_prefer_type): Prefer named types over unnamed ones.
6344 (variant_field_index): New function.
6345 (contains_variant_part): Removed: subsumed by variant_field_index.
6346 (ada_template_to_fixed_record_type): New function, mostly from
6347 template_to_fixed_record_type.
6348 (template_to_fixed_record_type):
6349 Do not scan the type fields beyond the last one; prevents a
6350 potential SEGV.
6351 Handle case where variant field is listed BEFORE discriminant it
6352 depends on.
6353 Fix calculation of record length when bit length is
6354 not evenly divisible by char length.
6355 Move code to ada_template_to_fixed_record_type and call it.
6356
6357 (template_to_static_fixed_type): Revise comment.
6358 Modify to work on ordinary record types as well as templates,
6359 so as to handle fields that use ___XVE or ___XVU encodings.
6360 (to_record_with_fixed_variant_part): Fill out comment.
6361 Initialize C++ stuff in right type.
6362 Allow case where DVAL is null.
6363 Handle case where variant field is not last.
6364 Fix typo concerning record length.
6365 (to_fixed_record_type): Decomment disabled code.
6366 (to_fixed_record_type): Use variant_field_index instead of
6367 contains_variant_part.
6368 (to_fixed_variant_branch_type): Ditto.
6369 (to_fixed_array_type): Decomment disabled code.
6370 (ada_to_fixed_type): Convert tagged types to the specific type.
6371 Deactivate the size-check for array types in order to avoid
6372 some false size alarms.
6373 (to_static_fixed_type): Decomment disabled code.
6374 Modify to call template_to_static_fixed_type
6375 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6376 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6377 Remove valaddr argument, as it is never really used.
6378 (ada_to_fixed_value): Change interface to act on single struct value*
6379 operand.
6380 (adjust_pc_past_prologue): New function.
6381 (ada_attribute_name): Modify to take enum exp_opcode argument.
6382
6383 (ada_enum_name): Recognize new homonym-distinguishing convention.
6384 Adjust local variable's type to remove compiler warning.
6385 Fix a small problem in the part that unqualifies the enumeration name.
6386 (ada_value_binop): New function.
6387 (ada_value_equal): New function.
6388
6389 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6390 Don't give error message when not doing normal evaluation
6391 and a tagged type doesn't seem to contain a structure member.
6392 Give error message for packed arrays.
6393 For indexing arrays, handle pointers to packed arrays correctly.
6394 Handle case of 'first and 'last attributes of bare integral type
6395 without encoded subtype info.
6396 Remove some unnecessary casts.
6397 Fix uninitialized value of type in computing 'first, 'last, or 'length
6398 of array object.
6399 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6400 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6401 calls.
6402 Attributes are now exp_opcode values.
6403 Correct treatment of 'modulus.
6404 Better error message for taking 'length of wrong kind of type;
6405 improve comment.
6406 Change EVAL_NORMAL to noside for consistency.
6407 Use ada_value_binop for DIV, MOD, REM.
6408 Make special case out of array of length 0, since an argument
6409 of 0 upsets some platforms' malloc.
6410 Use OP_STRING instead of OP_ARRAY.
6411 For slice, add check that we have an array type before extracting
6412 a slice out of it. Avoids a SEGV.
6413 When evaluating an array slice, if the array type is a reference to
6414 an aligner type, then replace the aligner type by the actual type.
6415 Decomment disabled code.
6416 Remove some dead code.
6417 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6418 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6419 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6420 and UNOP_MBR to UNOP_IN_RANGE.
6421 If an array type has a parallel ___XVE type, then use it.
6422 Turn arrays into pointers for lvalue arrays.
6423 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6424 bounds error and handle 0-length slices.
6425 Use lim_warning.
6426 When selecting fields, apply ada_to_fixed_value (because the fields
6427 might have ___XVU or ___XVE encodings even if not dynamic.)
6428 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6429 (ada_is_system_address_type): New function.
6430
6431 (get_var_value): Use new interface to ada_lookup_symbol_list.
6432 (get_int_var_value): New interface.
6433 (to_fixed_range_type): Allow unknown bound, with warning.
6434 (ada_is_modular_type): Decomment disabled code.
6435 (ADA_OPERATORS): New definition.
6436 (ada_operator_length): New function.
6437 (ada_expr_op_name): New function.
6438 (ada_forward_operator_length): New function.
6439 (ada_dump_subexp_body): New function.
6440 (ada_print_subexp): New function.
6441 (ada_exp_descriptor): New constant.
6442 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6443 (ada_language_defn): Add ada_exp_descriptor entry.
6444 Change ada_parse => parse.
6445 Add post-parser entry.
6446 Use ada-specific non-local symbol lookup.
6447 Don't use C-style arrays.
6448 String lower-bound is 1.
6449 Decomment disabled code.
6450 (parse): New function.
6451 New fields ada_translate_error_message, ada_lookup_symbol,
6452 ada_lookup_minimal_symbol.
6453
6454 * ada-lang.h: Update copyright dates.
6455 Replace the mangle/demangle terminology throughout by the
6456 more appropriate encode/decode one.
6457 Include breakpoint.h.
6458 Forward declare struct partial_symbol, struct block.
6459 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6460 (EXTRACT_ADDRESS): Remove.
6461 (EXTRACT_INT): Remove.
6462 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6463 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6464 (MAX_RENAMING_CHAIN_LENGTH): Define.
6465 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6466
6467 (enum task_states): Remove.
6468 ada_task_states: Remove.
6469 (fat_string): Remove.
6470 (struct entry_call): Remove.
6471 (struct task_fields): Remove.
6472 (struct task_entry): Remove.
6473
6474 (struct ada_symbol_info): Define.
6475 (enum ada_attribute): Remove.
6476 (enum ada_operator): Define.
6477
6478 (ada_get_field_index): Declare.
6479 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6480 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6481 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6482 (ada_lookup_symbol_list): New interface.
6483 (ada_decode_symbol): Declare.
6484 (ada_decode): Declare.
6485 (ada_lookup_symbol): New interface.
6486 (ada_update_initial_language): Declare.
6487 (ada_lookup_simple_minsym): Declare.
6488 (user_select_syms): New interface.
6489 (ada_sals_for_line): Declare.
6490 (ada_is_tagged_type): New interface.
6491 (ada_tag_name): Declare.
6492 (ada_lookup_struct_elt_type): Remove declaration.
6493 (ada_search_struct_field): Remove declaration.
6494 (ada_attribute_name): New interface.
6495 (ada_is_system_address_type): Declare.
6496 (ada_to_fixed_value): Remove declaration.
6497 (ada_template_to_fixed_record_type_1): Declare.
6498 (get_int_var_value): New interface.
6499 (ada_find_any_symbol): Declare.
6500 (ada_find_renaming_symbol): Declare.
6501 (ada_mangle): Rename to ada_encode.
6502 (ada_simple_renamed_entity): Remove const.
6503 (ada_main_name): Declare.
6504 (get_current_task): Rename to ada_get_current_task.
6505 (get_entry_number): Remove declaration.
6506 (ada_report_exception_break): Remove declaration.
6507 (ada_print_exception_breakpoint_nontask): Declare.
6508 (ada_print_exception_breakpoint_task): Declare.
6509 (ada_find_printable_frame): Declare.
6510
6511 * ada-lex.l: Update copyright notices.
6512 Use xmalloc and xfree instead of malloc and free.
6513 Use new interface to name_lookup.
6514 Use new interface to
6515 ada_mangle=>ada_encode.
6516 Redo handling of '$...' variable to parallel current treatment
6517 in c-exp.y.
6518 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6519 digit_to_int, strtoulst, processInt, processReal, processId,
6520 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6521 yywrap): Protoize.
6522
6523 (processInt): Use cast to remove harmless warning.
6524 (processReal): Modify to get rid of compiler warning on scan formats.
6525
6526 (processId): Replace xmalloc with obstack_alloc for name and remove
6527 call to ada_name_string_cleanup.
6528 Remove obsolete disabled code.
6529 (name_lookup): Ditto.
6530 New interface.
6531 Use obsavestring on temp_parse_space instead of savestring
6532 on name, and remove call to ada_name_string_cleanup.
6533 Free string returned from ada_simple_renamed_entity.
6534 Use new interface to ada_lookup_symbol_list.
6535 Decomment disabled code.
6536 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6537 not types.
6538 When a type name lookup succeeds as a result of
6539 lookup_primitive_typename, check for regular type entry that has not
6540 yet been read in.
6541 Limit length of chain of renamed symbols we are willing to follow.
6542 Do not break names beginning with "standard__" into segments.
6543 (block_lookup): Use new interface to ada_lookup_symbol_list.
6544
6545 * ada-typeprint.c: Update copyright notice.
6546 (demangled_type_name): Rename to decoded_type_name.
6547 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6548 (print_range_bound): Correct handling of negative
6549 bounds that make the index type looked unsigned under STABS.
6550 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6551 (print_range_type_named): Use the builtin int type if no type
6552 corresponding to the given type name could be found.
6553 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6554 Add some bullet-proofing.
6555 (print_variant_clauses): Allow for variant branches with ___XVU
6556 encodings that are not dynamic fields.
6557 Use new interface to ada_is_tagged_type.
6558 (print_record_type): Allow for fields with ___XVE encodings that
6559 are not dynamic fields.
6560 Use new interface to ada_is_tagged_type.
6561 (ada_print_type): ada_is_array_descriptor =>
6562 ada_is_array_descriptor_type.
6563
6564 * ada-valprint.c: Update copyright notice.
6565 Include gdb_string.h
6566 Include infcall.h
6567 (ui_memcpy): New function.
6568 (ada_print_floating): New function.
6569 (ada_print_str): Order arguments correctly.
6570 Correct handling of empty arrays and arrays of 0-length items.
6571 ada_is_array_descriptor => ada_is_array_descriptor_type
6572 Print values of type System.Address in hexadecimal format.
6573 Use ada_print_floating to print floating-point numbers in Ada format.
6574 Print class tag values with type names.
6575 No longer print the address of reference values. Avoids
6576 a potential confusion.
6577 (ada_value_print): Stop printing the object type for reference
6578 values, but preserve that behavior for access types. Avoids
6579 a potential confusion.
6580 Simplify one conditional expression, as the first part is now
6581 necessarily true.
6582 ada_is_array_descriptor => ada_is_array_descriptor_type
6583 Add check for arrays for null records, and print them by hand.
4c4b4cd2 6584
f65f91b5
JB
65852004-06-01 Jim Blandy <jimb@redhat.com>
6586
6587 * ppc-tdep.h: Delete unused 'regoff' member.
6588 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6589
d4687fa0
MC
65902004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6591
6592 Fix PR symtab/1661.
6593 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6594 (hpread_read_struct_type): Likewise.
6595
de169ec9
AC
65962004-06-01 Andrew Cagney <cagney@gnu.org>
6597
c6902d46
AC
6598 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6599 instead of xasprintf.
6600 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6601 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6602 (mi_cmd_data_list_register_names)
6603 (mi_cmd_data_list_changed_registers)
6604 (mi_cmd_data_list_register_values)
6605 (get_register, mi_cmd_data_write_register_values)
6606 (mi_cmd_data_write_register_values)
6607 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6608 (mi_cmd_target_download, mi_cmd_target_select)
6609 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6610 (mi_execute_cli_command, mi_execute_async_cli_command)
6611 (mi_execute_async_cli_command): Ditto.
6612 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6613 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6614
6085fc2d
AC
6615 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6616 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6617 error_last_message instead of mi_error_last_message.
6618 * mi/mi-main.c (mi_error_last_message): Delete function.
6619
de169ec9
AC
6620 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6621 "invalid number of columns" error. Delete redundant "out of
6622 memory" check.
6623
1fc7d519
MK
66242004-05-31 Mark Kettenis <kettenis@gnu.org>
6625
6cfb2041
MK
6626 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6627 (gregset_t, fpregset_t): Remove typedefs.
6628 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6629 (REG_OFFSET): Rename argument.
6630 (i386bsd_r_reg_offset): Rename from reg_offset.
6631 (REG_ADDR): Remove macro.
6632 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6633 functions.
6634 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6635 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6636 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6637 instead of supply_gregset.
6638 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6639 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6640 instead of fill_gregset.
6641 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6642
1fc7d519
MK
6643 * i386bsd-nat.c: Don't include "gregset.h".
6644 (supply_gregset, fill_gregset): Make static.
6645 (supply_fpregset, fill_fpregset): Remove.
6646 * Makefile.in (i386bsd-nat.o): Update dependencies.
6647
2c34abbe
MK
66482004-05-30 Mark Kettenis <kettenis@gnu.org>
6649
448724fb
MK
6650 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6651 "gdb_assert.h". Con't include "gregset.h".
6652 (fbsd_make_corefile_notes): Use regset-based core file support
6653 instead off fill_gregset and fill_fpregset.
6654 * Makefile.in (fbsd-proc.o): Update dependencies.
6655
5ca8ca7c
MK
6656 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6657 instructions.
6658 (m88k_frame_prev_register): Simplify code a bit.
6659
593adc23
MK
6660 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6661 (amd64_collect_fpregset): New function.
6662 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6663
8d1b517b
MK
6664 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6665
7fdafb5a
MK
6666 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6667 (i386_collect_gregset): New function.
6668 (i386_supply_fpregset): Adjust comment.
6669 (i386_collect_fpregset): New function.
6670 (i386_regset_from_core_section): Use i386_collect_gregset and
6671 i386_collect_fpregset.
6672
8693c419
MK
6673 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6674 handle VALUEP being null.
6675
2c34abbe
MK
6676 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6677
45d134d8
MK
66782004-05-29 Mark Kettenis <kettenis@gnu.org>
6679
1698f4e7
MK
6680 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6681
45d134d8
MK
6682 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6683 assembler in OpenBSD 3.5-current.
6684 (amd64obsd_sigcontext_addr): Likewise.
6685
691d145a
JB
66862004-05-28 Jim Blandy <jimb@redhat.com>
6687
6688 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6689 register set, so our regcache isn't declared "legacy" and our E500
6690 pseudoregister read and write functions aren't ignored.
6691 (rs6000_register_byte, rs6000_register_raw_size,
6692 rs6000_register_virtual_type, rs6000_register_convertible,
6693 rs6000_register_convert_to_virtual,
6694 rs6000_register_convert_to_raw): Deleted.
6695 (rs6000_register_type, rs6000_convert_register_p,
6696 rs6000_register_to_value, rs6000_value_to_register): New
6697 functions.
6698 (rs6000_gdbarch_init): Don't register
6699 gdbarch_deprecated_register_size,
6700 gdbarch_deprecated_register_bytes,
6701 gdbarch_deprecated_register_byte,
6702 gdbarch_deprecated_register_raw_size,
6703 gdbarch_deprecated_register_virtual_type,
6704 gdbarch_deprecated_register_convertible,
6705 gdbarch_deprecated_register_convert_to_virtual, or
6706 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6707 register gdbarch_register_type, gdbarch_convert_register_p,
6708 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6709
18ed0c4e
JB
67102004-05-26 Jim Blandy <jimb@redhat.com>
6711
6712 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6713 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6714 functions, updated to match the register numberings used in GCC.
6715 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6716 rs6000_dwarf2_reg_to_regnum as register number conversions
6717 functions for STABS and Dwarf2.
6718
779af9e3
RC
67192004-05-26 Randolph Chung <tausq@debian.org>
6720
6721 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6722 in header file.
6723
c23968a2
JB
67242004-05-25 Joel Brobecker <brobecker@gnat.com>
6725
6726 * NEWS: Document new "start" command.
6727
3a7d1c27
RC
67282004-05-25 Randolph Chung <tausq@debian.org>
6729
6730 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6731 hppa-linux.
6732
43613416
RC
67332004-05-25 Randolph Chung <tausq@debian.org>
6734
6735 * hppa-hpux-tdep.c (offsetof): Define.
6736 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6737 (hppa32_hpux_frame_base_before_sigtramp)
6738 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6739 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6740 (hppa64_hpux_frame_base_before_sigtramp)
6741 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6742 functions.
6743 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6744 (hppa_hpux_sigtramp_frame_unwind_cache)
6745 (hppa_hpux_sigtramp_frame_this_id)
6746 (hppa_hpux_sigtramp_frame_prev_register)
6747 (hppa_hpux_sigtramp_frame_unwind)
6748 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6749 (hppa_hpux_init_abi): Register sigtramp unwinder.
6750 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6751
6d1be3f1
RC
67522004-05-25 Randolph Chung <tausq@debian.org>
6753
6754 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6755 and multiple stack unwinds.
6756 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6757
97c34f65
AC
67582004-05-25 Andrew Cagney <cagney@gnu.org>
6759
6760 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6761 * symfile-mem.h: Delete file.
6762 * symfile-mem.c: Do not include "symfile-mem.h".
6763 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6764 "struct bfd_section". When an error do not bother returning NULL.
6765 (add_symbol_file_from_memory_command): Use "struct bfd" and
6766 "struct bfd_section".
6767 * Makefile.in (symfile_mem_h): Delete.
6768 (symfile-mem.o): Update dependencies.
6769
e23cbd82
NR
67702004-05-25 Nick Roberts <nickrob@gnu.org>
6771
6772 * gdb-mi.el: New file.
6773
20d2ca3e
AC
67742004-05-25 Andrew Cagney <cagney@gnu.org>
6775
6776 * inftarg.c: Include "observer.h".
6777 (child_attach, child_create_inferior): Notify inferior_created.
6778 * corelow.c: Include "observer.h".
6779 (core_open): Notify inferior_created.
6780 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6781
c27cda74
AC
67822004-05-25 Andrew Cagney <cagney@gnu.org>
6783
6784 * target.h (struct target_ops): Add from_tty to
6785 to_create_inferior.
6786 (target_create_inferior, find_default_create_inferior): Update.
6787 * infcmd.c (run_command): Update.
6788 * wince.c (child_create_inferior): Update.
6789 * win32-nat.c (child_create_inferior): Update.
6790 * uw-thread.c (uw_thread_create_inferior): Update.
6791 * thread-db.c (thread_db_create_inferior): Update.
6792 * target.c (debug_to_create_inferior)
6793 (find_default_create_inferior): Update.
6794 (maybe_kill_then_create_inferior): Update.
6795 * sol-thread.c (sol_thread_create_inferior): Update.
6796 * remote.c (extended_remote_async_create_inferior)
6797 (extended_remote_create_inferior): Update.
6798 * remote-vx.c (vx_create_inferior): Update.
6799 * remote-st.c (st2000_create_inferior): Update.
6800 * remote-sim.c (gdbsim_create_inferior): Update.
6801 * remote-sds.c (sds_create_inferior): Update.
6802 * remote-rdp.c (remote_rdp_create_inferior): Update.
6803 * remote-rdi.c (arm_rdi_create_inferior): Update.
6804 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6805 * remote-e7000.c (e7000_create_inferior): Update.
6806 * procfs.c (procfs_create_inferior): Update.
6807 * ocd.c (ocd_create_inferior): Update.
6808 * ocd.h (ocd_create_inferior): Update.
6809 * nto-procfs.c (procfs_create_inferior): Update.
6810 * monitor.c (monitor_create_inferior): Update.
6811 * lin-lwp.c (lin_lwp_create_inferior): Update.
6812 * inftarg.c (child_create_inferior): Update.
6813 * hpux-thread.c (hpux_thread_create_inferior): Update.
6814 * gnu-nat.c (gnu_create_inferior): Update.
6815
1db2a798
AC
68162004-05-25 Andrew Cagney <cagney@gnu.com>
6817
6818 * MAINTAINERS: Update e-mail address.
6819
007d08bb
RC
68202004-05-24 Randolph Chung <tausq@debian.org>
6821
6822 * thread.c (info_threads_command, thread_apply_all_command)
6823 (thread_apply_command, thread_command, do_captured_thread_select):
6824 Remove HPUXHPPA-specific code.
6825
69e7b95e
RC
68262004-05-24 Randolph Chung <tausq@debian.org>
6827
6828 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6829 unused symbols.
6830 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6831 references.
6832
a4d5f2e0
JB
68332004-05-24 Joel Brobecker <brobecker@gnat.com>
6834
6835 * infcmd.c (kill_if_already_running): New function, extracted
6836 from run_command().
6837 (run_command): Replace extracted code by call to
6838 kill_if_already_running().
6839 (start_command): New function.
6840 (_initialize_infcmd): Add "start" command.
6841
bf2ca189
MK
68422004-05-24 Mark Kettenis <kettenis@gnu.org>
6843
6844 Add OpenBSD/m88k support.
6845 * NEWS (New native configurations): Mention OpenBSD/m88k.
6846 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6847 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6848 * Makefile.in (m88k_tdep_h): New variable.
6849 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6850 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6851 * configure.host: Add m88*-*-openbsd*.
6852 * configure.tgt: Add m88*-*-openbsd*.
6853
80fadb11
JB
68542004-05-24 Jim Blandy <jimb@redhat.com>
6855
6856 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6857 to approve changes.
6858
19e2d14b
KB
68592004-05-24 Kevin Buettner <kevinb@redhat.com>
6860
6861 * symtab.c (fixup_section): Search section table when lookup by
6862 name fails.
6863
1b07b470
RC
68642004-05-24 Randolph Chung <tausq@debian.org>
6865
6866 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6867 be "small_struct".
6868
368702b1
MK
68692004-05-24 Mark Kettenis <kettenis@gnu.org>
6870
5df97fde
MK
6871 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6872 register number in regcache_raw_collect call.
6873 (m68kbsd_collect_fpregset): Likewise.
6874 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6875
368702b1
MK
6876 * regset.h (struct regset): Add back `regset' member.
6877
a770d4ec
MK
68782004-05-23 Mark Kettenis <kettenis@gnu.org>
6879
70f9f479
MK
6880 * configure.in: Check for td_pcb in `struct thread'.
6881 * configure, config.in: Regenerated.
6882
2e16d79e
MK
6883 * dpx2-nat.c: Remove file.
6884 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6885 (dpx2-nat.o): Remove dependencies.
6886
492cf391
MK
6887 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6888 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6889 (amd64obsd_supply_pcb): New function.
6890 (_initialize_amd64obsd_nat): Enable libkvm interface.
6891 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6892 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6893 (LOADLIBES): New variable.
6894
a770d4ec
MK
6895 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6896 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6897 (sparc32nbsd_supply_pcb): New function.
6898 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6899 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6900 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6901 (LOADLIBES): New variable.
6902
9ea75c57
MK
69032004-05-22 Mark Kettenis <kettenis@gnu.org>
6904
2e0c3539
MK
6905 * bsd-kvm.c, bsd-kvm.h: New files.
6906 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6907 "bsd-kvm.h".
6908 (i386fbsd_supply_pcb): New function.
6909 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6910 (i386fbsd-nat.o): Update dependencies.
6911 (bsd_kvm_h): New variable.
6912 (bsd-kvm.o): New dependency.
6913 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6914 (LOADLIBES): New variable.
6915
9ea75c57
MK
6916 * regset.c: Tweak comment.
6917 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6918 macro.
6919 * regset.h: Update copyright year.
6920 (struct regset): Remove `descr' member, add `gdbarch' member.
6921 (regset_alloc): Adjust prototype and comment.
6922 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6923 (i386_supply_fpregset): Likewise.
6924 (i386_regset_from_core_section): Update call to regset_alloc.
6925 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6926 REGSET->arch.
6927 (i386obsd_aout_regset_from_core_section): Update call to
6928 regset_alloc.
6929 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6930 REGSET->arch.
6931 (i386nbsd_aout_regset_from_core_section): Update call to
6932 regset_alloc.
6933 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6934 REGSET->arch.
6935 (amd64_regset_from_core_section): Update call to regset_alloc.
6936 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6937 REGSET->arch.
6938 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6939 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6940 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6941 (sparc32nbsd_init_abi): Update call to regset_alloc.
6942 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6943 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6944 (sparc64obsd_init_abi): Update call to regset_alloc.
6945 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6946 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6947 (sparc64nbsd_init_abi): Update call to regset_alloc.
6948 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6949 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6950 (sparc64fbsd_init_abi): Update call to regset_alloc.
6951
867e2dc5
JB
69522004-05-22 Jim Blandy <jimb@redhat.com>
6953
6954 * ppc-tdep.h (spe_register_p): New declaration.
6955 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6956 ppc_spefscr_regnum.
6957 * rs6000-tdep.c (spe_register_p): New function.
6958 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6959 spefscr.
6960 (rs6000_gdbarch_init): Initialize the new members of the tdep
6961 structure.
6962
617a4cba
JB
69632004-05-21 Jim Blandy <jimb@redhat.com>
6964
0397dee1
JB
6965 * ppc-linux-nat.c (fetch_register): Move code back to be next
6966 to the comment that describes it. (Moved code, instead of
6967 comment, for symmetry with store_register.)
6968
617a4cba
JB
6969 Allocate regset structures in the gdbarch's obstack, not using
6970 xmalloc.
6971 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6972 Add 'arch' argument. Allocate the regset on arch's obstack, not
6973 using xmalloc.
6974 * regset.h (regset_alloc): Update declaration.
6975 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6976 gdbarch argument.
6977 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6978 * i386-tdep.c (i386_regset_from_core_section): Same.
6979 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6980 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6981 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6982 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6983 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6984 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6985
9aa3914d
JB
69862004-05-21 Joel Brobecker <brobecker@gnat.com>
6987
6988 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6989
99c87dab
JB
69902004-05-21 Jim Blandy <jimb@redhat.com>
6991
6992 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6993 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6994
c2b6b4aa
JB
69952004-05-20 Jim Blandy <jimb@redhat.com>
6996
6997 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6998
144529d0
MK
69992004-05-20 Mark Kettenis <kettenis@gnu.org>
7000
7001 * regset.h: Make prototype const-correct.
7002 * regset.c (regset_xmalloc): Make const-correct.
7003
4725b721
PH
70042004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7005
7006 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7007 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7008 (symbol_search_name): Declare.
7009
7010 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7011 (iter_name_next_hashed): Ditto.
7012 (iter_name_next_linear): Ditto.
7013 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7014
7015 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7016 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7017 (symbol_search_name): New function.
7018
7019 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7020
7021 * minsyms.c (build_minimal_symbol_hash_tables): Change
7022 test for adding to demangled hash table to check for difference
7023 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7024
be07a590
JB
70252004-05-19 Jim Blandy <jimb@redhat.com>
7026
7027 Use a constructor function to create regset structures.
7028 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7029 (struct regset): Use supply_regset_ftype. Add new
7030 'collect_regset' member.
7031 (regset_xmalloc): New declaration.
7032 * regset.c: New file.
7033 * am64-tdep.c (amd64_regset_from_core_section): Use
7034 regset_xmalloc to construct regset structures.
7035 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7036 * i386-tdep.c (i386_regset_from_core_section): Same.
7037 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7038 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7039 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7040 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7041 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7042 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7043 * Makefile.in (COMMON_OBS): Add regset.o.
7044 (regset.o): New rule.
7045
604368f5
JB
70462004-05-19 Joel Brobecker <brobecker@gnat.com>
7047
7048 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7049 and pthread_cond_wait.c.
7050
82d69f8b
JB
70512004-05-18 Jim Blandy <jimb@redhat.com>
7052
7053 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7054 before the mach-specific switch, and then let the individual cases
7055 override the defaults, rather than leaving them uninitialized
7056 until the switch and then setting them in each case.
7057
5859efe5
RC
70582004-05-18 Randolph Chung <tausq@debian.org>
7059
7060 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7061 millicode functions.
7062
9ca80cf8
RC
70632004-05-18 Randolph Chung <tausq@debian.org>
7064
7065 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7066 references to dld_flags_buffer consistent.
7067
ed70ba00
RC
70682004-05-18 Randolph Chung <tausq@debian.org>
7069
7070 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7071 it for unwinding the stack.
7072
63100632
RC
70732004-05-18 Randolph Chung <tausq@debian.org>
7074
7075 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7076 Undefine these so we can overide them using gdbarch.
7077
090ccbb7
RC
70782004-05-18 Randolph Chung <tausq@debian.org>
7079
7080 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7081 handling for 64-bit HPUX (elf).
7082
594706e6
DJ
70832004-05-18 Daniel Jacobowitz <dan@debian.org>
7084
7085 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7086 constants.
7087 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7088 * ia64-tdep.c (examine_prologue): Likewise.
7089 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7090 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7091
e5483145
MK
70922004-05-18 Mark Kettenis <kettenis@gnu.org>
7093
7094 * vax-tdep.c (vax_return_value): Implement
7095 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7096
caed1a45
MK
70972004-05-17 Mark Kettenis <kettenis@gnu.org>
7098
7099 * vax-tdep.c (vax_return_value): Fix typo.
7100
3c0b7db2
AC
71012004-05-17 Andrew Cagney <cagney@redhat.com>
7102
5aae53e5
AC
7103 * MAINTAINERS: Mark Salter was also responsible for
7104 testsuite/config/
7105
3c0b7db2
AC
7106 * NEWS: Mention signal fixes.
7107
22b0923d
RC
71082004-05-17 Randolph Chung <tausq@debian.org>
7109
7110 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7111 check to see if we are unwinding an export stub. Export stubs clobber
7112 the %rp in the call path and stores the original rp in a stack slot.
7113
22f2b2f3
JB
71142004-05-17 Jim Blandy <jimb@redhat.com>
7115
7116 * MAINTAINERS: Update address for J.T. Conklin.
7117
cea96d64
RC
71182004-05-17 Randolph Chung <tausq@debian.org>
7119
7120 * hppa-tdep.c: Remove superfluous #include's.
7121 * Makefile.in (hppa-tdep.o): Update dependencies.
7122
f08f6a4a
RC
71232004-05-17 Randolph Chung <tausq@debian.org>
7124
7125 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7126 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7127 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7128 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7129 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7130 Remove static function declarations.
7131
51da707a
MK
71322004-05-17 Mark Kettenis <kettenis@gnu.org>
7133
caed1a45
MK
7134 * alphabsd-nat.c: Update copyright year.
7135 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7136
c0c2b0db
MK
7137 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7138 and M68K_A2_REGNUM.
7139
51da707a
MK
7140 * m68k-tdep.c (m68k_svr4_return_value): Implement
7141 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7142
8d027a04
MK
71432004-05-16 Mark Kettenis <kettenis@gnu.org>
7144
7145 * sol-thread.c Update copyright year. Fix various coding
7146 standards violations. Tweak a few comments.
7147 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7148 Delete prototypes.
7149
0d99fdb9
RC
71502004-05-15 Randolph Chung <tausq@debian.org>
7151
7152 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7153 as pointer instead of array reference since HPUX compiler does
7154 not accept unsized array arguments.
7155 * somsolib.c (dld_flags_buffer): Use constant array size.
7156
f7e3843a
MK
71572004-05-15 Mark Kettenis <kettenis@gnu.org>
7158
0fe85704
MK
7159 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7160 offset with decimal offset.
7161 (amd64obsd_sigcontext_addr): Return correct address for entire
7162 signal trampoline.
7163
a54f9a00
MK
7164 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7165 instead of get_frame_base.
7166
feae6502
MK
7167 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7168 (fill_gregset): Use regcache_raw_collect.
7169
0382d099
MK
7170 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7171 ppcobsd-tdep.c.
7172
f7e3843a
MK
7173 * config/sparc/tm-nbsd64.h: Remove file.
7174 * config/tm-sunos.h: Remove file.
7175
773df3e5
JB
71762004-05-15 Joel Brobecker <brobecker@gnat.com>
7177
7178 * rs6000-tdep.c (store_param_on_stack_p): New function,
7179 an improved version of some code extracted from skip_prologue().
7180 (skip_prologue): Use store_param_on_stack_p() to detect
7181 instructions saving a parameter on the stack. Detect when r0
7182 is used to save a parameter.
7183 Do not mark "li rx, SIMM" instructions as part of the prologue,
7184 unless the following instruction is also part of the prologue.
7185
95918acb
AC
71862004-05-14 Andrew Cagney <cagney@redhat.com>
7187
06f32659
AC
7188 * infrun.c (handle_inferior_event): Simplify
7189 STEP_OVER_UNDEBUGGABLE.
7190
95918acb
AC
7191 * infrun.c (handle_step_into_function): Delete function.
7192 (handle_inferior_event): Inline calls to
7193 handle_step_into_function.
7194
40711ff1 71952004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7196
7197 * rs6000-nat.c: Fix a comment.
7198
02f60eae
JB
71992004-05-12 David Anderson <davea@sgi.com>
7200
7201 Committed by Jim Blandy <jimb@redhat.com>:
7202 * regcache.c (struct regcache_descr): fix comment spelling.
7203
552e377b
JB
72042004-05-13 J. Brobecker <brobecker@gnat.com>
7205
7206 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7207 Fixes a link link failure.
7208
349766b2
JB
72092004-05-13 J. Brobecker <brobecker@gnat.com>
7210
7211 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7212 error that was causing the build to fail.
7213
0d4d5484
JB
72142004-05-13 J. Brobecker <brobecker@gnat.com>
7215
7216 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7217 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7218
0b30808c
AC
72192004-05-13 Andrew Cagney <cagney@redhat.com>
7220
7221 * infrun.c (handle_inferior_event): Check for
7222 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7223 calls. Update comments.
7224
cdf2c5f5
JB
72252004-05-13 Jim Blandy <jimb@redhat.com>
7226
063715bf
JB
7227 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7228 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7229 (store_regs_user_thread, store_regs_kernel_thread): Use
7230 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7231 * ppc-linux-nat.c (fill_gregset): Same.
7232 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7233 (ppc_linux_sigtramp_cache): Same.
7234 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7235 (ppcnbsd_sigtramp_cache_init): Same.
7236 * rs6000-nat.c (fetch_core_registers): Same.
7237 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7238 (rs6000_frame_cache): Same.
7239
cdf2c5f5
JB
7240 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7241 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7242 of assuming that the gprs are numbered starting with zero.
7243 * ppc-linux-nat.c (fill_gregset): Same.
7244 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7245 * ppcnbsd-nat.c (getregs_supplies): Same.
7246 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7247 * rs6000-nat.c (fetch_core_registers): Same.
7248 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7249
450bd37b
MS
72502004-05-07 Michael Snyder <msnyder@redhat.com>
7251
7252 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7253 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7254
4a72a2a6
AC
72552004-05-13 Andrew Cagney <cagney@redhat.com>
7256
7257 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7258
8edfa926
BM
72592004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7260
7261 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7262 base_address for shared libraries.
7263
723e0e3d
BM
72642004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7265
7266 * MAINTAINERS (write after approval): Add myself.
7267
00d4360e
UW
72682004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7269
7270 * breakpoint.c (bpstat_stop_status): Add new argument
7271 STOPPED_BY_WATCHPOINT. Use it instead of testing
7272 target_stopped_data_address agaist 0 to check whether
7273 or not we stopped due to a hardware watchpoint.
7274 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7275 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7276 with new argument.
7277
ec76baa5
JB
72782004-05-12 Jim Blandy <jimb@redhat.com>
7279
7280 * configure.in: When checking whether we should use the -bbigtoc
7281 option, don't forget to restore the original value of LDFLAGS.
7282 * configure: Regenerated.
7283
f2c9ca08
AC
72842004-05-12 Andrew Cagney <cagney@redhat.com>
7285
7286 * thread.c (load_infrun_state): Delete step_sp.
7287 * infrun.c (context_switch): Ditto.
7288 * inferior.h (step_sp): Ditto.
7289 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7290 * gdbthread.h (struct thread_info, save_infrun_state)
7291 (restore_infrun_state): Ditto.
7292
090ddb2a
UW
72932004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7294
7295 * MAINTAINERS (write after approval): Add myself.
7296
8aad930b
AC
72972004-05-12 Andrew Cagney <cagney@redhat.com>
7298
7299 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7300 eliminate reference to step_sp.
7301 (struct execution_control_state, init_execution_control_state)
7302 (handle_inferior_event, keep_going): Delete update_step_sp and
7303 step_sp.
7304 * infcmd.c (step_sp): Note that variable is unused.
7305
922d5ae0
AC
73062004-05-11 Andrew Cagney <cagney@redhat.com>
7307
7308 * infrun.c (step_over_function): Delete function.
7309 (handle_step_into_function): Use insert_step_resume_breakpoint.
7310 (insert_step_resume_breakpoint): Fix assertion.
7311
017c5ca5
NR
73122004-05-11 Nick Roberts <nickrob@gnu.org>
7313
7314 * utils.c (defaulted_query): Just use the normal query input type
7315 when printing the annotations.
7316
42edda50
AC
73172004-05-11 Andrew Cagney <cagney@redhat.com>
7318
7319 * infrun.c (handle_inferior_event): Simplify code handling
7320 step-into or return-from a signal trampoline.
7321
d28b44a7
AC
73222004-05-11 Andrew Cagney <cagney@redhat.com>
7323
7324 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7325 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7326
383f0f5b
JB
73272004-05-10 Jim Blandy <jimb@redhat.com>
7328
d0b57c3a
JB
7329 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7330 with a call to internal_error.
7331
383f0f5b
JB
7332 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7333 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7334 processor variant lacks those registers.
7335 (ppc_floating_point_unit_p): Change description to make it clear
7336 that this returns info about the ISA, not the ABI.
7337 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7338 return true or false by checking tdep->ppc_fp0_regnum and
7339 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7340 arch/mach switching done in rs6000_gdbarch_init; it's better to
7341 keep that logic there, and just check the results here.
7342 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7343 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7344 floating-point registers.
7345 (ppc_supply_fpregset, ppc_collect_fpregset)
7346 (rs6000_push_dummy_call, rs6000_extract_return_value)
7347 (rs6000_store_return_value): Assert that we have floating-point
7348 registers.
7349 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7350 (rs6000_frame_cache): Don't note the locations at which
7351 floating-point registers were saved if we have no fprs.
7352 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7353 registers.
7354 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7355 (store_regs_user_thread, store_regs_kernel_thread): Only call
7356 supply_fprs / fill_fprs if we actually have floating-point
7357 registers.
7358 (special_register_p): Check ppc_fpscr_regnum before matching
7359 against it.
7360 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7361 supply / collect fpscr if we don't have it.
7362 * ppc-bdm.c: #include "gdb_assert.h".
7363 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7364 have floating-point registers, since I can't test this code on
7365 FP-free systems to adapt it.
7366 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7367 fpscr and floating point register numbers if they don't exist.
7368 (fetch_register): Assert that we have floating-point registers
7369 before we reach the code that handles them.
7370 (store_register): Same. And use tdep instead of calling
7371 gdbarch_tdep again.
7372 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7373 don't have them.
7374 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7375 fprs and fpscr if we don't have them.
7376 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7377 don't have them.
7378 * ppcnbsd-nat.c: #include "gdb_assert.h".
7379 (getfpregs_supplies): Assert that we have floating-point registers.
7380 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7381 * ppcobsd-tdep.c: #include "gdb_assert.h".
7382 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7383 have floating-point registers.
7384 * rs6000-nat.c (regmap): Don't match against the fpscr and
7385 floating point register numbers if they don't exist.
7386 (fetch_inferior_registers, store_inferior_registers,
7387 fetch_core_registers): Only fetch / store / supply the
7388 floating-point registers and the fpscr if we have them.
7389 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7390 (ppcobsd-tdep.o): Update dependencies.
7391
15960608
AC
73922004-05-10 Andrew Cagney <cagney@redhat.com>
7393
7394 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7395 (context_switch): Do not switch through_sigtramp_breakpoint.
7396 * gdbthread.h (save_infrun_state, load_infrun_state)
7397 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7398 and structure member.
7399 * thread.c (load_infrun_state, save_infrun_state): Update.
7400
5ab5aa0f
MK
74012004-05-10 Mark Kettenis <kettenis@gnu.org>
7402
7403 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7404
da78b0e7
DJ
74052004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7406
7407 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7408 throughout.
7409 * aclocal.m4: Regenerate.
7410
cca0d3b0
NW
74112004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7412
7413 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7414
d303a6c7
AC
74152004-05-10 Andrew Cagney <cagney@redhat.com>
7416
7417 * infrun.c (check_sigtramp2): Delete function.
7418 (handle_inferior_event): When single stepping, and taking a
7419 signal, set a breakpoint at the signal return address. Delete
7420 redundant calls to check_sigtramp2.
7421 (insert_step_resume_breakpoint): New function.
7422 (through_sigtramp_breakpoint, handle_inferior_event)
7423 (follow_exec, wait_for_inferior, fetch_inferior_event)
7424 (currently_stepping, keep_going): Delete most uses of
7425 through_sigtramp_breakpoint, not that it should be deleted.
7426 (delete_breakpoint_current_contents): Delete function.
7427
03f4cc20
RC
74282004-05-10 Randolph Chung <tausq@debian.org>
7429
7430 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7431 target.
7432 * config/pa/tm-linux.h: New file.
7433
37fc812e
DJ
74342004-05-10 Daniel Jacobowitz <drow@mvista.com>
7435
7436 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7437 of prefixes. Don't print the prefix twice in the CLI.
7438
26c0b942
JB
74392004-05-10 Jim Blandy <jimb@redhat.com>
7440
2e56e9c1
JB
7441 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7442 collect all the gprs.
7443
26c0b942
JB
7444 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7445 loop collecting gprs.
7446
dc497459
AC
74472004-05-09 Andrew Cagney <cagney@redhat.com>
7448
7449 * remote-vx.c (net_step): Delete step-range code.
7450 * remote.c (remote_resume, init_all_packet_configs)
7451 (set_remote_protocol_E_packet_cmd)
7452 (show_remote_protocol_E_packet_cmd)
7453 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7454 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7455 (show_remote_protocol_e_packet_cmd): Ditto.
7456
0543f387
MK
74572004-05-09 Mark Kettenis <kettenis@gnu.org>
7458
c481d1ca
MK
7459 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7460
f626a069
MK
7461 * hppa-tdep.h: Update copyright year.
7462 (struct trad_frame_saved_reg): Add opaque declaration.
7463
6fa57a7d
MK
7464 * amd64-tdep.c (amd64_return_value): Implement
7465 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7466
e47577ab
MK
7467 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7468 (m68k_value_to_register): New functions.
7469 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7470 value_to_register.
7471
31db7b6c
MK
7472 * defs.h (enum return_value_convention): Add
7473 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7474 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7475 * infcmd.c (legacy_return_value): New function.
7476 (print_return_value): Rwerite to implement
7477 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7478 * values.c (using_struct_return): Check for inequality to
7479 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7480 RETURN_VALUE_STRUCT_CONVENTION.
7481 * i386-tdep.c (i386_return_value): Implement
7482 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7483
0543f387
MK
7484 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7485 include "symtab.h", "opcode/vax.h" and "inferior.h".
7486 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7487 to read_memory_unsigned_integer.
7488 (vax_gdbarch_init): Reorder.
7489 (_initialize_vax_tdep): Spell out prototype.
7490 * Makefile.in (vax-tdep.o): Update dependencies.
7491
0c93b7b6
AC
74922004-05-08 Andrew Cagney <cagney@redhat.com>
7493
e6b55ae2
AC
7494 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7495 * target.c (target_detach, target_disconnect): Ditto.
7496
1ac839b8
AC
7497 * infcall.c (call_function_by_hand): When no
7498 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7499 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7500 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7501 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7502 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7503
28954179
AC
7504 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7505 * gdbarch.h, gdbarch.c: Re-generate.
7506 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7507 deprecated_fix_call_dummy.
7508 * v850-tdep.c (v850_gdbarch_init): Ditto.
7509 * infcall.c (call_function_by_hand): Do not call
7510 DEPRECATED_FIX_CALL_DUMMY.
7511
434b87dd
AC
7512 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7513 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7514 * gdbarch.h, gdbarch.c: Re-generate.
7515 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7516 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7517 deprecated_sizeof_call_dummy_words.
7518 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7520 * v850-tdep.c (v850_gdbarch_init): Ditto.
7521 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7522 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7523 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7525 * arch-utils.h (legacy_call_dummy_words)
7526 (legacy_sizeof_call_dummy_words): Delete declarations.
7527 * arch-utils.c (legacy_call_dummy_words)
7528 (legacy_sizeof_call_dummy_words): Delete variables.
7529
58d28df8
AC
7530 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7531 * gdbarch.h, gdbarch.c: Re-generate.
7532 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7533 * infcall.c (call_function_by_hand): Eliminate call to
7534 DEPRECATED_PUSH_DUMMY_FRAME.
7535 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7536 push_dummy_frame.
7537 (ns32k_push_dummy_frame): Delete function.
7538
e4a2df64
AC
7539 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7540 deprecated_call_dummy_breakpoint_offset or
7541 deprecated_call_dummy_start_offset.
7542 * dummy-frame.c, arm-tdep.c: Update comments.
7543 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7544 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7545 * gdbarch.h, gdbarch.c: Re-generate.
7546
d3712828
AC
7547 * infcall.c (legacy_push_dummy_code): Delete function.
7548 (push_dummy_code): Delete call.
7549
7a882905
AC
7550 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7551 * gdbarch.h, gdbarch.c: Re-generate.
7552 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7553 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7554 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7555 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7556
0ec5872b
AC
7557 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7558 (struct frame_info): Delete opaque declaration.
7559 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7560 * frame.c (get_frame_type): Delete call.
7561
0c93b7b6
AC
7562 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7563 pc_in_call_dummy.
7564 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7565 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7566
75536971
MK
75672004-05-08 Mark Kettenis <kettenis@gnu.org>
7568
527ca6bb
MK
7569 * alphanbsd-tdep.c: Include "gdb_string.h".
7570 * armnbsd-tdep.c: Update copyright year.
7571 Include "gdb_string.h".
7572 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7573 dependencies.
7574
d39fdc61
MK
7575 * delta68-nat.c: Remove file.
7576 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7577 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7578 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7579 (delta68-nat.o): Remove dependency.
7580
75536971
MK
7581 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7582 function.
7583 (m68k_gdbarch_init): Don't set
7584 deprecated_frameless_function_invocation.
7585
f4ca1d1f
RC
75862004-05-07 Randolph Chung <tausq@debian.org>
7587
7588 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7589 read_memory_nobpt for code reading when doing frame unwinding.
7590 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7591
2f0e8c7a
RC
75922004-05-07 Randolph Chung <tausq@debian.org>
7593
7594 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7595 instead of sp, handle sigaltstack case.
7596 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7597 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7598 signal handler and not that of the caller.
7599 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7600 hppa_linux_sigtramp_find_sigcontext.
7601
959464ff
RC
76022004-05-07 Randolph Chung <tausq@debian.org>
7603
7604 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7605 hppa-linux-nat.c.
7606 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7607 * hppa-linux-nat.c (fetch_register, store_register): Define.
7608 (fetch_inferior_registers, store_inferior_registers): Define.
7609 (supply_gregset): Add comment and clean up some unneeded code.
7610 (fill_gregset): Add comment and fix so that it saves registers in
7611 the right place in the gregset.
7612 (fill_fpregset): Fix buffer overrun problem.
7613 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7614
0da28f8a
RC
76152004-05-07 Randolph Chung <tausq@debian.org>
7616
7617 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7618 do common handling of the pcoqt register.
7619 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7620 to use helper function.
7621 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7622 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7623 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7624 generic fallback unwinder when all else fails.
7625 (hppa_gdbarch_init): Add fallback sniffer.
7626 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7627 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7628 to use helper function.
7629
b9ec757a
JB
76302004-05-08 Joel Brobecker <brobecker@gnat.com>
7631
7632 * config/djgpp/fnchange.lst: Add translation rules for
7633 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7634
756e95f1
MK
76352004-05-08 Mark Kettenis <kettenis@gnu.org>
7636
7637 * frame.c (get_prev_frame_1): Work around GCC bug.
7638 * frame.h: Add comment about GCC bug.
7639
2b4855ab
AC
76402004-05-07 Andrew Cagney <cagney@redhat.com>
7641
7642 * observer.c: Include "commands.h" and "gdbcmd.h".
7643 (observer_debug, _initialize_observer): Add the
7644 command "set/show debug observer".
7645 * observer.sh: When observer debugging, log notify calls.
7646 * Makefile.in (observer.o): Update dependencies.
7647
ba3e8e46
JM
76482004-05-07 Jason Molenda (jmolenda@apple.com)
7649
7650 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7651
16796152
JB
76522004-05-07 Jim Blandy <jimb@redhat.com>
7653
daf6dc85
JB
7654 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7655 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7656 to recognize gpr regnums, instead of assuming that
7657 tdep->ppc_fp0_regnum marks the end of the general-purpose
7658 registers.
7659
16796152
JB
7660 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7661 the given architecture has floating-point registers.
7662
c69b8bfc
AC
76632004-05-07 Andrew Cagney <cagney@redhat.com>
7664
7665 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7666 macro defined to 1.
7667 * gdbarch.h, gdbarch.c: Re-generate.
7668 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7669 deprecated_use_generic_dummy_frames.
7670
7243600a
BF
76712004-05-07 Brian Ford <ford@vss.fsi.com>
7672
7673 * NEWS: Mention Cygwin DWARF 2 support.
7674
73c1e0a1
AC
76752004-05-07 Andrew Cagney <cagney@redhat.com>
7676
7677 * objfiles.h (struct entry_info): Delete unused fields
7678 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7679 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7680 * mipsread.c (mipscoff_symfile_read): Update.
7681 * mdebugread.c (parse_partial_symbols): Update.
7682 * dwarfread.c (read_file_scope): Update.
7683 * dwarf2read.c (read_file_scope): Update.
7684 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7685 * coffread.c (complete_symtab): Update.
7686
1d3056ac
MK
76872004-05-07 Mark Kettenis <kettenis@gnu.org>
7688
7689 * infcall.c (_initialize_infcall): Fix typo.
7690
15170568
AC
76912004-05-07 Andrew Cagney <cagney@redhat.com>
7692
7693 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7694 * command.h (add_setshow_zinteger_cmd): Declare.
7695
34f75cc1
RC
76962004-05-06 Randolph Chung <tausq@debian.org>
7697
7698 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7699 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7700 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7701 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7702 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7703 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7704 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7705 definitions ...
7706 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7707 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7708 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7709 (hppa64_hpux_frame_find_saved_regs_in_sig)
7710 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7711 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7712 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7713 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7714 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7715 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7716 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7717 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7718 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7719 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7720 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7721 (hppa32_register_type, hppa_cannot_store_register)
7722 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7723 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7724 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7725 * pa64solib.c (pa64_solib_have_load_event)
7726 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7727 (pa64_solib_unloaded_library_pathname): Likewise.
7728 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7729 (som_solib_library_pathname): Likewise.
7730
0a5e7efe
JI
77312004-05-05 Jim Ingham <jingham@apple.com>
7732
7733 * breakpoint.c (create_breakpoints): Copy the ignore count and
7734 thread id over from the pended breakpoint to the actual
7735 breakpoint.
7736
10a4b113
AC
77372004-05-05 Andrew Cagney <cagney@redhat.com>
7738
7739 * gdbarch.sh (PARM_BOUNDARY): Delete.
7740 gdbarch.h, gdbarch.c: Re-generate.
7741 * valops.c (PARM_BOUNDARY): Delete macro.
7742 (value_push): Delete PARM_BOUNDARY code.
7743 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7744
366f009f
JB
77452004-05-04 Jim Blandy <jimb@redhat.com>
7746
32b99774
JB
7747 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7748 Don't assume that the gprs, fprs, and UISA sprs are
7749 contiguous, start at register number zero, and end with fpscr.
7750 Instead, use the numbers from the tdep structure.
7751
366f009f
JB
7752 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7753 should no longer be used in code specific to the RS6000 and its
7754 derivatives.
7755 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7756 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7757 tdep->ppc_fp0_regnum.
7758 (ppc_supply_fpregset, ppc_collect_fpregset)
7759 (rs6000_push_dummy_call, rs6000_extract_return_value)
7760 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7761 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7762 FP0_REGNUM.
7763 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7764 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7765 Same.
7766 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7767 bdm_ppc_store_registers): Same.
7768 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7769 (store_register, fill_fpregset): Same.
7770 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7771 (ppc_linux_supply_fpregset): Same.
7772 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7773 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7774 Same.
7775 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7776 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7777 ppc64_sysv_abi_return_value): Same.
7778 * rs6000-nat.c (regmap, fetch_inferior_registers)
7779 (store_inferior_registers, fetch_core_registers): Same.
7780
827f338d
MK
77812004-05-01 Mark Kettenis <kettenis@gnu.org>
7782
7783 * m68knbsd-nat.c: Remove file.
7784 * m68knbsd-tdep.c: Remove file.
7785 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7786 dependencies.
7787 * configure.host: Add m68k-*-netbsdelf*.
7788 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7789 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7790 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7791 (XM_FILE): Remove.
7792 * config/m68k/nbsdelf.mh: New file.
7793 * config/m68k/nbsd.mt: New file.
7794 * config/m68k/nbsdaout.mt: Remove file.
7795 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7796 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7797 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7798 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7799 (use_struct_convention): Remove prototype.
7800 (USE_STRUCT_CONVENTION): Remove define.
7801 * config/m68k/xm-nbsd.h: Remove file.
7802
66894781
MS
78032004-05-04 Michael Snyder <msnyder@redhat.com>
7804
7805 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7806 reg_struct_return method (as gcc usually does for cross targets).
7807
f0f63663
AC
78082004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7809
7810 Committed by Andrew Cagney.
7811 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7812 alignment padding when accessing ucontext struct members.
7813
edf61169
JB
78142004-05-04 Jim Blandy <jimb@redhat.com>
7815
8bf659e8
JB
7816 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7817 'ppc_gplast_regnum' member.
7818 (ppc_num_gprs): New enum constant.
7819 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7820 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7821 * rs6000-nat.c (regmap, fetch_inferior_registers,
7822 store_inferior_registers): Same.
7823 * rs6000-tdep.c (e500_pseudo_register_read)
7824 (e500_pseudo_register_write): Same.
7825 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7826
b967e06f
JB
7827 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7828 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7829 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7830 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7831 FPLAST_REGNUM.
7832 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7833 Same.
7834 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7835 * rs6000-nat.c (regmap, fetch_inferior_registers)
7836 (store_inferior_registers): Same.
7837
edf61169
JB
7838 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7839 with FPLAST_REGNUM.
7840
58a9656e
JB
78412004-05-03 Joel Brobecker <brobecker@gnat.com>
7842
7843 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7844 failure detected by recent versions of GCC.
7845 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7846 to be consistent with the usage in dwarf2_create_include_psymtab.
7847
dc305454
MS
78482004-05-03 Michael Snyder <msnyder@redhat.com>
7849
7850 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7851 (heuristic_proc_start): Whitespace cleanup.
7852
29972665
MK
78532004-05-04 Mark Kettenis <kettenis@gnu.org>
7854
6b57680d
MK
7855 * sun3-nat.c: Remove file.
7856 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7857 dependencies.
7858 (ALLDEPFILES): Remove sun3-nat.c.
7859 (sun3-nat.o): Remove dependencies.
7860
29972665
MK
7861 * i386-interix-nat.c, i386-interix-tdep.c,
7862 config/i386/nm-interix.h, config/i386/interix.mh,
7863 config/i386/interix.mt: Remove files.
7864 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7865 dependencies.
7866
f595cb19
MK
78672004-05-03 Mark Kettenis <kettenis@gnu.org>
7868
7869 * m68k-tdep.h (struct gdbarch_tdep): Add member
7870 struct_value_regnum.
7871 (m68k_svr4_init_abi): New prototype.
7872 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7873 different calling conventions.
7874 (m68k_extract_return_value): Remove code dealing with single-field
7875 structs.
7876 (m68k_store_return_value): Remove code dealing with single-field
7877 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7878 (m68k_extract_struct_value_address): Remove function.
7879 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7880 (m68k_reg_struct_return_p, m68k_return_value)
7881 (m68k_svr4_return_value): New functions.
7882 (m68k_use_struct_convention): Remove function.
7883 (m68k_push_dummy_call): Use new struct_value_regnum member of
7884 `struct gdbarch_tdep' instead of hardcoded register number to
7885 store STRUCT_ADDR.
7886 (m68k_svr4_init_abi): New function.
7887 (m68k_gdbarch_init): Don't set extract_return_value,
7888 store_return_values, deprecated_extract_struct_value_address and
7889 use_struct_convention. Set return_value instead. Initialize new
7890 struct_value_regnum member of `struct gdbarch_tdep'.
7891 * m68klinux-tdep.c: Update copyright year.
7892 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7893 (m68k_linux_extract_struct_value_address): Remove function.
7894 (m68k_linux_init_abi): Don't set extract_return_value,
7895 store_return_values, deprecated_extract_struct_value_address and
7896 use_struct_convention. Call m68k_svr4_init_abi but override the
7897 new struct_value_regnum member of `struct gdbarch_tdep'.
7898 * Makefile.in (m68k-tdep.o): Update dependencies.
7899
aaa75496
JB
79002004-05-03 J. Brobecker <brobecker@gnat.com>
7901
7902 * dwarf2read.c (line_header): Add new included_p field in
7903 field file_names.
7904 (partial_die_info): New field has_stmt_list. New field line_offset.
7905 (dwarf2_create_include_psymtab): New function.
7906 (dwarf2_build_include_psymtabs): New function.
7907 (add_file_name): Add forward declaration. Initialize new field.
7908 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7909 to be able to determine the list of files included by the
7910 given unit, and build their associated psymtabs.
7911 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7912 files as well.
7913 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7914 (read_file_scope): Update call to dwarf_decode_lines.
7915 (read_partial_die): Handle DW_AT_stmt_list attributes.
7916
c848556f
MC
79172004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7918
7919 Unfix PR gdb/1626.
7920 * configure.in: Revert special case for osf5.*.
7921 * configure: Regenerate.
7922
eb4556d7
JB
79232004-05-02 Jim Blandy <jimb@redhat.com>
7924
7925 Move the symbol-file-from-memory functions into their own file.
7926 * symfile-mem.c, symfile-mem.h: New files.
7927 * symfile.c (symbol_file_add_from_bfd): New function.
7928 (symbol_file_add): Call symbol_file_add_from_bfd.
7929 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7930 Moved to symfile-mem.c.
7931 (_initialize_symfile): Move definition of
7932 add-symbol-file-from-memory command to symfile-mem.c.
7933 * symfile.h (symbol_file_add_from_bfd): New declaration.
7934 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7935 * config/powerpc/linux.mt (TDEPFILES): Same.
7936 * Makefile.in (SFILES): Add symfile-mem.c.
7937 (symfile_mem_h): New variable.
7938 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7939 (symfile-mem.o): New rule.
7940
80bb239e
AC
79412004-05-01 Andrew Cagney <cagney@redhat.com>
7942
7789d0fa
AC
7943 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7944 frame_find_by_id instead of frame_relative_level.
7945 (do_enable_breakpoint): Ditto.
7946 * thread.c: Update copyright.
7947 (info_threads_command): Ditto, simplify.
7948
80bb239e
AC
7949 * frame.c (deprecated_generic_get_saved_register): Delete
7950 function, moved to "xstormy16-tdep.c".
7951 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7952 deprecated_generic_get_saved_register from "frame.c".
7953 (xstormy16_frame_saved_register): Call
7954 xstormy16_get_saved_register.
7955 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7956 static.
7957 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7958 * frame.h (deprecated_generic_get_saved_register): Delete.
7959
b2a871dd
MC
79602004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7961
7962 * dwarfread.c: Update documentation on the state of dwarf-1.
7963
0e100dab
AC
79642004-05-01 Andrew Cagney <cagney@redhat.com>
7965
acd8056e
AC
7966 * stack.c (select_frame_command): Delete call to
7967 frame_relative_level.
7968 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7969 Delete #if0 code.
7970 (frame_info): Do not print FRAMELESS.
7971 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7972 (catch_info): Delete #if0 code.
7973
0e100dab
AC
7974 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7975 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7976 of frame_relative_level.
7977 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7978 to SENTINEL_FRAME.
7979 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7980 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7981 frame_relative_level.
7982
55699d59
AC
7983 * frame.h (deprecated_set_frame_type): Delete declaration.
7984 * frame.c (deprecated_set_frame_type): Delete function, update
7985 comments.
7986
fcf70625
AC
7987 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7988 * gdbarch.h, gdbarch.c: Re-generate.
7989 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7990 (shnbsd_pc_in_sigtramp): Delete.
7991 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7992 pc_in_sigtramp.
7993 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7994 pc_in_sigtramp.
7995 * frame.h: Update comments.
7996 * ppc-linux-tdep.c: Update comments.
7997 * breakpoint.c (bpstat_what): Update comments.
7998
ac5eccb7
AC
7999 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8000 m68klinux-tdep.o's dependencies, were previously added to
8001 m68klinux-nat.o.
8002
f2524b93
AC
8003 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8004 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8005 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8006 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8007 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8008
17e20bce
AC
8009 * Makefile.in (m68klinux-nat.o): Update dependencies.
8010 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8011 (m68k_linux_sigtramp_frame_cache)
8012 (m68k_linux_sigtramp_frame_this_id)
8013 (m68k_linux_sigtramp_frame_prev_register)
8014 (m68k_linux_sigtramp_frame_unwind)
8015 (m68k_linux_sigtramp_frame_sniffer)
8016 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8017 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8018 names, use trad-frame.h.
8019 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8020 (struct m68k_sigtramp_info): Delete.
8021 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8022 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8023 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8024 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8025 "m68klinux-tdep.c".
8026
c8864fa2
AC
8027 * infrun.c (check_sigtramp2): Delete check for
8028 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8029
511dd2cd
MK
80302004-05-01 Mark Kettenis <kettenis@gnu.org>
8031
8032 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8033
8c6b0e06
AC
80342004-05-01 Andrew Cagney <cagney@redhat.com>
8035
9df0bb3f
AC
8036 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8037 (frv_linux_sigtramp_frame_cache)
8038 (frv_linux_sigtramp_frame_this_id)
8039 (frv_linux_sigtramp_frame_prev_register)
8040 (frv_linux_sigtramp_frame_unwind)
8041 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8042 include "linux" in function and variable names, directly call
8043 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8044 the latest trad-frame code.
8045 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8046 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8047 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8048 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8049 * frv-tdep.c (frv_sigtramp_frame_cache)
8050 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8051 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8052 frv-linux-tdep.c.
8053 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8054 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8055 (frv_set_sigcontext_reg_addr): Delete function.
8056
8c6b0e06
AC
8057 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8058 (DEPRECATED_SIGTRAMP_END): Delete.
8059 * gdbarch.h, gdbarch.c: Re-generate.
8060 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8061 * config/vax/tm-vaxbsd.h: Update copyright.
8062 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8063 (DEPRECATED_IN_SIGTRAMP): Define.
8064 * config/m68k/tm-nbsd.h: Update copyright.
8065 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8066 (DEPRECATED_IN_SIGTRAMP): Define.
8067
50ea7769
MK
80682004-05-01 Mark Kettenis <kettenis@gnu.org>
8069
03ac2a74
MK
8070 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8071 encondings. Fixes PR gdb/1628.
8072
50ea7769
MK
8073 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8074 DW_CFA_restore state without a matching DW_CFA_remember_state
8075 instead of aborting. Fixes PR backtrace/1589.
8076
9a5d7be1
JB
80772004-04-30 Joel Brobecker <brobecker@gnat.com>
8078
8079 * MAINTAINERS: Add self as AIX maintainer.
8080 Update my e-mail address in write-after-approval section.
8081
2593d1cd
AC
80822004-04-30 Andrew Cagney <cagney@redhat.com>
8083
ce12bbf9
AC
8084 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8085 (legacy_get_prev_frame): Ditto.
8086
36710c63
AC
8087 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8088 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8089 * mipsread.c (sigtramp_address): Delete extern variable.
8090 (mipscoff_new_init): Delete reference.
8091 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8092 (fixup_sigtramp): Delete function.
8093 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8094 (fixup_sigtramp): Delete declarations.
8095
2593d1cd
AC
8096 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8097 deprecated_pc_in_sigtramp.
8098 (ppcnbsd_pc_in_sigtramp): Delete function.
8099
2a25f91c
MK
81002004-05-01 Mark Kettenis <kettenis@gnu.org>
8101
8102 * config/m68k/nm-nbsd.h: Tweak comments.
8103 * config/m68k/nm-nbsdaout.h: Likewise.
8104
0b281939
AC
81052004-04-30 Andrew Cagney <cagney@redhat.com>
8106
8107 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8108 legacy_pc_in_sigtramp.
8109 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8110
8f2d3ea0
MK
81112004-05-01 Mark Kettenis <kettenis@gnu.org>
8112
8113 Add OpenBSD/m68k support.
8114 * NEWS (New native configurations): Mention OpenBSD/m68k.
8115 * m68kbsd-tdep.c: New file.
8116 * m68kbsd-nat.c: New file.
8117 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8118 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8119 * configure.host: Add m68k-*-openbsd.
8120 * configure.tgt: Add m68k-*-openbsd.
8121 * config/m68k/tm-obsd.h: New file.
8122 * config/m68k/obsd.mt: New file.
8123 * config/m68k/obsd.mh: New file.
8124 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8125 m68kbsd-tdep.c.
8126
c40f49a4
AC
81272004-04-30 Andrew Cagney <cagney@redhat.com>
8128
8129 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8130 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8131
e81554cd
MK
81322004-04-30 Mark Kettenis <kettenis@gnu.org>
8133
8134 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8135 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8136
d4dc1a91
BF
81372004-04-30 Brian Ford <ford@vss.fsi.com>
8138
8139 Revert 2004-04-16 change.
8140 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8141 (i386_coff_init_abi): Remove.
8142 * i386-tdep.h (i386_coff_init_abi): Remove.
8143 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8144
2f72f850
AC
81452004-04-30 Andrew Cagney <cagney@redhat.com>
8146
e492f9d6
AC
8147 * blockframe.c (find_pc_partial_function): Delete use of
8148 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8149 DEPRECATED_SIGTRAMP_END.
8150
7b7adad0
AC
8151 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8152 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8153 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8154 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8155 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8156
2f72f850
AC
8157 * defs.h (deprecated_inside_entry_file): Delete declaration.
8158 * blockframe.c (deprecated_inside_entry_file): Delete function.
8159 (legacy_frame_chain_valid): Delete call.
8160 * sh64-tdep.c (sh64_frame_chain): Delete call.
8161 * objfiles.h: Update comments.
8162 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8163 call.
8164 * frame.c (get_prev_frame): Delete call, update comments.
8165
283f90a7
BF
81662004-04-30 Brian Ford <ford@vss.fsi.com>
8167
8168 * MAINTAINERS (Write After Approval): Add myself.
8169
8ee56bcf
AC
81702004-04-30 Andrew Cagney <cagney@redhat.com>
8171
8172 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8173 * gdbarch.h, gdbarch.c: Re-generate.
8174 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8175 code.
8176
ee27e1b6
AC
81772004-04-30 Andrew Cagney <cagney@redhat.com>
8178
8179 * gdb-events.sh (selected_thread_changed)
8180 (selected_frame_level_changed, target_changed): Delete.
8181 * gdb-events.h, gdb-events.c: Re-generate.
8182 * valops.c (value_assign): Update.
8183 * stack.c (select_frame_command, up_silently_base)
8184 (down_silently_base): Update.
8185
d5ac5a39
AC
81862004-04-29 Andrew Cagney <cagney@redhat.com>
8187
8188 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8189 registers correctly.
8190 (print_gp_register_row, mips32_heuristic_proc_desc)
8191 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8192 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8193 references to mips_isa_regsize.
8194
ceae6e75
AC
81952004-04-29 Andrew Cagney <cagney@redhat.com>
8196
8197 * mips-tdep.c (struct gdbarch_tdep): Delete
8198 mips_fp_register_double.
8199 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8200 mips_abi_regsize.
8201 (mips_gdbarch_init): Do not set mips_fp_register_double.
8202 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8203
a587af0b
AC
82042004-04-29 Joel Brobecker <brobecker@gnat.com>
8205
8206 Committed by Andrew Cagney.
8207 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8208 function calls.
8209
13326b4e
AC
82102004-04-29 Andrew Cagney <cagney@redhat.com>
8211
8212 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8213 gdbarch, use mips_abi, update callers.
8214 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8215 mips_abi_regsize, update callers.
8216 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8217 mips_default_abi_regsize.
8218 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8219 mips_default_abi_regsize.
8220
711cc5cd
AC
82212004-04-29 Andrew Cagney <cagney@redhat.com>
8222
1b13c4f6
AC
8223 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8224 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8225 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8226 mips_default_abi_regsize.
8227 (mips_isa_regsize): Rename mips_regisze.
8228 * mipsnbsd-tdep.c: Update.
8229 * mips-linux-tdep.c: Update.
8230 * irix5-nat.c: Update.
8231 * mips-tdep.h (mips_isa_regsize): Update.
8232
711cc5cd
AC
8233 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8234 Delete all disabled code.
8235 * gdb-events.h, gdb-events.c: Re-generate.
8236
e63bbc88
MK
82372004-04-19 Jerome Guitton <guitton@gnat.com>
8238 Mark Kettenis <kettenis@gnu.org>
8239
8240 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8241 the function begins with a branch instruction.
8242
fd35795f
MK
82432004-04-29 Mark Kettenis <kettenis@gnu.org>
8244
8245 * i386-tdep.c: Fix spelling mistakes.
8246
c960c18f
AC
82472004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8248 Andrew Cagney <cagney@redhat.com>
8249
8250 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8251 <sys/proc.h>.
8252 * acconfig.h: Provide default _KMEMUSER value.
8253 * config.in, configure: Re-generate.
8254 * NEWS: Mention fix.
8255
50306a9d
RC
82562004-04-24 Randolph Chung <tausq@debian.org>
8257
8258 * configure.host (hppa*-*-linux*): New target.
8259 * configure.tgt (hppa*-*-linux*): Likewise.
8260 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8261 gdbarch_init_osabi() call earlier so that osabi-specific frame
8262 unwinders can be registered first.
8263 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8264 hppa-linux-nat.c.
8265 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8266 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8267 * config/pa/linux.mh: New file.
8268 * config/pa/linux.mt: New file.
8269 * config/pa/nm-linux.h: New file.
8270 * config/pa/xm-linux.h: New file.
8271 * hppa-linux-nat.c: New file.
8272 * hppa-linux-tdep.c: New file.
8273
2a6228ef
RC
82742004-04-28 Randolph Chung <tausq@debian.org>
8275
8276 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8277 return values.
8278 (hppa32_push_dummy_call): Fix small struct and floating point argument
8279 passing, and make sure the stack frame is properly aligned.
8280
82c10df6
AC
82812004-04-28 Andrew Cagney <cagney@redhat.com>
8282
d762c46a
AC
8283 * stack.c (print_stack_frame): Fix description.
8284
82c10df6
AC
8285 * NEWS: Mention gdb/gdbserver/configure execute permission
8286 changed. PR server/519.
8287
0faf0076
AC
82882004-04-28 Andrew Cagney <cagney@redhat.com>
8289
8290 * stack.c (print_stack_frame_stub): Delete declaration.
8291 (struct print_stack_frame_args, print_stack_frame)
8292 (print_frame_info, print_frame): Replace "source" with print what.
8293 Replace "print" with "print_level". Replace "args" with
8294 "print_args".
8295 * frame.h (show_and_print_stack_frame, print_stack_frame)
8296 (print_frame_info): Update declarations.
8297 * stack.c (select_and_print_frame, frame_command)
8298 (current_frame_command, up_command, down_command): Update calls -
8299 use get_selected_frame, pass "enum print_what" for source, do not
8300 call frame_relative_level.
8301 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8302 * remote-rdp.c (remote_rdp_open): Ditto.
8303 * remote-mips.c (common_open): Ditto.
8304 * remote-e7000.c (e7000_start_remote): Ditto.
8305 * ocd.c (ocd_start_remote): Ditto.
8306 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8307 * infrun.c (normal_stop): Ditto.
8308 * inflow.c (kill_command): Ditto.
8309 * infcmd.c (finish_command): Ditto.
8310 * corelow.c (core_open): Ditto.
8311 * tracepoint.c (finish_tfind_command): Ditto.
8312 * thread.c (info_threads_command, info_threads_command)
8313 (restore_current_thread, do_captured_thread_select): Ditto.
8314 * ada-tasks.c (task_command): Ditto.
8315
f4c5303c
OF
83162004-04-26 Orjan Friberg <orjanf@axis.com>
8317
8318 * frame.c: Include "observer.h".
8319 (frame_observer_target_changed): New function.
8320 (_initialize_frame): Attach target_changed observer.
8321 * regcache.c: Include "observer.h".
8322 (regcache_observer_target_changed): New function.
8323 (_initialize_regcache): Attach target_changed observer.
8324 * valops.c: Include "observer.h".
8325 (value_assign): Notify target_changed event when modifying register.
8326 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8327
7270d8f2
OF
83282004-04-26 Orjan Friberg <orjanf@axis.com>
8329
8330 From Paul Koning <pkoning@equallogic.com>:
8331 * breakpoint.c (free_valchain): New function.
8332 (insert_bp_location, delete_breakpoint): Use free_valchain.
8333 (remove_breakpoint): Do not remove the valchain.
8334 (bpstat_stop_status): If not stopped by watchpoint, skip
8335 watchpoints when generating stop status list.
8336 * infrun.c (handle_inferior_event): Make
8337 stepped_after_stopped_by_watchpoint a global variable.
8338 * remote.c (remote_stopped_data_address): Return watch data
8339 address rather than zero if stepped_after_stopped_by_watchpoint is
8340 set.
8341
02d62932
MC
83422004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8343
8344 Fix PR gdb/1626.
8345 * configure.in: Check for curses after termcap.
8346 On osf5.*, do not check for ncurses.
8347 * configure: Regenerate.
8348
3e9a183c
MK
83492004-04-25 Mark Kettenis <kettenis@gnu.org>
8350
c79ac407
MK
8351 * ppcobsd-nat.c: Include "ppc-tdep.h".
8352 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8353
3e9a183c
MK
8354 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8355 Fixes PR tdep/1623 and PR tdep/1624.
8356
38cc9c28
MC
83572004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8358
8359 * xmodem.h, xmodem.c: Remove files.
8360 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8361
7f07c5b6
RC
83622004-04-23 Randolph Chung <tausq@debian.org>
8363
8364 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8365 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8366 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8367 for handling stackless frames.
8368 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8369
9f7194c3
RC
83702004-04-23 Randolph Chung <tausq@debian.org>
8371
8372 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8373 starts at a pc before the frame is created.
8374
dcff6009
JB
83752004-04-23 Joel Brobecker <brobecker@gnat.com>
8376
8377 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8378
40711ff1 83792004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8380
8381 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8382 use convert_typed_floating to get the appropriate format.
8383
abc485a1
RC
83842004-04-22 Randolph Chung <tausq@debian.org>
8385
8386 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8387 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8388 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8389 (hppa_sign_extend): Add prototype.
8390 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8391 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8392 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8393 hppa targets will also use these functions.
8394 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8395 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8396 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8397 (hppa_gdbarch_init): Remove gdbarch setting of
8398 skip_trampoline_code, in_solib_call_trampoline and
8399 in_solib_return_trampoline.
8400 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8401 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8402 hppa_in_solib_call_trampoline.
8403 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8404 Moved from hppa-tdep.c.
8405 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8406 in_solib_call_trampoline and in_solib_return_trampoline.
8407
369aa520
RC
84082004-04-22 Randolph Chung <tausq@debian.org>
8409
8410 * hppa-tdep.c (hppa_debug): New variable.
8411 (find_unwind_entry, hppa_frame_cache): Add debug output.
8412 (_initialize_hppa_tdep): Add command to set debug flag.
8413
476be15e
AC
84142004-04-22 Andrew Cagney <cagney@redhat.com>
8415
8416 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8417 "trad-frame.h".
8418 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8419 signal trampoline unwinder.
8420 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8421
d195bc9f
MK
84222004-04-22 Mark Kettenis <kettenis@gnu.org>
8423
8424 Add OpenBSD/powerpc support.
8425 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8426 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8427 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8428 (ppc_collect_fpregset): New prototypes.
8429 * ppcobsd-nat.c: New file.
8430 * ppcobsd-tdep.c: New file.
8431 * ppcobsd-tdep.h: New file.
8432 * rs6000-tdep.c: Include "regset.h".
8433 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8434 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8435 New functions.
8436 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8437 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8438 (rs6000-tdep.o): Update dependencies.
8439 * configure.host: Add powerpc-*-openbsd.
8440 * configure.tgt: Add powerpc-*-openbsd.
8441 * config/powerpc/obsd.mh: New file.
8442 * config/powerpc/nm-obsd.h: New file.
8443 * config/powerpc/obsd.mt: New file.
8444
6f14cc33
AC
84452004-04-22 Andrew Cagney <cagney@redhat.com>
8446
fcf29e5f
AC
8447 * frame.h (show_frame_info): Delete declaration.
8448
6f14cc33
AC
8449 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8450 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8451 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8452 * frv-tdep.c (frv_frame_this_id): Ditto.
8453 * avr-tdep.c (avr_frame_this_id): Ditto.
8454
e5786a5c
EZ
84552004-04-22 Elena Zannoni <ezannoni@redhat.com>
8456
8457 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8458
26e75e5c
JB
84592004-04-22 Jim Blandy <jimb@redhat.com>
8460
8461 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8462 register number zero.
8463
d8d65dd3
MS
84642004-04-21 Michael Snyder <msnyder@redhat.com>
8465
8466 * mips-tdep.c (heuristic_proc_start):
8467 Warning() already prefixes "Warning: ".
8468
9a4105ab
AC
84692004-04-21 Andrew Cagney <cagney@redhat.com>
8470
8471 * annotate.h (deprecated_annotate_starting_hook)
8472 (deprecated_annotate_stopped_hook)
8473 (deprecated_annotate_exited_hook)
8474 (deprecated_annotate_signal_hook)
8475 (deprecated_annotate_signalled_hook): Deprecate.
8476 * tracepoint.h (deprecated_create_tracepoint_hook)
8477 (deprecated_delete_tracepoint_hook)
8478 (deprecated_modify_tracepoint_hook)
8479 (deprecated_trace_find_hook)
8480 (deprecated_trace_start_stop_hook): Deprecate.
8481 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8482 * remote.h (deprecated_target_resume_hook)
8483 (deprecated_target_wait_loop_hook): Deprecate.
8484 * gdbcore.h (deprecated_exec_file_display_hook)
8485 (deprecated_file_changed_hook): Deprecate.
8486 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8487 * defs.h (deprecated_modify_breakpoint_hook)
8488 (deprecated_command_loop_hook, deprecated_show_load_progress)
8489 (deprecated_print_frame_info_listing_hook)
8490 (deprecated_query_hook, deprecated_warning_hook)
8491 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8492 (deprecated_delete_breakpoint_hook)
8493 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8494 (deprecated_readline_begin_hook, deprecated_readline_hook)
8495 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8496 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8497 (deprecated_context_hook, deprecated_target_wait_hook)
8498 (deprecated_attach_hook, deprecated_detach_hook)
8499 (deprecated_call_command_hook, deprecated_set_hook)
8500 (deprecated_error_hook, deprecated_error_begin_hook)
8501 (deprecated_ui_load_progress_hook): Deprecate.
8502 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8503 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8504 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8505 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8506 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8507 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8508 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8509 * annotate.c, aix-thread.c: Update.
8510
62cf13cc
AC
85112004-04-21 Andrew Cagney <cagney@redhat.com>
8512
b2e31a62
AC
8513 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8514 * vaxnbsd-tdep.c: Include "gdb_string.h".
8515
62cf13cc
AC
8516 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8517 (add_symbol_file_from_memory_command): #if 0 function body, call
8518 error instead.
8519
00e32a35
AC
85202004-04-21 Andrew Cagney <cagney@redhat.com>
8521
8522 * gdbcore.h: Update copyright.
8523 (deprecated_add_core_fns): Rename add_core_fns.
8524 * win32-nat.c (_initialize_core_win32): Update.
8525 * sun3-nat.c (_initialize_core_sun3): Update.
8526 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8527 * rs6000-nat.c (_initialize_core_rs6000): Update.
8528 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8529 * nto-tdep.c (_initialize_nto_tdep): Update.
8530 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8531 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8532 * mips-nat.c (_initialize_core_mips): Update.
8533 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8534 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8535 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8536 * lynx-nat.c (_initialize_core_lynx): Update.
8537 * irix5-nat.c (_initialize_core_irix5): Update.
8538 * i386-interix-nat.c (_initialize_core_interix): Update.
8539 * cris-tdep.c (_initialize_cris_tdep): Update.
8540 * corelow.c (deprecated_add_core_fns): Update.
8541 * core-regset.c (_initialize_core_regset): Update.
8542 * core-aout.c (_initialize_core_aout): Update.
8543 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8544 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8545 * alpha-nat.c (_initialize_core_alpha): Update.
8546
13c7b1ca
JB
85472004-04-21 Jim Blandy <jimb@redhat.com>
8548
8549 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8550
7b5a2f43
DJ
85512004-04-19 Daniel Jacobowitz <drow@mvista.com>
8552
8553 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8554 Delete.
8555 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8556 (read_attribute_value): Update calls to dwarf_alloc_block.
8557 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8558 dwarf2_tmp_obstack.
8559 (psymtab_to_symtab_1): Likewise. Clean up using
8560 free_stack_comp_unit.
8561 (add_to_cu_func_list): Use the comp_unit_obstack.
8562
05cf31d1
JB
85632004-04-19 Joel Brobecker <brobecker@gnat.com>
8564
8565 * dwarf2read.c (dwarf2_flag_true_p): New function.
8566 (die_is_declaration): Use the function above. Add some comments.
8567
adf93a2f
MK
85682004-04-19 Mark Kettenis <kettenis@gnu.org>
8569
8570 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8571 architecture when registering sparcnbsd_core_osabi_sniffer.
8572 Adjust comment.
8573
748894bf
MK
85742004-04-18 Mark Kettenis <kettenis@gnu.org>
8575
f622ad42
MK
8576 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8577 return value.
8578
c4fc7f1b
MK
8579 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8580 * i386-tdep.c: Correct register numbering scheme comments
8581 throughout.
8582 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8583 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8584 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8585 (i386_gdb_arch_init): Likewise.
8586
b4ead1bd
MK
8587 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8588 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8589 ppcnbsd-tdep.o.
8590
748894bf
MK
8591 * m68k-tdep.h: Tweak comments.
8592 * m68k-tdep.c: Tweak comment.
8593
fdd72f95
RC
85942004-04-17 Randolph Chung <tausq@debian.org>
8595
8596 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8597 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8598 (hppa_hpux_som_init_abi): Set is_elf to 0.
8599 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8600 * hppa-tdep.c (low_text_segment_address): Remove global.
8601 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8602 section offset to calculate segment address.
8603 (internalize_unwinds): Define low_text_segment_address as local and
8604 pass to record_text_segment_lowaddr for ELF targets.
8605 (hppa_gdbarch_init): Zero fill tdep structure.
8606 (hppa_dump_tdep): Print tdep structure.
8607 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8608
0f8d9d59
RC
86092004-04-17 Randolph Chung <tausq@debian.org>
8610
8611 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8612 (hppa_gdbarch_init): Set pseudo_register_read.
8613 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8614 * regcache.c (supply_register): Remove check for
8615 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8616
7c46b9fb
RC
86172004-04-17 Randolph Chung <tausq@debian.org>
8618
8619 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8620 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8621 (hpread_adjust_stack_address): Move to hpread.c.
8622 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8623 obj_private_struct): Move from tm-hppa.h.
8624 * hpread.c (hppa-tdep.h): Include.
8625 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8626 (hpread_read_function_type, hpread_read_doc_function_type)
8627 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8628 directly.
8629 * pa64solib.c (hppa-tdep.h): Include.
8630 * somsolib.c (hppa-tdep.h): Include.
8631 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8632 inferior_status): Remove unused forward declarations.
8633 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8634 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8635 obj_private_struct): Move to hppa-tdep.h.
8636 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8637
8d153463
RC
86382004-04-17 Randolph Chung <tausq@debian.org>
8639
8640 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8641 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8642 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8643 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8644 Remove forward declaration and make static.
8645 (hppa_reg_struct_has_addr): Remove.
8646
350c2e5b
JB
86472004-04-16 Joel Brobecker <brobecker@gnat.com>
8648
8649 * observer.sh: Move comments in sed command to first column.
8650
bbde78fa
JM
86512004-04-16 Jason Molenda (jmolenda@apple.com)
8652
8653 * frame.c: Minor typeo corrections in comments.
8654
e0270fd9
JB
86552004-04-16 Joel Brobecker <brobecker@gnat.com>
8656
8657 * observer.c (observer_test_first_notification_function): Update
8658 function profile.
8659 (observer_test_second_notification_function): Likewise.
8660 (observer_test_third_notification_function): Likewise.
8661
3d049254
MK
86622004-04-16 Mark Kettenis <kettenis@gnu.org>
8663
8664 From Brian Ford <ford@vss.fsi.com>:
8665 * i386-tdep.c (i386_coff_init_abi): New function.
8666 * i386-tdep.h (i386_coff_init_abi): New prototype.
8667 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8668 register number translation functions for DWARF and DWARF 2.
8669
7867684d
JB
86702004-04-16 Joel Brobecker <brobecker@gnat.com>
8671
8672 * dwarf2read.c: Back out my previous change, it was incorrect.
8673
72bf9492
DJ
86742004-04-16 Daniel Jacobowitz <drow@mvista.com>
8675
8676 * dwarf2read.c: Include "hashtab.h".
8677 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8678 has_namespace_info.
8679 (struct partial_die_info): Add comments. Use bitfields to reduce
8680 memory footprint. Add scope, scope_set, has_specification,
8681 spec_offset, die_parent, die_child, and die_sibling.
8682 (peek_die_abbrev): Add prototype.
8683 (partial_read_comp_unit_head): New function, broken out from
8684 dwarf2_build_psymtabs_hard.
8685 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8686 Use partial_read_comp_unit_head. Initialize the CU and
8687 comp_unit_obstack. Update calls to read_partial_die and
8688 scan_partial_symbols. Use free_stack_comp_unit and
8689 load_partial_dies.
8690 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8691 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8692 Update calls to helper functions. Remove NAMESPACE argument.
8693 Update comments.
8694 (partial_die_parent_scope, partial_die_full_name): New functions.
8695 (add_partial_symbol): Remove namespace argument. Update call to
8696 pdi_needs_namespace. Use partial_die_full_name. Handle
8697 DW_TAG_namespace. Check has_namespace_info flag.
8698 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8699 tag. Handle namespaces.
8700 (add_partial_namespace, add_partial_enumeration): Simplify.
8701 (guess_structure_name): New function, derived from
8702 add_partial_structure.
8703 (add_partial_structure): Remove.
8704 (determine_class_name): Update comment.
8705 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8706 (is_type_tag_for_partial, load_partial_dies): New functions.
8707 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8708 Record specifications instead of following them immediately.
8709 (find_partial_die_in_comp_unit, find_partial_die)
8710 (fixup_partial_die, free_stack_comp_unit)
8711 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8712 (partial_die_hash, partial_die_eq): New functions.
8713 * Makefile.in (hashtab_h): Define.
8714 (dwarf2read.o): Update dependencies.
8715 (observer_inc, observer_h): Move to the correct section.
8716
fdc860a3
JB
87172004-04-15 Joel Brobecker <brobecker@gnat.com>
8718
8719 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8720 (die_is_declaration): Use the function above. Add comment.
8721
dc718098
JB
87222004-04-15 Joel Brobecker <brobecker@gnat.com>
8723
8724 * dwarf2read.c (read_structure_scope): Identify stub types
8725 using die_is_declaration() only.
8726
8718a420
RM
87272004-04-15 Roland McGrath <roland@redhat.com>
8728
8729 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8730 argument instead of NAME.
8731 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8732 in call to symbol_file_add_with_addrs_or_offsets.
8733 (build_addr_info): New function, helper for ...
8734 (symbol_file_add_from_memory): New function.
8735 (add_symbol_file_from_memory_command): New function using that.
8736 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8737 (pre_add_symbol_hook): Add const to argument type.
8738 * symfile.h (symbol_file_add_from_memory): Declare it.
8739
8b910bab
MK
87402004-04-15 Mark Kettenis <kettenis@gnu.org>
8741
9f076e7a
MK
8742 * NEWS (New native configurations): Mention OpenBSD/vax.
8743 * configure.host: Add vax-*-openbsd*.
8744 * config/vax/obsd.mh: New file.
8745 * config/vax/nm-obsd.h: New file.
8746
8b910bab
MK
8747 * vax-tdep.c: Include "regset.h".
8748 (vax_supply_gregset): New function.
8749 (vax_gregset): New variable.
8750 (vax_regset_from_core_section): New function.
8751 (vax_gdbarch_init): Set regset_from_core_section.
8752 * Makefile.in (vax-tdep.o): Update dependencies.
8753
7a464420
AC
87542004-04-15 Andrew Cagney <cagney@redhat.com>
8755
8756 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8757 (observer_normal_stop_notification_stub)
8758 (observer_attach_normal_stop, observer_detach_normal_stop):
8759 Delete, replaced by #include "observer.inc".
8760 * infrun.c (normal_stop): Pass "stop_bpstat" to
8761 observer_notify_normal_stop.
8762 * Makefile.in (observer_inc): Define.
8763 (observer.o): Update dependencies.
8764 (observer.h, observer.inc): New rules.
8765 * observer.h: Delete file.
8766 * observer.sh: New file.
8767
e36ad527
MK
87682004-04-15 Mark Kettenis <kettenis@gnu.org>
8769
8770 * vax-tdep.c (vax_frame_cache): Fix typo.
8771
67b441e1
MK
87722004-04-14 Mark Kettenis <kettenis@gnu.org>
8773
6f606e1c
MK
8774 * NEWS (New native configurations): Mention NetBSD/vax.
8775 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8776 * config/vax/nbsdelf.mh: New file.
8777 * config/vax/nbsdaout.mh: New file.
8778 * config/vax/nm-nbsd.h: New file.
8779 * config/vax/nm-nbsdaout.h: New file.
8780
9c5519a5
MK
8781 * vaxnbsd-tdep.c: New file.
8782 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8783 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8784 * config/vax/nbsd.mt: New file.
8785 * config/vax/tm-nbsd.h: New file.
8786
4844a614
MK
8787 * Makefile.in (vaxbsd-nat.o): New dependency.
8788
67b441e1
MK
8789 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8790 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8791 struct_addr arguments. Don't push return value address.
8792 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8793 arguments to vax_store_arguments. Store return value address in
8794 R1.
8795 (vax_store_struct_return, vax_extract_return_value)
8796 (vax_store_return_value): Remove functions.
8797 (vax_return_value): New function.
8798 (vax_gdbarch_init): Set return value. Don't set
8799 deprecated_store_struct_return, deprecated_extract_struct_return
8800 and deprecated_store_return_value.
8801
6672f2ae
AS
88022004-04-14 Andreas Schwab <schwab@suse.de>
8803
8804 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8805 value buffer.
8806 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8807
7346c184
MK
88082004-04-14 Mark Kettenis <kettenis@gnu.org>
8809
8810 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8811 (vax_unwind_dummy_id): New functions.
8812 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8813 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8814 variables.
8815 (vax_fix_call_dummy): Remove function.
8816 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8817 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8818 call_dummy_location, deprecated_call_dummy_words,
8819 deprecated_sizeof_call_dummy_words,
8820 deprecated_call_dummy_breakpoint_offset,
8821 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8822 and deprecated_dummy_write_sp.
8823
58e23df4
DC
88242004-04-13 David Carlton <carlton@kealia.com>
8825
8826 * MAINTAINERS: Move myself to "paper trail" section.
8827
5e6b39ff
MK
88282004-04-12 Mark Kettenis <kettenis@gnu.org>
8829
7def7fef
MK
8830 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8831 "trad-frame.h".
8832 (vax_frame_init_saved_regs): Remove function.
8833 (vax_sigtramp_saved_pc): Remove function.
8834 (vax_frame_saved_pc): Remove function.
8835 (vax_frame_args_address): Remove function.
8836 (vax_frame_num_args): Rewrite.
8837 (vax_frame_chain): Remove function.
8838 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8839 VAX_FP_REGNUM.
8840 (vax_pop_frame): Likewise.
8841 (vax_saved_pc_after_call): Remove function.
8842 (struct vax_frame_cache): New structure.
8843 (vax_frame_cache): New function.
8844 (vax_frame_this_id): New function.
8845 (vax_frame_prev_register): New function.
8846 (vax_frame_unwind): New variable.
8847 (vax_frame_sniffer): New function.
8848 (vax_frame_base_address): New function.
8849 (vax_frame_args_address): New function.
8850 (vax_frame_base): New variable.
8851 (vax_unwind_pc): New function.
8852 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8853 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8854 deprecated_frame_chain, deprecated_frame_saved_pc,
8855 deprecated_frame_args_address and
8856 deprecated_frame_init_saved_regs.
8857 * Makefile.in (vax-tdep.o): Update dependencies.
8858
53284fc1
MK
8859 * vaxbsd-nat.c: New file.
8860
5e6b39ff
MK
8861 * vax-tdep.h: Update copyright year. Adjust comments.
8862 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8863 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8864 (vax_regnum): New enum. Replacing...
8865 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8866 (VAX_PS_REGNUM): ... these removed macros.
8867 * vax-tdep.c (vax_register_name): Remove prototype.
8868 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8869 (vax_register_byte, vax_register_raw_size,
8870 vax_register_virtual_size, vax_register_virtual_type): Remove
8871 functions.
8872 (vax_register_type): New function.
8873 (vax_breakpoint_from_pc): Reorganize.
8874 (vax_gdbarch_init): Set register_type. Don't set
8875 deprecated_register_size, deprecated_register_bytes,
8876 deprecated_register_byte, deprecated_register_raw_size,
8877 deprecated_max_register_raw_size,
8878 deprecated_register_virtual_size,
8879 deprecated_max_register_virtual_size and
8880 deprecated_register_virtual_type. Add comment on stack direction.
8881
e9c71e9f
MK
88822004-04-11 Mark Kettenis <kettenis@gnu.org>
8883
8884 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8885 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 8886 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 8887
d46f1176 88882004-04-10 Randolph Chung <tausq@debian.org>
8718a420 8889
d46f1176
RC
8890 * MAINTAINERS (write after approval): Add myself.
8891
a2a84a72
RC
88922004-04-07 Randolph Chung <tausq@debian.org>
8893
8894 * hppa-tdep.c (hppa_inner_than): Remove.
8895 (is_pa_2): Remove unused static variable.
8718a420 8896 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 8897
e85c3284
PH
88982004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8899
8900 * language.h (language_defn): Add new la_post_parser field.
8901 * parser-defs.h (null_post_parser): New declaration (default for
8902 la_post_parser).
8718a420 8903
e85c3284
PH
8904 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8905 insert call to that function.
8906 (parse_exp_in_context): New function, including code formerly in
8718a420 8907 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
8908 prefixification.
8909 (parse_expression_in_context): New exported function.
8910 (null_post_parser): New definition.
8911 * expression.h (parse_expression_in_context): Add declaration.
8718a420 8912
e85c3284
PH
8913 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8914 * c-lang.c (c_language_defn): Ditto.
8915 (cplus_language_defn): Ditto.
8916 (asm_language_defn): Ditto.
8917 (minimal_language_defn): Ditto.
8918 * f-lang.c (f_language_defn): Ditto.
8919 * jv-lang.c (java_language_defn): Ditto.
8920 * language.c (unknown_language_defn): Ditto.
8921 (auto_language_defn): Ditto.
8922 (local_language_defn): Ditto.
8923 * m2-lang.c (m2_language_defn): Ditto.
8924 * scm-lang.c (scm_language_defn): Ditto.
8925 * obj-lang.c (objc_language_defn): Ditto.
8718a420 8926
d9f8c85b
MK
89272004-04-10 Mark Kettenis <kettenis@gnu.org>
8928
fa34704a
MK
8929 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8930 (amd64nbsd_mcontext_addr): New function.
8931 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8932 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8933 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8934
403e1656
MK
8935 * corelow.c (core_xfer_partial): Fix coding standards violation.
8936 Add support for TARGET_OBJECT_WCOOKIE.
8937
a57e5a95
MK
8938 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8939 deprecated_pc_in_sigtramp.
8940 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8941 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8942 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8943 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8944 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8945 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8946 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8947
377d9ebd
MK
8948 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8949 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8950 Fix typo.
8951
f0ef85a5
MK
8952 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8953 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8954 (amd64_collect_fxsave): Likewise.
8955
d9f8c85b
MK
8956 * i386-sol2-tdep.c: Include "gdb_string.h".
8957 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8958 name.
8959 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8960
75f501b5
MK
89612004-04-10 Mark Kettenis <kettenis@gnu.org>
8962
8963 * i386-sol2-tdep.c: Include "solib-svr4.h".
8964 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8965 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8966 * config/i386/tm-i386sol2.h: Include :solib.h".
8967 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8968 solib-svr4.o and solib-legacy.o.
8969 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8970 solib-svr4.o.
8971
b31bc724
MK
89722004-04-09 Mark Kettenis <kettenis@gnu.org>
8973
18bbbd9e
MK
8974 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8975 whether a register is supplied by PTRACE_GETFPREGS.
8976 (store_inferior_registers): Likewise.
8977 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8978 whether a register is supplied by PT_GETFPREGS.
8979 (store_inferior_registers): Likewise.
8980
3c30bf1b
MK
8981 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8982 * config/i386/linux64.mt (TDEPFILES): Likewise.
8983
a4194092
MK
8984 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8985
911bc6ee
MK
8986 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8987 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8988 the program counter is in the range specified by `struct
8989 gdbarch_tdep'.
8990 * amd64-linux-tdep.c: Include "symtab.h".
8991 (amd64_linux_pc_in_sigtramp): Remove function.
8992 (amd64_linux_sigtramp_p): New function.
8993 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8994 deprecated_pc_in_sigtramp.
8995 * amd64nbsd-tdep.c: Include "symtab.h".
8996 (amd64nbsd_sigtramp_p): New function.
8997 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8998 deprecated_pc_in_sigtramp.
8999 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9000 few comments.
9001 (amd64obsd_pc_in_sigtramp): Remove function.
9002 (amd64obsd_sigtramp_p): New function.
9003 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9004 deprecated_pc_in_sigtramp.
9005 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9006 (i386bsd_pc_ins_sigtramp): Remove prototype.
9007 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9008 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9009 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9010 the program counter is in the range specified by `struct
9011 gdbarch_tdep'.
9012 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9013 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9014 (i386_go32_pc_in_sigtramp): Remove function.
9015 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9016 Initialize TDEP->sigtramp_p.
9017 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9018 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9019 deprecated_pc_in_sigtramp.
9020 * i386-linux-tdep.c: Adjust comments.
9021 (i386_linux_pc_in_sigtramp): Remove function.
9022 (i386_linux_sigtramp_p): New function.
9023 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9024 deprecated_pc_in_sigtramp.
9025 * i386-nto-tdep.c: Update copyright year.
9026 (i386nto_pc_in_sigtramp): Remove function.
9027 (i386nto_sigtramp_p): New function.
9028 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9029 SP_REGNUM.
9030 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9031 deprecated_pc_in_sigtramp.
9032 * i386-sol2-tdep.c: Update copyright year.
9033 (i386_sol2_pc_in_sigtramp): Remove function.
9034 (i386_sol2_sigtramp_p): New function.
9035 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9036 deprecated_pc_in_sigtramp.
9037 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9038 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9039 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9040 deprecated_sigtramp_start and deprecated_sigtramp_end.
9041 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9042 (i386nbsd_pc_in_sigtramp): Remove function.
9043 (i386nbsd_sigtramp_p): New function.
9044 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9045 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9046 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9047 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9048 (i386obsd_pc_in_sigtramp): Remove function.
9049 (i386obsd_sigtramp_p): New function.
9050 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9051 functions.
9052 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9053 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9054 TDEP->sigtramp_p.
9055 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9056 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9057 dependencies.
9058
e083e6ec
MK
9059 * config/i386/i386aout.mt: Remove file.
9060
bd153b94
MK
9061 * configure.tgt: Remove i[34567]86-*-go32*,
9062 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9063 and i[34567]86-*-isc*. Set gdb_target to i386 for
9064 i[34567]86-*-netware* and i[34567]86-*-*.
9065 * config/i386/i386.mt: New file.
9066 * config/i386/embed.mt: Remove file.
9067 * config/i386/go32.mt: Remove file.
9068 * config/i386/i386nw.mt: Remove file.
9069 * config/i386/i386v.mt: Remove file.
9070 * config/i386/tm-go32.h: Remove file.
9071
4a1bcc8c
MK
9072 * tui/tui-hooks.c: Include "readline/readline.h" after
9073 "gdb_curses.h" instead of before.
9074 * tui/tui-io.c: Likewise.
9075
f9a79064
MK
9076 * tui/tui.c: Fix typo in comment.
9077
b31bc724
MK
9078 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9079
f83f82bc
AC
90802004-04-08 Andrew Cagney <cagney@redhat.com>
9081
9082 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9083 (deprecated_exception_support_initialized): Declare.
8718a420 9084 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9085 (initialize_hp_cxx_exception_support)
9086 (child_enable_exception_callback): Update.
9087 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9088 (deprecated_exception_support_initialized): Rename
9089 deprecated_exception_catchpoints_are_fragile and
9090 deprecated_exception_support_initialized.
9091 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9092
9093 * symtab.c (deprecated_hp_som_som_object_present): Rename
9094 hp_som_som_object_present.
9095 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9096 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9097 Update. Delete extern declaration.
9098 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9099 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9100 (parse_nested_classes_for_hpacc): Ditto.
9101 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9102 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9103 (initialize_hp_cxx_exception_support): Ditto.
9104 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9105 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9106 (cp_print_class_method): Ditto.
8718a420 9107 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9108 (c_type_print_base): Ditto.
9109 * c-exp.y (hp_som_som_object_present): Ditto.
9110
fb2be677
AC
91112004-04-08 Andrew Cagney <cagney@redhat.com>
9112
9113 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9114 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9115 (frame_unwind_find_by_frame): Re-implement the unwind code so
9116 that it can both prepend and append sniffers. Replace
9117 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9118 * tramp-frame.c (tramp_frame_append): Use
9119 frame_unwind_prepend_unwinder.
9120 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9121 frame_unwind_register_unwinder.
9122 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9123 tramp_frame_append.
9124 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9125 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9126 (mips_linux_init_abi): Update.
9127
67faf007
KB
91282004-04-08 Kevin Buettner <kevinb@redhat.com>
9129
9130 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9131 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9132 file support.
9133
8973ff21
KB
91342004-04-07 Kevin Buettner <kevinb@redhat.com>
9135
9136 * ia64-tdep.c (elf.h): Don't include.
9137 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9138
4a0e2f88
JM
91392004-04-07 Jason Molenda (jmolenda@apple.com)
9140
9141 * frame.h: Typeo corrections in comments.
9142
9872ad24
JB
91432004-04-07 Jim Blandy <jimb@redhat.com>
9144
9145 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9146 %esp and %ebp
9147
70b216c8
MK
91482004-04-07 Mark Kettenis <kettenis@gnu.org>
9149
11d5789c
MK
9150 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9151 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9152 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9153 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9154 and solib-legacy.o.
9155 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9156 solib-svr4.o.
9157 * config/sparc/tm-sol2.h: Update copyright year. Include
9158 "solib.h".
9159
70b216c8
MK
9160 * sparc-sol2-tdep.c: Update copyright year. Include
9161 "solib-svr4.h".
9162 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9163 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9164 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9165 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9166 dependencies.
9167
6339dc9e
AC
91682004-04-06 Andrew Cagney <cagney@redhat.com>
9169
9170 * infttrace.c: Include "infttrace.h".
9171 * infttrace.h: Include "target.h".
9172 * Makefile.in (infttrace_h): Update.
9173 (infttrace.o): Update.
8718a420 9174
93449403
AC
91752004-04-06 Andrew Cagney <cagney@redhat.com>
9176
6d518969
AC
9177 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9178 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9179 move extern declarations from here ...
9180 * infttrace.h: ... to here.
9181 * Makefile.in (hppah-nat.o): Update dependencies.
9182
85f4f2d8
AC
9183 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9184 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9185 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9186 (hppa_breakpoint_from_pc): Delete.
9187
93449403
AC
9188 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9189
71456ec6
AC
91902004-04-05 Andrew Cagney <cagney@redhat.com>
9191
9192 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9193 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9194 <sys/file.h>.
8718a420 9195
4c02c60c
AC
91962004-04-06 Randolph Chung <tausq@debian.org>
9197
9198 Committed by Andrew Cagney (mechanical change).
9199 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9200 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9201 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9202 child_enable_exception_callback, current_ex_event,
9203 null_symtab_and_line, child_get_current_exception_event,
9204 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9205 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9206 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9207 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9208 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9209 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9210 Move hpux-specific definitions ...
9211 * hppa-hpux-tdep.c: ... to here.
9212
3a515653
AC
92132004-04-05 Andrew Cagney <cagney@redhat.com>
9214
9215 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9216 skip_prologue_using_sal.
9217
c1730d02
AC
92182004-04-05 Andrew Cagney <cagney@redhat.com>
9219
9220 * config/i386/tm-i386.h: Delete file.
9221 * config/i386/tm-vxworks.h: Update copyright, do not include
9222 "tm-i386.h".
9223 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9224 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9225 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9226 * config/i386/ncr3000.mt (TM_FILE): Delete.
9227 * config/i386/interix.mt (TM_FILE): Delete.
9228 * config/i386/i386v.mt (TM_FILE): Delete.
9229 * config/i386/i386nw.mt (TM_FILE): Delete.
9230 * config/i386/i386gnu.mt (TM_FILE): Delete.
9231 * config/i386/i386aout.mt (TM_FILE): Delete.
9232 * config/i386/embed.mt (TM_FILE): Delete.
9233
8b67aa36
KB
92342004-04-05 Kevin Buettner <kevinb@redhat.com>
9235
9236 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9237 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9238 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9239 (accg7_regnum): New constants.
9240 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9241 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9242 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9243 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9244 for accg registers.
9245 (frv_register_sim_regno): Update spr_map[].
9246
3c7012f5
AC
92472004-04-04 Andrew Cagney <cagney@redhat.com>
9248
9249 * config/mips/xm-riscos.h: Delete.
9250 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9251 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9252 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9253 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9254 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9255 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9256 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9257 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9258 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9259 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9260 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9261 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9262 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9263 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9264 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9265 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9266 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9267 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9268 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9269 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9270 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9271 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9272 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9273 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9274 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9275 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9276
3c7012f5
AC
9277 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9278 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9279 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9280 * configure.host: Remove m680[01]0-sun-sunos3*,
9281 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9282 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9283 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9284 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9285 mips-*-riscos*.
9286 * NEWS: Mention removed systems.
9287
99d16a21
AC
92882004-04-04 Andrew Cagney <cagney@redhat.com>
9289
9290 GDB 6.1 release created from 6.1 branch.
9291
6cdf9d98
AC
92922004-04-04 Andrew Cagney <cagney@redhat.com>
9293
98d346c3
AC
9294 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9295 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9296 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9297
6cdf9d98
AC
9298 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9299 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9300 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9301
859a326d
JB
93022004-04-03 Jim Blandy <jimb@redhat.com>
9303
9304 * MAINTAINERS: Chris Faylor has changed employers; add him to
9305 "paper trail" section, and update his E-mail address.
9306
b87178c3
AC
93072004-04-03 Andrew Cagney <cagney@redhat.com>
9308
4ea2acf0
AC
9309 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9310 generic dummy frames.
9311 * dummy-frame.c: Update copyright.
9312 (dummy_frame_sniffer): Delete check for generic dummy frames.
9313
d0bd2d18 9314 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9315 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9316 (REG_PARM_STACK_SPACE): Delete.
9317 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9318 Inline reference to REG_PARM_STACK_SPACE.
9319
b87178c3
AC
9320 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9321 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9322 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9323 (FRAME_BASE_BEFORE_SIGTRAMP)
9324 (hppa32_hpux_frame_base_before_sigtramp)
9325 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9326 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9327 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9328 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9329 (FRAME_BASE_BEFORE_SIGTRAMP)
9330 (hppa64_hpux_frame_base_before_sigtramp)
9331 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9332
43e2e1a0
AC
93332004-04-03 Andrew Cagney <cagney@redhat.com>
9334
9335 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9336
ddc135a4
AC
93372004-04-02 Andrew Cagney <cagney@redhat.com>
9338
9339 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9340 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9341 * dummy-frame.h: Delete out-of-date comments.
9342 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9343 * gdbarch.h, gdbarch.c: Re-generate.
9344
d15bfd3a 93452004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9346
d15bfd3a
AC
9347 Committed by Andrew Cagney <cagney@redhat.com>.
9348 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9349 into account an instruction saving a register if we have already
9350 seen an earlier instruction saving that same register.
9351
f04ceafa
AC
93522004-04-02 Andrew Cagney <cagney@redhat.com>
9353
08be3abd
AC
9354 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9355 * gdbarch.h, gdbarch.c: Re-generate.
9356 * frame.c (legacy_get_prev_frame): Delete references to
9357 DEPRECATED_INIT_FRAME_PC_FIRST.
9358
f04ceafa
AC
9359 * infrun.c (pc_in_sigtramp): Delete function.
9360 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9361 get_frame_type.
9362
08e69816
AC
93632004-04-02 Andrew Cagney <cagney@redhat.com>
9364
9365 * infrun.c (handle_step_into_function): Delete code conditional on
9366 legacy_frame_p.
9367 (handle_inferior_event, step_over_function): Ditto.
9368
adb54772
AC
93692004-04-02 Andrew Cagney <cagney@redhat.com>
9370
9371 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9372 "previous frame inner to this frame" test.
9373
304396fb
AC
93742004-04-02 Andrew Cagney <cagney@redhat.com>
9375
9376 * frame.c (safe_frame_unwind_memory): New function.
9377 * frame.h (safe_frame_unwind_memory): Declare. Update description
9378 of /safe_/ methods.
9379 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9380 "next_frame". Use safe_frame_unwind_memory.
9381 (tramp_frame_sniffer): Update call to tramp_frame_start.
9382
6502dd73
DJ
93832004-04-01 Daniel Jacobowitz <drow@mvista.com>
9384
9385 * dwarf2read.c (dwarf2_objfile_data_key): New.
9386 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9387 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9388 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9389 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9390 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9391 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9392 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9393 Remove variables.
9394 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9395 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9396 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9397 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9398 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9399 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9400 Remove macros.
9401 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9402 data.
9403 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9404 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9405 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9406 (read_partial_die, read_full_die, read_indirect_string)
9407 (dwarf_decode_line_header, dwarf_decode_macros)
9408 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9409 Update uses of removed variables.
9410 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9411 of removed macros.
9412 (_initialize_dwarf2_read): New function.
9413 * symfile.h (dwarf2_has_info): Update prototype.
9414 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9415 * elfread.c (elf_symfile_read): Likewise.
9416
408752b0
JB
94172004-04-01 Jim Blandy <jimb@redhat.com>
9418
9f744501
JB
9419 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9420 function for register numbers on all the rs6000-derived targets.
9421 (rs6000_gdbarch_init): Don't register a separate
9422 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9423 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9424 variants.
9425
408752b0
JB
9426 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9427 numbering.
9428
2de41bce
PH
94292004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9430
9431 * valarith.c: Update copyright notice.
9432 (value_add): Handle range types.
9433 (value_sub): Ditto.
9434 (value_equal): Ditto.
9435 (value_less): Ditto.
9436 (value_neg): Ditto.
9437 (value_complement): Ditto.
8718a420 9438 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9439 eliminiating unnecessary COERCE_ENUMs.
8718a420 9440
5613d8d3
AC
94412004-03-31 Andrew Cagney <cagney@redhat.com>
9442
9443 * frame.h (frame_unwind_id): Declare.
9444 * frame.c (frame_unwind_id): New function.
9445 (get_prev_frame_1): New function.
9446 (frame_debug_got_null_frame): New function.
9447 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9448 code proper to prev_frame, update description.
9449 * infrun.c (step_over_function): Use frame_unwind_id.
9450
c4557624
JB
94512004-04-31 J. Brobecker <brobecker@gnat.com>
9452
9453 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9454 (hppa64_push_dummy_call): Likewise.
9455
3e6bb910
JB
94562004-03-30 Jim Blandy <jimb@redhat.com>
9457
9458 From Ulrich Weigand:
9459 * utils.c (query): Do not use a va_list variable multiple times.
9460
a2f23071
DJ
94612004-03-29 Daniel Jacobowitz <drow@mvista.com>
9462
9463 * Makefile.in (linux_nat_h): Update dependencies.
9464 * configure.in: Check for <gnu/libc-version.h>.
9465 * configure: Regenerate.
9466 * config.in: Regenerate.
9467 * linux-nat.h: Include "target.h". Add waitstatus field to
9468 struct lwp_info.
9469 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9470 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9471 to.
9472 (lin_lwp_handle_extended): New function. Handle clone events.
9473 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9474 thread exit events.
9475 (child_wait): Handle clone events.
9476 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9477 * linux-nat.c (linux_enable_event_reporting): Turn on
9478 PTRACE_O_TRACECLONE.
9479 (linux_handle_extended_wait): Handle clone events.
9480 * thread-db.c: Include <gnu/libc-version.h>.
9481 (struct private_thread_info): Add dying flag.
9482 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9483 higher.
9484 (attach_thread): Update comments. Handle dying threads.
9485 (detach_thread): Set the dying flag.
9486 (check_event): Always call attach_thread.
9487
8d5f9dcb
DJ
94882004-03-29 Daniel Jacobowitz <drow@mvista.com>
9489
9490 * mips-tdep.c (mips_pdr_data): New.
9491 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9492 (_initialize_mips_tdep): Initialize mips_pdr_data.
9493
66337bb1
CV
94942004-03-29 Corinna Vinschen <vinschen@redhat.com>
9495
9496 * minsyms.c (install_minimal_symbols): Move dropping leading
9497 char from linkage name from here...
9498 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9499 test for "__gnu_compiled*" symbols.
9500
e802b915
JB
95012004-03-28 Jim Blandy <jimb@redhat.com>
9502
9503 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9504 registers to temp register r0 and byte stores as prologue
9505 instructions.
9506
72b56458
AC
95072004-03-28 Andrew Cagney <cagney@redhat.com>
9508
9509 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9510 arm*-*-*.
9511
0bfbda3b
SC
95122004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9513
9514 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9515 and switch the layout to force a display of register window.
9516
5a7225ed
JB
95172004-02-26 J. Brobecker <brobecker@gnat.com>
9518
9519 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9520 of the INTEGER class.
9521
81a07a45
JB
95222004-03-26 Jim Blandy <jimb@redhat.com>
9523
9524 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9525 bytes long on PPC GNU/Linux.
9526
8c691c7a
DC
95272004-03-26 David Carlton <carlton@kealia.com>
9528
9529 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9530
103a0089
AC
95312004-03-25 Andrew Cagney <cagney@redhat.com>
9532
9533 * PROBLEMS: Add general section titles, remove references to
9534 specific releases.
9535
7a5ea0d4
DJ
95362004-03-25 Daniel Jacobowitz <drow@mvista.com>
9537
9538 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9539 INT_REGISTER_SIZE.
9540 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9541 FP_REGISTER_VIRTUAL_SIZE.
9542 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9543 of DEPRECATED_REGISTER_RAW_SIZE.
9544 (arm_register_type): Add gdbarch argument.
9545 (arm_register_raw_size, arm_register_virtual_size): Delete.
9546 (arm_register_byte, arm_extract_return_value)
9547 (arm_store_return_value, arm_get_longjmp_target): Update references
9548 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9549 (arm_gdbarch_init): Likewise. Don't set
9550 deprecated_register_raw_size, deprecated_register_virtual_size,
9551 deprecated_max_register_raw_size,
9552 deprecated_max_register_virtual_size, or
9553 deprecated_max_register_virtual_type. Do set register_type.
9554 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9555 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9556 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9557 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9558 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9559 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9560 INT_REGISTER_SIZE.
9561 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9562 (remote_rdp_store_register): Likewise.
9563
5792a79b
DJ
95642004-03-24 Daniel Jacobowitz <drow@mvista.com>
9565
9566 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9567 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9568 to after osabi initialization.
9569 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9570 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9571 functions.
9572 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9573 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9574 variables.
9575 (mips_linux_init_abi): Append signal trampoline unwinders.
9576
1196bfda
AC
95772004-03-24 Andrew Cagney <cagney@redhat.com>
9578
9579 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9580 * tramp-frame.c: Include "gdb_assert.h".
9581 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9582 correct sizeof.
9583 (tramp_frame_append): Validate the tramp frame's instructions.
9584 * Makefile.in (tramp-frame.o): Update dependencies.
9585
4be282b4
AC
95862004-03-23 Andrew Cagney <cagney@redhat.com>
9587
9588 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9589
69aec09b
AC
95902004-03-23 Andrew Cagney <cagney@redhat.com>
9591
9592 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9593 Nasser as past testsuite/lib/ (and other) maintainers.
9594
63ed89b4
DJ
95952004-03-23 Daniel Jacobowitz <drow@mvista.com>
9596
9597 * infcmd.c (attach_command): Reread symbols if we already have
9598 an exec file.
9599
f3b36427
AC
96002004-03-23 Andrew Cagney <cagney@redhat.com>
9601
9602 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9603
aa2a3f87
AC
96042004-03-23 Andrew Cagney <cagney@redhat.com>
9605
9606 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9607 * gdbarch.h, gdbarch.c: Re-generate.
9608 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9609 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9610 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 9611 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 9612 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 9613 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
9614 (DEPRECATED_SIGTRAMP_START): Update.
9615 * blockframe.c (find_pc_sect_partial_function): Update.
9616 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9617
00cac895
DJ
96182004-03-23 Daniel Jacobowitz <drow@mvista.com>
9619
9620 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9621 if necessary.
9622
f561f026
AC
96232004-03-23 Andrew Cagney <cagney@redhat.com>
9624
9625 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9626 predicate, deprecate.
9627 * gdbarch.h, gdbarch.c: Re-generate.
9628 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9629 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9630 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9631 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9632 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9633 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9634 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9635 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9636 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9637 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9638 * blockframe.c (find_pc_partial_function): Update.
9639 * breakpoint.c (bpstat_what): Update.
9640 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9641 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9642 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9643 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9644 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9645 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9646 * i386-nto-tdep.c (i386nto_init_abi): Update.
9647 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9648 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9649 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9650 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9651 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9652 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9653 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9654 * infrun.c (pc_in_sigtramp): Update.
9655 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9656 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9657 * mips-tdep.c (mips_gdbarch_init): Update.
9658 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9659 * ppc-linux-tdep.c: Update comment.
9660 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9661 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9662 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9663 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9664 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9665 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9666 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9667 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9668 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9669 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 9670
8050c72f
AC
96712004-03-23 Andrew Cagney <cagney@redhat.com>
9672
d2259dd3
AC
9673 * tramp-frame.h, tramp-frame.h: New files.
9674 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9675 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9676
8050c72f
AC
9677 * Makefile.in: Update all dependencies.
9678
0db9b4b7
AC
96792004-03-23 Andrew Cagney <cagney@redhat.com>
9680
9681 * Makefile.in (trad_frame_h): Add $(frame_h).
9682 * trad-frame.h: Update copyright. Include "frame.h".
9683 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9684 (trad_frame_set_id, trad_frame_get_id): Declare.
9685 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9686 * trad-frame.c: Update copyright.
9687 (struct trad_frame_cache): Define.
9688 (trad_frame_cache_zalloc): New function.
9689 (trad_frame_set_id, trad_frame_get_id): New functions.
9690 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 9691
8e645ae7
AC
96922004-03-22 Andrew Cagney <cagney@redhat.com>
9693
9694 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9695 s390_pltstub_unwind_cache.
9696 (s390_stub_frame_unwind_cache): Rename
9697 s390_pltstub_frame_unwind_cache.
9698 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9699 (s390_stub_frame_prev_register): Rename
9700 s390_pltstub_frame_prev_register.
9701 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9702 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9703
9704 From Ulrich Weigand:
9705 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9706 pointer calls like PLT calls.
9707
34fcf120
DJ
97082004-03-22 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9711 PC rather than the partial function start address. Use the start
9712 address to sanity check the found PDR.
9713
5b917078
DJ
97142004-03-22 Daniel Jacobowitz <drow@mvista.com>
9715
9716 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9717 linux_handle_extended_wait.
9718
8adf9e78
AC
97192004-03-22 Andrew Cagney <cagney@redhat.com>
9720
c3122434
AC
9721 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9722 function.
9723
8adf9e78
AC
9724 * frame.h (generic_pop_current_frame): Delete declaration.
9725 (deprecate_pop_dummy_frame): Deprecate
9726 generic_pop_dummy_frame.
9727 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9728 (generic_pop_current_frame): Delete function.
9729 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9730 generic_pop_current_frame.
9731 * v850-tdep.c (v850_pop_frame): Update.
9732 * mcore-tdep.c (mcore_pop_frame): Update.
9733 * sh64-tdep.c (sh64_pop_frame): Update.
9734 * h8300-tdep.c (h8300_pop_frame): Update.
9735
90ba813f
AC
97362004-03-22 Andrew Cagney <cagney@redhat.com>
9737
9738 * frame.h (deprecated_pc_in_call_dummy): Rename
9739 generic_pc_in_call_dummy.
9740 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9741 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9742 generic_pc_in_call_dummy.
9743 (pc_in_dummy_frame): Make static.
9744 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9745 * gdbarch.h, gdbarch.c: Re-generate.
9746 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9747 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9748 (legacy_get_prev_frame): Ditto.
9749 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9750 comment.
8718a420 9751
ca4bb888
AC
97522004-03-21 Andrew Cagney <cagney@redhat.com>
9753
244675f9
AC
9754 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9755 declaration and out-of-date comment.
9756 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9757 Delete function.
9758 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9759 deprecated_pc_in_call_dummy.
9760
ca4bb888
AC
9761 * infrun.c (handle_inferior_event): For non legacy frames, use the
9762 frame ID and frame type to identify a signal trampoline. Update
9763 comments.
9764
1777c7b4
NW
97652004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9766
9767 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9768 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9769
82417da5
AC
97702004-03-21 Andrew Cagney <cagney@redhat.com>
9771
9772 * frame-unwind.h: Update copyright.
9773 (struct frame_data): Add opaque declaration.
9774 (frame_sniffer_ftype): Declare.
9775 (struct frame_unwind): Add "unwind_data" and "sniffer".
9776 (frame_unwind_register_unwinder): Declare.
9777 (frame_unwind_find_by_frame): Add parameter "this_cache".
9778 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9779 (legacy_get_prev_frame, legacy_get_prev_frame)
9780 (get_frame_type): Pass the prologue_cache to
9781 frame_unwind_find_by_frame.
9782 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9783 "unwinder".
9784 (frame_unwind_register_unwinder): New function.
9785 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9786
b2ba182e
PH
97872004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9788
9789 * bcache.c (print_percentage): Use floating point to avoid
9790 incorrect results when portion*100 overflows.
9791
81332287
KB
97922004-03-19 Kevin Buettner <kevinb@redhat.com>
9793
9794 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9795 (ppc_linux_init_extra_frame_info)
9796 (ppc_linux_frameless_function_invocation)
9797 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9798 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9799 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9800 (rs6000_frame_chain): Delete declarations.
9801 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9802 (ppc_linux_init_extra_frame_info)
9803 (ppc_linux_frameless_function_invocation)
9804 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9805 (ppc_linux_init_abi): Remove registration of above deleted functions.
9806 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9807 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9808 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9809 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9810 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9811 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9812 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9813 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9814 frame management for all OSABIs.
9815
61a65099
KB
98162004-03-19 Andrew Cagney <cagney@redhat.com>
9817
9818 Committed by Kevin Buettner <kevinb@redhat.com>.
9819
9820 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9821 Update copyright.
9822 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9823 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9824 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9825 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9826 unwinders. #ifdef legacy frame code.
9827 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9828 "frame-base.h".
9829 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9830 (struct rs6000_frame_cache, rs6000_frame_cache)
9831 (rs6000_frame_this_id, rs6000_frame_prev_register)
9832 (rs6000_frame_sniffer, rs6000_frame_unwind)
9833 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9834 (rs6000_frame_base): Implement a traditional frame unwinder.
9835 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9836 frame unwinder.
9837
88f7da05
KB
98382004-03-19 Kevin Buettner <kevinb@redhat.com>
9839
9840 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9841 breakpoint address for watchpoints or the catch eventpoints.
9842 Add new paramter ``bptype''. Adjust all callers.
9843
f826dce1
AC
98442004-03-19 Andrew Cagney <cagney@redhat.com>
9845
33cb8b0f
AC
9846 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9847
f826dce1
AC
9848 * PROBLEMS: Delete note that ARM does not use frame code, problem
9849 fixed.
9850
43b1ab88
AC
98512004-03-18 Andrew Cagney <cagney@redhat.com>
9852
292ab034
AC
9853 * stack.c (return_command): Delete code wrapped in #ifdef
9854 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9855
43b1ab88
AC
9856 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9857
dbfe4626
AC
98582004-03-18 Andrew Cagney <cagney@redhat.com>
9859
9860 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9861 DEPRECATED_IN_SIGTRAMP.
9862 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9863 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9864 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9865 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9866 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9867 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9868 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9869 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9870 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9871 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9872
0cad6aec
AC
98732004-03-18 Andrew Cagney <cagney@redhat.com>
9874
9875 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9876 (struct frame_base_table_entry): Define.
9877 (struct frame_base_table): Re-implement as a linked list.
9878 (frame_base_init): Re-implement.
9879 (frame_base_table): Delete function.
9880 (append_predicate): Delete function.
9881 (frame_base_append_sniffer): Update.
9882 (frame_base_set_default): Update.
9883 (frame_base_find_by_frame): Update.
9884 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9885 * Makefile.in (frame-base.o): Update dependencies.
9886
9982c2e7
AC
98872004-03-17 Andrew Cagney <cagney@redhat.com>
9888
9889 * frame.c (legacy_get_prev_frame): Pass correct frame to
9890 frame_unwind_find_by_frame.
9891
8dfe8985
DC
98922004-03-17 David Carlton <carlton@kealia.com>
9893
9894 * NEWS: Mention C++ nested types and namespaces
9895
ed47347a
MC
98962004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9897
9898 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9899 and "Regressions since gdb 5.3.". Add known regressions since
9900 gdb 6.0.
9901
90aeadfc
DC
99022004-03-16 David Carlton <carlton@kealia.com>
9903
9904 * dwarf2read.c (process_structure_scope): Process children even
9905 when we're a declaration.
9906
73912b9b
AC
99072004-03-16 Andrew Cagney <cagney@redhat.com>
9908
9909 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9910 * blockframe.c (find_pc_partial_function)
9911 (find_pc_sect_partial_function): Merge into a single
9912 find_pc_partial_function.
9913
283accbc
MK
99142004-03-16 Mark Kettenis <kettenis@gnu.org>
9915
9916 * i386bsd-nat.c: s/regno/regnum/g.
9917 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9918 FP0_REGNUM.
9919 (store_inferior_registers): Likewise.
9920
f5b1afdf
MK
99212004-03-16 Mark Kettenis <kettenis@gnu.org>
9922
9923 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9924 of i387_fill_fsave.
9925 (store_inferior_registers): Call i387_collect_fsave and
9926 i387_collect_fxsave instead of i387_fill_fsave and
9927 i387_fill_fxsave.
9928
41fe5eb3
AC
99292004-03-15 Andrew Cagney <cagney@redhat.com>
9930
9931 * Makefile.in (frame-unwind.o): Update dependencies.
9932 * frame-unwind.c: Include "gdb_obstack.h".
9933 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9934 parameter.
9935 (append_predicate): Delete function.
9936 (struct frame_unwind_table_entry): New structure.
9937 (struct frame_unwind_table): Replace "sniffer" with "head" and
9938 "tail".
9939 (frame_unwind_append_sniffer): Update.
9940 (frame_unwind_find_by_frame): Update.
9941 (_initialize_frame_unwind): Registe frame_unwind_init using
9942 gdbarch_data_register_pre_init.
9943
3f63813d
MK
99442004-03-15 Mark Kettenis <kettenis@gnu.org>
9945
9946 * i386bsd-nat.c: Update copyright year.
9947 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9948 define unconditionally.
9949
3248c325 99502004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
9951
9952 * i387-tdep.h (i387_collect_fsave): New prototype.
9953 * i387-tdep.c (i387_collect_fsave): New function containing most
9954 of the code from i387_fill_fsave.
3248c325 9955 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 9956
871fbe6a
MK
99572004-03-15 Mark Kettenis <kettenis@gnu.org>
9958
9959 * i386-linux-tdep.c: Update copyright year.
9960 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9961 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9962 svr4_ilp32_link_map_offsets instead of
9963 i386_linux_svr4_fetch_link_map_offsets.
9964
8176b9b8
DC
99652004-03-15 David Carlton <carlton@kealia.com>
9966
9967 Fix for PR c++/1553:
9968 * dwarf2read.c (read_structure_type): Determine type name by
9969 calling determine_class_name.
9970 (determine_class_name): New.
9971 (determine_prefix): Look at TYPE_TAG_NAME and call
9972 determine_class_name when appropriate.
9973 (determine_prefix_aux, class_name): Delete.
9d58e29d 9974 (read_namespace): Set die->type.
8176b9b8 9975
fe8bf7d7
KB
99762004-03-15 Kevin Buettner <kevinb@redhat.com>
9977
9978 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9979 unused macro definition. The definition in target.h (or perhaps
9980 elsewhere) takes precedence.
9981
ed6edd9b
AC
99822004-03-15 Andrew Cagney <cagney@redhat.com>
9983
f9be684a
AC
9984 * ppc-tdep.h: Update copyright.
9985 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9986 function signatures to match "regsets.h".
9987 * ppc-linux-tdep.c: Include "regset.h".
9988 (ELF_GREGSET_SIZE): Delete.
9989 (right_supply_register): New function.
9990 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9991 using right_supply_register.
9992 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9993 functions.
9994 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9995 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9996 (_initialize_ppc_linux_tdep): Do not register
9997 ppc_linux_regset_core_fns.
9998 (ppc_linux_regset_from_core_section): Replace
9999 fetch_core_registers.
10000 (ppc_linux_regset_core_fns): Delete.
10001 * ppc-linux-nat.c: (right_fill_reg): New function.
10002 (supply_gregset): Update call to ppc_linux_supply_gregset.
10003 (fill_gregset): Clear the register set, use right_fill_reg.
10004 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10005 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10006
ed6edd9b
AC
10007 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10008 unsigned.
10009
030f20e1
AC
100102004-03-15 Andrew Cagney <cagney@redhat.com>
10011
10012 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10013 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10014 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10015 and register_gdbarch_data.
10016 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10017 (struct gdbarch_data): Replace "init" by "pre_init" and
10018 "post_init".
10019 * gdbarch.h, gdbarch.c: Re-generate.
10020 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10021 with"obstack", use OBSTACK_ZALLOC.
10022 (dwarf2_frame_ops): Delete.
10023 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10024 (dwarf2_frame_init_reg): Use gdbarch_data.
10025 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10026 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10027 (_initialize_svr4_solib): Update.
10028 * user-regs.c (_initialize_user_regs): Update.
10029 * reggroups.c (_initialize_reggroup): Update.
10030 * regcache.c (_initialize_regcache): Update.
10031 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10032 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10033 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10034 * frame-unwind.c (_initialize_frame_unwind): Update.
10035 * frame-base.c (_initialize_frame_base): Update.
10036 * user-regs.c (user_reg_add): Update.
10037 * reggroups.c (reggroup_add): Update.
10038 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10039 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10040 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10041 * frame-base.c (frame_base_table): Update.
10042 * remote.c (_initialize_remote): Update.
10043 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10044
3111a3fc
AC
100452004-03-15 Andrew Cagney <cagney@redhat.com>
10046
10047 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10048
5ecb7103
KB
100492004-03-15 Kevin Buettner <kevinb@redhat.com>
10050
10051 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10052 * frv-linux-tdep.c: New file.
10053 * frv-tdep.c (struct gdbarch_tdep): Add new field
10054 ``sigcontext_reg_addr''.
10055 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10056 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10057 (frv_sigramp_frame_sniffer): New functions.
10058 (frv_sigtramp_frame_unwind): New static global.
10059 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10060 sniffers.
10061 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10062 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10063
1ccda5e9
KB
100642004-03-15 Kevin Buettner <kevinb@redhat.com>
10065
10066 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10067 but not via a call to error(), when unable to read memory.
10068
b375a0a5
KB
100692004-03-15 Kevin Buettner <kevinb@redhat.com>
10070
10071 * frv-tdep.c (frv_call_dummy_words): Delete.
10072 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10073
4fdf6121
AC
100742004-03-15 Andrew Cagney <cagney@redhat.com>
10075
10076 * infrun.c (handle_step_into_function, step_over_function): Only
10077 update and use STEP_FRAME_ID when the system is using legacy
10078 frames. Update comments.
10079
34021503
MK
100802004-03-14 Mark Kettenis <kettenis@gnu.org>
10081
187e21d1
MK
10082 * amd64-linux-tdep.h: Remove file.
10083 * amd64-linux-tdep.c: Don't include "inferior.h" and
10084 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10085 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10086 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10087 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10088 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10089 macros.
10090 (user_to_gdb_regmap): Remove variable.
10091 (amd64_linux_gregset_reg_offset): New variable.
10092 (amd64_core_fns): Remove variable.
10093 (fetch_core_registers): Remove function.
10094 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10095 functions.
10096 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10097 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10098 * Makefile.in (amd64_linux_tdep_h): Remove.
10099 (amd64-linux-nat.o): Update dependencies.
10100 (amd64-linux-tdep.o): Update dependencies.
10101
99679982
MK
10102 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10103 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10104 functions.
10105 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10106
34021503
MK
10107 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10108 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10109
134d01f1
DJ
101102004-03-14 Daniel Jacobowitz <drow@mvista.com>
10111
10112 * dwarf2read.c (read_structure_type): Rename from
8718a420 10113 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10114 Return immediately if die->type is set. Call read_type_die before
10115 dwarf2_add_member_fn.
10116 (process_structure_scope): New function.
10117 (read_enumeration_type, process_enumeration_scope): New functions,
10118 broken out from read_enumeration. Don't create the enumeration
10119 type if it has already been created.
10120 (read_enumeration): Removed.
10121 (process_die): Call read_structure_type, process_structure_scope,
10122 read_enumeration_type, and process_enumeration_scope. Just call
10123 new_symbol for base and subrange types. Add a comment about other
10124 type dies.
10125 (read_type_die): Call read_enumeration_type.
10126 (add_partial_structure, new_symbol): Update comments.
10127
65760afb
SC
101282004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10129
10130 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10131
10f59415
SC
101322004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10133
10134 * tui/tui-win.h (tui_get_cmd_list): Declare.
10135 * tui/tui-win.c (tui_command): New function.
10136 (tui_get_cmd_list): New function.
10137 (_initialize_tui_win): Moved initialization of tui command in
10138 tui_get_cmd_list.
10139
10140 * tui/tui-data.c (init_content_element): Setup new data members.
10141 (init_win_info): Likewise.
10142 (free_content_elements): Free it.
10143 * tui/tui-data.h (struct tui_data_element): Store the register
10144 content to print.
10145 (struct tui_data_info): Keep the current register group.
10146
10147 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10148
10149 * tui/tui-regs.h (tui_show_registers): Update prototype.
10150 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10151 (tui_resize_all): No need to calculate anything for register window.
10152 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10153 (tui_set_register_element, tui_set_general_regs_content): Remove.
10154 (tui_set_special_regs_content): Remove.
10155 (tui_set_general_and_special_regs_content): Remove.
10156 (tui_set_float_regs_content): Remove.
10157 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10158 (tui_set_regs_content): Remove.
10159 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10160 (tui_v_show_registers_command_support): Remove.
10161 (tui_show_registers): Use a reggroup to specify the registers to show.
10162 (tui_show_register_group): New function.
10163 (tui_display_registers_from): Compute the layout of register window
10164 and refresh with new API; be sure to delete old register windows.
10165 (tui_check_register_values): Update to use tui_get_register and
10166 tui_display_data.
10167 (tui_display_register): Just refresh the register window part.
10168 (tui_register_format): Format registers and save in tui_data_element.
10169 (tui_get_register): New to combine tui_reg_value_has_changed and
10170 tui_get_register_raw_value; fix to use the new gdb API.
10171 (tui_show_float_command): Renamed tui_reg_float_command.
10172 (tui_show_general_command): Renamed tui_reg_general_command.
10173 (tui_show_special_command): Renamed tui_reg_system_command.
10174 (_initialize_tui_regs): Remove unused commands.
10175
c3364ea4
MK
101762004-03-13 Mark Kettenis <kettenis@gnu.org>
10177
27d1e716
MK
10178 * NEWS (New native configurations): Mention OpenBSD/amd64.
10179
c3364ea4
MK
10180 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10181 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10182 Remove defines.
10183 * config/i386/nm-fbsd64.h: Likewise.
10184 * config/i386/nm-obsd.h: Likewise.
10185 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10186 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10187
b2d6d697
KB
101882004-03-12 Kevin Buettner <kevinb@redhat.com>
10189
10190 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10191 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10192 New constants.
10193
76e43199
KB
10194 From Richard Sandiford <rsandifo@redhat.com>:
10195 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10196
34ce532e
KB
101972004-03-12 Kevin Buettner <kevinb@redhat.com>
10198
10199 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10200 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10201 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10202 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10203 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10204 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10205 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10206 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10207 definitions from frv-tdep.c to frv-tdep.h.
10208
c4d10515
KB
102092004-03-12 Kevin Buettner <kevinb@redhat.com>
10210
10211 Add shared library support for FR-V FDPIC ABI:
10212 * Makefile.in (solib-frv.o): Add dependencies.
10213 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10214 New functions.
10215 (frv_push_dummy_call): Add support for FDPIC ABI.
10216 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10217 for FDPIC ABI.
10218 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10219 (frv_fdpic_find_canonical_descriptor): Declare.
10220 * solib-frv.c: New file.
10221 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10222 * config/frv/tm-frv.h (solib.h): Include.
10223
ed1bd989
KB
102242004-03-12 Kevin Buettner <kevinb@redhat.com>
10225
10226 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10227 (frv-tdep.o): Update dependencies.
10228 * frv-tdep.h: New file.
10229 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10230 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10231 constants.
10232 (struct gdbarch_tdep): Add new member ``frv_abi''.
10233 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10234 functions.
10235 (new_variant): Set ``frv_abi'' field.
10236 (gdb_arch_init): Detect FDPIC executables.
10237
82b38f72
MK
102382004-03-12 Mark Kettenis <kettenis@gnu.org>
10239
10240 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10241 wrapper.
10242
db1ea9ba
AC
102432004-03-11 Andrew Cagney <cagney@redhat.com>
10244
10245 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10246
f8766ec1
KB
102472004-03-11 Kevin Buettner <kevinb@redhat.com>
10248
10249 * solist.h (master_so_list): New function.
10250 * solib.c (master_so_list): Likewise.
10251 * solib-svr4.c (enable_break): Iterate over so_list entries
10252 obtained from master list instead of entries obtained directly
10253 via svr4_current_sos().
10254
523f6a27
BE
102552004-03-10 Ben Elliston <bje@gnu.org>
10256
10257 * MAINTAINERS: Update my mail address.
10258
37814c18
KI
102592004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10260
10261 * remote-m32r-sdi.c: Support hardware watchpoint.
10262
8b9740d8
DJ
102632004-03-09 Daniel Jacobowitz <drow@mvista.com>
10264
10265 * user-regs.c: Update copyright years.
10266 (struct user_regs): Rename to gdb_user_regs.
10267 (append_user_reg, builtin_user_regs, user_regs_init)
10268 (user_reg_add, user_reg_map_name_to_regnum)
10269 (usernum_to_user_reg): Update.
10270
4bb7a0a7
DJ
102712004-03-09 Daniel Jacobowitz <drow@mvista.com>
10272
10273 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10274 (skip_children): New functions.
10275 (locate_pdi_sibling): Call skip_children.
10276
44e1a9eb
DJ
102772004-03-09 Daniel Jacobowitz <drow@mvista.com>
10278
10279 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10280 * gdbtypes.c (check_typedef): Update comments.
10281
f3dd6933
DJ
102822004-03-09 Daniel Jacobowitz <drow@mvista.com>
10283
10284 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10285 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10286 pointer. Update comment about comp_unit_head.
10287 (struct abbrev_info): Shorten two int flags.
10288 (dwarf_alloc_abbrev): Take a CU argument.
10289 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10290 each time through the loop. Update cleanup argument.
10291 (psymtab_to_symtab_1): Update cleanup call.
10292 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10293 abbrev_obstack.
10294 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10295 Just call obstack_free and clear the pointer.
10296
b40c7d58
DJ
102972004-03-09 Daniel Jacobowitz <drow@mvista.com>
10298
10299 * infrun.c (handle_inferior_event): Remove short-circuit code for
10300 events in a different thread.
10301
333dabeb
DJ
103022004-03-09 Daniel Jacobowitz <drow@mvista.com>
10303
10304 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10305 print the whole transfer.
10306 (initialize_targets): Update description of "set debug target".
10307
aa17d93e
DJ
103082004-03-09 Daniel Jacobowitz <drow@mvista.com>
10309
10310 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10311
0b71f08f
NW
103122004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10313
10314 * MAINTAINERS (write after approval): Add myself.
10315
3930f270
CV
103162004-03-08 Corinna Vinschen <vinschen@redhat.com>
10317
10318 * sh-tdep.c (sh_print_registers_info): Use for loop.
10319 Don't skip multiple registers when a float register is encountered.
10320
a2b4a96c
CV
103212004-03-08 Corinna Vinschen <vinschen@redhat.com>
10322
10323 Fix PR tdep/1291.
10324 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10325 to official SH documentation.
10326
f15a4bc0
AC
103272004-03-07 Andrew Cagney <cagney@redhat.com>
10328
10329 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10330 unused function.
10331
9498281f
DJ
103322004-03-07 Daniel Jacobowitz <drow@mvista.com>
10333
10334 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10335 (arm_get_next_pc): Handle BX and BLX.
10336
449e1137
AC
103372004-03-07 Andrew Cagney <cagney@redhat.com>
10338
eded0a31
AC
10339 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10340 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10341 HPPA_SP_REGNUM.
10342 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10343 (hppa_target_read_fp): Delete.
10344 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10345 register_virtual_size, max_register_raw_size,
10346 max_register_virtual_size, register_byte, register_size,
10347 target_read_fp, fp_regnum, and register_bytes. Set register_type
10348 instead of register_virtual_type.
10349 (hppa32_register_type, hppa64_register_type): Replace
10350 hppa32_register_virtual_type and hppa64_register_virtual_type.
10351 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10352 (HPPA_FP_REGNUM): Define.
10353
f5f907e2
AC
10354 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10355
69b4bbe4
AC
10356 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10357 (pa_do_registers_info): Delete.
10358 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10359 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10360 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10361
78161e48
AC
10362 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10363 GDB_TARGET_IS_HPPA code.
10364 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10365 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10366 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10367 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10368 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10369 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10370 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10371 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10372 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10373 (hppa_frameless_function_invocation, hppa64_store_return_value)
10374 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10375 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10376 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10377 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10378 (find_proc_framesize, deposit_21, restore_pc_queue)
10379 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10380 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10381
782eae8b
AC
10382 Unconditionally enable 64-bit frame and ABI code.
10383 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10384 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10385 push_dummy_frame, fix_call_dummy, push_arguments,
10386 call_dummy_location, extract_return_value, use_struct_convention,
10387 store_return_value, store_struct_return, saved_pc_after_call,
10388 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10389 frame_chain, frame_chain_valid, frameless_function_invocation,
10390 frame_saved_pc, and pop_frame.
78161e48 10391
449e1137
AC
10392 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10393 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10394 (hppa_gdbarch_init): Do not set PC_REGNUM.
10395
12507572
MK
103962004-03-06 Mark Kettenis <kettenis@gnu.org>
10397
10398 * config/alpha/tm-fbsd.h: Remove file.
10399 * config/alpha/fbsd.mt: Tweak comment.
10400 (TM_FILE): Set to tm-alpha.h.
10401
c107cc1b
AC
104022004-03-05 Andrew Cagney <cagney@redhat.com>
10403
10404 * infrun.c (step_over_function): When non-legacy code, and no
10405 step_frame_id, use the unwinder to get the caller's frame ID.
10406
f2e7c15d
MK
104072004-03-05 Mark Kettenis <kettenis@gnu.org>
10408
8b0c3633
MK
10409 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10410 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10411 bfd_arch_unknown. Adjust comment.
10412
f2e7c15d
MK
10413 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10414 * i386obsd-tdep.c: Correct spelling in comment.
10415 * i386nbsd-tdep.c: Correct spelling in comment.
10416 * sparc-tdep.c: Correct spelling in comments.
10417
1198ecbe
DC
104182004-03-05 David Carlton <carlton@kealia.com>
10419
10420 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10421 bug.
10422
9eb42ed1
MK
104232004-03-05 Mark Kettenis <kettenis@gnu.org>
10424
10425 * sparc-tdep.c: Fix typo in comment.
10426
52b5e991
JB
104272004-03-04 J. Brobecker <brobecker@gnat.com>
10428
10429 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10430
d8151005
DJ
104312004-03-04 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * dwarf2read.c: Add comment describing memory lifetimes.
10434 (struct dwarf2_pinfo): Update comment.
10435 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10436 (read_enumeration, new_symbol): Don't use obsavestring.
10437
cbeae229
MK
104382004-03-04 Mark Kettenis <kettenis@gnu.org>
10439
722d18c2
MK
10440 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10441 instead of amd64_fill_fxsave.
10442 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10443 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10444
cbeae229
MK
10445 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10446 Reorganize code a bit.
10447
b4206d25
OF
104482004-03-04 Orjan Friberg <orjanf@axis.com>
10449
10450 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10451 when the frame pointer is pushed. Don't set the frame pointer's
10452 address on the stack unless it's actually located there.
b4206d25
OF
10453 Set the SRP's address on the stack correctly when the PC is still in
10454 the prologue.
10455 (cris_return_value): New function.
10456 (cris_gdbarch_init): Clear deprecated store_return_value,
10457 extract_return_value.
10458
49b0b195
JB
104592004-03-02 Jim Blandy <jimb@redhat.com>
10460
10461 * stabsread.c (reg_value_complaint): The maximum register number
10462 is one less than the number of registers.
10463
e9ff708b
AC
104642004-03-02 Andrew Cagney <cagney@redhat.com>
10465
10466 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10467 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10468 trailing comma and redundant assignment of I386_ST0_REGNUM.
10469 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10470 32-bit segment registers.
10471
d4715e41
AC
104722004-03-01 Andrew Cagney <cagney@redhat.com>
10473
10474 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10475 use frame_relative_level and get_next_frame.
10476
3ce2bf18
AC
104772004-02-29 Andrew Cagney <cagney@redhat.com>
10478
10479 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10480 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10481 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10482 Delete macro.
10483
2da6aac3
DJ
104842004-02-29 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * inflow.c (terminal_inferior): Don't give up the terminal if we
10487 previously couldn't get the inferior's terminal state.
10488
6ba34a8d
DJ
104892004-02-29 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10492 PC_REGNUM.
10493
faae5abe
AC
104942004-02-28 Andrew Cagney <cagney@redhat.com>
10495
10496 * NEWS: Refer to GDB 6.1.
10497 * README: Refer to GDB 6.1.
10498 * PROBLEMS: Refer to GDB 6.1.
10499
2227a3c5
DJ
105002004-02-28 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * thread-db.c (disable_thread_signals): Remove unused function.
10503
80571bff
MK
105042004-02-28 Mark Kettenis <kettenis@gnu.org>
10505
041bd74b
MK
10506 * amd64-nat.c: Include "gdb_string.h".
10507 (amd64_collect_native_gregset): Zero-extend the 32-bit
10508 general-purpose registers and %eip.
10509
3c017e40
MK
10510 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10511 * amd64-tdep.c (amd64_collect_fxsave): New function.
10512 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10513
80571bff
MK
10514 * i387-tdep.h: Update copyright year.
10515 (i387_collect_fxsave): New prototype.
10516 * i387-tdep.c: Update copyright year.
10517 (i387_collect_fxsave): New function containing most of the code
10518 from i387_fill_fxsave.
10519 (i387_fill_fxsave): Call i387_collect_fxsave.
10520
50d71875
AC
105212004-02-28 Andrew Cagney <cagney@redhat.com>
10522
10523 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10524 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10525
4a28816e
MK
105262004-02-28 Mark Kettenis <kettenis@gnu.org>
10527
10528 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10529
dbda9972
AC
105302004-02-28 Andrew Cagney <cagney@redhat.com>
10531
10532 * utils.c: Use "", instead of <>, to include readline.
10533 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10534 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10535 * source.c, solib.c, exec.c, event-top.c: Ditto.
10536 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10537 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10538 * Makefile.in: Update all dependencies.
10539 (readline_tilde_h, readline_history_h): Define.
10540 (readline_headers): Delete.
10541
83277a99
MK
105422004-02-28 Mark Kettenis <kettenis@gnu.org>
10543
91ae4303
MK
10544 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10545 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10546 "config/i386/tm-lx64.h".
10547
83277a99
MK
10548 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10549 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10550 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10551
6e1d7d6c
AC
105522004-02-28 Andrew Cagney <cagney@redhat.com>
10553
ecc9ac84
AC
10554 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10555
6e1d7d6c
AC
10556 * breakpoint.c (_initialize_breakpoint): Use
10557 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10558 Add help to show command.
10559
9671aeef
MK
105602004-02-28 Mark Kettenis <kettenis@gnu.org>
10561
7fa2737c
MK
10562 * i386-nat.c: Reformat to be closer to coding standards.
10563 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10564 `retval'. Make variables `align' and `size' local to while-loop.
10565 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10566 (_initialize_i386_nat): New prototype.
10567
9671aeef
MK
10568 * tui/tui.c: Include <readline/readline.h> instead of
10569 "readline/readline.h". Include it after <term.h> and
10570 "gdb_curses.h".
10571
fca7aa43
AC
105722004-02-27 Andrew Cagney <cagney@redhat.com>
10573
412275d5
AC
10574 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10575 the new frame unwind code.
10576 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10577 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10578 PCOQ_HEAD_REGNUM.
10579
fca7aa43
AC
10580 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10581 "return_value" and "push_dummy_call".
10582 (hppa32_use_struct_convention): Delete unused function.
10583 (hppa32_store_return_value): Delete unused function.
10584 (hppa32_extract_return_value): Delete unused function.
10585 (hppa32_stack_align): Delete function.
10586
e6a8a7d2
EZ
105872004-02-27 Eli Zaretskii <eliz@elta.co.il>
10588
10589 * coffread.c (enter_linenos): Don't let rawptr reference memory
10590 outside linetab[]'s limits.
10591
1797a8f6
AC
105922004-02-27 Andrew Cagney <cagney@redhat.com>
10593
10594 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10595 inferior stack space - the stack needs to grow upwards.
10596 (hppa32_frame_align): New function.
10597 (hppa64_frame_align): Replace hppa_frame_align.
10598 (hppa_gdbarch_init): Update.
10599
2e4b5889
OF
106002004-02-26 Orjan Friberg <orjanf@axis.com>
10601
10602 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10603 (dwarf2-frame.h): Include.
10604 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10605 Remove static variables related to ABI setting.
10606 (struct gdbarch_tdep): Remove cris_abi member.
10607 (struct frame_extra_info): Remove.
10608 (cris_unwind_cache, stack_item): New structs.
10609 (cris_frame_unwind, cris_frame_base): New variables.
10610 (push_stack_item, pop_stack_item)
10611 (cris_frame_unwind_cache, cris_frame_this_id)
10612 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10613 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10614 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10615 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10616 (cris_reg_struct_has_addr): New functions.
10617 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 10618 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
10619 (cris_store_struct_return, cris_frameless_function_invocation)
10620 (cris_pop_frame, cris_skip_prologue_main)
10621 (cris_abi_original_store_return_value)
10622 (cris_abi_v2_store_return_value)
10623 (cris_abi_original_extract_return_value)
10624 (cris_abi_v2_extract_return_value)
10625 (cris_abi_original_reg_struct_has_addr)
10626 (cris_abi_v2_reg_struct_has_addr)
10627 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10628 (cris_push_return_address, cris_abi_update): Remove.
10629 (_initialize_cris_tdep): Remove ABI command.
10630 (cris_dump_tdep): Ditto.
8718a420 10631 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
10632 Set store_return_value, extract_return_value, push_dummy_code,
10633 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10634 frame_unwind_append_sniffer, frame_base_set_default.
10635 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10636 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10637 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 10638 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
10639 init_extra_frame_info, frameless_function_invocation, frame_chain,
10640 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10641 dummy_write_sp.
8718a420 10642
6b9acc27
JJ
106432004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10644
10645 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10646 * valprint.c (print_hex_chars): Change from static to external.
10647 (print_char_chars): New function.
10648 * printcmd.c (print_scalar_formatted): For integer and enum types
10649 that are longer than LONGEST, perform processing via appropriate
10650 print_*_chars routines.
10651
a431654a
AC
106522004-02-26 Andrew Cagney <cagney@redhat.com>
10653
10654 * Makefile.in: Update dependencies.
10655 Changes from Ulrich Weigand,
10656 * s390-tdep.c: Include "dwarf2-frame.h".
10657 (s390_dwarf2_frame_init_reg): New function.
10658 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10659 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10660
fa8d40ab
JJ
106612004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10662
10663 * breakpoint.c (pending_break_support): New setting variable.
10664 (break_command_1): Account for pending_break_support setting
10665 when creating pending breakpoints.
10666 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10667 (_initialize_breakpoint): Add "set breakpoint pending" and
10668 "show breakpoint pending" commands.
10669
0dcd613f
AC
106702004-02-26 Andrew Cagney <cagney@redhat.com>
10671
10672 Fix PR i18n/1570.
10673 * charset.c (backslashable, backslashed, represented): Remove 'e'
10674 from list of escaped characters, not part of ISO-C.
10675
479272a3
JB
106762004-02-25 J. Brobecker <brobecker@gnat.com>
10677
10678 From Peter Schauer <schauer@pdf.de>:
10679 * tui/tui.c: Move system header includes after local includes.
10680 Fixes a build failure on solaris systems.
10681
7613d933
JB
106822004-02-25 J. Brobecker <brobecker@gnat.com>
10683
10684 * configure.in: Refine the previous change.
10685 * configure: Regenerate.
10686
9c1488cb
MK
106872004-02-25 Mark Kettenis <kettenis@gnu.org>
10688
10689 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10690 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10691 "amd64-tdep.h" instead of "x86-64-tdep.h".
10692 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10693 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10694 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10695 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10696 and "x86-64-tdep.c".
10697 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10698 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10699 and "x86-64-tdep.c".
10700 * amd64bsd-nat.c: Update copyright year.
10701 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10702 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10703 "x86-64-tdep.h".
10704 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10705 "x86-64-tdep.h".
10706 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10707 "x86-64-tdep.h".
10708 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10709 "x86-64-tdep.h".
10710 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10711 "x86-64-tdep.h".
10712 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10713 "x86-64-tdep.h".
8718a420 10714 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
10715 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10716 * Makefile.in (amd64_linux_tdep_h): Renamed from
10717 x86_64_linux_tdep_h.
10718 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10719 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10720 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10721 (amd64obsd-tdep.o): Update dependencies.
10722 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10723 dependencies.
10724 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10725 dependencies.
10726 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10727 amd64-linux-nat.c amd64-linux-tdep.c.
10728 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10729 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10730 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10731 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10732 amd64-tdep.o and amd64-linux-tdep.o.
10733 (TM_FILE): Set to tm-linux64.h.
10734 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10735 (NAT_FILE): Set to nm-linux64.h.
10736 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10737 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10738 amd64-tdep.o.
10739 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10740 amd64-tdep.o.
10741 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10742 amd64-tdep.o.
10743
4b8dad4a
RM
107442004-02-25 Roland McGrath <roland@redhat.com>
10745
10746 * remote.c (remote_protocol_qPart_auxv): New variable.
10747 (init_all_packet_configs): Initialize it.
10748 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10749 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10750 (show_remote_cmd): Call it.
10751 (_initialize_remote): Initialize commands.
10752 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10753 service TARGET_OBJECT_AUXV requests.
10754
66745969
JB
107552004-02-25 J. Brobecker <brobecker@gnat.com>
10756
10757 * configure.in: Make sure that the wborder function is available.
10758 Otherwise, search for it in the cur_colr library.
10759 * configure: Regenerate.
10760
79508e1e
AC
107612004-02-25 Andrew Cagney <cagney@redhat.com>
10762
10763 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10764
571ee600
MK
107652004-02-25 Mark Kettenis <kettenis@gnu.org>
10766
10767 * config/i386/tm-x86-64linux.h: Tweak comments.
10768
2b1b322f 107692004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
10770
10771 * MAINTAINERS: Add self to write-after-approval list.
10772
4d2acc65
AC
107732004-02-25 Andrew Cagney <cagney@redhat.com>
10774
4b8dad4a 10775 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
10776 * cli/cli-script.c (execute_control_command): Unconditionally
10777 install a cleanup. Default "ret" to "invalid_control". Use
10778 "break" instead of "return" to escape from the switch.
10779
4cfcaf21
JB
107802004-02-24 J. Brobecker <brobecker@gnat.com>
10781
10782 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10783 with the lines macro defined in term.h on AiX.
10784 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10785 a collision with the label_width macro defined in term.h on AiX.
10786
54a5c8d8
KB
107872004-02-23 David Mosberger <davidm@hpl.hp.com>
10788
10789 Committed by Kevin Buettner <kevinb@redhat.com>.
10790
10791 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10792 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10793 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10794 instead of ia64_write_pc().
10795 * ia64-linux-tdep.c (regcache.h): Include.
10796 (ia64_linux_write_pc): New function.
4b8dad4a 10797
8a1dac83
RM
107982004-02-23 Roland McGrath <roland@redhat.com>
10799
10800 * auxv.c (info_auxv_command): Fix typos in error messages.
10801
90f90721
MK
108022004-02-23 Mark Kettenis <kettenis@gnu.org>
10803
8a1dac83 10804 * x86-64-tdep.h: Tweak comment.
90f90721
MK
10805 (enum amd64_regnum): New.
10806 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10807 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10808 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10809 (X86_64_XMM1_REGNUM): Removed.
10810 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10811 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10812 prototypes for renamed functions.
10813 * x86-64-tdep.c: Fix typo.
10814 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10815 register numbers.
10816 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10817 Use constants from `enum amd64_regnum' for register numbers.
10818 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10819 (amd64_analyze_prologue, amd64_frame_cache,
10820 amd64_sigtramp_frame_cache): Use constants from `enum
10821 amd64_regnum' for register numbers.
10822 (amd64_supply_fpregset): Adjust for renamed functions.
10823 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10824 `enum amd64_regnum' for register numbers.
10825 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10826 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10827 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10828 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10829 (amd64_linux_fill_gregset): Adjust for renamed macros.
10830 (fetch_core_registers): Adjust for renamed functions.
10831 (amd64_linux_init_abi): Adjust for renamed functions.
10832 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10833 renamed functions.
10834 * amd64-nat.c: Adjust for renamed macros.
10835 * amd64bsd-nat.c (fetch_inferior_registers)
10836 (store_inferior_registers): Use constants from `enum amd64_regnum'
10837 for register numbers. Adjust for renamed variables.
10838 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10839 renamed variables.
10840 (_initialize_amd64fbsd_nat): Use constants from `enum
10841 amd64_regnum' for register numbers.
10842 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10843 `enum amd64_regnum' for register numbers.
10844 (amd64fbsd_init_abi): Adjust for renamed functions.
10845 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10846 `enum amd64_regnum' for register numbers.
10847 (amd64nbsd_init_abi): Adjust for renamed functions.
10848 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10849 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10850 `enum amd64_regnum' for register numbers.
10851 (amd64obsd_init_abi): Adjust for renamed functions.
10852 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10853
d5479188
JJ
108542004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10855
10856 * breakpoint.c (print_one_breakpoint): Do not output spaces
10857 after printing <PENDING> for a pending breakpoint.
10858
81cb7cc9
JJ
108592004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10860
10861 * printcmd.c (print_scalar_formatted): Initialize val_long
10862 to remove compiler warning message.
10863
cbdeadca
JJ
108642004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10865
10866 * defs.h (nquery, yquery): New prototypes.
10867 * breakpoint.c (break_command_1): Use new nquery interface.
10868 * utils.c (defaulted_query, nquery, yquery): New functions.
10869
da6bab63
AC
108702004-02-23 Andrew Cagney <cagney@redhat.com>
10871
2f690297
AC
10872 * hppa-tdep.c (hppa_frame_align): New function.
10873 (hppa32_push_dummy_call): New function.
10874 (hppa64_push_dummy_call): New function.
10875 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10876 disabled.
8a1dac83 10877
da6bab63
AC
10878 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10879 FIX_CALL_DUMMY when push_dummy_call is available.
10880 (call_function_by_hand, push_dummy_code): Ditto.
10881
abf9b42d
AC
108822004-02-22 Andrew Cagney <cagney@redhat.com>
10883
10884 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10885 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10886 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10887 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10888 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10889 call_dummy_location to ON_STACK.
10890
10fc94a4
MK
108912004-02-22 Mark Kettenis <kettenis@gnu.org>
10892
51433e4b
MK
10893 * x86-64-linux-tdep.c: Tweak comment.
10894 (amd64_linux_supply_gregset): Renamed from
10895 x86_64_linux_supply_gresget.
10896 (amd64_linux_fill_gregset): Renamed from
10897 x86_64_linux_fill_gregset.
10898 (fetch_core_registers): Adjust for renamed functions.
10899 (amd64_core_fns): Renamed from x86_64_core_fns.
10900 (amd64_linux_sigtramp_start): Renamed from
10901 x86_64_linux_sigtramp_start.
10902 (amd64_linux_pc_in_sigtramp): Renamed from
10903 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10904 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10905 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10906 (amd64_linux_sigcontext_addr): Renamed from
10907 x86_64_linux_sigcontext_addr.
10908 (amd64_linux_sc_reg_offset): Renamed from
10909 x86_64_linux_sc_reg_offset.
10910 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10911 Adjust for renamed functions and variables.
10912 (_initialize_amd64_linux_tdep): Renamed from
10913 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10914 variables.
10915 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10916 Adjust for renamed functions.
10917
430eaf2e
MK
10918 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10919 from x86_64_linux_gregset64_reg_offset.
10920 (amd64_linux_gregset32_reg_offset): Rename from
10921 x86_64_linux_gregset64_reg_offset.
10922 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10923 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10924 (amd64_linux_dr_set_control): Renamed from
10925 x86_64_linux_dr_set_control. Adjust for renamed functions.
10926 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10927 Adjust for renamed functions.
10928 (amd64_linux_dr_reset_addr): Renamed from
10929 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10930 (amd64_linux_dr_get_status): Renamed from
10931 x86_64_linux_dr_get_status. Adjust for renamed functions.
10932 (_initialize_amd64_linux_nat): Renamed from
10933 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10934 functions.
10935 * config/i386/nm-x86-64linux.h: Update copyright year.
10936 Adjust for renamed functions.
10937
10fc94a4
MK
10938 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10939 amd64fbsd_sigtramp_start.
10940 (amd64fbsd_sigtramp_end_addr): Renamed from
10941 amd64fbsd_sigtramp_end.
10942 (amd64fbsd_init_abi): Adjust for renamed variables.
10943 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10944 variables.
10945 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10946 amd64fbsd_sigtramp_start.
10947 (amd64fbsd_sigtramp_end_addr): Renamed from
10948 amd64fbsd_sigtramp_end.
10949
343af405
AC
109502004-02-22 Andrew Cagney <cagney@redhat.com>
10951
537987fc
AC
10952 * hppa-tdep.c (hppa32_return_value): New function.
10953 (hppa64_return_value): New function.
10954 (hppa_gdbarch_init): Set return_value; keep disabled.
10955
fad850b2
AC
10956 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10957 struct-return and inferior function call methods.
10958
26d08f08
AC
10959 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10960 "frame-base.h".
10961 (struct hppa_frame_cache): Define.
10962 (hppa_frame_cache, hppa_frame_this_id): New functions.
10963 (hppa_frame_prev_register): New function.
10964 (hppa_frame_unwind, hppa_frame_base): New variables.
10965 (hppa_frame_unwind_sniffer): New function.
10966 (hppa_frame_base_address, hppa_unwind_pc): New function.
10967 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10968 sniffer, and frame base sniffer; keep disabled.
10969 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10970 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10971
e7d7bd65
AC
10972 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10973 to predicates for "seriously old code".
10974
e963316f
AC
10975 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10976 runtime if(0).
10977
56132691
AC
10978 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10979 unsigned.
10980 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 10981
343af405
AC
10982 * config/pa/tm-hppa.h: Update copyright.
10983 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10984 (deprecated_init_frame_pc_default): Delete declaration.
10985 (hppa_frame_init_saved_regs): Delete declaration.
10986 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10987 * hppa-tdep.c: Include "arch-utils.h".
10988 (hppa_gdbarch_init): Set deprecated init_frame_pc
10989 and deprecated frame_init_saved_regs.
10990 (hppa_frame_init_saved_regs): Make static.
10991
f5859b4d
MK
109922004-02-22 Mark Kettenis <kettenis@gnu.org>
10993
86f6f8e7 10994 Remove old 386BSD support.
cf7c5c23 10995 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
10996 * configure.host: Remove i[34567]86-*-bsd*.
10997 * configure.tgt: Remove i[34567]86-*-bsd*.
10998 * i386b-nat.c: Removed.
10999 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11000 (i386b-nat.o): Remove dependencies.
11001
86f6f8e7
MK
11002 * config/i386/i386bsd.mh: Removed.
11003 * config/i386/i386bsd.mt: Removed.
11004 * config/i386/nm-i386bsd.h: Removed.
11005 * config/i386/tm-i386bsd.h: Removed.
11006 * config/i386/xm-i386bsd.h: Removed.
11007
971218cd
MK
11008 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11009
7e654c37
MK
11010 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11011 (amd64fbsd_init_abi): Set link map offsets.
11012 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11013 (amd64nbsd_init_abi): Set link map offsets.
11014 * amd64obsd-tdep.c: Include "solib-svr4.h".
11015 (amd64obsd_init_abi): Set link map offsets.
11016 * i386fbsd-tdep.c: Include "solib-svr4.h".
11017 (i386fbsd_init_abi): Set link map offsets.
11018 * i386nbsd-tdep.c: Include "solib-svr4.h".
11019 (i386nbsdelf_init_abi): Set link map offsets.
11020 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11021 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11022 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11023 solib-legacy.o and core-aout.o. Reformat.
11024 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11025 solib-svr4.o, solib-legacy.o. Reformat.
11026 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11027 * config/i386/nbsdelf.mh: Reformat.
11028 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11029 solib-svr4.o, solib-legacy.o and corelow.o.
11030 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11031 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11032 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11033 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11034 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11035 (TM_FILE): Set to tm-fbsd.h.
11036 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11037 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11038 solib-svr4.o.
11039 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11040 solib-svr4.o.
11041 (TM_FILE): Set to nm-nbsd.h.
11042 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11043 Simplify shared library support. Don't include "elf/common.h".
11044 (SVR4_SHARED_LIBS): Don't define.
11045 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11046 "solib.h".
11047 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11048 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11049 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11050 Don't include "i386/tm-i386.h". Include "solib.h".
11051 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11052 Don't include "i386/tm-i386.h".
11053 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11054 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11055 Include "i386/xm-i386.h".
11056 (HOST_LONG_DOUBLE_FORMAT): Remove.
11057
5d93ae8c
MK
11058 Fix OpenBSD/i386 sigtramp recognition.
11059 * i386-tdep.h: Update copyright year.
11060 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11061 (i386bsd_sigtramp_end): New prototypes.
11062 (i386fbsd_sigtramp_start_addr): Renamed from
11063 i386fbsd_sigtramp_start.
11064 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11065 (i386obsd_sigtramp_start_addr): Renamed from
11066 i386obsd_sigtramp_start.
11067 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11068 * i386bsd-tdep.c: Update copyright year.
11069 (i386bsd_pc_in_sigtramp): Make public.
11070 * i386fbsd-nat.c: Update copyright year.
11071 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11072 * i386fbsd-tdep.c: Update copyright year.
11073 (i386fbsd_sigtramp_start_addr): Renamed from
11074 i386fbsd_sigtramp_start.
11075 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11076 (i386fbsdaout_init_abi): Adjust for renamed variables.
11077 * i386obsd-nat.c: Update copyright year.
11078 (_initialize_i386obsd_nat): Adjust for renamed variables.
11079 * i386obsd-tdep.c: Include "target.h".
11080 (i386obsd_page_size): New variable.
11081 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11082 (i386obsd_sigtramp_end): New functions.
11083 (i386obsd_sigtramp_start_addr): Renamed from
11084 i386obsd_sigtramp_start.
11085 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11086 (i386obsd_init_abi): Adjust for renamed variables. Set
11087 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11088 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11089
84d04465
MK
11090 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11091 trampoline change in OpenBSD kernel.
11092
b053aceb
MK
11093 * amd64-nat.c: Update copyright year.
11094 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11095 architecture from REGCACHE.
11096
f5859b4d
MK
11097 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11098 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11099
e4bbbda8
MK
111002004-02-21 Mark Kettenis <kettenis@gnu.org>
11101
ba361932
MK
11102 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11103 i[34567]86-*-openbsd3.[0-3].
11104 * config/i386/obsdaout.mh: New file.
11105
d3e48264
MK
11106 * config/i386/obsd.mh (MH_FLAGS): Remove.
11107
60a6eeb6
MK
11108 Fix PR build/1549.
11109 * i386obsd-tdep.c: Update copyright years. Include
11110 "solib-svr4.h".
11111 (i386obsd_init_abi): Don't set regset_from_core_section here.
11112 (i386obsd_aout_init_abi): New function. Set
11113 regset_from_core_section here.
11114 (i386obsd_elf_init_abi): New function.
11115 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11116 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11117 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11118 (TM_FILE): Set to tm-nbsd.h.
11119
11120 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11121 solib-sunos.o.
11122
e4bbbda8
MK
11123 * solib-svr4.h: Update copyright year.
11124 (svr4_ilp32_fetch_link_map_offsets)
11125 (svr4_lp64_fetch_link_map_offsets): New prototype.
11126 * solib-svr4.c: Update copyright year.
11127 (svr4_ilp32_fetch_link_map_offsets)
11128 (svr4_lp64_fetch_link_map_offsets): New function.
11129
f6fe98ef
DJ
111302004-02-20 Daniel Jacobowitz <drow@mvista.com>
11131
11132 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11133 to the partial symbol table.
11134
589ca796
JB
111352004-02-20 J. brobecker <brobecker@gnat.com>
11136
11137 * PROBLEMS: Add description of problem documented under gdb/1560.
11138
2031c21a
MK
111392004-02-20 Mark Kettenis <kettenis@gnu.org>
11140
30b344b1
MK
11141 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11142 comments.
11143 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11144 functions.
11145 (amd64obsd_init_abi): Reorder initializations. Use
11146 amd64obsd_r_reg_offset to initialize the general-purpose register
11147 set details. Set regset_from_core_section.
11148 (_initialize_amd64obsd_tdep): Rename from
11149 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11150 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11151 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11152
2031c21a
MK
11153 * NEWS (New native configurations): Mention OpenBSD/alpha.
11154 * configure.tgt: Add alpha*-*-openbsd*.
11155 * configure.host: Add alpha*-*-openbsd*.
11156 * alphanbsd-tdep.c: Update copyright year.
11157 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11158
42471775
AC
111592004-02-20 Andrew Cagney <cagney@redhat.com>
11160
11161 Fix PR tdep/1372.
11162 * configure.tgt: Delete target "none-*-*".
11163 * configure.host: Delete host "none-*-*".
11164 * config/none/none.mh: Delete file.
11165 * config/none/none.mt: Delete file.
11166 * config/none/xm-none.h: Delete file.
11167 * config/none/tm-none.h: Delete file.
11168 * config/none/nm-none.h: Delete file.
11169
960ccd7d
FF
111702004-02-19 Fred Fish <fnf@redhat.com>
11171
11172 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11173 cache->uses_fp prior to setting it.
11174
5f883edd
FF
111752004-02-19 Fred Fish <fnf@redhat.com>
11176
11177 Fix for PR breakpoint/1558.
11178 * sh-tdep.c (IS_JSR): New macro.
11179 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11180
f98c22d5
JB
111812004-02-19 Jim Blandy <jimb@redhat.com>
11182
11183 * findvar.c (value_from_register): Doc fix.
11184
95051d27
JJ
111852004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11186
11187 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11188 type being greater than sizeof of host's LONGEST. Always use
11189 unpack_long() unless format 'f' chosen.
11190
ccefbec3
EZ
111912004-02-19 Joel Brobecker <brobecker@gnat.com>
11192
11193 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11194
ccefbec3
EZ
11195 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11196 contains a symbol wich is the best, non-exact match for the given
11197 pc. Update comments.
11198
111992004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11200
2ede629f
EZ
11201 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11202 macro, which was part of the now removed Mach 3 port.
11203 * utils.c (request_quit): Ditto.
11204
567ee972
MK
112052004-02-18 Mark Kettenis <kettenis@gnu.org>
11206
11207 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11208 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11209
50cca7bb
MK
112102004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11211
11212 Committed by Mark Kettenis <kettenis@gnu.org>.
11213
11214 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11215 Define.
11216
226361c4
AC
112172004-02-18 Andrew Cagney <cagney@redhat.com>
11218
11219 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11220 CONFIG_INSTALL and CONFIG_UNINSTALL.
11221 * configure: Re-generate.
11222 * interps.h (INTERP_TUI): Define.
11223 * Makefile.in: Update dependencies.
11224 (TUI): New macro.
11225 (tui-main.o): Specify dependencies.
11226 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11227 * tui/tui-main.c: New file.
11228
49cfa46f
MK
112292004-02-18 Mark Kettenis <kettenis@gnu.org>
11230
e2879ccb
MK
11231 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11232 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11233 dependencies.
11234 * configure.host: Add x86_64-*-openbsd*.
11235 * configure.tgt: Add x86_64-*-openbsd*.
11236 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11237
c43f4bec
MK
11238 * tui/tui.c: Don't include <malloc.h>.
11239
09ae75b6
MK
11240 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11241 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11242 amd64nbsd-tdep.c.
11243
49cfa46f 11244 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11245 static. Remove extraneous whitespace.
49cfa46f
MK
11246 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11247 static.
11248
05957fdb
JB
112492004-02-17 Jim Blandy <jimb@redhat.com>
11250
11251 * findvar.c (value_from_register): Doc fix.
11252
d0f54f9d
JB
112532004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11254
11255 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11256
8a1dac83 11257 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11258 CORE_ADDR as type for selectors. Correct types for GNU run time
11259 message lookup function to use double indirection.
11260 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11261 * objc-lang.h (lookup_child_selector): Adapt prototype.
11262
9cbd5950
JB
11263 * s390-nat.c (SUBOFF): New macro.
11264 (supply_gregset, fill_gregset): Use it to handle debugging
11265 of 32-bit exectuables running under a 64-bit kernel.
11266 * s390-tdep.c: Include "solib-svr4.h".
11267 (s390_svr4_fetch_link_map_offset): New function.
11268 (s390x_svr_fetch_link_map_offset): Likewise.
11269 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11270 * Makefile.in (s390-tdep.o): Update dependencies.
11271
a8c99f38
JB
11272 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11273 "frame-unwind.h".
11274 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11275 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11276 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11277 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11278 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11279 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11280 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11281 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11282 (struct frame_extra_info): Remove.
11283 (s390_memset_extra_info): Remove.
f73b1eff
JB
11284 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11285 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11286 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11287 (is_rse): Renamed to ...
11288 (is_rsy): ... this. Support long displacements.
11289 (is_rxe): Renamed to ...
11290 (is_rxy): ... this. Support long displacements.
11291 (compute_x_addr): Support long displacements.
11292 (struct s390_prologue_data): New data type.
11293 (s390_on_stack): Change API to use struct s390_prologue_data.
11294 (s390_store): Reimplement.
11295 (s390_load): New function.
11296 (s390_get_signal_frame_info): Remove.
11297 (s390_get_frame_info): Remove, replace by ...
11298 (s390_analyze_prolog): ... this new function.
11299 (s390_check_function_end): Remove.
11300 (s390_function_start): Remove.
11301 (s390_frameless_function_invokation): Remove.
11302 (s390_is_sigreturn): Remove.
11303 (s390_init_frame_pc_first): Remove.
11304 (s390_init_frame_extra_info): Remove.
11305 (s390_frame_init_saved_regs): Remove.
11306 (s390_frame_saved_pc_nofix): Remove.
11307 (s390_frame_saved_pc): Remove.
11308 (s390_frame_chain): Remove.
11309 (s390_fp_regnum, s390_read_fp): Remove.
11310 (s390_pop_frame_regular, s390_pop_frame): Remove.
11311 (s390_saved_pc_after_call): Remove.
11312 (s390_skip_prologue): Reimplement.
11313 (s390_in_function_epilogue_p): Support long displacements.
11314 (struct s390_unwind_cache): New data structure.
11315 (s390_frame_unwind_cache): New function.
11316 (s390_prologue_frame_unwind_cache): Likewise.
11317 (s390_backchain_frame_unwind_cache): Likewise.
11318 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11319 (s390_frame_unwind): Define.
11320 (s390_frame_sniffer): New function.
11321 (struct s390_pltstub_unwind_cache): New data structure.
11322 (s390_pltstub_frame_unwind_cache): New function.
11323 (s390_pltstub_frame_this_id): Likewise.
11324 (s390_pltstub_frame_prev_register): Likewise.
11325 (s390_pltstub_frame_unwind): Define.
11326 (s390_pltstub_frame_sniffer): New function.
11327 (struct s390_sigtramp_unwind_cache): New data structure.
11328 (s390_sigtramp_frame_unwind_cache): New function.
11329 (s390_sigtramp_frame_this_id): Likewise.
11330 (s390_sigtramp_frame_prev_register): Likewise.
11331 (s390_sigtramp_frame_unwind): Define.
11332 (s390_sigtramp_frame_sniffer): New function.
11333 (s390_frame_base_address, s390_local_base_address): New functions.
11334 (s390_frame_base): Define.
11335 (s390_unwind_pc, s390_unwind_sp): New function.
11336 (s390_push_dummy_call): Use new frame base location.
11337 (s390_unwind_dummy_id): Likewise.
11338 (s390_gdbarch_init): Remove calls to:
11339 set_gdbarch_frameless_function_invocation,
11340 set_gdbarch_deprecated_init_frame_pc,
11341 set_gdbarch_deprecated_frame_chain,
11342 set_gdbarch_deprecated_frame_init_saved_regs,
11343 set_gdbarch_deprecated_pop_frame,
11344 set_gdbarch_deprecated_init_extra_frame_info,
11345 set_gdbarch_deprecated_init_frame_pc_first,
11346 set_gdbarch_deprecated_target_read_fp,
11347 set_gdbarch_deprecated_frame_saved_pc,
11348 set_gdbarch_deprecated_saved_pc_after_call,
11349 set_gdbarch_deprecated_fp_regnum.
11350 Add calls to:
11351 set_gdbarch_in_solib_call_trampoline,
11352 frame_unwind_append_sniffer,
11353 frame_base_set_default,
11354 set_gdbarch_unwind_pc,
11355 set_gdbarch_unwind_sp.
11356 * Makefile.in (s390-tdep.o): Update dependencies.
11357
b0cf273e
JB
11358 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11359 (S390_STACK_FRAME_OVERHEAD): Remove.
11360 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11361 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11362 (s390_promote_integer_argument): Remove.
11363 (s390_cannot_extract_struct_value_address): Remove.
11364 (s390_use_struct_convention, s390_store_struct_return): Remove.
11365 (s390_extract_return_value, s390_store_return_value): Remove.
11366 (s390_return_value_convention, s390_return_value): New functions.
11367 (is_float_singleton): Handle typedefs.
8a1dac83 11368 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11369 Remove, replace by ...
11370 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11371 s390_function_arg_integer): ... these new functions.
11372 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11373 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11374 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11375 Fill in tdep->abi.
11376 Remove calls to:
11377 set_gdbarch_deprecated_store_struct_return,
11378 set_gdbarch_deprecated_extract_return_value,
11379 set_gdbarch_deprecated_store_return_value,
11380 set_gdbarch_use_struct_convention,
11381 set_gdbarch_extract_struct_value_address,
11382 set_gdbarch_deprecated_pc_in_call_dummy,
11383 set_gdbarch_deprecated_push_arguments,
11384 set_gdbarch_deprecated_save_dummy_frame_tos,
11385 set_gdbarch_deprecated_push_return_address,
11386 set_gdbarch_deprecated_sizeof_call_dummy_words,
11387 set_gdbarch_deprecated_call_dummy_words,
11388 set_gdbarch_deprecated_dummy_write_sp.
11389 Add calls to:
11390 set_gdbarch_push_dummy_call,
11391 set_gdbarch_unwind_dummy_id,
11392 set_gdbarch_return_value.
8a1dac83 11393
e1457d83
JB
11394 * config/s390/nm-linux.h: Update comments.
11395 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11396 (STOPPED_BY_WATCHPOINT): Redefine.
11397 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11398 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11399 (s390_stopped_by_watchpoint): Likewise.
11400 (watch_area_cnt): Remove.
11401 * s390-nat.c: Update comments.
11402 (watch_area): Remove typedef.
11403 Global replace watch_area by struct watch_area.
11404 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11405 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11406 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11407 (s390_fix_watch_points): Remove pid argument,
11408 use s390_inferior_tid. Recompute area spanned by watchpoints.
11409 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11410 argument. Reimplement.
11411
d0f54f9d
JB
11412 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11413 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11414 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11415 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11416 core-regset.o.
11417 * config/s390/s390x.mt: Remove.
11418 * config/s390/tm-s390.h: Remove.
11419 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11420 (TARGET_ELF64): Remove.
11421 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11422 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11423 s390*-*-* case; always set gdb_target to s390.
11424 * regformats/reg-s390.dat: Remove control registers.
11425 * regformats/reg-s390x.dat: Likewise.
11426 * s390-tdep.h: New file.
8a1dac83 11427 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11428 Include "inferior.h" and "s390-tdep.h".
11429 Remove private definition of offsetof.
11430 (s390_register_u_addr): Remove.
11431 (regmap_gregset, regmap_fpregset): Define.
11432 (supply_gregset, fill_gregset): Reimplement.
11433 (supply_fpregset, fill_fpregset): Likewise.
11434 (s390_inferior_tid): New function.
11435 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11436 (fetch_inferior_registers, store_inferior_registers): Likewise.
11437 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11438 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11439 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11440 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11441 (struct gdbarch_tdep): Define.
11442 (struct s390_register_info): Define.
11443 (s390_register_info): New variable.
11444 (s390_register_name): Reimplement.
11445 (s390_register_type): New function.
11446 (s390_register_raw_size, s390x_register_raw_size): Remove.
11447 (s390_cannot_fetch_register): Remove.
11448 (s390_register_byte): Remove.
11449 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11450 (s390_dwarf_regmap): New variable.
11451 (s390_dwarf_reg_to_regnum): New function.
11452 (s390_stab_reg_to_regnum): Remove.
11453 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11454 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11455 (s390_convert_register_p): Likewise.
11456 (s390_register_to_value, s390_value_to_register): Likewise.
11457 (s390_register_reggroup_p): Likewise.
11458 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11459 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11460 (s390_supply_regset, s390_regset_from_core_section): New functions.
11461 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11462 (S390_FPR_SIZE): Likewise.
11463 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11464 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11465 (S390_NUM_GPRS): Move here from tm-s390.h.
11466 (S390_NUM_FPRS): Likewise.
11467 (s390_in_function_epilogue_p): New function.
11468 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11469 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11470 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11471 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11472 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11473 Remove calls to:
11474 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11475 set_gdbarch_deprecated_max_register_virtual_size,
11476 set_gdbarch_deprecated_register_byte,
d0f54f9d 11477 set_gdbarch_cannot_fetch_register,
8a1dac83 11478 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11479 set_gdbarch_deprecated_register_size,
11480 set_gdbarch_deprecated_register_raw_size,
11481 set_gdbarch_deprecated_register_virtual_size,
11482 set_gdbarch_deprecated_register_virtual_type,
11483 set_gdbarch_deprecated_register_bytes.
11484 Add calls to:
11485 set_gdbarch_num_pseudo_regs,
11486 set_gdbarch_register_type,
11487 set_gdbarch_convert_register_p,
11488 set_gdbarch_register_to_value,
11489 set_gdbarch_value_to_register,
11490 set_gdbarch_register_reggroup_p,
11491 set_gdbarch_regset_from_core_section,
11492 set_gdbarch_pseudo_register_read,
11493 set_gdbarch_pseudo_register_write,
11494 set_gdbarch_in_function_epilogue_p.
11495 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11496 (s390_tdep_h): New variable.
11497
8cfe231d
JB
114982004-02-17 Jim Blandy <jimb@redhat.com>
11499
4589a601
JB
11500 * findvar.c (value_from_register): If the type has no length, just
11501 return an acceptable value --- don't report an internal error.
11502
8cfe231d
JB
11503 * stabsread.c (read_type): If we find any type numbers that are
11504 forward references, complain if the references aren't resolved by
11505 the time we're finished reading.
11506 (cleanup_undefined_types): Make error message more appropriate for
11507 a complaint.
11508
5bf0017e
EZ
115092004-02-17 Elena Zannoni <ezannoni@redhat.com>
11510
9d62932d
EZ
11511 * Makefile.in (defs_h): Remove dependency on progress_h.
11512 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11513 progress.h.
11514 * main.c (captured_main): Delete use of START_PROGRESS and
11515 END_PROGRESS.
11516
115172004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11518
5bf0017e
EZ
11519 * objfiles.c (terminate_minimal_symbol_table): Add back
11520 initialization of MSYMBOL_TYPE.
11521
9fc9f5e2
AC
115222004-02-17 David Mosberger <davidm@hpl.hp.com>
11523
11524 Committed by Andrew Cagney.
11525 * Makefile.in (ia64_tdep_h): New macro.
11526 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11527 (ia64-tdep.o): Likewise.
11528 * ia64-tdep.h: New file.
11529 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11530 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11531 (ia64_aix_sigcontext_register_address): Likewise.
11532 (ia64_linux_getunwind_table): Delete declaration.
11533 * ia64-linux-tdep.c: Likewise.
11534
76cd2bd9
CV
115352004-02-17 Corinna Vinschen <vinschen@redhat.com>
11536
11537 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11538 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11539 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11540
634aa483
AC
115412004-02-17 Andrew Cagney <cagney@redhat.com>
11542
11543 * symtab.c (skip_prologue_using_sal): New function.
11544 * symtab.h (skip_prologue_using_sal): Declare.
11545 * frv-tdep.c: Include "symtab.h".
11546 (skip_prologue_using_sal): Delete function.
11547 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11548 * rs6000-tdep.c (refine_prologue_limit): Mention
11549 skip_prologue_using_sal.
11550 * ia64-tdep.c (refine_prologue_limit): Ditto.
11551 * Makefile.in: Update dependencies.
11552
115532004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11554
39ce7b3f
AC
11555 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11556 START_INFERIOR_TRAPS_EXPECTED.
11557 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11558 START_INFERIOR_TRAPS_EXPECTED.
11559 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11560 Delete macro.
11561 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11562 macro, moved to "nm-osf.h". Update copyright.
11563 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11564 update copyright.
11565
19772a2c
AC
11566 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11567 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11568 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11569 frameless_look_for_prologue.
11570 * frame.h (legacy_frameless_look_for_prologue): Rename
11571 frameless_look_for_prologue.
11572 * gdbarch.h, gdbarch.c: Re-generate.
11573 * sh64-tdep.c (sh64_gdbarch_init): Update.
11574 * sh-tdep.c (sh_gdbarch_init): Update.
11575 * s390-tdep.c (s390_gdbarch_init): Update.
11576 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11577 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11578 * m68k-tdep.c (m68k_gdbarch_init): Update.
11579 (delta68_frame_args_address): Update.
11580 * m32r-tdep.c (m32r_gdbarch_init): Update.
11581 * hppa-tdep.c (hppa_gdbarch_init): Update.
11582 * h8300-tdep.c (h8300_gdbarch_init): Update.
11583 * frv-tdep.c (frv_gdbarch_init): Update.
11584 (frv_frameless_function_invocation): Update.
11585 * cris-tdep.c (cris_gdbarch_init): Update.
11586 (cris_frameless_function_invocation): Update.
11587 * avr-tdep.c (avr_gdbarch_init): Update.
11588 * arm-tdep.c (arm_gdbarch_init): Update.
11589 * stack.c (frame_info): Update, call predicate.
11590 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11591 * frame.c (legacy_get_prev_frame): Update, call predicate..
11592 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11593 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11594 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11595 invocation.
11596 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11597 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11598 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
11599
11600 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11601 function.
11602
7dcaac91
DJ
116032004-02-16 Daniel Jacobowitz <drow@mvista.com>
11604
11605 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11606 initializations.
11607
88289b6e
AC
116082004-02-16 Andrew Cagney <cagney@redhat.com>
11609
11610 * tui/tui-windata.c: Include "gdb_string.h".
11611 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11612 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11613 * Makefile.in: Update dependencies.
11614
9f976b41
DJ
116152004-02-16 Daniel Jacobowitz <drow@mvista.com>
11616
11617 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11618 * infrun.c: Include "gdb_assert.h".
11619 (singlestep_ptid, saved_singlestep_ptid)
11620 (stepping_past_singlestep_breakpoint): New variables.
11621 (resume): Set singlestep_ptid. Check for singlestep thread
11622 hop.
11623 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11624 (handle_inferior_event): Handle singlestep thread hop.
11625
c324d747
AC
116262004-02-16 Andrew Cagney <cagney@redhat.com>
11627
f090b9b1
AC
11628 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11629 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11630 (dwarf2_frame_init_reg): Ditto.
11631
fd33e6cb
AC
11632 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11633 suggested by Joshua Neuheisel
11634
c324d747
AC
11635 * configure.in: Always check for curses, including pdcurses.
11636 Warn, instead of error, when no curses are found. Enable TUI when
11637 curses is available.
11638 * configure: Re-generate.
11639
b66ba949
CV
116402004-02-16 Corinna Vinschen <vinschen@redhat.com>
11641
11642 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11643 sh_sh4_register_convert_to_virtual.
11644 (sh_register_convert_to_raw): Rename from
11645 sh_sh4_register_convert_to_raw.
11646 (sh_pseudo_register_read): Accomodate above name change.
11647 (sh_pseudo_register_write): Ditto.
11648
b58cbbf2
CV
116492004-02-16 Corinna Vinschen <vinschen@redhat.com>
11650
11651 * sh-tdep.c (sh_generic_register_name): Remove.
11652 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11653
5929a910
AC
116542004-02-15 Andrew Cagney <cagney@redhat.com>
11655
4566dfcf
AC
11656 * configure.in (build_warnings): Add -Wunused-function.
11657 * configure: Re-generate.
11658
db11ed55
AC
11659 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11660 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11661
46ac7a5d
AC
11662 * procfs.c (procfs_init_inferior): Assume that
11663 START_INFERIOR_TRAPS_EXPECTED is defined.
11664 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11665 * config/ns32k/tm-nbsd.h: Delete file,
11666 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11667
ba801595
AC
11668 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11669 * config/vax/tm-vax.h: Delete file.
11670
5929a910
AC
11671 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11672 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11673 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11674 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11675 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11676 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11677 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11678
8f22cb90
MK
116792004-02-15 Mark Kettenis <kettenis@gnu.org>
11680
11681 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11682 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11683 (struct dwarf2_frame_ops): New.
11684 (dwarf2_frame_default_init_reg): New function, based on
11685 dwarf2_frame_init_reg.
11686 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11687 (dwarf2_frame_init_reg): Call architecture-specific function.
11688 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11689 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11690 instead of dwarf2_frame_data.
11691 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11692 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11693
8132723e
AC
116942004-02-15 Andrew Cagney <cagney@redhat.com>
11695
046a4708
AC
11696 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11697 register_gdbarch_swap.
11698 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11699 * f-lang.c (_initialize_f_language): Update, use
11700 DEPRECATED_REGISTER_GDBARCH_SWAP.
11701 * remote.c (_initialize_remote): Ditto.
11702 * regcache.c (_initialize_regcache): Ditto.
11703 * parse.c (_initialize_parse): Ditto.
11704 * infrun.c (_initialize_infrun): Ditto.
11705 * mi/mi-main.c (_initialize_mi_main): Ditto.
11706 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 11707
549c1eea
AC
11708 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11709 poking .cacheable directly.
11710 * symfile.c (symfile_bfd_open): Ditto.
11711
0c0b39de
AC
11712 * Makefile.in: Update all dependencies.
11713
8132723e
AC
11714 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11715 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11716 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11717 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11718 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 11719
b9d26eb9
AC
117202004-02-14 Andrew Cagney <cagney@redhat.com>
11721
8e1f669a
AC
11722 * arch-utils.c (legacy_convert_register_p): Check
11723 DEPRECATED_REGISTER_CONVERTIBLE_P.
11724 * findvar.c (value_of_register): Ditto.
11725
cd0bfa36
AC
11726 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11727 * gdbarch.h, gdbarch.c: Re-generate.
11728 * arch-utils.c (deprecated_register_convertible_not): Delete.
11729 * arch-utils.h (deprecated_register_convertible_not): Delete.
11730 * mi/mi-main.c (get_register): Update. Update copyright.
11731 * infcmd.c (default_print_registers_info): Update.
11732
b9d26eb9
AC
11733 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11734 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11735 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 11736 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
11737 * frame.c (deprecated_get_next_frame_hack): Delete function.
11738 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11739 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11740 Update.
11741 * infcall.c (call_function_by_hand): Update.
11742
9ab9195f
EZ
117432004-02-14 Elena Zannoni <ezannoni@redhat.com>
11744
11745 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 11746 from here...
9ab9195f
EZ
11747 * objfiles.c (init_entry_point_info, entry_point_address):..to
11748 here.
11749 * symfile.h (init_entry_point_info, entry_point_address): Remove
11750 prototypes.
11751 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 11752 prototypes.
9ab9195f
EZ
11753 * cris-tdep.c: Remove include of symfile.h. Add include of
11754 objfiles.h.
11755 * infcall.c: Ditto.
11756 * mcore-tdep.c: Ditto.
11757 * mn10300-tdep.c: Ditto.
11758 * sh64-tdep.c: Ditto.
11759 * v850-tdep.c: Ditto.
11760 * arm-tdep.c: Remove include of symfile.h.
11761 * blockframe.c: Ditto.
11762 * coffread.c: Ditto.
11763 * dbxread.c: Ditto.
11764 * dwarf2read.c: Ditto.
11765 * dwarfread.c: Ditto.
8a1dac83 11766 * frv-tdep.c: Ditto.
9ab9195f
EZ
11767 * ia64-tdep.c: Ditto.
11768 * mdebugread.c: Ditto.
11769 * mipsread.c: Ditto.
8a1dac83 11770 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
11771 * s390-tdep.c: Ditto.
11772 * sh-tdep.c: Ditto.
8a1dac83 11773 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
11774 * gdbarch.sh: Remove include of symfile.h.
11775 * gdbarch.c: Regenerate.
11776 * solib-irix.c (enable_break): Use entry_point_address().
11777 Add comment about include file.
11778 * xcoffread.c: Add comment about include file.
8a1dac83
RM
11779 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11780 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11781 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11782 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
11783 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11784
c4c5b7ba
AC
117852004-02-13 Andrew Cagney <cagney@redhat.com>
11786
11787 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11788 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11789 copyright.
11790 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11791
3e7879de
FF
117922004-02-12 Fred Fish <fnf@redhat.com>
11793
11794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11795 set_gdbarch_store_return_value.
11796
6a7760b6
AC
117972004-02-12 Andrew Cagney <cagney@redhat.com>
11798
11799 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11800 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11801 (interrupt_query): Ditto.
11802 (ofunc): Delete unused variable.
11803 * cris-tdep.c (cris_abi): Delete unused function.
11804 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11805 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11806 (cris_get_asr_quick_shift_steps): Ditto.
11807 (cris_skip_prologue_frameless_p): Ditto.
11808 * arm-tdep.c (arm_push_return_address): Delete unused function.
11809 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11810 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11811 * s390-tdep.c (s390_function_start): Delete unused function.
11812
31687c3c
AC
118132004-02-12 Andrew Cagney <cagney@redhat.com>
11814
11815 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11816 gdbarch.h, gdbarch.c: Re-generate.
11817 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11818 to generic_prologue_frameless_p.
11819 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11820 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11821
6de918a6
DJ
118222004-02-11 Daniel Jacobowitz <drow@mvista.com>
11823
11824 * mips-linux-tdep.c: Include "frame.h".
11825 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11826 (mips_linux_skip_resolver): New functions.
11827 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11828 and set_gdbarch_in_solib_call_trampoline.
11829 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11830 to after set_gdbarch_in_solib_return_trampoline. Only set the
11831 solib hooks to mips16 functions if the OS ABI is unknown.
11832 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11833 including "config/tm-linux.h".
11834 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11835 * Makefile.in (mips-linux-tdep.o): Update.
11836
87b3ede8
DC
118372004-02-11 David Carlton <carlton@kealia.com>
11838
11839 * linespec.c (decode_compound): Only look for a class symbol when
11840 considering all but the rightmost component.
11841
5979bc46
AC
118422004-02-11 Andrew Cagney <cagney@redhat.com>
11843
11844 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11845 abi code are are separatly grouped.
11846
5867a2fb
AC
118472004-02-11 Andrew Cagney <cagney@redhat.com>
11848
11849 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11850 * gdbarch.h, gdbarch.c: Re-generate.
11851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11852 * v850-tdep.c (v850_gdbarch_init): Update.
11853 * sh64-tdep.c (sh64_gdbarch_init): Update.
11854 * sh-tdep.c (sh_gdbarch_init): Update.
11855 * s390-tdep.c (s390_gdbarch_init): Update.
11856 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11857 * mips-tdep.c (mips_gdbarch_init): Update.
11858 * mcore-tdep.c (mcore_gdbarch_init): Update.
11859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11860 * m32r-tdep.c (m32r_gdbarch_init): Update.
11861 * ia64-tdep.c (ia64_gdbarch_init): Update.
11862 * hppa-tdep.c (hppa_gdbarch_init): Update.
11863 * h8300-tdep.c (h8300_gdbarch_init): Update.
11864 * frv-tdep.c (frv_gdbarch_init): Update.
11865 * d10v-tdep.c (d10v_gdbarch_init): Update.
11866 * cris-tdep.c (cris_gdbarch_init): Update.
11867 * avr-tdep.c (avr_gdbarch_init): Update.
11868 * arm-tdep.c (arm_gdbarch_init): Update.
11869 * alpha-tdep.c (alpha_gdbarch_init): Update.
11870
026a72f8
CV
118712004-02-11 Corinna Vinschen <vinschen@redhat.com>
11872
11873 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11874 comma.
11875 (sh_sh4al_dsp_register_name): Ditto.
11876
3903d437
AC
118772004-02-10 Andrew Cagney <cagney@redhat.com>
11878
11879 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11880 (mips_init_frame_pc_first): Delete function.
11881 (mips_frame_saved_pc): Delete function.
11882 (mips_frame_chain): Delete function.
11883 (mips_init_extra_frame_info): Delete function.
11884 (mips_xfer_register): Delete unused variable "reg".
11885 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11886 (mips_n32n64_return_value): Delete unused variable "reg".
11887 (mips_n32n64_return_value): Delete unused variable "pos".
11888 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11889 (mips_o32_return_value): Delete unused variable "pos".
11890 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11891 (mips_print_fp_register): Delete unused variable "namelen"
11892 (mips_print_fp_register): Delete unused variable "flt2"
11893 (get_frame_pointer): Delete function.
11894 (cached_proc_desc): Delete static variable.
11895 (mips_pop_frame): Delete function.
11896 (mips_find_saved_regs): Delete function.
11897 (mips_get_saved_register): Delete function.
11898 (mips_saved_pc_after_call): Delete function.
11899 (SIGFRAME_BASE): Delete macro.
11900 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11901 (SIGFRAME_PC_OFF): Delete macro.
11902 (SIGFRAME_REGSAVE_OFF): Delete macro.
11903 (mips_dump_tdep): Do not print deleted macro definitions.
11904
b9fb98bd
AC
119052004-02-10 Andrew Cagney <cagney@redhat.com>
11906
11907 * Makefile.in (SFILES): Remove explictly listed tui files.
11908 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11909
78ced177 119102004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 11911
78ced177
JJ
11912 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11913 to use paddr functions to format ia64 addresses and long values.
11914 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11915 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11916 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11917 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11918 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11919
6a83354a
AC
119202004-02-10 Andrew Cagney <cagney@redhat.com>
11921
11922 * defs.h: Do not include "tui.h".
11923 * gdb_curses.h: New file.
11924 * tui/tui-hooks.h: New file.
11925 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11926 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11927 (tui_initialize_io): Delete declaration.
11928 (tui_initialize_readline: Delete redundant declaration.
11929 (struct tui_point): Delete definition.
11930 * tui/tui-data.h (struct tui_point): Define.
11931 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11932 * utils.c: Include "tui/tui.h".
11933 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11934 * printcmd.c [TUI]: Include "tui/tui.h".
11935 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11936 * tui/tui-command.c: Include "gdb_curses.h".
11937 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11938 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11939 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11940 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11941 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11942 * Makefile.in: Update all dependencies.
11943 (tui_hooks_h, gdb_curses_h): Define.
11944 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11945
997470ef
EZ
119462004-02-10 Elena Zannoni <ezannoni@redhat.com>
11947
11948 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11949 auxf2. Add comments about some other rarely used fields.
11950
4ff2cc4d
AC
119512004-02-10 Andrew Cagney <cagney@redhat.com>
11952
11953 * Makefile.in (init.c): Fix script removing duplicates. Problem
11954 reported by Peter Schauer.
11955
1ab21617
EZ
119562004-02-09 Elena Zannoni <ezannoni@redhat.com>
11957
11958 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11959 obstack_specify_allocation.
11960 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 11961 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
11962 (allocate_rt_common_objfile): Ditto.
11963 * symfile.c (reread_symbols): Ditto.
11964 * gdb_obstack.h: Add comment.
11965
17763fd9
EZ
119662004-02-09 Elena Zannoni <ezannoni@redhat.com>
11967
11968 * linespec.c (decode_line_1, locate_first_half)
11969 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11970 commented out code.
11971
ec5cdd75
DJ
119722004-02-09 Daniel Jacobowitz <drow@mvista.com>
11973
11974 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11975 obstack_free.
11976
43b54b88
AC
119772004-02-09 Andrew Cagney <cagney@redhat.com>
11978
11979 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11980 fails, try find_pc_section. Fix PR c++/1267.
11981 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11982 instead of find_pc_mapped_section.
11983 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11984 not default to the section containing PC. Fix PR symtab/1519.
11985
edfae063
AC
119862004-02-09 Andrew Cagney <cagney@redhat.com>
11987
11988 * Makefile.in (mips-tdep.o): Update dependencies.
11989 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11990 "trad-frame.h".
11991 (mips_unwind_pc): Return the pseudo PC register.
11992 (mips_unwind_dummy_id): New function.
11993 (mips16_fetch_instruction): New function.
11994 (mips32_fetch_instruction): New function.
11995 (struct mips_frame_cache): Define.
11996 (mips_mdebug_frame_cache): New function.
11997 (mips_mdebug_frame_this_id): New function.
11998 (mips_mdebug_frame_prev_register): New function.
11999 (mips_mdebug_frame_unwind): Define.
12000 (mips_mdebug_frame_sniffer): New function.
12001 (mips_mdebug_frame_base_address): New function.
12002 (mips_mdebug_frame_base): Define.
12003 (mips_mdebug_frame_base_sniffer): New function.
12004 (mips_gdbarch_init): Append unwind and base sniffers. Set
12005 unwind_dummy_id.
12006
defc864c
AC
120072004-02-08 Andrew Cagney <cagney@redhat.com>
12008
6764ddad
AC
12009 * frame.c: Print both the register number and name.
12010
defc864c
AC
12011 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12012 and a sed into a single sed. Make .c and .o patterns more robust.
12013 (OBS): Delete.
12014 (INIT_FILES): Replace OBS with COMMON_OBS.
12015 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12016
645d6d10
MK
120172004-02-08 Mark Kettenis <kettenis@gnu.org>
12018
12019 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12020 the PT_WCOOKIE request.
12021
23e3c3fc
AC
120222004-02-08 Andrew Cagney <cagney@redhat.com>
12023
58dfe9ff
AC
12024 * mips-tdep.c (mips_unwind_pc): New function.
12025 (mips_gdbarch_init): Set mips_unwind_pc.
12026
1152e35e
AC
12027 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12028 (get_frame_id): Allow the UNKNOWN_FRAME.
12029 (frame_register_unwind, get_frame_type): Ditto.
12030
31b75dbf
AC
12031 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12032 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12033 unwind_dummy_id indicates a legacy frame.
12034
3483b318
AC
12035 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12036 * configure: Re-generate.
12037
23e3c3fc
AC
12038 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12039 methods.
12040
33f8ca73
AC
120412004-02-08 Andrew Cagney <cagney@redhat.com>
12042
12043 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12044 makefile macro.
12045 * configure: Re-generate.
12046 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12047 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12048 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12049 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12050 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12051 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12052 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12053 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12054 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12055 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12056
6ba8e26f 120572004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12058
20d286a5
AC
12059 * Makefile.in: Update all dependencies.
12060
d836ee13
AC
12061 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12062 * configure: Re-generate.
12063 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12064 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12065 (COMMON_OBS): Add "main.o" and "annotate.o".
12066 (ANNOTATE_OBS): Delete.
12067 (OBS): Remove ANNOTATE_OBS.
12068 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12069 CONFIG_INITS.
12070 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12071 against CONFIG_OBS and "main.o".
12072 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12073 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12074
d02c80cd
AC
12075 * tui/tui-command.c: Include "gdb_string.h", delete register
12076 attribute, use ISO-C function signatures.
12077 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12078 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12079 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12080 * tui/tui.c: Ditto.
6ba8e26f
AC
12081
12082 * tui/tui-command.c: Change variable and function names to lower
12083 case.
12084 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12085 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12086 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12087 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12088 * tui/tui-winsource.c, tui/tui.c: Ditto.
12089
4a146b47
EZ
120902004-02-07 Elena Zannoni <ezannoni@redhat.com>
12091
12092 * buildsym.c (free_pending_blocks, finish_block)
12093 (record_pending_block, make_blockvector, end_symtab): Replace
12094 symbol_obstack with objfile_obstack.
8a1dac83 12095 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12096 (coff_read_enum_type): Ditto.
8a1dac83 12097 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12098 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12099 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12100 (dwarf2_symbol_mark_computed): Ditto.
12101 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12102 * elfread.c (elf_symtab_read): Ditto.
12103 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12104 (hpread_read_enum_type, hpread_read_function_type)
12105 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12106 Ditto.
8a1dac83 12107 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12108 (java_link_class_type): Ditto.
8a1dac83 12109 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12110 (new_symbol): Ditto.
12111 * minsyms.c (install_minimal_symbols): Ditto.
12112 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12113 (terminate_minimal_symbol_table): Replace symbol_obstack with
12114 objfile_obstack.
12115 (free_objfile): Remove freeing of symbol_obstack.
12116 * objfiles.h: Remove symbol_obstack field.
12117 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12118 objfile_obstack.
12119 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12120 symbol_obstack.
12121 (solib_add_common_symbols): Replace symbol_obstack with
12122 objfile_obstack.
12123 * somsolib.c (som_solib_add): Ditto.
12124 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12125 (common_block_start, common_block_end): Ditto.
12126 * symfile.c (reread_symbols): Remove freeing and init of
12127 symbol_obstack.
12128 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12129 * symfile.h: Update comment.
12130 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12131 stats printing.
12132 * symtab.c (symbol_set_names): Replace symbol_obstack with
12133 objfile_obstack.
12134 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12135 Update comments.
12136 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12137 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12138 objfile_obstack.
12139
6d012f14
AC
121402004-02-07 Andrew Cagney <cagney@redhat.com>
12141
12142 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12143 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12144 fields and variables.
12145 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12146 (m_beInvisible): Delete macro.
12147 * tui/tui-data.h: Fix case case fields and variables.
12148 (m_genWinPtrIsNull): Delete macro.
12149 (tui_win_list): Rename winList.
12150 (TUI_SRC_WIN): Rename srcWin.
12151 (TUI_DISASM_WIN): Rename disassemWin.
12152 (TUI_DATA_WIN): Rename dataWin.
12153 (TUI_CMD_WIN): Rename cmdWin.
12154 (m_genWinPtrNotNull): Delete macro.
12155 (m_winPtrIsNull): Delete macro.
12156 (m_winPtrNotNull): Delete macro.
12157 (tui_win_is_source_type): Replace m_winIsSourceType
12158 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12159 (tui_win_has_locator): Replace m_hasLocator.
12160 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12161 m_setWinHighlightOff.
12162 * tui/tui-data.c: Update references.
12163 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12164 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12165 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12166 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12167 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12168 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12169 * tui/tui-winsource.c, tui/tui.c: Ditto.
12170
7d34766b
MK
121712004-02-07 Mark Kettenis <kettenis@gnu.org>
12172
1c800673
MK
12173 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12174 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12175 StackGhost.
12176
7d34766b
MK
12177 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12178 variable `i6' to `i7'.
12179 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12180
22940a24
AC
121812004-02-07 Andrew Cagney <cagney@redhat.com>
12182
12183 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12184 (TuiPoint, TuiPointPtr): Ditto.
12185 (TuiStatus, TuiStatusPtr): Ditto.
12186 (TuiWinType, TuiWinTypePtr): Ditto.
12187 (struct tui_point): Rename _TuiPoint.
12188 (tui_get_low_disassembly_address): Rename
12189 tuiGetLowDisassemblyAddress.
12190 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12191 (tuiFree): Delete declaration.
12192 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12193 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12194 * tui/tui.c (tuiFree): Delete function.
12195 * cli/cli-cmds.c (disassemble_command): Update references.
12196 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12197 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12198 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12199 * tui/tui-winsource.c: Ditto.
12200
8b92e4d5
EZ
122012004-02-07 Elena Zannoni <ezannoni@redhat.com>
12202
12203 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12204 coffstab_build_psymtabs, elfstab_build_psymtabs)
12205 (stabsect_build_psymtabs): Replace psymbol_obstack with
12206 objfile_obstack.
12207 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12208 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12209 Ditto.
12210 * dwarfread.c (scan_compilation_units): Ditto.
12211 * elfread.c (elfstab_offset_sections): Ditto.
12212 * hppa-tdep.c (read_unwind_info): Ditto.
12213 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12214 (hpread_end_psymtab): Ditto.
12215 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12216 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12217 Ditto.
12218 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12219 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12220 (build_objfile_section_table): Ditto.
12221 (allocate_objfile): Remove init of psymbol_obstack.
12222 (free_objfile): Remove freeing of psymbol_obstack.
12223 * objfiles.h (struct objfile): Remove field
12224 psymbol_obstack. Update comments.
12225 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12226 psymbol_obstack with objfile_obstack.
12227 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12228 psymbol_obstack.
12229 * somread.c (som_symfile_offsets, init_import_symbols)
12230 (init_export_symbols): Replace psymbol_obstack with
12231 objfile_obstack.
12232 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12233 * symfile.c (default_symfile_offsets, syms_from_objfile)
12234 (reread_symbols): Remove freeing and init of psymbol_obstack.
12235 (cashier_psymtab): Update comment.
12236 * symmisc.c (print_objfile_statistics): Don't report stats for
12237 psymbol obstack.
12238 * symtab.h (struct general_symbol_info, struct partial_symtab):
12239 Update comments.
12240 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12241 (xcoff_symfile_offsets): Replace psymbol_obstack with
12242 objfile_obstack.
12243
b99607ea
EZ
122442004-02-07 Elena Zannoni <ezannoni@redhat.com>
12245
12246 * objfiles.h (struct objfile): Add objfile_obstack field.
12247 Remove type_obstack field.
12248
12249 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12250 read_structure_scope read_enumeration, new_symbol): Replace
12251 type_obstack with objfile_obstack.
12252 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12253 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12254 (lookup_fundamental_type): Ditto.
12255 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12256 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12257 (hpread_read_doc_function_type, hpread_read_struct_type)
12258 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12259 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12260 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12261 (java_link_class_type): Ditto.
12262 * mdebugread.c (parse_type): Ditto.
12263 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12264 * solib-sunos.c (solib_add_common_symbols): Ditto.
12265 * stabsread.c (define_symbol, read_type, read_member_functions,
12266 read_cpp_abbrev, read_one_struct_field): Ditto.
12267 * symfile.c (reread_symbols): Ditto.
12268 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12269
2a8854a7
AC
122702004-02-07 Andrew Cagney <cagney@redhat.com>
12271
12272 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12273 (tui_exec_info_content): Rename TuiExecInfoContent.
12274 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12275 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12276 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12277 (TuiList, TuiListPtr): Ditto.
12278 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12279 (TuiDataType, TuiDataTypePtr): Ditto.
12280 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12281 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12282 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12283 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12284 (TuiDataElement, TuiDataElementPtr): Ditto.
12285 (TuiWinElement, TuiWinElementPtr): Ditto.
12286 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12287 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12288 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12289 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12290 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12291 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12292 * tui/tui-command.c, tui/tui-data.c: Update references.
12293 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12294 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12295 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12296 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12297
05cbe71a
MK
122982004-02-07 Mark Kettenis <kettenis@gnu.org>
12299
12300 * dwarf2-frame.h: Update copyright.
12301 (enum dwarf2_frame_reg_rule): New.
12302 (struct dwarf2_frame_state_reg): New.
12303 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12304 * dwarf2-frame.c: Update copyright.
12305 (enum dwarf2_reg_rule): Remove.
12306 (struct dwarf2_frame_state): Remove defenition of `struct
12307 dwarf2_frame_state_reg'.
12308 (read_reg): Call get_frame_arch to get the architecture instead of
12309 using CURRENT_GDBARCH.
12310 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12311 DWARF2_FRAME_.
12312 (dwarf2_frame_init_reg): New function.
12313 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12314 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12315 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12316 tags with DWARF2_FRAME_.
12317 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12318 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12319 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12320
ec7d9e56
AC
123212004-02-06 Andrew Cagney <cagney@redhat.com>
12322
dd1abb8c
AC
12323 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12324 (enum tui_data_type): Rename _TuiDataType.
12325 (struct tui_layout_def): Rename _TuiLayoutDef.
12326 (struct tui_source_element): Rename _TuiSourceElement.
12327 (struct tui_data_element): Rename _TuiDataElement.
12328 (struct tui_command_element): Rename _TuiCommandElement.
12329 (struct tui_locator_element): Rename _TuiLocatorElement.
12330 (union tui_which_element): Define.
12331 (struct tui_win_element): Rename _TuiWinElement.
12332 (struct tui_data_info): Rename _TuiDataInfo.
12333 (struct tui_source_info): Rename _TuiSourceInfo.
12334 (struct tui_command_info): Rename _TuiCommandInfo.
12335 (tui_initialize_static_data): Rename initializeStaticData.
12336 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12337 (tui_alloc_win_info): Rename allocWinInfo.
12338 (tui_init_generic_part): Rename initGenericPart.
12339 (tui_init_win_info): Rename initWinInfo.
12340 (tui_alloc_content): Rename allocContent.
12341 (tui_add_content_elements): Rename addContentElements.
12342 (tui_init_content_element): Rename initContentElement.
12343 (tui_free_window): Rename freeWindow.
12344 (tui_free_win_content): Rename freeWinContent.
12345 (tui_free_data_content): Rename freeDataContent.
12346 (tui_free_all_source_wins_content): Rename
12347 freeAllSourceWinsContent.
12348 (tui_del_window): Rename tuiDelWindow.
12349 (tui_del_data_windows): Rename tuiDelDataWindows.
12350 (tui_partial_win_by_name): Rename partialWinByName.
12351 (tui_win_name): Rename winName.
12352 (tui_current_layout): Rename currentLayout.
12353 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12354 (tui_term_height): Rename termHeight.
12355 (tui_set_term_height_to): Rename setTermHeightTo.
12356 (tui_term_width): Rename termWidth.
12357 (tui_set_term_width_to): Rename setTermWidthTo.
12358 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12359 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12360 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12361 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12362 (tui_source_windows): Rename sourceWindows.
12363 (tui_clear_source_windows): Rename clearSourceWindows.
12364 (tui_clear_source_windows_detail): Rename
12365 clearSourceWindowsDetail.
12366 (tui_clear_win_detail): Rename clearWinDetail.
12367 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12368 (tui_default_tab_len): Rename tuiDefaultTabLen.
12369 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12370 (tui_win_with_focus): Rename tuiWinWithFocus.
12371 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12372 (tui_layout_def): Rename tuiLayoutDef.
12373 (tui_win_resized): Rename tuiWinResized.
12374 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12375 (tui_next_win): Rename tuiNextWin.
12376 (tui_prev_win): Rename tuiPrevWin.
12377 (tui_add_to_source_windows): Rename addToSourceWindows.
12378 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12379 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12380 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12381 * tui/tui.c, tui/tui-data.c: Ditto.
12382 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12383 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12384
a358af15
AC
12385 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12386 (struct symtab): Declare.
12387 (tui_set_source_content): Rename tuiSetSourceContent.
12388 (tui_show_symtab_source): Rename tuiShowSource.
12389 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12390 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12391 * tui/tui-source.c: Update copyright. Update references.
12392 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12393 * tui/tui-stack.c: Update references.
12394
a21fcd8f
AC
12395 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12396 (struct tui_win_info): Declare.
12397 (tui_scroll_forward): Rename tuiScrollForward.
12398 (tui_scroll_backward): Rename tuiScrollBackward.
12399 (tui_scroll_left): Rename tuiScrollLeft.
12400 (tui_scroll_right): Rename tuiScrollRight.
12401 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12402 (tui_resize_all): Rename tuiResizeAll.
12403 (tui_refresh_all_win): Rename tuiRefreshAll.
12404 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12405 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12406 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12407 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12408
edae1ccf
AC
12409 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12410 (tui_erase_data_content): Rename tuiEraseDataContent.
12411 (tui_display_all_data): Rename tuiDisplayAllData.
12412 (tui_check_data_values): Rename tuiCheckDataValues.
12413 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12414 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12415 (tui_first_data_element_no_in_line): Rename
12416 tuiFirstDataElementNoInLine.
12417 (tui_delete_data_content_windows): Rename
12418 tuiDeleteDataContentWindows.
12419 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12420 (tui_display_data_from): Rename tuiDisplayDataFrom.
12421 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12422 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12423 * tui/tui-win.c, tui/tui-regs.c: Update references.
12424 * tui/tui-layout.c, tui/tui.c: Update references.
12425
ec7d9e56
AC
12426 * tui/tui-wingeneral.h: Update copyright.
12427 (m_allBeVisible): Delete macro.
8a1dac83 12428 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12429 (struct tui_gen_win_info): Declare.
12430 (struct tui_win_info): Declare.
12431 (tui_unhighlight_win): Rename unhighlightWin.
12432 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12433 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12434 (tui_make_window): Rename makeWindow.
12435 (tui_copy_win): Rename copyWin.
12436 (tui_box_win): Rename boxWin.
12437 (tui_highlight_win): Rename highlightWin.
12438 (tui_check_and_display_highlight_if_needed): Rename
12439 checkAndDisplayHighlightIfNeeded.
12440 (tui_refresh_all): Rename refreshAll.
12441 (tui_delete_win): Rename tuiDelwin.
12442 (tui_refresh_win): Rename tuiRefreshWin.
12443 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12444 (tui_make_visible, tui_make_invisible): New functions.
12445 (tui_make_all_visible, tui_make_all_invisible): New functions.
12446 (make_all_visible): Rename makeAllVisible.
12447 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12448 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12449 * tui/tui-windata.c, tui/tui-win.c: Update references.
12450 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12451 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12452
1e52e2eb
MK
124532004-02-06 Mark Kettenis <kettenis@gnu.org>
12454
12455 * proc-api.c (write_with_trace): Initialize local variable to
12456 silence compiler warning.
12457
f80bda8e
AC
124582004-02-06 Andrew Cagney <cagney@redhat.com>
12459
12460 * tui/tui-source.h: Do not include "defs.h".
12461 (struct tui_win_info): Declare.
12462 (tui_set_source_content_nil): Declare.
12463 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12464 (union tui_line_or_address): Rename _TuiLineOrAddress.
12465 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12466 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12467 (tui_update_source_window_as_is): Rename
12468 tuiUpdateSourceWindowAsIs.
12469 (tui_update_source_windows_with_addr): Rename
12470 tuiUpdateSourceWindowsWithAddr.
12471 (tui_update_source_windows_with_line): Rename
12472 tuiUpdateSourceWindowsWithLine.
12473 (tui_clear_source_content): Rename tuiClearSourceContent.
12474 (tui_erase_source_content): Rename tuiEraseSourceContent.
12475 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12476 (tui_show_source_content): Rename tuiShowSourceContent.
12477 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12478 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12479 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12480 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12481 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12482 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12483 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12484 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12485 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12486 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12487 (struct tui_win_info): Declare.
12488 * tui/tui-stack.c: Update references.
12489 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12490 * tui/tui-win.c, tui/tui-source.c: Ditto.
12491 * tui/tui.c, tui/tui-disasm.c: Ditto.
12492
9fbfb822
MK
124932004-02-06 Mark Kettenis <kettenis@gnu.org>
12494
12495 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12496 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12497
03cebad2
MK
124982004-02-05 Mark Kettenis <kettenis@gnu.org>
12499
12500 * infrun.c (handle_inferior_event): Allow for breakpoint
12501 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12502 and SIGEMT. Update comments.
12503 * NEWS (Revised SPARC target): Mention support for non-executable
12504 stack.
12505
290281b1
MK
125062004-02-04 Mark Kettenis <kettenis@gnu.org>
12507
12508 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12509 * inftarg.c: Update copyright year.
12510 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12511 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12512 (sparc_xfer_wcookie): New function.
12513 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12514 * Makefile.in (sparc-nat.o): Update dependencies.
12515 * config/sparc/nm-nbsd.h: Include "target.h".
12516 (NATIVE_XFER_WCOOKIE): New define.
12517 (sparc_xfer_wcookie): New prototype.
12518
212161df
AC
125192004-02-04 Andrew Cagney <cagney@redhat.com>
12520
12521 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12522 SYSCALL_TRAP function.
12523 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12524
6e4c6c91
DJ
125252004-02-04 Andrew Cagney <cagney@redhat.com>
12526 Daniel Jacobowitz <drow@mvista.com>
12527
12528 * objfiles.h: Delete comments refering to inside_entry_func and
12529 DEPRECATED_FRAME_CHAIN_VALID.
12530 * defs.h (inside_entry_func): Update prototype..
12531 * blockframe.c (inside_entry_func): Rename to
12532 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12533 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12534
cae688ec
JJ
125352004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12536
12537 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12538 outside of #ifdef SOLIB_ADD region.
12539 (do_restore_lang_radix_cleanup): Ditto.
12540 (resolve_pending_breakpoint): Ditto.
12541
19217676
AC
125422004-02-03 Andrew Cagney <cagney@redhat.com>
12543
12544 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12545 (process_note_abi_tag_sections): Delete unused function.
12546 (ia64_read_fp): Delete unused function.
12547 (gdbarch_extract_struct_value_address): Delete declaration.
12548
876753be
AC
125492004-02-02 Andrew Cagney <cagney@redhat.com>
12550
12551 * vax-tdep.c (vax_frame_chain): Delete call to
12552 deprecated_inside_entry_file.
12553 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12554
d4f10bf2
MK
125552004-02-02 Mark Kettenis <kettenis@gnu.org>
12556
12557 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12558 column that's "empty" or "same value" when eliminating REG_RA
12559 rules.
12560
cae688ec
JJ
125612004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12562
12563 * NEWS: Add information about new pending breakpoint support.
12564
0101ce28
JJ
125652004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12566
12567 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12568 and pending fields for pending breakpoint support.
12569 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12570 (condition_command): Only parse condition if not a pending
12571 breakpoint.
12572 (print_one_breakpoint): Add support for pending breakpoints.
12573 (describe_other_breakpoints): Add checks to verify we are not
12574 dealing with pending breakpoints.
12575 (check_duplicates): Don't check pending breakpoints.
12576 (set_raw_breakpoint): Initialize pending flag.
12577 (do_restore_lang_radix_cleanup): New cleanup routine.
12578 (resolve_pending_breakpoint): New function.
12579 (re_enable_breakpoints_in_shlibs): Try and resolve any
12580 pending breakpoints via resolve_pending_breakpoint.
12581 (mention): Add pending breakpoint support.
12582 (parse_breakpoint_sals): Add new parameter to pass to
12583 decode_line_1 to indicate silent errors when files or functions
12584 are not found. Change all callers.
12585 (do_captured_parse_breakpoint): New function.
12586 (break_command_1): Change prototype to return an rc value and to
12587 take an optional pending breakpoint pointer. Support creating
12588 a pending breakpoint if a "not found" form of error occurs when
12589 parsing the breakpoint. Also support resolving an existing pending
12590 breakpoint and be silent if the resolution fails.
12591 (create_breakpoints): Change prototype to take pending breakpoint
12592 pointer. When resolving a pending breakpoint, use the new pointer
12593 to provide a conditional or commands added by the end-user.
12594 (delete_breakpoint): Add appropriate check for pending.
12595 (breakpoint_re_set_one): Ditto.
12596 (do_enable_breakpoint): Ditto.
12597
8d577d32
DC
125982004-02-02 David Carlton <carlton@kealia.com>
12599
12600 * valops.c (enum oload_classification): New.
12601 (find_overload_match): Break implementation into separate
12602 functions; delete #if 0'd code; look for symbols within
12603 namespaces.
12604 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12605 (find_oload_champ,oload_method_static,classify_oload_match): New.
12606 * cp-support.h: Add declaration for cp_func_name; update
12607 declaration for make_symbol_overload_list.
12608 * cp-support.c (cp_func_name): New.
12609 (overload_list_add_symbol): Fix comment, use
12610 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12611 (make_symbol_overload_list): Take a function name and a namespace
12612 instead of a symbol; change implementation.
12613 (make_symbol_overload_list_using): New.
12614 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12615
22e8e3c7
FF
126162004-02-02 Fred Fish <fnf@redhat.com>
12617
12618 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 12619 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
12620 * remote-sim.c (gdb_os_write_stderr): Write output to
12621 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12622 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 12623 gdb_stderr stream and update copyright years.
22e8e3c7 12624
6b753f60
DJ
126252004-02-01 Daniel Jacobowitz <drow@mvista.com>
12626
12627 * Makefile.in (mips-linux-nat.o): Update dependencies.
12628 * mips-linux-nat.c: Include mips-tdep.h.
12629
126302004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
12631
12632 * sol-thread.c (sol_thread_xfer_partial): New function.
12633 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12634 (init_sol_core_ops): Likewise.
12635
12636 * procfs.c (procfs_xfer_partial): New function.
12637 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12638 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12639
12640 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12641 procfs_xfer_auxv function.
12642
12643 * procfs.c (procfs_make_note_section): If we can read
12644 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12645 * linux-proc.c (linux_make_note_section): Likewise.
12646
12647 * auxv.h: New file.
12648 * auxv.c: New file.
12649 * Makefile.in (auxv_h): New variable.
12650 (COMMON_OBS): Add auxv.o here.
12651 (auxv.o): New target.
12652
12653 * corelow.c (core_xfer_partial): New function.
12654 (init_core_ops): Use it for core_ops.to_xfer_partial.
12655
12656 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12657 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12658 macro if that is defined.
12659
fa5281d0
DJ
126602004-02-01 Daniel Jacobowitz <drow@mvista.com>
12661
12662 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12663 and check the specified thread for each breakpoint.
12664 * breakpoint.h (bpstat_stop_status): Update prototype.
12665 * infrun.c (handle_inferior_event): Update calls to
12666 bpstat_stop_status.
12667
26ee262d
DJ
126682004-02-01 Daniel Jacobowitz <drow@mvista.com>
12669
12670 * Makefile.in (cli-cmds.o): Add $(readline_h).
12671
d9b52655
DJ
126722004-02-01 Daniel Jacobowitz <drow@mvista.com>
12673
12674 * cli/cli-cmds.c: Include readline.h.
12675 (complete_command): Pass the start of the last word to
12676 complete_line.
12677
9709f61c
DJ
126782004-01-31 Daniel Jacobowitz <drow@mvista.com>
12679
12680 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12681 argument, and change first argument to a CORE_ADDR.
12682 * breakpoint.h (bpstat_stop_status): Update prototype.
12683 * infrun.c (adjust_pc_after_break): Add a new comment.
12684 (handle_inferior_event): Update calls to bpstat_stop_status.
12685
4f1280bb
DJ
126862004-01-31 Daniel Jacobowitz <drow@mvista.com>
12687
12688 * breakpoint.h: Update copyright years.
12689
4fa8626c
DJ
126902004-01-31 Daniel Jacobowitz <drow@mvista.com>
12691
12692 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12693 (bpstat_stop_status): Don't decrement PC.
12694 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12695 prototype.
12696 * infrun.c (adjust_pc_after_break): New function.
12697 (handle_inferior_event): Call it, early. Remove later references
12698 to DECR_PC_AFTER_BREAK.
12699 (normal_stop): Add commentary.
12700
fad0733a
DJ
127012004-01-31 Daniel Jacobowitz <drow@mvista.com>
12702
12703 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12704 2004-01-27 double-free fix.
12705
42cdca6c
MK
127062004-01-31 Mark Kettenis <kettenis@gnu.org>
12707
12708 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12709 (sparc32_frame_prev_register): Handle StackGhost.
12710 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12711
932d5416
RM
127122004-01-29 Roland McGrath <roland@redhat.com>
12713
12714 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12715 * configure: Regenerated.
12716
12717 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12718 * Makefile.in (procfs.o): Add dep.
12719
47d3492a
AC
127202004-01-28 Andrew Cagney <cagney@redhat.com>
12721
12722 * tui/tui-stack.h: Update copyright.
12723 (struct frame_info): Add opaque declaration.
12724 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12725 (tui_show_locator_content): Rename tuiShowLocatorContent.
12726 (tui_show_frame_info): Rename tuiShowFrameInfo.
12727 * tui/tui-stack.c: Update copyright. Update references.
12728 * tui/tui-winsource.c: Update references.
12729 * tui/tui-win.c: Update references.
12730 * tui/tui-layout.c: Update references.
12731 * tui/tui-hooks.c: Update copyright, update references.
12732 * tui/tui.c: Update copyright, update references.
12733 * tui/tui-disasm.c: Update references.
12734
5d51ca54
DC
127352004-01-28 David Carlton <carlton@kealia.com>
12736
12737 * dwarf2read.c (add_partial_structure): Use demangled name if
12738 namespace equals "".
12739
086ed43d
JB
127402004-01-27 Jim Blandy <jimb@redhat.com>
12741
12742 Clean up misapplied patch:
12743 * dwarf2read.c (determine_prefix): Change one of the two forward
12744 declarations for 'determine_prefix_aux' to a declaration for this.
12745 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12746 argument to 'die_specification'.
12747
2a35147e
JB
12748 * dwarf2read.c (read_func_scope): Re-indent comment.
12749
a355c7de 127502004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 12751
a355c7de
AC
12752 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12753 b->exp to NULL after freeing so that error during re-parsing or
12754 evaluation of expressions associated with breakpoint don't
12755 eventually lead to re-freeing of storage.
12756 Committed by Andrew Cagney.
12757
63ff5125
AC
127582004-01-27 Andrew Cagney <cagney@redhat.com>
12759
12760 * source.c (ambiguous_line_spec): Delete undefined declaration.
12761 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12762 (m32r_set_server_address, m32r_set_download_path): Ditto.
12763 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12764
e142c38c
DJ
127652004-01-27 Daniel Jacobowitz <drow@mvista.com>
12766
12767 * dwarf2read.c: Update calls to changed and renamed functions, and
12768 references to moved variables.
12769
12770 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12771 language, language_defn, list_in_scope, and ftypes members.
12772 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12773 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12774 (baseaddr): Remove globals.
12775
12776 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12777 (set_cu_language, die_is_declaration, die_specification)
12778 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12779 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12780 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12781 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12782
12783 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12784 cu.list_in_scope. Don't initialize cu_header_offset.
12785 (add_partial_symbol): Add local baseaddr.
12786 (psymtab_to_symtab_1): Add local baseaddr. Use
12787 objfile->section_offsets for consistency. Don't initialize
12788 cu_header_offset; do initialize cu.header.offset and
12789 cu.list_in_scope.
12790 (read_file_scope, read_func_scope, read_lexical_block_scope)
12791 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12792
c6e06ede
MC
127932004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12794
fb328ecc 12795 * PROBLEMS: Add gdb/1516.
c6e06ede 12796
48184fd4
AC
127972003-12-29 Robert Millan <robertmh@gnu.org>
12798
12799 Patch committed by Andrw Cagney.
12800 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12801 * configure.tgt: Match knetbsd*-gnu.
12802
c1321b30
AC
128032004-01-26 Andrew Cagney <cagney@redhat.com>
12804
f3699be3
AC
12805 * breakpoint.c (catch_command_1): Delete #ifdef code.
12806 (catch_fork_command_1): Delete #ifdef wrapper.
12807 (catch_exec_command_1): Ditto.
12808 (catch_load_command_1): Ditto.
12809 (catch_unload_command_1): Ditto.
12810
c1321b30
AC
12811 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12812 (catch_breakpoint): Delete #if0ed function.
12813 (disable_catch_breakpoint): Ditto.
12814 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12815 (disable_catch, enable_catch, delete_catch): Ditto.
12816
b4501125
AC
128172004-01-26 Andrew Cagney <cagney@redhat.com>
12818
12819 * remote.c (echo_check, quit_flag): Delete variables.
12820 (cisco_kernel_mode): Delete variable.
12821 (minitelnet_return, tty_input, escape_count): Delete variables.
12822 (remote_cisco_mode): Delete variable.
12823 (remote_cisco_open, remote_cisco_close): Delete function.
12824 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12825 (init_remote_cisco_ops): Delete function.
12826 (_initialize_remote): Do not install "remote cisco" code.
12827 (read_frame): Delete cisco specific code.
12828 (remote_info_process): Delete function.
12829 (remote_wait): Delete cisco specific code.
12830 (remote_cisco_section_offsets): Delete function.
12831 (remote_cisco_objfile_relocate): Delete function.
12832 (remote_async_wait): Delete cisco specific code.
12833 (minitelnet, readtty, readsocket): Delete function.
12834
74055713
AC
128352004-01-26 Andrew Cagney <cagney@redhat.com>
12836
12837 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12838 comments mentioning extract_returned_value_address.
12839 * infcmd.c (print_return_value): Update. Add comments on
12840 extract_returned_value_address.
12841 * stack.c (return_command): Add comments on
12842 extract_returned_value_address.
12843 * values.c: Update comment.
12844 * m32r-tdep.c: Update comment.
12845 * sparc-tdep.c: Update comment.
12846 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12848 * sh64-tdep.c (sh64_gdbarch_init): Update.
12849 * sh-tdep.c (sh_gdbarch_init): Update.
12850 * s390-tdep.c (s390_gdbarch_init): Update.
12851 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12852 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12853 * m68k-tdep.c (m68k_gdbarch_init): Update.
12854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12855 * m32r-tdep.c (m32r_gdbarch_init): Update.
12856 * ia64-tdep.c (ia64_gdbarch_init): Update.
12857 * h8300-tdep.c (h8300_gdbarch_init): Update.
12858 * frv-tdep.c (frv_gdbarch_init): Update.
12859 * arm-tdep.c (arm_gdbarch_init): Update.
12860 * alpha-tdep.c (alpha_gdbarch_init): Update.
12861
a67af2b9
AC
128622004-01-26 Andrew Cagney <cagney@redhat.com>
12863
12864 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12865 SYMBOL_LOCATION_FUNCS
12866 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12867 "struct symbol_ops".
12868 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12869 type to "struct symbol_ops".
12870 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12871 (struct symbol): Replace ".aux_value.loc.funcs" and
12872 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12873 (SYMBOL_OBJFILE): Delete macro.
12874 (SYMBOL_LOCATION_FUNCS): Delete macro.
12875 (SYMBOL_LOCATION_BATON): Update.
12876 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12877 intead of SYMBOL_LOCATION_FUNCS.
12878 * ax-gdb.c (gen_var_ref): Ditto.
12879 * printcmd.c (address_info): Ditto.
12880 * findvar.c (read_var_value): Ditto.
12881 (symbol_read_needs_frame): Ditto.
12882
c034e007
AC
128832004-01-26 Andrew Cagney <cagney@redhat.com>
12884
12885 * dwarf2read.c (read_func_scope): Document frame-base hack.
12886
bb472c1e
MK
128872004-01-25 Mark Kettenis <kettenis@gnu.org>
12888
12889 * infcmd.c (print_return_value): Plug memory leak; delete
12890 ui_stream object. Rename argument `structure_return' to
12891 `struct_return'.
12892
c8e737d5
MK
128932004-01-25 Mark Kettenis <kettenis@gnu.org>
12894
f941662f
MK
12895 * infcmd.c (print_return_value): Wrap long lines.
12896 (finish_command_continuation, finish_command): Remove unused
12897 variable `funcaddr'. Fix some coding-standards problems.
12898
c558d81a 12899 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 12900 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
12901 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12902 TDEP->fpregset to zero.
12903
bf1e5861 12904 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
12905 floating-point registers for traditional NetBSD core files.
12906 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12907 TDEP->sizeof_fpregset here.
12908
4c72d57a
MK
129092004-01-25 Mark Kettenis <kettenis@gnu.org>
12910
566626fa
MK
12911 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12912 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12913 function with code split out from
12914 sparc32nbsd_sigcontext_frame_cache.
12915 (sparc32nbsd_sigcontext_frame_cache): Use
12916 sparc32nbsd_sigcontext_saved_regs.
12917 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12918 OpenBSD.
12919 * sparcobsd-tdep.c: New file.
12920 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12921 (sparcobsd-tdep.o): New dependency.
12922 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12923 * config/sparc/obsd.mt: New file.
12924
4c72d57a
MK
12925 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12926 TDEP->fpregset to be initialized to enable core file register
12927 sets.
12928
7e5e9f88
MK
129292004-01-24 Mark Kettenis <kettenis@gnu.org>
12930
f0f207fd 12931 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
12932 Add opaque declarations.
12933 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12934 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12935 function with code split out from
12936 sparc64nbsd_sigcontext_frame_cache.
12937 (sparc64nbsd_sigcontext_frame_cache): Use
12938 sparc64nbsd_sigcontext_saved_regs.
12939 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12940 OpenBSD.
12941 * sparc64obsd-tdep.c: New file.
12942 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12943 (sparc64obsd-tdep.o): New dependency.
12944 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12945 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12946 * config/sparc/obsd64.mt: New file.
12947
690668cc
MK
12948 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12949 read the instruction at PC.
12950
7e5e9f88
MK
12951 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12952 value of GDB_OSABI_DEFAULT.
12953 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12954 instead of GDB_OSABI_NETBSD_AOUT.
12955
68b6dce9
NR
129562004-01-24 Nick Roberts <nick@nick.uklinux.net>
12957
12958 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12959 copyright.
12960
080ce8c0
AC
129612004-01-23 Andrew Cagney <cagney@redhat.com>
12962
12963 * printcmd.c (display_command): Replace tui_set_display call with
12964 tui_set_layout_for_display_command.
12965 * tui/tui.h (enum tui_win_type): Define.
12966 (tui_set_layout): Delete declaration.
12967 (tui_set_layout_for_display_command): Rename set_tui_layout.
12968 * tui/tui-data.h (enum tui_layout_type): Define.
12969 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12970 "tui.h".
12971 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12972 (tui_default_win_height): Rename tuiDefaultWinHeight.
12973 (tui_default_win_viewport_height): Rename
12974 tuiDefaultWinViewportHeight.
12975 (tui_set_layout): RenametuiSetLayout.
12976 * tui/tui-layout.c: Update references.
12977 * tui/tui.c: Update references.
12978 * tui/tui-disasm.c: Update references.
12979
b368761e
DC
129802004-01-23 David Carlton <carlton@kealia.com>
12981
12982 Partial workaround for PR c++/1511:
12983 * cp-namespace.c: Include frame.h.
12984 (cp_lookup_transparent_type): New
12985 (cp_lookup_transparent_type_loop): New.
12986 * cp-support.h: Declare cp_lookup_transparent_type.
12987 * symtab.c (basic_lookup_transparent_type): Renamed from
12988 lookup_transparent_type.
12989 (lookup_transparent_type): Replace old body by a call to
12990 current_language->la_lookup_transparent_type.
12991 * symtab.h: Update copyright. Declare
12992 basic_lookup_transparent_type.
12993 * language.h: Update copyright.
12994 (struct language_defn): Add la_lookup_transparent_type.
12995 * language.c: Update copyright.
12996 (unknown_language_defn): Add basic_lookup_transparent_type.
12997 (auto_language_defn): Add basic_lookup_transparent_type.
12998 (local_language_defn): Add basic_lookup_transparent_type.
12999 * ada-lang.c: Update copyright.
13000 (ada_language_defn): Add basic_lookup_transparent_type.
13001 * c-lang.c: Update copyright.
13002 (c_language_defn): Add basic_lookup_transparent_type.
13003 (cplus_language_defn): Add basic_lookup_transparent_type.
13004 (asm_language_defn): Add basic_lookup_transparent_type.
13005 (minimal_language_defn): Add basic_lookup_transparent_type.
13006 * f-lang.c: Update copyright.
13007 (f_language_defn): Add basic_lookup_transparent_type.
13008 * jv-lang.c: Update copyright.
13009 (java_language_defn): Add basic_lookup_transparent_type.
13010 * m2-lang.c: Update copyright.
13011 (m2_language_defn): Add basic_lookup_transparent_type.
13012 * objc-lang.c: Update copyright.
13013 (objc_language_defn): Add basic_lookup_transparent_type.
13014 * p-lang.c: Update copyright.
13015 (p_language_defn): Add basic_lookup_transparent_type.
13016 * scm-lang.c: Update copyright.
13017 (scm_language_defn): Add basic_lookup_transparent_type.
13018 * Makefile.in (cp-namespace.o): Depend on frame.h.
13019
fdde2d81
DC
130202004-01-23 David Carlton <carlton@kealia.com>
13021
13022 Patch for PR c++/1520:
13023 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13024 properly if we have a specification die.
13025 (determine_prefix_aux): Rename from determine_prefix.
13026 (determine_prefix): Like the old determine_prefix, but never
13027 returns NULL.
13028
5b828b6b
TR
130292004-01-23 Theodore A. Roth <troth@openavr.org>
13030
13031 * avr-tdep.c: Update copyright.
13032 (avr_iaddr_p): Delete unused function.
13033 (avr_saddr_p): Delete unused function.
13034
a1b8c067
DC
130352004-01-23 David Carlton <carlton@kealia.com>
13036
13037 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13038 Fix for PR symtab/1534.
13039
f2cab569
MK
130402004-01-23 Mark Kettenis <kettenis@gnu.org>
13041
13042 * NEWS (New native configurations): Mention OpenBSD/sparc and
13043 OpenBSD/sparc64.
13044 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13045 * configure.host: Likewise.
13046 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13047 handler for OpenBSD.
13048 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13049
642d8300
MK
130502004-01-22 Mark Kettenis <kettenis@gnu.org>
13051
89aac506
MK
13052 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13053 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13054
36662fde
MK
13055 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13056 * cli/cli-cmds.c (shell_escape): Likewise.
13057
642d8300
MK
13058 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13059 OpenBSD .note.openbsd.ident sections.
13060
fae299cd
DC
130612004-01-22 David Carlton <carlton@kealia.com>
13062
13063 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13064 get_scope_pc_bounds.
13065 (read_file_scope): Ditto.
13066 (get_scope_pc_bounds): New function, produced by extracting code
13067 from the above two functions, consolidating it, and adding support
13068 for DW_TAG_namespace.
13069
a49d618c
MK
130702004-01-22 Mark Kettenis <kettenis@gnu.org>
13071
13072 * osabi.c (MAX_NOTESZ): New define.
13073 (check_note): New function.
13074 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13075 check_note.
13076
fe61caab
RM
130772004-01-21 Roland McGrath <roland@redhat.com>
13078
13079 * MAINTAINERS (write after approval): Add myself.
13080
ec145965
EZ
130812004-01-21 Eli Zaretskii <eliz@gnu.org>
13082
13083 * utils.c (init_page_info): Move declarations of `rows' and
13084 `cols' before the __GO32__-specific code. Move the closing brace
13085 outside the #ifdef __GO32__..#endif block.
13086 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13087
877522db
PB
130882004-01-21 Paul Brook <paul@codesourcery.com>
13089
13090 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13091 BPSTAT_WHAT_CHECK_SHLIBS.
13092
dbf5be1c
PB
130932004-01-21 Paul Brook <paul@codesourcery.com>
13094
13095 * MAINTAINERS: Add myself to write-after-approval.
13096
81f08b92
AC
130972004-01-20 Andrew Cagney <cagney@redhat.com>
13098
5a1efed7
AC
13099 * ax-gdb.c (print_axs_value): Delete unused function.
13100 * jv-lang.c (java_lookup_type): Delete unused function.
13101 * cli/cli-dump.c (dump_filetype): Delete unused function.
13102 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13103 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13104 (mips_getstring): Delete unused function.
13105 (pmon_insert_breakpoint): Delete #if0ed function.
13106 (PMON_MAX_BP): Delete #if0ed MACRO.
13107 (mips_pmon_bp_info): Delete #if0ed variable.
13108 (pmon_remove_breakpoint): Delete #if0ed function.
13109 * monitor.c (monitor_write_even_block): Delete unused function.
13110 (monitor_write_memory_block): Delete #if0ed code.
13111 * dink32-rom.c (dink32_load): Delete unused function.
13112 (_initialize_dink32_rom): Delete #if0ed code.
13113 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13114
b0a30fce
AC
13115 * tui/tui-command.c: Update references.
13116 * tui/tui-io.c: Update references.
13117 * tui/tui-command.h: Update copyright.
13118 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13119
81f08b92
AC
13120 * source.c (ambiguous_line_spec): Delete never-defined function.
13121 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13122 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13123 * cli/cli-cmds.c (validate_comname): Ditto.
13124
65f05602
AC
13125 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13126 "tui-data.h".
13127 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13128 (tui_show_disassem): Rename tuiShowDisassem.
13129 (tui_show_disassem_and_update_source): Rename
13130 tuiVerticalDisassemScroll.
13131 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13132 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13133 * tui/tui.h: Update copyright.
13134 (enum tui_status): Define.
13135 * tui/tui-data.h (enum tui_scroll_direction): Define.
13136 * tui/tui-disasm.c: Update copyright. Update references.
13137 * tui/tui-winsource.c: Update copyright. Update references.
13138 * tui/tui-win.c: Update references.
13139 * tui/tui-layout.c: Update references.
13140
6bb0384f
AC
131412004-01-20 Andrew Cagney <cagney@redhat.com>
13142
13143 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13144 sym2 to start of block.
13145
9175c9a3
MC
131462004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13147
13148 * MAINTAINERS: Delete mmalloc.
13149 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13150 * NEWS: Mention removal of --with-malloc.
13151 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13152 * config.in: Regenerate.
13153 * configure: Regenerate.
6bb0384f
AC
13154 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13155 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13156 * gdbinit.in: Remove mmalloc.
13157 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13158 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13159 * config/i386/go32.mh: Likewise.
13160 * config/i386/interix.mh: Likewise.
13161 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13162
4fcef00a
JJ
131632004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13164
13165 * linespec.c (decode_variable, symtab_from_filename): Call
13166 error_silent with error message instead of throwing an exception
13167 directly.
13168 * defs.h (error_silent, error_output_message): Add prototypes.
13169 (catch_exceptions_with_msg): Ditto.
13170 * utils.c (error_silent, error_output_message): New functions.
13171 * top.c (catch_exceptions_with_msg): New function.
13172
8e94b928
NR
131732004-01-20 Nick Roberts <nick@nick.uklinux.net>
13174
13175 * mi/mi-cmds.h (enum print_values): Add definition.
13176
13177 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13178 type and value for simple data types and just the name and type
13179 for complex ones, if required.
13180
13181 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13182 children, if required.
13183
a02d6af8
KB
131842004-01-19 Kevin Buettner <kevinb@redhat.com>
13185
13186 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13187 unused declarations.
13188
78a4a9b9
AC
131892004-01-19 Andrew Cagney <cagney@redhat.com>
13190
13191 * top.h (mapped_symbol_files): Delete declaration.
13192 * main.c (captured_main): Delete option "m" and "mapped".
13193 * objfiles.c (mapped_symbol_files): Delete variable.
13194 * symfile.c (symbol_file_command): Delete mmap code.
13195 (symbol_file_add_with_addrs_or_offsets): Ditto.
13196 (add_symbol_file_command, reread_separate_symbols): Ditto.
13197 * objfiles.h (OBJF_MAPPED): Delete.
13198 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13199 (free_objfile) [USE_MMALLOC]: Ditto.
13200 (open_existing_mapped_file): Delete function.
13201 (open_mapped_file): Delete function.
13202 (map_to_file): Delete function.
13203
2dbd5e30
KB
132042004-01-19 Kevin Buettner <kevinb@redhat.com>
13205
13206 * infrun.c (step_into_function): Account for possible breakpoint
13207 adjustment when computing ``stop_func_start''.
13208
437b434f
KB
132092004-01-19 Kevin Buettner <kevinb@redhat.com>
13210
13211 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13212 the region size against the size of a pointer, not the size of
13213 a register as given by DEPRECATED_REGISTER_SIZE.
13214
55fb0713
AC
132152004-01-19 Andrew Cagney <cagney@redhat.com>
13216
13217 * tui/tui-regs.h: Include "tui-data.h".
13218 (tuiFirstRegElementNoInLine): Delete declaration.
13219 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13220 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13221 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13222 (tui_calculate_regs_column_count): Rename
13223 tuiCalculateRegsColumnCount.
13224 (tui_check_register_values): Rename tuiCheckRegisterValues.
13225 (tui_show_registers): Rename tuiShowRegisters.
13226 (tui_display_registers_from_line): Rename
13227 tuiDisplayRegistersFromLine.
13228 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13229 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13230 (tui_first_reg_element_no_inline): Rename
13231 tuiFirstRegElementNoInLine.
13232 * tui/tui-data.h: Update copyright.
13233 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13234 * tui/tui-windata.c: Update copyright, update references.
13235 * tui/tui-regs.c: Update copyright, update references.
13236 * tui/tui-win.c: Update copyright, update references.
13237 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13238
cebe9500
AC
132392004-01-18 Andrew Cagney <cagney@redhat.com>
13240
bcdf1568
AC
13241 * tui/tui-io.c: Update copyright.
13242 (key_is_end_sequence, key_is_backspace): New functions.
13243 (key_is_command_char, key_is_start_sequence): New function.
13244 (tui_getc): Update references.
13245 * tui/tui-io.h: Update copyright.
13246 (m_tuiStartNewLine): Delete macro.
13247 (m_isBackspace, m_isDeleteChar): Delete macros.
13248 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13249 (m_isNextPage, m_isPrevPage): Delete macros.
13250 (m_isLeftArrow, m_isRightArrow): Delete macros.
13251 (m_isXdbStyleCommandChar): Delete macro.
13252 (key_is_start_sequence): Declare, replace m_isStartSequence.
13253 (key_is_end_sequence): Declare, replace m_isEndSequence.
13254 (key_is_backspace): Declare ,replace m_isBackspace.
13255 (key_is_command_char): Declare, replace m_isCommandChar.
13256 * tui/tui-command.c: Update copyright.
13257 (tuiDispatchCtrlChar): Update references.
13258
130d87e6
AC
13259 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13260 tuiSourceWin.h.
13261
d7b2e967
AC
13262 * tui/tui-command.c: Rename tui/tuiCommand.c.
13263 * tui/tui-command.h: Rename tui/tuiCommand.h.
13264 * tui/tui-data.c: Rename tui/tuiData.c.
13265 * tui/tui-data.h: Rename tui/tuiData.h.
13266 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13267 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13268 * tui/tui-io.c: Rename tui/tuiIO.c.
13269 * tui/tui-io.h: Rename tui/tuiIO.h.
13270 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13271 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13272 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13273 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13274 * tui/tui-source.c: Rename tui/tuiSource.c.
13275 * tui/tui-source.h: Rename tui/tuiSource.h.
13276 * tui/tui-stack.c: Rename tui/tuiStack.c.
13277 * tui/tui-stack.h: Rename tui/tuiStack.h.
13278 * tui/tui-win.c: Rename tui/tuiWin.c.
13279 * tui/tui-win.h: Rename tui/tuiWin.h.
13280 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13281 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13282 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13283 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13284 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13285 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13286 * tui/tui-file.c: Update includes.
13287 * tui/tui-hooks.c: Update includes.
13288 * tui/tui-interp.c: Update includes.
13289 * tui/tui.c: Update includes.
13290 * Makefile.in: Update all tui/ dependencies.
13291 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13292
b2100910
AC
13293 * Makefile.in: Update copyright. Update dependencies.
13294
cebe9500
AC
13295 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13296 problem.
13297
c6f0559b
AC
132982004-01-18 Andrew Cagney <cagney@redhat.com>
13299
43e9390b
AC
13300 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13301 instead of register_gdbarch_init.
13302
c6f0559b
AC
13303 * remote-sds.c (tohex): Delete unused function. Update copyright.
13304 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13305 * v850-tdep.c (v850_register_virtual_size): Ditto.
13306 * target.c (normal_target_post_startup_inferior): Ditto.
13307 * source.c (ambiguous_line_spec): Ditto.
13308 * remote.c (adapt_remote_get_threadinfo): Ditto.
13309 * mi/mi-out.c (out_field_fmt): Ditto.
13310 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13311 (output_control_change_notification): Ditto.
13312 * m68k-tdep.c (m68k_register_byte): Ditto.
13313 (m68k_remote_breakpoint_from_pc): Ditto.
13314 * ui-out.c (init_ui_out_state): Delete unused declaration.
13315 * stabsread.c (search_value): Ditto.
13316 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13317 * maint.c (print_section_table): Ditto.
13318 * infrun.c (set_follow_fork_mode_command): Ditto.
13319
a8504492
MK
133202004-01-18 Mark Kettenis <kettenis@gnu.org>
13321
13322 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13323 DW_CFA_def_cfa_exporession. Add support for
13324 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13325 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13326
0bd8997e
AC
133272004-01-18 Andrew Cagney <cagney@redhat.com>
13328
13329 * ocd.c: Update copyright.
13330 (bdm_read_register_command): Delete unused function.
13331 (_initialize_remote_ocd): Delete commented out reference.
13332 (get_quoted_char, reset_packet): Delete #if0ed function.
13333 (output_packet, put_quoted_char): Delete #if0ed function.
13334 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13335 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13336 (BDM_BREAKPOINT): Delete #if0ed macro.
13337 (remote_timeout): Delete #if0ed variable.
13338
31bb40e4
MK
133392004-01-18 Mark Kettenis <kettenis@gnu.org>
13340
13341 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13342 (core-sol2.o): Remove dependency.
13343 * core-sol2.c: Remove file.
13344
887432a5
AC
133452004-01-17 Andrew Cagney <cagney@redhat.com>
13346
13347 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13348 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13349 enums.
13350
29182b13
DJ
133512004-01-17 Daniel Jacobowitz <drow@mvista.com>
13352
13353 * remote.c: Update copyright years.
13354
2963ee1d
DJ
133552004-01-17 Daniel Jacobowitz <drow@mvista.com>
13356
13357 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13358
79d45cd4
AC
133592004-01-17 Andrew Cagney <cagney@redhat.com>
13360
ee300cd4
AC
13361 * mdebugread.c: Update copyright.
13362 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13363 (parse_type, parse_procedure): Ditto.
13364 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13365
fcacc9c2
AC
13366 * cris-tdep.c (cris_store_struct_return): Put back accidently
13367 deleted function.
13368
79d45cd4
AC
13369 * gdbarch.sh: Update copyright year.
13370 * gdbarch.h, gdbarch.c: Re-generate.
13371
b263358a
DJ
133722004-01-17 Daniel Jacobowitz <drow@mvista.com>
13373
13374 Suggested by George Anzinger.
13375 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13376 correct stack offset. Include unknown opcode numbers in the error
13377 message.
13378
931aecf5
AC
133792004-01-17 Andrew Cagney <cagney@redhat.com>
13380
13381 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13382 extract_struct_value_address, i386 does not set it.
13383 * sparc64-tdep.c (sparc64_init_abi): Do not set
13384 extract_struct_value_address, never called.
13385 (sparc64_extract_struct_value_address): Delete function.
13386 * m68hc11-tdep.c: Update copyright.
13387 (m68hc11_gdbarch_init): Delete redundant assignment of
13388 extract_struct_value_address.
13389 * i386-tdep.c: Update copyright.
13390 (i386_gdbarch_init): Do not set extract_struct_value_address,
13391 never called.
13392 (i386_extract_struct_value_address): Delete function.
13393 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13394 extract_struct_value_address, never called.
13395 (sparc32_extract_struct_value_address): #if 0 function. Add
13396 comments explaining its future.
13397
756fe439
DJ
133982004-01-17 Daniel Jacobowitz <drow@mvista.com>
13399
13400 * arm-tdep.c (arm_write_pc): New function.
13401 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13402
e74f0f02
DJ
134032004-01-17 Daniel Jacobowitz <drow@mvista.com>
13404
13405 * breakpoint.c (must_shift_inst_regs): Delete.
13406 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13407 and SHIFT_INST_REGS.
13408 * infcmd.c (step_1, step_1_continuation): Delete references to
13409 SHIFT_INST_REGS.
13410 * infrun.c (keep_going): Likewise.
13411 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13412 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13413
b6cb9035
AC
134142004-01-17 Andrew Cagney <cagney@redhat.com>
13415
444a1e2e
AC
13416 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13417 * gdbarch.h, gdbarch.c: Re-generate.
13418 * infcmd.c (print_return_value): Delete reference to
13419 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13420
def7e6ed
AC
13421 * cris-tdep.c (cris_gdbarch_init): Do not set
13422 deprecated_extract_struct_value_address.
13423
07be497a
AC
13424 * xstormy16-tdep.c: Update copyright.
13425 (xstormy16_extract_struct_value_address): Update to current
13426 extract struct value address interface.
13427 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13428 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13429 current extract struct value address interface.
13430 (sh64_gdbarch_init): Set extract_struct_value_address.
13431
6b4d5c91
AC
13432 * cris-tdep.c: Update copyright.
13433 (cris_extract_struct_value_address): Delete function.
13434 (struct_return_address): Delete variable.
13435 (cris_store_struct_return): Do not set struct_return_address.
13436
464e0365
AC
13437 * mcore-tdep.c: Update copyright.
13438 (mcore_extract_struct_value_address): Delete function. Update
13439 comments.
13440 (mcore_gdbarch_init): Update.
13441 * mn10300-tdep.c: Update copyright.
13442 (mn10300_extract_struct_value_address): Delete function.
13443 (mn10300_gdbarch_init): Update.
13444 * v850-tdep.c: Update copyright.
13445 (v850_extract_struct_value_address): Delete.
13446 (v850_gdbarch_init): Update.
13447 * ns32k-tdep.c: Update copyright.
13448 (ns32k_extract_struct_value_address): Delete.
13449 (ns32k_gdbarch_init): Update.
13450 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13451 (hppa_gdbarch_init): Update.
13452 * vax-tdep.c: Update copyright.
13453 (vax_extract_struct_value_address): Delete.
13454 (vax_gdbarch_init): Update.
13455
afb18d0f
AC
13456 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13457 * gdbarch.h, gdbarch.c: Re-generate.
13458 * procfs.c (procfs_fetch_registers): Delete reference to
13459 DEPRECATED_NPC_REGNUM.
13460 (procfs_store_registers): Ditto.
13461 * regcache.c (generic_target_write_pc): Simplify.
13462 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13463
a698f53e
AC
13464 * core-sol2.c (fetch_core_registers): Replace
13465 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13466
adc11376
AC
13467 * hppa-tdep.c: Update copyright year.
13468 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13469 NPC_REGNUM.
13470 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13471
b6cb9035
AC
13472 * mips-tdep.c (mips_write_pc): New function.
13473 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13474 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13475 (mips_find_saved_regs, mips_software_single_step: Ditto.
13476 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13477 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13478
6d82d43b
AC
134792004-01-17 Andrew Cagney <cagney@redhat.com>
13480
13481 * mips-tdep.c: Re-indent. Group functions by ABI.
13482
71bd6bd4
AC
134832004-01-17 Andrew Cagney <cagney@redhat.com>
13484
13485 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13486 * gdbarch.c: Re-generate.
13487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13488 DECR_PC_AFTER_BREAK to zero.
13489 * vax-tdep.c (vax_gdbarch_init): Ditto.
13490 * v850-tdep.c (v850_gdbarch_init): Ditto.
13491 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13492 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13493 * sh-tdep.c (sh_gdbarch_init): Ditto.
13494 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13495 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13496 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13497 * mips-tdep.c (mips_gdbarch_init): Ditto.
13498 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13500 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13501 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13502 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13503 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13504 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13505 * frv-tdep.c (frv_gdbarch_init): Ditto.
13506 * cris-tdep.c (cris_gdbarch_init): Ditto.
13507 * avr-tdep.c (avr_gdbarch_init): Ditto.
13508 * arm-tdep.c (arm_gdbarch_init): Ditto.
13509 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13510
a02abb62
JB
135112004-01-17 J. Brobecker <brobecker@gnat.com>
13512
13513 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13514 Delete, no longer used.
13515 (read_subrange_type): New function, mostly extracted from
13516 read_array_type().
13517 (read_array_type): Replace extracted code by call to
13518 read_subrange_type().
13519 (dwarf2_get_attr_constant_value): New function.
13520 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13521 (add_partial_symbol): Likewise.
13522 (process_die): Likewise.
13523 (new_symbol): Likewise.
13524 (read_type_die): Likewise.
13525
cf5b2f1b
AC
135262004-01-16 Andrew Cagney <cagney@redhat.com>
13527
13528 * symfile.c: Update copyright year.
13529 (compare_symbols): Delete unused function.
13530 * stabsread.c: Update copyright year.
13531 (lrs_general_complaint): Delete unused function.
13532 (ref_search_value): Ditto.
13533 (get_substring): Delete declaration.
13534 * sh64-tdep.c: Update copyright year.
13535 (sh64_get_gdb_regnum): Delete unused function.
13536 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13537 Delete unused function.
13538
d33b9831
MK
135392004-01-17 Mark Kettenis <kettenis@gnu.org>
13540
13541 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13542 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13543
7aea86e6
AC
135442004-01-16 Andrew Cagney <cagney@redhat.com>
13545
13546 Changes from Peter Schauer.
13547 * rs6000-tdep.c: Update copyright year.
13548 (rs6000_push_dummy_call): Update the stack pointer before
13549 accessing the corresponding stack region.
13550 * rs6000-nat.c: Update copyright year.
13551 (set_host_arch): Set "info.abfd" to "exec_bfd".
13552
26b0da32
MK
135532004-01-15 Mark Kettenis <kettenis@gnu.org>
13554
13555 * blockframe.c: Update copyright year.
13556 (inside_entry_func): Don't treat a zero PC specially.
13557
86fbe6cc
EZ
135582004-01-14 Elena Zannoni <ezannoni@redhat.com>
13559
13560 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13561 variable.
13562 (gcore_create_callback): Ditto. Skip any memory segment that has
13563 no permissions set.
13564
63d06c5c
DC
135652004-01-14 David Carlton <carlton@kealia.com>
13566
13567 Change symbols for C++ nested types to contain the fully qualified
13568 name, if possible. (At least in the DWARF-2 case.) Partial fix
13569 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13570 c++/895.
13571 * c-exp.y (qualified_type): Handle types nested within classes.
13572 * cp-namespace.c: Update comments.
13573 (cp_set_block_scope): Delete #if 0.
13574 (cp_lookup_nested_type): Handle types nested within classes.
13575 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13576 when appropriate.
13577 (add_partial_symbol): Add the name of the enclosing namespace to
13578 types.
13579 (pdi_needs_namespace): New.
13580 (add_partial_namespace): Tweak comment.
13581 (add_partial_structure): New.
13582 (psymtab_to_symtab_1): Initialize processing_current_prefix
13583 here...
13584 (process_die): instead of here.
13585 (read_structure_scope): Try to figure out the name of the class or
13586 namespace that the structure might be defined within.
13587 (read_enumeration): Generate fully-qualified names, if possible.
13588 (read_namespace): Don't set name to NULL.
13589 (die_specification): New.
13590 (new_symbol): Generate fully-qualified names for types.
13591 (read_type_die): Determine appropriate prefix.
13592 (determine_prefix): New.
13593 (typename_concat): New.
13594 (class_name): New.
13595 * valops.c (value_aggregate_elt): Pass NOSIDE to
13596 value_struct_elt_for_reference.
13597 (value_struct_elt_for_reference): Make static, add NOSIDE
13598 parameter, call value_maybe_namespace_elt as a last resort.
13599 (value_namespace_elt): Break out code into
13600 value_maybe_namespace_elt.
13601 (value_maybe_namespace_elt): New.
13602
87783b8b
AC
136032004-01-12 Andrew Cagney <cagney@redhat.com>
13604
13605 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13606 cooked floating-point registers.
13607 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13608 and value_to_register.
13609
6503b91e
AC
136102004-01-13 Andrew Cagney <cagney@redhat.com>
13611
13612 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13613 * gdbarch.c: Re-generate.
13614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13615 FUNCTION_START_OFFSET.
13616 * v850-tdep.c (v850_gdbarch_init): Ditto.
13617 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13618 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13619 * sh-tdep.c (sh_gdbarch_init): Ditto.
13620 * s390-tdep.c (s390_gdbarch_init): Ditto.
13621 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13622 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13623 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13624 * mips-tdep.c (mips_gdbarch_init): Ditto.
13625 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13626 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13628 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13629 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13630 * i386-tdep.c (i386_gdbarch_init): Ditto.
13631 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13632 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13633 * frv-tdep.c (frv_gdbarch_init): Ditto.
13634 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13635 * cris-tdep.c (cris_gdbarch_init): Ditto.
13636 * avr-tdep.c (avr_gdbarch_init): Ditto.
13637 * arm-tdep.c (arm_gdbarch_init): Ditto.
13638 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13639
ea1dd7bc
DJ
136402004-01-13 Daniel Jacobowitz <drow@mvista.com>
13641
13642 * infrun.c (follow_fork_mode_ask): Remove.
13643 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13644 (follow_fork): Simplify and remove internal error for
13645 follow_fork_mode_ask.
13646 (_initialize_infrun): Update "set follow-fork-mode" help text.
13647
0f0cffd2
AC
136482004-01-13 Andrew Cagney <cagney@redhat.com>
13649
13650 * configure.in: Update copyright year.
13651 (build_warnings): Add -Wunused-label.
13652 * configure: Re-generate.
13653
de38af99
AC
136542004-01-12 Andrew Cagney <cagney@redhat.com>
13655
954a7fba
AC
13656 * exec.h (exec_ops): Make "extern".
13657
de38af99
AC
13658 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13659 the function is void.
13660 (mips_pseudo_register_write): Ditto.
13661
1a111ce3
AC
136622004-01-12 Andrew Cagney <cagney@redhat.com>
13663
13664 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13665 call. Never defined.
13666 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13667 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13668 (struct sparc_gregset, struct regcache): Ditto.
13669 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13670
48efe704
AC
136712004-01-12 Andrew Cagney <cagney@redhat.com>
13672
13673 * mi/ChangeLog: Delete file. Renamed to ...
13674 * mi/ChangeLog-1999-2003: New file.
13675 * tui/ChangeLog: Delete file. Renamed to ...
13676 * tui/ChangeLog-1998-2003: New file.
fe61caab 13677
a54124c5
MK
136782004-01-11 Mark Kettenis <kettenis@gnu.org>
13679
2ca62865
MK
13680 * sparc64nbsd-tdep.c: Include "regset.h".
13681 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13682 Remove variables.
13683 (fetch_core_registers): Remove function.
13684 (sparc64nbsd_core_fns): Remove variable.
13685 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13686 functions.
13687 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13688 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13689 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13690
ca9d58e9
MK
13691 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13692 sparc_extract_struct_value_address.
13693 (sparc32_gdbarch_init): Set extract_struct_value_address.
13694 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13695 function.
13696 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13697 return_value_on_stack.
13698
3cc87ec0
MK
13699 * NEWS: Mention that %cs and %ss have been added to the AMD64
13700 configurations
13701
5bf00f29
MK
13702 * frame.c: Update copyright year.
13703 (get_prev_frame): Improve comment.
13704
4f7ec84e
MK
13705 * sparc64fbsd-tdep.c: Include "regset.h".
13706 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13707 Remove variables.
13708 (fetch_core_registers): Remove function.
13709 (sparc64fbsd_core_fns): Remove variable.
13710 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13711 functions.
13712 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13713 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 13714 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 13715
4e7b0cd3
MK
13716 * sparcnbsd-tdep.c: Include "regset.h".
13717 (fetch_core_registers): Remove function.
13718 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13719 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13720 functions.
13721 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13722 TDEP->fpregset.
46b58ce9 13723 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 13724
a54124c5
MK
13725 * sparc-tdep.h (struct regset): Provide opaque declaration.
13726 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13727 fpregset and sizeof_fpregset members.
13728 * sparc-tdep.c (struct regset): Provide opaque declaration.
13729 (sparc_regset_from_core_section): New function.
13730 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13731 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13732 Set regset_from_core_section when appropriate.
13733
29ff87c5
MK
137342004-01-10 Mark Kettenis <kettenis@gnu.org>
13735
79b1ab3d
MK
13736 * x86-64-tdep.c (amd64_non_pod_p): New function.
13737 (amd64_classify_aggregate): Return class memory for non-POD
13738 C++ structure types.
13739
6470d250
MK
13740 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13741 argument. Use it to reserve a register if necessary.
13742 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13743 amd64_push_arguments.
13744
562c50c2
MK
13745 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13746
af233647
MK
13747 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13748 register numbers in comments.
13749 * x86-64-tdep.h: Update copyright year.
13750 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13751 Adjust for addition of %cs and %ss.
13752 * amd64fbsd-nat.c: Update copyright year.
13753 (reg_offset): Add register offsets for %cs and %ss.
13754 * amd64fbsd-tdep.c: Update copyright year.
13755 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13756 (amd64fbsd_sc_reg_offset): Likewise.
13757 * x86-64-linux-nat.c: Update copyright year.
13758 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13759 and %ss.
13760 * amd64nbsd-nat.c: Update copyright year.
13761 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13762 * amd64nbsd-tdep.c: Update copyright year.
13763 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13764 * x86-64-linux-tdep.c: Update copyright year.
13765 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13766 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13767 * regformats/reg-x86-64.dat: Add %cs and %ss.
13768
29ff87c5
MK
13769 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13770 variables to prevent long lines. Update comments to reflect
13771 reality.
13772
38d518c9
EZ
137732004-01-09 David Carlton <carlton@kealia.com>
13774
13775 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13776 * dwarf2read.c (read_namespace): Pull out name-generating code
13777 into namespace_name. Rename previous_namespace to previous_prefix
13778 and processing_current_namespace to processing_current_prefix..
13779 (namespace_name): New function.
13780 (add_partial_symbol): Substitute uses of pdi->name with
13781 actual_name.
13782 * cp-support.h: Rename processing_current_namespace to
13783 processing_current_prefix.
13784 Update copyright year.
13785 * cp-namespace.c: Rename processing_current_namespace to
13786 processing_current_prefix.
13787 Update copyright year.
fe61caab 13788
1e4728e7
AC
137892004-01-09 Andrew Cagney <cagney@redhat.com>
13790
13791 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13792
c77c642a
MK
137932004-01-09 Mark Kettenis <kettenis@gnu.org>
13794
13795 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13796 complaining.
13797 (process_one_symbol): Deal with N_PATCH stabs.
13798
b44e9041
EZ
137992004-01-09 Elena Zannoni <ezannoni@redhat.com>
13800
13801 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13802 ifdeffed code.
13803 Update copyright year.
38d518c9 13804
eccfb640
MC
138052004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13806
13807 * config/pa/tm-hppa.h: Update extern declarations for
13808 hppa32_hpux_frame_saved_pc_in_sigtramp,
13809 hppa32_hpux_frame_base_before_sigtramp, and
13810 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13811
848c5feb
MC
138122004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13813
13814 * config/pa/tm-hppah.h: Update copyright years.
13815
3cc5d663
AC
138162004-01-08 Andrew Cagney <cagney@redhat.com>
13817
13818 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13819 (mips_o32_reg_struct_has_addr): Delete function.
13820 (mips_gdbarch_init): Update.
13821 (mips_extract_struct_value_address): Delete function.
13822
bfec0b41
JJ
138232004-01-08 David Mosberger <davidm@hpl.hp.com>
13824
13825 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13826 reality.
13827
16e109ca
AC
138282004-01-07 Andrew Cagney <cagney@redhat.com>
13829
6214a8a1
AC
13830 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13831 architecture's elf flags (when available).
13832
8d5838b5
AC
13833 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13834 FPU to the start, check the MIPS FPU when looking for an old
13835 architecture.
13836 (set_mipsfpu_single_command): Update the architecture.
13837 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13838
480d3dd2
AC
13839 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13840 (mips_mask_address_p): Add "tdep" parameter.
13841 (show_mask_address, mips_addr_bits_remove): Update.
13842 (mips_dump_tdep): Update.
13843 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13844 (MIPS_STACK_ARGSIZE): Delete macro.
13845 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13846 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13847 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13848 (mips_dump_tdep): Update.
13849 (MIPS_SAVED_REGSIZE): Delete macro.
13850 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13851 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13852 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13853 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13854 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13855 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13856 (mips_pop_frame, return_value_location): Update.
13857 (mips_n32n64_return_value, mips_dump_tdep): Update.
13858
ec03c1ac
AC
13859 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13860 MIPS ABI.
13861
16e109ca
AC
13862 * mips-tdep.c: Update copyright.
13863 (mips_gdbarch_init): Merge two code blocks handling the register
13864 name and number layout.
13865
15255275
MS
138662004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13867
13868 * tracepoint.c (validate_actionline): Fix segv at EOF
13869
9f9057da
MC
138702004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13871
13872 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13873 properly for static fields.
13874
0127c0d3 138752004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 13876 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
13877
13878 * disasm.c: Update copyright to include 2004.
13879 (do_mixed_source_and_assembly): For uiout asm list
13880 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 13881 NULL and do so prior to loop. Only reset when we close off
0127c0d3 13882 the tuple/list. Move check for whether to close off the
fe61caab 13883 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
13884 on each loop iteration.
13885
5269965e
AC
138862004-01-05 Andrew Cagney <cagney@redhat.com>
13887
54f1137d
AC
13888 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13889 should be a switch case and not a label.
13890 * mips-tdep.c (mips32_next_pc): Delete unused labels
13891 "greater_equal_branch" and "less_zero_branch".
13892 * jv-valprint.c (java_print_value_fields): Delete unused label
13893 "flush_it".
13894
5269965e
AC
13895 * target.c (unpush_target): Only close a target that is in the
13896 target stack.
13897
dbc22fa1
MK
138982004-01-05 Mark Kettenis <kettenis@gnu.org>
13899
9515395e
MK
13900 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13901 address from [sp + 64] instead of %o2.
13902
dbc22fa1
MK
13903 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13904 fixes PR backtrace/1476.
13905
5439edaa
AC
139062004-01-05 Andrew Cagney <cagney@redhat.com>
13907
13908 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13909 move to start of file.
13910 * i386-tdep.h (struct regcache): Add opaque declaration.
13911 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13912 declaration.
13913 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13914 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13915 * win32-nat.c (fake_create_process): Use ISO C style definition.
13916 * stabsread.c (define_symbol): Delete #ifndef
13917 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13918 stabs_argument_has_addr call, macro never defined.
13919
19061abe
MC
139202004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13921
13922 * op50-rom.c: Delete.
13923 * w89k-rom.c: Delete.
13924 * Makefile.in: Remove references.
13925
e53bef9f
MK
139262004-01-04 Mark Kettenis <kettenis@gnu.org>
13927
13928 * x86-64-tdep.c: Update copyright year.
13929 (struct amd64_register_info): Rename from x86_64_register_info.
13930 (amd64_register_info): Rename from x86_64_register_info.
13931 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13932 (amd64_register_name): Rename from x86_64_register_name.
13933 (amd64_register_type): Rename from x86_64_register_type.
13934 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13935 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13936 (amd64_dwarf_reg_to_regnum): Rename from
13937 x86_64_dwarf_reg_to_regnum.
13938 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13939 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13940 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13941 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13942 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13943 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13944 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13945 (amd64_frame_cache): Rename from x86_64_frame_cache.
13946 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13947 (amd64_frame_prev_register): Rename from
13948 x86_64_frame_prev_register.
13949 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13950 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13951 (amd64_sigtramp_frame_cache): Rename from
13952 x86_64_sigtramp_frame_cache.
13953 (amd64_sigtramp_frame_prev_register): Rename from
13954 x86_64_sigtramp_frame_prev_register.
13955 (amd64_sigtramp_frame_unwind): Rename from
13956 x86_64_sigtramp_frame_unwind.
13957 (amd64_sigtramp_frame_sniffer): Rename from
13958 x86_64_sigtramp_frame_sniffer.
13959 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13960 (amd64_frame_base): Rename from x86_64_frame_base.
13961 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13962 (amd64_frame_align): Rename from x86_64_frame_align.
13963 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13964 (amd64_regset_from_core_section): Rename from
13965 x86_64_regset_from_core_section.
13966 (x86_64_init_abi): Update comments.
13967
fca6aa58
NR
139682004-01-04 Nick Roberts <nick@nick.uklinux.net>
13969
13970 * MAINTAINERS (write after approval): Add myself.
13971
8ada74e3
MK
139722004-01-04 Mark Kettenis <kettenis@gnu.org>
13973
13974 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13975 `float' arguments.
13976
5154b0cd
MK
139772004-01-04 Mark Kettenis <kettenis@gnu.org>
13978
13979 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13980 such that it mentions a specific version of GCC that exhibits this
13981 bug.
13982
fb316966
MK
139832004-01-03 Mark Kettenis <kettenis@gnu.org>
13984
200cc553
MK
13985 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13986 structure that has a single `float' member, store it in %f1 in
13987 addition to %f0.
13988
e226a4a0
MK
13989 * sparc-sol2-nat.c: Add missing '\'.
13990
b9d4c5ed
MK
13991 * sparc-tdep.c (sparc32_return_value): New function.
13992 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13993 Remove functions.
13994 (sparc32_gdbarch_init): Set return_value, don't set
13995 extract_return_value, store_return_value, use_struct_convention
13996 and return_value_on_stack.
13997
fb316966
MK
13998 * sparc-sol2-nat.c: Add missing ')'.
13999
1af510a8
JB
140002004-01-03 J. Brobecker <brobecker@gnat.com>
14001
14002 * infrun.c (handle_step_into_function): New function.
14003 (handle_inferior_event): Extract out some code into the new
14004 function above.
14005
5cf4d23a
JB
140062004-01-03 J. Brobecker <brobecker@gnat.com>
14007
14008 * infrun.c (handle_inferior_event): Move the declaration of
14009 real_stop_pc inside the if blocks where it is used.
14010
60af1db2
MK
140112004-01-03 Mark Kettenis <kettenis@gnu.org>
14012
14013 * sparc64-tdep.c (sparc64_16_byte_align_p)
14014 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14015 Use check_typedef to get subtypes of structures and unions.
14016 (sparc64_store_return_value): Fix calculation of the appropriate
14017 offset into VALBUF when storing a structure or union.
14018 (sparc64_return_value): New function.
14019 (sparc64_use_struct_convention): Remove function.
14020 (sparc64_init_abi): Set return_value, don't set
14021 extract_return_value, store_return_value and
14022 use_struct_convention.
14023
1a901d3f
EZ
140242004-01-03 Eli Zaretskii <eliz@elta.co.il>
14025
14026 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14027 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14028 gdb/config/alpha/xm-alphaosf.h,
14029 gdb/config/powerpc/tm-ppcle-eabi.h,
14030 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14031 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14032 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14033 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14034 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14035 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14036 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14037 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14038 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14039 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14040 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14041 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14042 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14043 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14044 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14045 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14046 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14047 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14048 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14049 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14050 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14051 Remove lines for .cvsignore files.
14052
ef52e463
JB
140532004-01-03 J. Brobecker <brobecker@gnat.com>
14054
14055 * infrun.c: Back out the previous change.
14056
cb1bf9dc
MK
140572004-01-03 Mark Kettenis <kettenis@gnu.org>
14058
f0424ef6
MK
14059 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14060 sparc-*-sunos4* to the list of REMOVED configurations.
14061
cb1bf9dc
MK
14062 * configure.tgt: Add back sparc-*-vxworks*.
14063 * remote-vxsparc.c: Remove all includes except for "defs.h",
14064 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14065 Include "sparc-tdep.h".
14066 (SPARC_R_G1): New define.
14067 (vxsparc_gregset): New variable.
14068 (ext_format_sparc): Remove extern declaration.
14069 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14070 sparc32_supply_fpregset.
14071 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14072 sparc_collect_rwindow and sparc32_collect_fpregset.
14073 * config/sparc/tm-vxworks.h: New file, based on recently removed
14074 tm-vxsparc.h.
14075 * config/sparc/vxworks.mt: New file, based on recently removed
14076 vxworks.mt.
fe61caab 14077
5e938f9f
JB
140782004-01-03 J. Brobecker <brobecker@gnat.com>
14079
14080 * infrun.c (handle_step_into_function): New function.
14081 (handle_inferior_event): Extract out some code into the new
14082 function above.
14083
386c036b
MK
140842004-01-02 Mark Kettenis <kettenis@gnu.org>
14085
14086 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14087 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14088 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14089 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14090 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14091 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14092 (sparc_nat_h): New variable.
14093 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14094 (tm-sun4os4.h): Remove dependency.
14095 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14096 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14097 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14098 sparc-tdep.o): Update dependencies.
14099 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14100 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14101 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14102 dependencies.
14103 * configure.host: Remove existing sparc-*-lynxos*,
14104 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14105 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14106 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14107 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14108 triplets.
14109 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14110 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14111 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14112 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14113 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14114 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14115 sparc64-*-solaris2* and sparc64-*-* triplets.
14116 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14117 "symtab.h" and "objfiles.h".
14118 (BIAS): Remove define.
14119 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14120 (X_DISP19): Remove macros.
14121 (sparc_fetch_instruction): Remove function.
14122 (struct gdbarch_tdep): Remove definition.
14123 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14124 (sparc_breakpoint_from_pc): Remove function.
14125 (struct sparc64_frame_cache): Remove definition.
14126 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14127 sparc64_unwind_pc): Remove functions.
14128 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14129 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14130 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14131 (sparc64_frame_cache): Change return type to `struct
14132 sparc_frame_cache *'. Simply call sparc_frame_cache.
14133 (sparc64_frame_this_id, sparc64_frame_prev_register,
14134 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14135 instead of `struct sparc64_frame_cache.
14136 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14137 sparc_analyze_control_transfer, sparc_software_single_step,
14138 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14139 _initialize_sparc64_tdep): Remove functions.
14140 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14141 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14142 macros.
14143 (sparc64_supply_gregset, sparc64_collect_gregset,
14144 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14145 (sparc64_init_abi): New function.
14146 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14147 inclusion guard. Include "sparc-tdep.h".
14148 (BIAS): Define.
14149 (r_tstate_offset, r_fprs_offset): New defines.
14150 (enum sparc_regnum): Remove defenition.
14151 (enum sparc64_regnum): Reformat.
14152 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14153 (sparc64_init_abi, sparc64_supply_gregset,
14154 sparc64_collect_gregset, sparc64_supply_fpregset,
14155 sparc64_collect_fpregset): New prototypes.
14156 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14157 Add extern declarations.
14158 (sparc64_sol2_init_abi): New prototype.
14159 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14160 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14161 prototypes.
14162 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14163 "sparnbsd-nat.h".
14164 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14165 functions.
14166 (_initialize_sparc64fbsd_nat): Remove initialization of
14167 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14168 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14169 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14170 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14171 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14172 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14173 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14174 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14175 (sparc64fbsd_r_y_offset): Remove variables.
14176 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14177 Make static and const.
14178 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14179 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14180 functions.
14181 (sparc64fbsd_gregset): New variable.
14182 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14183 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14184 and sparc64_supply_fpregset.
14185 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14186 (sparc64fbsd_sigtramp_frame_this_id)
14187 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14188 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14189 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14190 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14191 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14192 * sparcnbsd-tdep.c: Update copyright year. Include
14193 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14194 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14195 "value.h" and "sparcnbsd-tdep.h".
14196 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14197 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14198 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14199 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14200 defines.
14201 (sparcnbsd_gregset): New variable.
14202 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14203 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14204 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14205 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14206 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14207 variables.
14208 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14209 (sparc32nbsd_sigcontext_frame_this_id)
14210 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14211 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14212 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14213 (sparcnbsd_get_longjmp_target_32,
14214 sparcnbsd_get_longjmp_target_64): Remove functions.
14215 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14216 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14217 sparcnbsd_init_elf): Remove.
14218 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14219 (sparcnbsd_elf_init_abi): New functions.
14220 (_initialize_sparcnbsd_tdep): New prototype.
14221 (_initialize_sparnbsd_tdep): Update.
14222 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14223 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14224 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14225 * config/sparc/linux.mh: Update comment.
14226 (XM_FILE, HOST_IPC): Remove variables.
14227 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14228 sparc-linux-nat.o.
14229 * config/sparc/linux.mt: Update comment.
14230 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14231 * config/sparc/nbsd.mt: Reformat.
14232 * config/sparc/nbsd64.mh: Update comment.
14233 (NATDEPFILES): Add sparc-nat.o.
14234 * config/sparc/nbsd64.mt: Update comment.
14235 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14236 (TM_FILE): Set to tm-nbsd.h.
14237 * config/sparc/nbsdelf.mh: Update comment.
14238 (NATDEPFILES): Add sparc-nat.o.
14239 (XM_FILE): Delete.
14240 * config/sparc/nbsdaout.mh: Update comment.
14241 (NATDEPFILES): Add sparc-nat.o
14242 (XM_FILE): Delete.
14243 * config/sparc/nm-linux.h: Update copyright year. Don't include
14244 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14245 inclusion.
14246 (KERNEL_U_SIZE): Remove define.
14247 (kernel_u_size): Remove prototype.
14248 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14249 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14250 "regcache.h".
14251 (CHILD_PREPARE_TO_STORE): Remove define.
14252 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14253 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14254 sparcnbsd-nat.c: Rewrite files.
14255 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14256 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14257 sparcnbsd-tdep.h: Remove files.
14258 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14259 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14260 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14261 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14262 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14263 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14264 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14265 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14266 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14267 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14268 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14269 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14270 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14271 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14272 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14273 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14274 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14275 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14276 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14277
ee84457a
AC
142782004-01-02 Andrew Cagney <cagney@redhat.com>
14279
14280 From 2003-12-18 Kazuhiro Inaoka:
14281 * configure.host: Add m32r-linux target.
14282
0bc2134e
MC
142832004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14284
14285 * top.c (print_gdb_version): Update year to 2004.
14286
89a72f9c
MM
142872004-01-02 Mark Mitchell <mark@codesourcery.com>
14288
14289 * MAINTAINERS: Add myself to the write-after-approval category.
14290
86b013ed
DJ
142912004-01-02 Daniel Jacobowitz <drow@mvista.com>
14292
14293 From Bernardo Innocenti <bernie@develer.com>:
14294 * configure.tgt: Add uClinux target.
14295
e42c9534
AC
142962004-01-02 Andrew Cagney <cagney@redhat.com>
14297
14298 * utils.c (do_my_cleanups): Make static, add forward declaration.
14299 * defs.h (do_my_cleanups): Delete declaration.
14300
162467d3
EZ
143012004-01-02 Eli Zaretskii <eliz@elta.co.il>
14302
14303 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14304 bfd/ChangeLog-0203.
14305
78434e59
MK
143062004-01-02 Mark Kettenis <kettenis@gnu.org>
14307
14308 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14309 in <machine/reg.h>.
14310 * configure, config.in: Regenerate.
14311
48efe704
AC
14312For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14313tui/ChangeLog-1998-2003.
c906108c
SS
14314\f
14315Local Variables:
14316mode: change-log
14317left-margin: 8
14318fill-column: 74
14319version-control: never
14320End:
This page took 1.259407 seconds and 4 git commands to generate.