1 2004-11-17 Andrew Cagney <cagney@gnu.org>
3 * MAINTAINERS: Drop MIPS and remote.
5 2004-11-15 Andrew Cagney <cagney@gnu.org>
7 * findvar.c (value_of_register): Set the frame ID.
8 * value.c (value_primitive_field): Copy the frame ID.
9 * valops.c (value_assign): Simplify lval_register case, there's
12 2004-11-14 Daniel Jacobowitz <dan@debian.org>
14 * Makefile.in (mips-linux-tdep.o): Update dependencies.
15 * mips-linux-tdep.c: Include "regcache.h".
16 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
18 2004-11-14 Daniel Jacobowitz <dan@debian.org>
20 * Makefile.in (linux-thread-db.o): Fix typo in last change.
22 2004-11-14 Daniel Jacobowitz <dan@debian.org>
24 * linux-thread-db.c: New file, renamed from thread-db.c.
25 * thread-db.c: Remove.
26 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
27 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
29 * config/arm/linux.mh (NATDEPFILES): Likewise.
30 * config/i386/linux.mh (NATDEPFILES): Likewise.
31 * config/i386/linux64.mh (NATDEPFILES): Likewise.
32 * config/ia64/linux.mh (NATDEPFILES): Likewise.
33 * config/m32r/linux.mh (NATDEPFILES): Likewise.
34 * config/m68k/linux.mh (NATDEPFILES): Likewise.
35 * config/mips/linux.mh (NATDEPFILES): Likewise.
36 * config/pa/linux.mh (NATDEPFILES): Likewise.
37 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
38 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
39 * config/s390/s390.mh (NATDEPFILES): Likewise.
40 * config/sparc/linux.mh (NATDEPFILES): Likewise.
41 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
43 2004-11-13 Andrew Cagney <cagney@gnu.org>
45 * config/i386/i386lynx.mh: Delete file.
46 * config/i386/i386lynx.mt: Delete file.
47 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
48 * i386ly-tdep.c: Delete.
50 * config/tm-lynx.h: Delete, inline contents ...
51 * config/rs6000/tm-rs6000ly.h: ... here.
53 * config/tm-sysv4.h: Delete file, inlining contents.
54 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
55 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
56 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
58 * regcache.h (deprecated_register_valid): Delete.
59 (deprecated_registers): Delete.
60 * regcache.c (deprecated_register_valid): Delete.
61 (deprecated_registers): Delete.
62 (deprecated_read_register_byte, _initialize_regcache)
63 (deprecated_write_register_bytes, build_regcache): Update.
64 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
66 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
67 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
69 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
70 v850-*-* under removed.
71 * configure.host: Delete ns32k-*-netbsd*.
72 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
73 ns32k-*-netbsd*, and v850*-*-*.
74 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
76 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
77 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
78 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
79 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
80 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
81 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
82 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
83 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
84 * v850-tdep.c: Delete.
86 2004-11-13 Joel Brobecker <brobecker@gnat.com>
88 * irix5-nat.c (fetch_core_registers): Replace use of
89 deprecated_registers by equivalent code.
91 2004-11-13 Joel Brobecker <brobecker@gnat.com>
93 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
95 (fill_fpregset): Likewise.
97 2004-11-13 Andrew Cagney <cagney@gnu.org>
99 * MAINTAINERS: Do not list "Deleted" architectures.
101 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
102 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
104 * NEWS: Mention that vxworks was deleted.
105 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
106 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
107 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
108 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
109 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
110 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
111 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
112 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
113 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
114 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
115 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
116 * remote-vxmips.c, remote-vx.c: Delete.
117 * remote-vx68.c: Delete.
118 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
119 * config/m68k/os68k.mt, ada-lang.h: Ditto.
120 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
121 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
123 2004-11-13 Eli Zaretskii <eliz@gnu.org>
125 * config/i386/xm-go32.h: Don't include fopen-bin.h.
126 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
128 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
129 branch that doesn't define CRLF_SOURCE_FILES; always use
131 (print_source_lines_base, forward_search_command)
132 (reverse_search_command): Enable the code that accepts DOS-style
133 CRLF line endings on all platforms (this removes the need for
136 * defs.h: Fix wording of the comment before FOPEN_RB.
137 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
139 * config/djgpp/fnchange.lst: Group renames for opcode directory
142 * config/djgpp/djconfig.sh: Replace file names that don't exist
143 anymore with existing files, for checking the unpacked
146 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
147 Export pre-cooked values in configure-* targets that begin with
148 "@test -f stage_last".
150 2004-11-12 Andrew Cagney <cagney@gnu.org>
152 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
153 * value.h (struct value): Update comment.
154 * valops.c (value_assign): Fold lval_reg_fame_relative into
156 * findvar.c (value_from_register, locate_var_value): Ditto.
158 2004-11-12 Randolph Chung <tausq@debian.org>
160 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
161 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
162 (write_exp_msymbol): Remove conditional check for symbols starting
163 with $. Update comments.
165 2004-11-12 Randolph Chung <tausq@debian.org>
167 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
168 so_lib_thread_start_addr.
169 * pa64solib.h (so_list): Forward declare.
170 (pa64_solib_thread_start_addr): Prototype.
171 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
172 (no_shared_libraries): Remove.
173 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
174 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
175 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
176 the elf solib handler to find the start address.
178 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
179 files to the target makefile.
180 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
181 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
182 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
184 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
185 files for symbol reading and shared library handling here.
186 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
187 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
188 without bringing in 64-bit support.
190 2004-11-12 Andrew Cagney <cagney@gnu.org>
192 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
193 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
194 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
195 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
196 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
197 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
198 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
200 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
201 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
202 (VALUE_REGNUM): Define.
203 (struct value): Delete location.regnum, rename "regno" to
205 * value.c, valops.c, valarith.c, findvar.c: Update.
207 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
208 (VALUE_BITPOS): Delete.
209 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
210 * value.c (value_type, value_offset, value_bitpos)
211 (value_bitsize): New functions. Update references.
212 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
213 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
214 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
215 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
216 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
217 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
218 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
219 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
220 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
222 2004-11-12 Andrew Cagney <cagney@gnu.org>
224 * cris-tdep.c (cris_register_offset): Delete, never called.
225 (cris_spec_reg_applicable): Delete cris_ver_sim.
226 * MAINTAINERS: List d10v as OBSOLETE.
227 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
228 FOPEN_WB et.al., defined by "fopen-bin.h".
230 2004-11-12 Randolph Chung <tausq@debian.org>
232 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
233 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
234 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
235 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
237 2004-11-12 Mark Kettenis <kettenis@jive.nl>
239 * tui/tui-io.c: Don't include "terminal.h".
240 * Makefile.in (tui-io.o): Update dependencies.
242 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
244 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
245 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
246 set_gdbarch_regset_from_core_section for core file support.
247 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
250 2004-11-11 Randolph Chung <tausq@debian.org>
252 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
253 stop_after_branch parameter and use it to determine if we should look
254 at the delay slot of the first branch insn to find prologue insns.
255 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
256 (hppa_frame_cache): Likewise.
258 2004-11-11 Randolph Chung <tausq@debian.org>
260 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
261 register so that it can be unwound from anywhere in the prologue.
263 2004-11-10 msnyder <msnyder@redhat.com>
265 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
266 must invalidate lr_reg (so we don't try to save it again).
267 Ditto for cr_offset and cr_reg.
269 2004-11-05 Jon Beniston <jon@beniston.com>
271 Committed by Andrew Cagney.
272 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
273 when an unexpected packet is received, as the target stubs
274 continually retransmit the same packet until ACKed.
276 2004-11-10 Randolph Chung <tausq@debian.org>
278 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
281 2004-11-10 Randolph Chung <tausq@debian.org>
283 * blockframe.c (inside_entry_func): Move to .....
284 * frame.c (inside_entry_func): ... here, and make static.
285 (backtrace_past_entry): New flag.
286 (get_prev_frame): Stop backtrace at the entry function if enabled
287 by flag. Update comments.
288 (_initialize_frame): Add command to set backtrace_past_entry flag.
289 * defs.h (inside_entry_func): Remove prototype.
291 2004-11-10 Mark Kettenis <kettenis@gnu.org>
293 * dwarf2read.c: Fix formatting.
295 2004-11-10 Andrew Cagney <cagney@gnu.org>
297 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
298 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
299 macros with function declarations.
300 * value.c (coerce_ref, coerce_array, coerce_number)
301 (coerce_enum): New functions.
302 (value_as_long, value_as_address): Update.
303 * ada-lang.c (ada_coerce_ref, ada_value_binop)
304 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
305 * jv-lang.c (evaluate_subexp_java): Update.
306 * valarith.c (value_less, value_neg, value_complement)
307 (value_binop, value_add, value_subscript, value_x_binop)
308 (value_logical_not, value_sub): Update.
309 * valops.c (check_field, value_struct_elt, value_ind)
310 (value_find_oload_method_list, value_cast, value_assign): Update.
311 * eval.c (evaluate_subexp_standard): Update.
313 2004-11-10 Mark Kettenis <kettenis@gnu.org>
315 * mips-tdep.c (mips32_relative_offset): Change return type to
316 LONGEST, change argument type to ULONGEST. Fix sign-extension.
318 2004-11-10 Randolph Chung <tausq@debian.org>
320 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
321 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
322 (hppa_fetch_pointer_argument): Likewise.
323 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
324 deprecated_read_memory_nobpt.
325 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
326 add_set_cmd sequence with add_setshow_boolean_cmd.
328 2004-11-09 Andrew Cagney <cagney@gnu.org>
330 GDB 6.3 released from GDB 6.3 branch.
332 2004-11-09 Andrew Cagney <cagney@gnu.org>
334 * values.c: Rename to ...
335 * value.c: ..., new file.
336 * Makefile.in: Update.
338 2004-11-09 Daniel Jacobowitz <dan@debian.org>
340 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
343 2004-11-09 Andrew Cagney <cagney@gnu.org>
347 * value.h (struct value): Delete field bfd_section.
348 (VALUE_BFD_SECTION): Delete macro.
349 (COERCE_REF): Update.
350 (value_at, value_at_lazy): Delete asection parameter.
351 * printcmd.c (print_formatted, x_command): Update.
352 (do_examine): Delete asection parameter.
353 (next_section): Delete variable.
354 * valops.c (value_cast, value_at, value_at_lazy)
355 (value_coerce_function, value_addr, value_ind, value_string)
356 (find_rt_vbase_offset, value_full_object): Update.
357 * hpacc-abi.c (hpacc_virtual_fn_field)
358 (hpacc_value_rtti_type): Update.
359 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
360 (gnuv3_baseclass_offset): Update.
361 * f-valprint.c (f_val_print): Update.
362 * c-valprint.c (c_val_print): Update.
363 * p-valprint.c (pascal_val_print): Update.
364 * jv-valprint.c (java_value_print): Update.
365 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
366 * ada-lang.c (ada_value_primitive_packed_val)
367 (ada_evaluate_subexp): Update.
368 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
369 * expprint.c (print_subexp_standard): Update.
370 * infcall.c (call_function_by_hand): Update.
371 * valarith.c (value_add): Update.
372 * eval.c (evaluate_subexp_standard): Update.
373 * values.c (allocate_value, value_copy, value_static_field): Update.
374 * findvar.c (read_var_value, locate_var_value): Update.
376 2004-11-09 Andrew Cagney <cagney@gnu.org>
378 * i386-linux-tdep.c: Include "dwarf2-frame.h".
379 * Makefile.in: Update all dependencies.
381 2004-11-08 Andrew Cagney <cagney@gnu.org>
383 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
384 (sentinel_frame_unwinder): Add the prev_pc method.
385 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
386 available. Do not handle the sentinel-frame case.
387 * frame-unwind.h (frame_prev_register_ftype): Define.
388 (struct frame_unwind): Add prev_pc;
390 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
392 * configure.in: Check for ncurses/term.h.
393 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
394 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
395 * tui/tui.c: Don't include term.h.
396 * configure, config.in: Rebuilt.
398 2004-11-08 Mark Kettenis <kettenis@gnu.org>
400 * m68kbsd-nat.c: Include "inf-ptrace.h".
401 (_initialize_m68kbsd_nat): Fix pasto.
402 * Makefile.in (m68kbsd-nat.o): Update dependencies.
404 2004-11-08 Randolph Chung <tausq@debian.org>
406 * infrun.c (debug_infrun): New variable.
407 (resume, proceed, wait_for_inferior): Annotate with debug messages.
408 (handle_inferior_event, keep_going): Likewise.
409 (_initialize_infrun): Register "set debug infrun" command.
411 2004-11-08 Andreas Schwab <schwab@suse.de>
413 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
414 PTRACE_EVENT_VFORKDONE.
415 (child_follow_fork): Adjust.
417 2004-11-08 Andrew Cagney <cagney@gnu.org>
419 * README: Refer to 6.3, not 6.2, update directory listing droppng
420 references to intl/ and mmalloc/.
421 * PROBLEMS: Refer to 6.3 not 6.2.
423 * PROBLEMS: Delete no-longer applicable problems.
425 2004-11-07 Andrew Cagney <cagney@redhat.com>
426 Daniel Jacobowitz <dan@debian.org>
427 Roland McGrath <roland@redhat.com>
429 * Makefile.in (symfile-mem.o): Update dependencies.
430 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
431 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
432 * inf-ptrace.c (inf_ptrace_attach): Call
433 observer_notify_inferior_created.
434 * inftarg.c (child_attach): Likewise.
435 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
436 (symbol_file_add_from_memory): Take NAME argument. Use it for
437 the new BFD's filename.
438 (add_symbol_file_from_memory_command): Update call to
439 symbol_file_add_from_memory.
440 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
441 (symbol_file_add_from_memory_wrapper): New.
442 (_initialize_symfile_mem): Register add_vsyscall_page as an
443 inferior_created observer.
445 2004-11-07 Mark Kettenis <kettenis@gnu.org>
447 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
448 fetch_inferior_registers. Make static.
449 (m68kbsd_store_inferior_registers): Rename from
450 store_inferior_registers. Make static.
451 (_initialize_m68kbsd_nat): Construct and add target vector.
452 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
453 inftarg.o. Add inf-ptrace.o.
454 (NAT_FILE): Set to tm-solib.h.
455 (LOADLIBES): New variable.
456 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
457 inftarg.o. Add inf-ptrace.o.
458 (NAT_FILE): Delete variable.
459 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
460 inftarg.o. Add inf-ptrace.o.
461 (NAT_FILE): Set to tm-solib.h.
462 * config/m68k/nm-nbsdaout.h: Remove file.
464 2004-11-07 Daniel Jacobowitz <dan@debian.org>
466 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
467 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
468 (dwarf2_signal_frame_unwind): New.
469 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
470 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
472 2004-11-07 Mark Kettenis <kettenis@gnu.org>
474 * Makefile.in (mips64obsd-tdep.o): Fix typo.
476 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
477 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
478 to only include the structure members we actually need.
479 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
480 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
481 only include the structure members we actually need.
482 (mipsnbsd_init_abi): Update.
484 * mips64obsd-nat.c: Include "mips-tdep.h".
485 (MIPS64OBSD_NUM_REGS): Remove define.
486 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
487 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
488 floating-point registers correctly.
489 * Makefile.in (mips64obsd-nat.o): Update dependencies.
491 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
493 (mips64obsd_sigframe_init): New function.
494 (mips64obsd_sigframe): New variable.
495 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
497 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
499 2004-11-06 Joel Brobecker <brobecker@gnat.com>
501 * alpha-mdebug-tdep.c: #include mdebugread.h.
502 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
503 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
505 2004-11-05 Andrew Cagney <cagney@gnu.org>
507 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
508 CFI and the init_reg method leave the register unspecified.
509 Include the register name in the "Incomplete CFI data" complaint.
510 Supress leading zeros in the address.
512 2004-11-05 Mark Kettenis <kettenis@gnu.org>
514 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
515 skipping a personality routine in a CIE augmentation.
517 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
519 * defs.h (fatal, vfatal): New function prototypes.
520 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
522 (backtrace_command): Change to call backtrace_command_stub via
523 catch_errors instead of calling backtrace_command_1 directly.
524 (backtrace_full_command): Ditto.
525 * utils.c (error_stream_1): New static function.
526 (verror): Change to call error_stream_1 instead of error_stream.
527 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
528 (vfatal, fatal): New functions.
530 2004-11-05 Andrew Cagney <cagney@gnu.org>
532 * stack.c (parse_frame_specification_1): Clear selected_frame_p
533 when not using selected frame.
535 2004-11-05 Mark Kettenis <kettenis@jive.nl>
537 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
538 personality routine in a CIE augmentation.
540 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
542 * stack.c (set_current_sal_from_frame): New function.
543 (print_args_stub): Use it.
544 (print_frame_info): Don't set sal here.
546 2004-11-04 Mark Kettenis <kettenis@gnu.org>
548 * dwarf2-frame.c (read_encoded_value): Change type of third
549 argument to `unsigned char *'. Add support for LEB128 encodings.
551 2004-11-04 Jim Blandy <jimb@redhat.com>
553 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
554 prevent cross-objfile references.
555 (make_cv_type): Doc fix. Don't create cross-objfile references,
557 (replace_type): Add assertion to prevent cross-objfile references.
558 (check_typedef): Never resolve a stub type by copying over a type
561 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
563 * Makefile.in (m32r-tdep.o): Update dependencies.
564 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
565 ABI-specific overrides.
567 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
569 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
570 unnecessary parallel execution bit.
571 (m32r_memory_remove_breakpoint): Ditto.
572 (m32r_breakpoint_from_pc): Update.
574 2004-11-03 Randolph Chung <tausq@debian.org>
576 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
577 frame_func_unwind to locate the unwind entry.
578 (hppa_frame_this_id): Likewise.
580 2004-11-03 Andrew Cagney <cagney@gnu.org>
582 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
583 packet, obsolete configurations, end-of-life deprecated_registers.
585 2004-11-02 Mark Kettenis <kettenis@gnu.org>
587 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
588 encodings as well as unsigned encodings.
590 2004-11-02 Andrew Cagney <cagney@gnu.org>
592 * value.h (COERCE_VARYING_ARRAY): Delete.
593 * valops.c (value_cast, value_slice): Delete use.
594 * valarith.c (value_subscript, value_concat): Delete use.
596 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
598 * NEWS: GDB understands GNAT Ada.
600 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
602 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
603 (amd64-sol2-tdep.o): Add dependencies.
604 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
605 config/i386/sol2-64.mt: New files.
606 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
607 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
608 (supply_gregset): Correct order of arguments to
609 amd64_supply_native_gregset.
610 (fill_gregset): Correct order of arguments to
611 amd64_collect_native_gregset.
612 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
613 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
614 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
615 for definition of NEW_PROC_API.
616 * configure: Regenerate.
618 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
620 * MAINTAINERS (Write After Approval): Add myself.
622 2004-11-01 Andrew Cagney <cagney@gnu.org>
624 * configure.tgt: Mark d10v-*-* as obsolete.
625 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
627 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
629 * values.c (modify_field): Correct handling of bit-fields that
630 don't fit in 32 bits. Use unsigned operations throughout and
631 simplify the code a bit. Document preconditions.
633 2004-10-31 Andrew Cagney <cagney@gnu.org>
635 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
636 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
637 (in_plt_section): Delete.
639 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
640 (mips_gdbarch_init): Do not set same.
642 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
643 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
645 * gdbarch.sh (in_solib_call_trampoline): Delete.
646 * gdbarch.h, gdbarch.c: Re-generate.
648 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
649 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
650 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
651 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
652 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
654 2004-10-31 Mark Kettenis <kettenis@gnu.org>
656 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
657 (mipsnbsd_fetch_inferior_registers): Rename from
658 fetch_inferior_registers. Make static.
659 (mipsnbsd_store_inferior_registers): Rename from
660 store_inferior_registers. Make static.
661 (_initialize_mipsnbsd_nat): New function and prototype.
662 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
663 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
664 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
667 2004-10-31 Andrew Cagney <cagney@gnu.org>
669 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
670 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
671 delete corresponding unused function.
672 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
673 in_solib_call_trampoline.
674 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
675 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
676 * config/mips/tm-nbsd.h: Ditto.
677 * config/arm/tm-linux.h: Ditto.
678 * config/mips/tm-linux.h: Ditto.
680 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
681 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
682 in_solib_call_trampoline, delete corresponding unused function.
683 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
684 (vaxnbsd_aout_init_abi): Ditto.
685 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
686 (sparc32nbsd_aout_init_abi): Ditto.
687 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
688 (ppc_linux_init_abi): Ditto.
689 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
690 (ns32knbsd_init_abi_aout): Ditto.
691 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
692 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
693 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
694 (m68kbsd_aout_init_abi): Ditto.
695 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
696 (i386_cygwin_init_abi): Ditto.
697 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
698 (i386bsd_init_abi): Ditto.
700 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
701 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
702 isn't used by this architecture.
703 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
704 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
705 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
706 * s390-tdep.c (s390_gdbarch_init): Ditto.
707 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
708 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
709 * i386-tdep.c (i386_svr4_init_abi): Ditto.
710 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
711 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
712 * amd64-tdep.c (amd64_init_abi): Ditto.
714 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
715 in_solib_call_trampoline to its default value of
716 generic_in_solib_call_trampoline.
717 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
718 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
719 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
720 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
721 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
722 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
724 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
726 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
728 * config/mips/tm-mips.h: Delete file.
729 * remote-mips.c: Delete tm-mips.h from comment.
730 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
731 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
732 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
733 * config/mips/tm-linux.h: Don't include tm-mips.h.
734 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
735 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
736 * config/mips/tm-wince.h: Don't include.
738 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
739 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
740 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
741 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
743 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
744 * mdebugread.c (ecoff_relocate_efi): Delete function.
745 * objfiles.c (objfile_relocate): Delete #ifdef
746 MDEBUG_EFI_SYMBOL_NAME code.
748 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
749 Andrew Cagney <cagney@gnu.org>
751 * gdbarch.sh (single_step_through_delay): Add.
752 * gdbarch.h, gdbarch.c: Re-generate.
753 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
754 (mips_step_skips_delay): Delete.
755 * mips-tdep.c (mips_single_step_through_delay): Replace
756 mips_step_skips_delay.
757 (mips_gdbarch_init): Set single_step_through_delay.
758 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
760 2004-10-31 Mark Kettenis <kettenis@gnu.org>
762 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
763 from TRAMP_FRAME frame type.
765 2004-10-31 Andrew Cagney <cagney@gnu.org>
767 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
769 * mips-tdep.c (mips_ignore_helper): Delete.
770 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
771 * infrun.c (handle_inferior_event): Delete #ifdef
772 DEPRECATED_IGNORE_HELPER_CALL code.
774 * config/mips/tm-mips.h (RA_REGNUM): Delete.
776 2004-10-31 Mark Kettenis <kettenis@gnu.org>
778 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
779 (fill_fpregset): Do not compile for 64-bit systems.
780 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
781 * Makefile.in (i386-sol2-nat.o): Update dependencies.
782 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
784 2004-10-30 Andrew Cagney <cagney@gnu.org>
786 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
787 (struct mdebug_extra_func_info): Define.
788 * config/alpha/tm-alpha.h: Delete same.
789 * config/mips/tm-mips.h: Delete same.
790 * mdebugread.c: Delete same.
791 * Makefile.in: Update dependencies.
792 * mips-mdebug-tdep.c: Include "mdebugread.h".
794 * objfiles.c: Include "mdebugread.h".
795 * mdebugread.c: Include "mdebugread.h".
796 (ecoff_relocate_cfi): Delete.
797 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
798 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
799 * mdebugread.h (ecoff_relocate_efi): New file.
800 * Makefile.in: Update dependencies.
802 * mips-tdep.c (struct frame_extra_info): Delete.
803 (temp_proc_desc): Delete.
805 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
806 MIPS_EFI_SYMBOL_NAME.
807 (mips_extra_func_info_t, mips_extra_func_info): Delete.
808 (struct mdebug_extra_func_info): Replace struct
809 alpha_extra_func_info and alpha_extra_func_info_t.
810 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
811 MIPS_EFI_SYMBOL_NAME.
812 (struct mdebug_extra_func_info): Replace struct
813 alpha_extra_func_info and alpha_extra_func_info_t.
814 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
815 * mdebugread.c, alpha-mdebug-tdep.c:
817 Suggested by Mark Kettenis.
818 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
819 fields frame_adjust and high_addr.
820 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
821 (non_heuristic_proc_desc): Delete references.
823 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
824 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
825 * mips-tdep.c: Update.
827 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
828 (MIPS_LAST_EMBED_REGNUM): Add.
829 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
830 (LAST_EMBED_REGNUM): Delete.
831 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
833 * config/mips/tm-mips.h (PS_REGNUM): Delete.
834 * mips-tdep.h (MIPS_PS_REGNUM): Add.
835 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
836 * mips-linux-nat.c: Update.
838 * mips-tdep.h: Add comments on registers.
839 (MIPS_UNUSED_REGNUM): Define.
840 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
841 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
842 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
843 * mips-linux-nat.c, remote-mips.c: Update.
845 * config/mips/tm-mips.h (t_insn): Delete.
846 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
847 Replace t_insn with ULONGEST.
849 2004-10-30 Mark Kettenis <kettenis@gnu.org>
851 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
852 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
853 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
854 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
855 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
856 (mipsnbsd_core_osabi_sniffer): New function.
857 (mipsnbsd_init_abi): Set regset_from_core_section.
858 (_initialize_mipsnbsd_tdep): Remove calls to
859 deprecated_add_core_fns.
860 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
861 (mipsnbsd_regset_from_core_section): New functions.
862 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
863 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
865 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
866 Remove optimization for DEPRECATED_FP_REGNUM.
868 2004-10-30 Andrew Cagney <cagney@gnu.org>
870 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
871 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
872 (alpha_setup_arbitrary_frame): Delete.
873 * mips-tdep.c (setup_arbitrary_frame): Delete.
874 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
875 (setup_arbitrary_frame): Delete.
876 * stack.c (parse_frame_specification_1): When specified, call
877 create_new_frame with two parameters. Delete #ifdef
878 SETUP_ARBITRARY_FRAME.
880 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
881 (MIPS_INSTLEN): Delete.
882 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
883 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
884 * remote-mips.c, mips-tdep.c: Update.
886 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
887 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
888 * mips-tdep.c (mips_mdebug_frame_cache)
889 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
890 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
891 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
892 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
893 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
894 (mips_gdbarch_init): Do not append mdebug sniffers.
895 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
896 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
897 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
898 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
899 * Makefile.in: Update dependencies.
901 * mips-tdep.h (mips_abi_regsize): Declare.
902 * mips-tdep.c (mips_abi_regsize): Make non-static.
904 * mips-tdep.c (gdb_print_insn_mips): Simplify.
905 (make_mips16_addr): Delete.
907 2004-10-30 Mark Kettenis <kettenis@gnu.org>
909 * i386-sol2-nat.c: New file.
910 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
912 (i386-sol2-nat.o): Update dependencies.
913 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
916 2004-10-30 Andrew Cagney <cagney@gnu.org>
918 Total breakage identified by Joel Brobecker.
919 * mips-tdep.c (after_prologue): Delete.
920 (mips_skip_prologue): Use skip_prologue_using_sal.
921 (heuristic_proc_desc): Delete, unused.
923 2004-10-30 Mark Kettenis <kettenis@gnu.org>
925 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
926 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
927 Cleanup coding style.
929 2004-10-30 Andrew Cagney <cagney@gnu.org>
931 * mips-tdep.h (mips_pc_is_mips16): Declare.
932 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
933 non-static. Update calls.
935 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
936 * command.h (add_setshow_enum_cmd): Declare.
937 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
939 * mips-tdep.c (_initialize_mips_tdep): Use
940 add_setshow_zinteger_cmd.
942 * mips-tdep.c (mips_eabi_extract_return_value)
943 (mips_o64_extract_return_value, mips_o64_store_return_value)
944 (return_value_location, mips_eabi_reg_struct_has_addr)
945 (mips_eabi_use_struct_convention)
946 (mips_eabi_store_return_value): Delete.
947 (mips_eabi_store_return_value): New function.
948 (mips_eabi_return_value): New function.
949 (mips_gdbarch_init): For O64 and EABI, delete
950 extract_return_value, store_return_value, use_struct_convention
951 and reg_struct_has_addr, add return_value.
953 * mips-tdep.c (read_signed_register): Use
954 regcache_cooked_read_signed.
956 2004-10-30 Mark Kettenis <kettenis@gnu.org>
958 * mipsread.c: Cleanup coding style.
959 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
960 (mipscoff_symfile_finish): Remove prototypes.
962 2004-10-29 Mark Kettenis <kettenis@gnu.org>
964 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
965 (mips_mdebug_frame_cache, mips16_scan_prologue)
966 (mips32_scan_prologue, mips_stub_frame_cache)
967 (heuristic_proc_start, heuristic_proc_desc)
968 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
969 (mips_n32n64_return_value, mips_o32_push_dummy_call)
970 (mips_o32_return_value, mips_o64_push_dummy_call)
971 (mips_step_skips_delay, mips_skip_trampoline_code)
972 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
973 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
974 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
975 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
976 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
977 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
978 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
979 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
980 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
981 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
983 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
984 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
986 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
988 * mipsnbsd-nat.c: Include "mips-tdep.h".
989 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
990 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
992 2004-10-29 Andrew Cagney <cagney@gnu.org>
994 * stack.c (parse_frame_specification_1): New function based on
995 parse_frame_specification. Add message and selected_frame_p
996 paramters. Truely always return non-NULL.
997 (parse_frame_specification): Call parse_frame_specification_1.
998 (frame_info): Update. Eliminate target_has_stack check.
999 (select_frame_command): Update.
1001 2004-10-29 Andrew Cagney <cagney@gnu.org>
1003 * frame.h (get_selected_frame): Add message parameter.
1004 * frame.c (get_selected_frame): Add and use message parameter.
1005 * stack.c (current_frame_command, return_command, locals_info)
1006 (catch_info, args_info, up_silently_base, down_silently_base): Use
1007 get_selected_frame with an explicit message.
1008 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1009 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1010 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1011 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1012 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1013 * breakpoint.c: Update.
1015 2004-10-29 Andrew Cagney <cagney@gnu.org>
1017 * trad-frame.c (trad_frame_get_prev_register): Use
1018 frame_unwind_register instead of frame_register_unwind, do not
1019 recurse the register's location.
1020 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1021 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1022 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1023 * sh-tdep.c (sh_frame_prev_register): Ditto.
1024 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1025 * i386-tdep.c (i386_frame_prev_register): Ditto.
1026 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1027 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1029 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1031 * proc-events.c: Fix several coding-style issues. Consistently
1032 use #ifdef instead of #if defined().
1033 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1035 (_initialize_proc_events): New prototype.
1037 * proc-why.c: Fix several coding-style issues.
1038 (proc_prettyfprint_why): Use ARRAY_SIZE.
1040 2004-10-27 Jim Blandy <jimb@redhat.com>
1042 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1043 manner independent of the host byte order.
1045 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1047 * mips-tdep.c (id_delayed): Remove prototype.
1049 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1051 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1052 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1053 to enum with register numbers.
1054 (enum mips_insn_size): New enum.
1056 2004-10-26 Andrew Cagney <cagney@gnu.org>
1058 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1059 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1060 (mips_gdbarch_init): Update.
1061 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1063 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1064 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1065 IN_SOLIB_RETURN_TRAMPOLINE.
1066 * mips-tdep.c (mips_dump_tdep): Do not print
1067 IN_SOLIB_RETURN_TRAMPOLINE.
1068 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1069 (mips_gdbarch_init): Update.
1071 * mips-tdep.h (mips_software_single_step): Move to here ...
1072 * config/mips/tm-mips.h: ... from here.
1073 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1074 (SOFTWARE_SINGLE_STEP): Delete.
1075 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1077 2004-10-25 Andrew Cagney <cagney@gnu.org>
1079 * NEWS: Add Changes since GDB 6.3 section.
1081 2004-10-23 Andreas Schwab <schwab@suse.de>
1083 * ada-lang.c (grow_vect): Return the new array instead of
1084 expecting pointer to pointer to avoid violation of aliasing rules.
1085 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1087 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1089 * s390-tdep.c (enum pv_boolean): Remove.
1090 (pv_is_array_ref): Remove.
1091 (s390_on_stack): Remove.
1092 (S390_NUM_SPILL_SLOTS): Remove.
1093 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1094 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1095 (s390_store): Track all stores of orginal incoming registers to the
1096 stack constant offsets relative to the CFA, instead of only tracking
1097 stores into specific spill slots.
1098 (s390_load): Likewise.
1099 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1100 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1101 defined as call-saved by the ABI.
1102 (s390_push_dummy_call): Use bottom of dummy call argument save area
1103 as return value, not the top. Do not store to the called function's
1105 (s390_unwind_dummy_id): Adapt accordingly.
1107 2004-10-23 Andrew Cagney <cagney@gnu.org>
1109 * objfiles.h (struct objfile): Rename obj_private to
1110 deprecated_obj_private, sym_private to deprecated_sym_private, and
1111 sym_stab_info to deprecated_sym_stab_info.
1112 * gdb-stabs.h: Update.
1113 * elfread.c: Update.
1114 * dbxread.c: Update.
1115 * coffread.c: Update.
1116 * xcoffread.c: Update.
1117 * symfile.c: Update.
1118 * somread.c: Update.
1119 * nlmread.c: Update.
1120 * mdebugread.c: Update.
1122 * coffread.c: Update.
1124 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1126 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1127 * configure.host: Add mips64*-*-openbsd*.
1128 * configure.tgt: Add mips64*-*-openbsd*.
1129 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1131 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1132 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1134 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1136 * symtab.c (symbol_search_name): Minor reformatting.
1138 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1140 * symtab.h: Fix typo in comment.
1142 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1144 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1145 (dwarf_decode_line_header): Likewise.
1147 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1149 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1151 2004-10-19 Andrew Cagney <cagney@gnu.org>
1153 GDB 6.3 branch created.
1154 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1156 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1158 * dwarf2read.c (set_cu_language): Set language to Ada for
1159 DW_LANG_Ada83 and DW_LANG_Ada95.
1161 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1163 From Andreas Schwab <schwab@suse.de>:
1164 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1165 for xmalloc and xrealloc.
1167 2004-10-15 Andrew Cagney <cagney@gnu.org>
1169 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1170 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1171 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1172 Update dependencies.
1174 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1176 * ada-lang.c (ada_lookup_symbol): Correct comment.
1177 (ada_evaluate_subexp): Change error message for
1178 OP_FUNCALL case so as not to indicate an internal error.
1180 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1182 Committed by Paul Hilfinger.
1183 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1184 type sizes in XVE/XVU types, and emit a warning when that happens,
1185 instead of rounding up the size of the resulting type.
1186 Some minor reformatting.
1187 (ada_is_aligner_type): Do not consider a type as an aligner type
1188 if there is a corresponding XVS type as well.
1189 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1190 have several levels of pointer indirection to the array.
1192 2004-10-15 Jerome Guitton <guitton@gnat.com>
1194 Committed by Paul Hilfinger.
1195 * ada-lang.c (check_size): New function.
1196 (coerce_unspec_val_to_type): call check_size to make sure
1197 that the object size is reasonable.
1198 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1199 Implements the case when we get a reference when we evaluate
1200 the expression of one of the bounds of the slice.
1201 (ada_value_struct_elt): when a packed array field is
1202 a reference, use ada_coerce_ref to dereference it; use
1203 ada_value_ind only if it is a pointer.
1205 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1207 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1208 a bit to avoid the necessity of an advance declaration. Remove
1210 (set_reg_offset): Move implemenation up.
1211 (mips16_get_imm): Likewise.
1212 (mips16_scan_prologue): Likewise.
1213 (reset_saved_regs): Likewise.
1214 (mips32_scan_prologue): Likewise.
1216 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1218 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1219 Remove sp as a parameter, compute it internally instead. Move
1220 prologue scanning limit from heuristic_proc_desc to here.
1221 (mips16_scan_prologue): Likewise.
1222 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1223 by call to mips16_scan_prologue.
1224 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1225 by call to mips32_scan_prologue.
1226 (heuristic_proc_desc): Remove code that's no longer necessary.
1227 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1228 (mips_skip_prologue): Update calls to mips16_scan_prologue
1229 and mips32_scan_prologue.
1231 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1233 * mips-tdep.c (mips16_scan_prologue): Merge code from
1234 mips16_skip_prologue. Now return the address of the first
1235 instruction past the function prologue.
1236 (mips16_skip_prologue): Remove, no longer necessary.
1237 (mips_skip_prologue): Replace call to mips16_skip_prologue
1238 by call to mips16_scan_prologue.
1240 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1242 * mips-tdep.c (mips32_scan_prologue): Merge code from
1243 mips32_skip_prologue. Now return the address of the first
1244 instruction past the function prologue.
1245 (mips32_skip_prologue): Remove. No longer necessary.
1246 (mips16_skip_prologue): Add parameter end_pc instead of
1248 (mips_skip_prologue): Compute the upper limit for the
1249 prologue scanning. Update call to mips16_skip_prologue.
1250 Replace call to mips32_skip_prologue by call to
1251 mips32_scan_prologue.
1253 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1255 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1256 NetBSD system call stubs that store %rp in the ERP slot of the
1259 * source.c: Always define O_BINARY to 0 if not defined already.
1260 (openp): Unconditionally use O_BINARY.
1262 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1263 * event-top.c (gdb_readline2): Likewise.
1265 2004-10-14 Orjan Friberg <orjanf@axis.com>
1267 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1268 deprecated_add_core_fns which was removed by mistake.
1270 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1272 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1273 references to deprecated_registers[] with equivalent code.
1275 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1277 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1278 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1279 instead of explicit test and print statement.
1281 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1283 * sparc-nat.c: Include "inf-ptrace.h".
1284 (sparc_target): New function.
1285 * sparc-nat.h: Update copyright year.
1286 (sparc_target): New prototype.
1287 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1288 (_initialize_sparcnbsd_nat): Construct and add target vector.
1289 * sparc64nbsd-nat.c: Include "target.h".
1290 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1291 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1292 Update dependencies.
1293 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1294 inftarg.o, add inf-ptrace.o.
1295 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1296 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1297 (NAT_FILE): Set to nm-bsd.h.
1298 (LOADLIBES): New variable.
1299 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1300 infarg.o, add inf-ptrace.o.
1301 * config/sparc/nm-nbsdaout.h: Remove file.
1302 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1303 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1304 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1306 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1307 "fopen-same.h". Update comment.
1309 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1311 * i386gnu-nat.c: Include "gdb_string.h".
1312 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1313 registers when the floating-point state isn't initialized.
1314 * Makefile.in (i386gnu-nat.o): Update dependencies.
1316 2004-10-11 David Anderson <davea@sgi.com>
1318 * regcache.c (regcache_raw_read): Comment was missing "to".
1319 Extraneous ' removed.
1320 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1321 comment now describes use.
1323 2004-10-11 Orjan Friberg <orjanf@axis.com>
1325 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1326 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1327 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1328 (cris_sigtramp_frame_sniffer): New functions.
1329 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1330 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1331 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1332 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1333 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1335 (cris_version_update): Remove, replace with ...
1336 (set_cris_version): New function.
1337 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1338 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1339 (_initialize_cris_tdep): Remove CRIS mode command.
1340 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1341 cris-fpless-backtrace command.
1342 (cris_scan_prologue): Fix prologue scanning limit.
1343 (cris_register_type): Update to reflect actual registers.
1344 (cris_register_bytes_ok) Remove.
1345 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1346 Remove set_gdbarch_deprecated_register_size,
1347 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1349 2004-10-10 Andrew Cagney <cagney@gnu.org>
1351 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1354 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1356 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1358 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1360 * mips-tdep.c (mips16_scan_prologue): Renames
1361 mips16_heuristic_proc_desc. Update comment.
1362 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1363 (heuristic_proc_desc): Update calls to the 2 functions above.
1365 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1367 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1368 Update comments. Also immediately return empty cache when the start
1369 address of our function could not be found.
1370 (mips_insn32_frame_cache): Likewise.
1372 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1374 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1375 (mips_insn16_frame_cache): Pass frame cache in call to
1376 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1377 Remove code that became redundant as a consequence.
1378 (mips32_heuristic_proc_desc): No longer compute a fake
1379 procedure descriptor. Compute the full frame cache instead.
1380 Some minor comment reformatting.
1382 2004-10-10 Jim Blandy <jimb@redhat.com>
1384 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1385 reader, tracing bytecode stuff): Remove self.
1387 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1389 * sparc64-linux-tdep.c: Update copyright year. Don't include
1391 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1392 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1393 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1395 * sparc-linux-tdep.c: Update copyright year.
1396 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1397 to struct frame_info *. Use safe_frame_unwind_memory instead of
1398 deprecated_read_memory_nobpt.
1399 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1400 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1401 changed signature of sparc_linux_sigtramp_start.
1402 (sparc32_linux_pc_in_sigtramp): Remove function.
1403 (sparc32_linux_sigtramp_p): New function.
1404 (sparc32_linux_sigtramp_frame_sniffer): Use
1405 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1407 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1409 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1411 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1412 (decode_packed_array_type, value_subscript_packed)
1413 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1414 argument in call to lim_warning.
1416 * configure.in: Really disable the TUI if an enhanced curses
1417 library isn't found.
1418 * configure: Regenerate.
1420 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1422 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1423 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1424 * config/i386/nm-nbsdaout.h: Remove file.
1425 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1426 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1427 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1428 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1429 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1430 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1431 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1432 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1433 (ldd, ld_un, ld_2): Remove defines.
1434 * config/i386/nm-obsd.h: Likewise.
1436 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1438 * ada-lex.l: Remove useless rule whose right-context clause
1439 causes unreferenced static function warning for yyrealloc.
1440 (ada_flex_use): Remove the artificial reference to yyrealloc.
1442 2004-10-08 Andrew Cagney <cagney@gnu.org>
1444 * target.h (struct target_ops): Rename to_xfer_memory to
1445 deprecated_xfer_memory.
1447 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1449 * win32-nat.c: Update.
1450 * v850ice.c: Update.
1451 * uw-thread.c: Update.
1452 * thread-db.c: Update.
1453 * sol-thread.c: Update.
1455 * remote-vx.c: Update.
1456 * remote-st.c: Update.
1457 * remote-sim.c: Update.
1458 * remote-sds.c: Update.
1459 * remote-rdp.c: Update.
1460 * remote-rdi.c: Update.
1461 * remote-mips.c: Update.
1462 * remote-m32r-sdi.c: Update.
1463 * remote-e7000.c: Update.
1465 * ppc-bdm.c: Update.
1466 * nto-procfs.c: Update.
1467 * monitor.c: Update.
1468 * linux-nat.c: Update.
1469 * inftarg.c: Update.
1470 * hpux-thread.c: Update.
1471 * go32-nat.c: Update.
1472 * gnu-nat.c: Update.
1474 * corelow.c: Update.
1475 * bsd-kvm.c: Update.
1476 * aix-thread.c: Update.
1478 2004-10-08 Andrew Cagney <cagney@gnu.org>
1480 * target.c (debug_target): Move to near start of file.
1481 (target_stopped_data_address_p): Re-org logic, add casts.
1483 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1485 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1486 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1487 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1488 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1491 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1493 * target.h (to_stopped_data_address): Change prototype to
1494 take a CORE_ADDR pointer and return an int.
1495 * target.c (update_current_target): Change to_stopped_data_address
1496 to match new prototype.
1497 (debug_to_stopped_data_address): Change appropriately.
1498 * breakpoint.c (bpstat_stop_status): Change call to
1499 target_stopped_data_address to use new prototype.
1500 * frv-tdep.c (frv_have_stopped_data_address): New function.
1501 (frv_stopped_data_address): Change to new prototype and
1503 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1504 prototype and functionality.
1505 (ia64_stopped_by_watchpoint): New function.
1506 * i386-nat.c (i386_stopped_data_address): Change to new
1507 prototype and functionality.
1508 (i386_stopped_by_watchpoint): New function.
1509 * remote.c (remote_stopped_data_address): Change to new prototype
1511 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1512 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1513 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1514 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1515 new i386_stopped_by_watchpoint function.
1516 (i386_stopped_by_watchpoint): New prototype.
1517 (i386_stoppped_data_address): Change to new prototype.
1518 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1519 new ia64_stopped_by_watchpoint function.
1520 (ia64_stopped_by_watchpoint): New prototype.
1521 (ia64_stopped_data_address): Ditto.
1523 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1525 * ada-typeprint.c (ada_print_type): Use int_string for printing
1526 modulus of modular type.
1527 * ada-lang.h (ada_modulus): Change return type to unsigned.
1528 * ada-lang.c (ada_language_arch_info): Correct type of
1530 (ada_modulus): Return unsigned result.
1531 (ada_lookup_symbol): Remove user disambiguation and modify comment
1534 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1536 Committed by Paul Hilfinger.
1537 * ada-lang.c (decode_packed_array): On big-endian targets,
1538 left-justify the value if it comes with a modular type.
1540 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1542 Committed by Paul Hilfinger.
1543 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1544 (is_name_suffix): Add support for "___JM" suffixes.
1545 (ada_check_typedef): Renames ada_completed_type.
1546 Update all users of CHECK_TYPEDEF, check_typedef, and
1547 ada_complete_type to call ada_check_typedef.
1548 * ada-typeprint.c: Likewise.
1549 * ada-valprint.c: Likewise.
1551 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1553 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1555 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1557 * MAINTAINERS: Update e-mail address.
1559 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1561 From Maciej W. Rozycki <macro@mips.com>:
1562 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1563 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1565 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1567 * m32r-tdep.c (decode_prologue): Support functions written
1568 in assembler language. Recognize trap instructions as the
1570 (m32r_frame_unwind_cache): Ditto.
1571 (m32r_skip_prologue): Extend search limit. Quit analyzing
1572 prologue if pc's location is not readable.
1574 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1576 * Makefile.in (.l.c): Do conversions of names of alloc and free
1577 functions that are done for .y.c files, plus special one
1578 for yy_flex_realloc. Also, correct missing-file tests here.
1579 * ada-lex.l (malloc, free): Remove macros.
1580 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1582 (ada_flex_use): Dummy definition to remove warnings about unused
1584 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1585 to suppress warning.
1587 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1589 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1591 (sh_return_value_fpu): Ditto for CPUs with FPU.
1592 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1593 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1594 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1595 RETURN_VALUE functions.
1597 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1599 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1600 (sh_pseudo_register_write): Ditto.
1602 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1604 * sh-tdep.c (IS_MACL_STS): New define.
1606 (IS_MACL_LDS): Ditto.
1607 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1608 instructions in prologue.
1609 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1610 instructions in epilogue.
1612 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1614 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1615 (sh_sh_register_name): Add eight empty register names.
1616 (sh_sh3_register_name): Ditto.
1617 (sh_sh3e_register_name): Ditto.
1618 (sh_sh2e_register_name): Ditto.
1619 (sh_sh2a_register_name): New function, defining SH2A register set.
1620 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1622 (sh_sh_dsp_register_name): Add eight empty register names.
1623 (sh_sh3_dsp_register_name): Ditto.
1624 (sh_sh4_register_name): Ditto.
1625 (sh_sh4_nofpu_register_name): Ditto.
1626 (sh_sh4al_dsp_register_name): Ditto.
1627 (sh2a_show_regs): New function.
1628 (sh2a_nofpu_show_regs): New function.
1629 (sh_sh2a_register_type): New function.
1630 (do_bank_register_info): New function.
1631 (sh_print_pseudo_register): Call do_bank_register_info.
1632 Call sh_print_pseudo_register for valid "bank" register.
1633 (sh_sh2a_register_sim_regno): New function.
1634 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1635 Increment pseudo register count by one for all sh variants with
1636 pseudo registers to accomodate pseudo bank register.
1637 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1638 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1639 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1640 Increment pseudo register numbers.
1642 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1644 * dwarf2read.c (read_subroutine_type): Call make_function_type
1645 instead of lookup_function_type.
1647 2004-10-05 Jim Blandy <jimb@redhat.com>
1649 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1650 (Previous change missed some uses.)
1652 2004-10-05 Andrew Cagney <cagney@gnu.org>
1654 * target.h (deprecated_child_ops): Rename child_ops.
1655 * wince.c: Update copyright. Rename child_ops.
1656 * win32-nat.c: Rename child_ops.
1657 * target.c: Rename child_ops.
1658 * rs6000-nat.c: Rename child_ops.
1659 * linux-nat.c: Rename child_ops.
1660 * infttrace.c: Rename child_ops.
1661 * inftarg.c: Rename child_ops.
1662 * infptrace.c: Rename child_ops.
1663 * hppah-nat.c: Update copyright. Rename child_ops.
1664 * hpux-thread.c: Update copyright. Rename child_ops.
1666 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1668 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1670 2004-10-05 Andrew Cagney <cagney@gnu.org>
1672 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1674 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1676 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1677 (die_ref_table): Remove.
1678 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1679 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1680 the usage of this type.
1681 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1682 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1683 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1684 (dwarf2_create_include_psymtab): Update comment.
1685 (find_partial_die): Remove third argument. Remove unreachable call
1687 (dwarf2_find_containing_comp_unit): Update comments. Change one
1688 assertion to an error. Remove an unreachable error.
1689 (dwarf2_find_comp_unit): Update comments.
1690 (type_at_offset): Remove dead code.
1691 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1692 (store_in_ref_table): Add CU argument.
1693 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1694 inter-compilation-unit references.
1695 (load_full_comp_unit, process_full_comp_unit): New functions, based
1696 on psymtab_to_symtab_1.
1697 (psymtab_to_symtab_1): Use them.
1698 (dwarf2_add_dependence): New function.
1699 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1700 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1701 (partial_die_parent_scope, guess_structure_name): Update for changes
1702 to find_partial_die.
1703 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1704 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1705 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1706 (read_die_and_children): Update call to store_in_ref_table.
1707 (do_free_die_list_cleanup): Remove.
1708 (fixup_partial_die): Update for changes to find_partial_die.
1709 (read_full_die): Handle queueing absolute references.
1710 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1711 (dwarf2_attr, die_specification, die_type)
1712 (die_containing_type, dwarf2_extension): Update calls to
1714 (dump_die): Update DW_FORM_ref* handling.
1715 (dwarf2_get_ref_die_offset): Likewise.
1716 (free_one_comp_unit): Release the dies list.
1717 (dwarf2_mark_helper): New function.
1718 (dwarf2_mark): Use it.
1720 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1722 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1723 when writing to memory.
1725 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1727 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1728 (m32r_extract_struct_value_address): Delete function.
1729 (m32r_return_value): New function.
1730 (m32r_gdbarch_init): Instead of store_return_value,
1731 extract_return_value, deprecated_extract_struct_value_address
1732 and deprecated_use_struct_convention, set return_value.
1734 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1736 * dwarf2read.c (read_subrange_type): Add comment for variable
1739 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1741 * Makefile.in (.l.c): Modify rule for compatibility with recent
1742 versions of flex, and remove most command-line options.
1743 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1746 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1748 Turn on initial Ada support (mainly expression evaluation).
1750 * Makefile.in (SFILES): Remove ada-tasks.c.
1751 (HFILES_NO_SRCDIR): Add ada-lang.h.
1752 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1753 (YYOBJ): Add ada-exp.o.
1754 (rule .l.c): Generalize to not mention ada.
1755 * symtab.c: Include ada-lang.h.
1756 (symbol_natural_name, symbol_demangled_name)
1757 (symbol_search_name): Add Ada case.
1759 2004-10-01 Andrew Cagney <cagney@gnu.org>
1761 * Makefile.in (COMMON_OBS): Add inf-child.o.
1762 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1763 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1764 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1765 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1766 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1767 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1768 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1769 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1770 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1771 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1772 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1773 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1774 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1776 * target.c (xfer_using_stratum): Change return type to LONGEST.
1777 On each iteration offset, readbuf and writebuf.
1778 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1779 partial_length, and read/modify/write predicate, update comments.
1780 Pass buffer.word to ptrace write.
1782 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1784 * symfile.c (init_filename_language_table): Add extensions for
1786 * defs.h (enum language): Add language_ada.
1787 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1788 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1789 (add_symbols_from_enclosing_procs): Make a no-op for now.
1790 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1791 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1792 (find_line_in_linetable, find_next_line_in_linetable)
1793 (read_all_symtabs, is_plausible_func_for_line)
1794 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1795 (is_runtime_sym_defined, check_size): Remove declaration.
1796 (function_name_from_pc, ada_translate_error_message)
1797 (ada_lookup_minimal_symbol): Remove definition.
1798 (ada_add_block_symbols): Remove useless label.
1799 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1800 useless declaration.
1801 (ada_is_exception_sym): Likewise.
1803 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1805 Add m32r-linux support.
1806 * configure.tgt: Add m32r*-*-linux*.
1807 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1808 and m32r-linux-tdep.c.
1809 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1810 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1811 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1813 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1814 config/m32r/linux.mh, config/m32r/linux.mt,
1815 config/m32r/nm-linux.h: New files.
1817 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1819 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1820 (mips32_fetch_instruction): Remove, unused.
1822 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1824 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1825 conditions that will always be true.
1827 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1829 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1830 (vaxbsd_fetch_inferior_registers): Rename from
1831 fetch_inferior_registers. Make static.
1832 (vaxbsd_store_inferior_registers): Rename from
1833 store_inferior_registers. Make static.
1834 (_initialize_vaxbsd_nat): Construct and add target vector.
1835 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1836 inftarg.o. Add inf-child.o and inf-ptrace.o.
1837 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1838 inftarg.o. Add inf-child.o and inf-ptrace.o.
1840 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1841 inftarg.o. Add inf-child.o and inf-ptrace.o.
1843 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1845 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1846 (m88kbsd_fetch_inferior_registers): Rename from
1847 fetch_inferior_registers. Make static.
1848 (m88kbsd_store_inferior_registers): Rename from
1849 store_inferior_registers. Make static.
1850 (_initialize_m88kbsd_nat): New prototype and function.
1851 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1852 inftarg.o. Add inf-child.o and inf-ptrace.o.
1854 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1856 2004-09-30 Andrew Cagney <cagney@gnu.org>
1858 * target.c (target_xfer_partial): New function.
1859 (target_read_memory_partial, target_write_memory_partial)
1860 (default_xfer_partial, target_read_partial, target_write_partial)
1861 (xfer_using_stratum): Use.
1862 (debug_to_xfer_partial): Delete function.
1863 (setup_target_debug): Do not override to_xfer_partial.
1865 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1867 * fork-child.c: Update copyright year. Fix coding style.
1869 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1871 * defs.h (msavestring, mstrsave): Remove prototypes.
1872 * utils.c (msavestring, mstrsave): Remove functions.
1873 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1874 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1876 * source.c (find_and_open_source): Use xstrdup instead of
1879 2004-09-30 Andrew Cagney <cagney@gnu.org>
1881 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1882 (inf_ptrace_xfer_memory): Delete.
1883 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1884 (target_read_memory, target_write_memory): Use xfer_using_stratum
1885 when target_xfer_partial_p.
1886 (debug_target): Move to start of file.
1887 (target_read_memory_partial, target_write_memory_partial): Use
1888 to_xfer_partial when target_xfer_partial_p.
1890 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1891 inf_ptrace_xfer_memory with equivalent code.
1892 * inftarg.c (child_xfer_partial): When performing a write, pass
1893 writebuf to child_xfer_memory.
1895 * target.c (target_read_string): Use target_read_memory instead of
1898 2004-09-29 Andrew Cagney <cagney@gnu.org>
1900 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1901 the address of status.
1903 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1904 (kill_inferior): Inline ptrace_wait call.
1905 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1906 * inftarg.c (child_wait): Inline ptrace_wait call.
1908 * target.h (struct target_ops): Delete field to_post_wait.
1909 (target_post_wait): Delete macro.
1910 (child_post_wait): Delete declaration.
1911 * target.c (update_current_target, update_current_target)
1912 (debug_to_post_wait, setup_target_debug): Delete functions and
1914 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1915 * inftarg.c (child_post_wait): Delete.
1916 (init_child_ops): Do not set to_post_wait.
1917 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1918 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1919 * inf-child.c (inf_child_post_wait): Delete.
1920 (inf_child_target): Do not set to_post_wait.
1921 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1922 (inf_ptrace_target): Do not set to_post_wait.
1924 * wince.c (child_ops): Delete.
1925 * win32-nat.c (child_ops): Delete.
1927 * inftarg.c (inftarg_set_find_memory_regions)
1928 (inftarg_set_make_corefile_notes): Delete functions.
1929 (_initialize_linux_nat): Inline calls.
1931 * target.h (child_ops): Declare.
1932 * inftarg.c (child_ops): Move from here ...
1933 * target.c (child_ops): ... to here.
1934 * wince.c (child_ops): Delete extern declaration.
1935 * win32-nat.c (child_ops): Delete extern declaration.
1936 * linux-nat.c (child_ops): Delete extern declaration.
1937 * hpux-thread.c (child_ops): Delete extern declaration.
1939 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1941 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1943 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1945 * configure.in: Only set host_makefile_frag when building a native
1947 * configure: Regenerate.
1949 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1952 2004-09-28 Andrew Cagney <cagney@gnu.org>
1954 Problem identified by Paul Hilfinger.
1955 * Makefile.in (ada_lex_c): Define.
1956 (ada-lex.o): Delete rule.
1958 * linux-proc.c: Delete file.
1959 * Makefile.in: Update.
1960 * config/sparc/linux64.mh (NATDEPFILES):
1961 * config/sparc/linux.mh (NATDEPFILES): Update.
1962 * config/s390/s390.mh (NATDEPFILES): Update.
1963 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1964 * config/powerpc/linux.mh (NATDEPFILES): Update.
1965 * config/pa/linux.mh (NATDEPFILES): Update.
1966 * config/mips/linux.mh (NATDEPFILES): Update.
1967 * config/m68k/linux.mh (NATDEPFILES): Update.
1968 * config/ia64/linux.mh (NATDEPFILES): Update.
1969 * config/i386/linux64.mh (NATDEPFILES): Update.
1970 * config/i386/linux.mh (NATDEPFILES): Update.
1971 * config/arm/linux.mh (NATDEPFILES): Update.
1972 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1973 * linux-nat.c: Update copyright. Include <sys/param.h>,
1974 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1975 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1976 (O_LARGEFILE): Possibly define.
1977 (_initialize_linux_nat, linux_proc_pending_signals)
1978 (add_line_to_sigset, linux_proc_xfer_memory)
1979 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1980 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1981 (struct linux_corefile_thread_data)
1982 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1983 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1985 2004-09-16 Andrew Cagney <cagney@gnu.org>
1987 * lin-lwp.c: Delete file.
1988 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1989 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1990 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1991 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1992 (linux_nat_attach, detach_callback, linux_nat_detach)
1993 (resume_callback, resume_clear_callback, linux_nat_resume)
1994 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1995 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1996 (status_callback, running_callback, count_events_callback)
1997 (select_singlestep_lwp_callback, select_event_lwp_callback)
1998 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1999 (child_wait, stop_and_resume_callback, linux_nat_wait)
2000 (kill_callback, kill_wait_callback, linux_nat_kill)
2001 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2002 (linux_nat_xfer_memory, linux_nat_thread_alive)
2003 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2004 (_initialize_linux_nat): New functions.
2005 * Makefile.in: Update all dependencies.
2006 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2007 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2008 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2009 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2010 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2011 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2012 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2013 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2014 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2015 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2016 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2017 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2018 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2020 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2022 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2023 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2025 * configure.in: Don't comment out NATDEPFILES in the generated
2026 Makefile if NAT_FILE is unset.
2027 * configure: Regenerate.
2029 2004-09-27 Andrew Cagney <cagney@gnu.org>
2031 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2032 (insert_step_resume_breakpoint): Delete.
2033 (insert_step_resume_breakpoint_at_frame): New function.
2034 (insert_step_resume_breakpoint_at_sal): New function.
2035 (handle_inferior_event, step_into_function)
2036 (insert_step_resume_breakpoint): Simplify by using same.
2038 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2040 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2042 * fbsd-proc.c: Remove file.
2043 * Makefile.in (fbsd-proc.o): Remove dependency.
2045 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2048 * config/i386/nm-fbsd64.h: Remove file.
2049 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2051 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2053 * amd64-nat.h: Update copyright year.
2054 (amd64bsd_target): New prototype.
2055 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2056 (amd64bsd_target): New function.
2057 (amd64bsd_fetch_inferior_registers): Rename from
2058 fetch_inferior_registers. Make static.
2059 (amd64bsd_store_inferior_registers): Rename from
2060 store_inferior_registers. Make static.
2061 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2062 (_initialize_amd64fbsd_nat): Construct and add target vector.
2063 * amd64nbsd-nat.o: Include "target.h".
2064 (_initialize_amd64nbsd_nat): Construct and add target vector.
2065 * amd64obsd-nat.c: Include "target.h".
2066 (_initialize_amd64obsd_nat): Construct and add target vector.
2067 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2068 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2069 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2071 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2072 Remove infptrace.o and inftarg.o. Add inf-child.o and
2074 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2075 (amd64obsd-nat.o): Update dependencies.
2077 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2079 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2080 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2081 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2082 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2083 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2085 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2087 (inf_ptrace_detach): Inline detach call.
2089 * configure.in: Check for waddstr instead of mvwaddstr when
2090 searching for curses library. Check for wborder.
2091 * configure, config.in: Regenerate.
2092 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2095 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2097 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2099 Committed by Andrew Cagney.
2100 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2101 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2103 (fetch_register_using_p): Implement 'p' packet. Based on code by
2105 (remote_fetch_registers): Call fetch_register_using_p.
2106 (init_all_packet_configs, show_remote_cmd)
2107 (_initialize_remote): Add p-packet.
2109 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2111 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2112 instead of call_ptrace. Call wait directly instead of
2114 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2115 (inf_ptrace_wait): Inline ptrace_wait call.
2117 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2119 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2120 rolled back instead.
2122 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2124 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2125 the new argument order.
2127 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2129 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2130 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2131 (struct gdbarch_tdep): Remove.
2132 (struct xstormy16_frame_cache): New frame cache structure.
2133 (xstormy16_register_byte, xstormy16_register_raw_size)
2134 (xstormy16_reg_virtual_type, xstormy16_register_type)
2135 (xstormy16_push_arguments, xstormy16_push_return_address)
2136 (xstormy16_pop_frame, xstormy16_store_struct_return)
2137 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2138 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2139 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2140 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2141 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2142 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2143 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2144 (xstormy16_extract_return_value, xstormy16_store_return_value):
2145 Regcachify. Drop useless struct convention handling.
2146 (xstormy16_register_type, xstormy16_return_value)
2147 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2148 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2149 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2150 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2151 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2152 (xstormy16_unwind_dummy_id) : New functions.
2153 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2154 of xstormy16_scan_prologue.
2155 (xstormy16_frame_unwind): New frame_unwind structure.
2156 (xstormy16_frame_base): New frame_base structure.
2157 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2158 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2160 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2162 * language.c (language_gdbarch_post_init): Fix off-by one error.
2164 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2166 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2167 (struct dwarf2_offset_and_type): New.
2168 (set_die_type, reset_die_and_siblings_types, get_die_type)
2169 (offset_and_type_hash, offset_and_type_eq): New functions.
2170 (read_structure_type, read_enumeration_type, read_array_type)
2171 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2172 (read_tag_reference_type, read_tag_const_type)
2173 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2174 (read_typedef, read_base_type, read_subrange_type): Use
2177 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2179 * Makefile.in (dwarf2read.o): Update dependencies.
2180 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2181 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2183 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2184 mark, and has_form_ref_addr.
2185 (struct dwarf2_per_cu_data): New.
2186 (dwarf2_max_cache_age): New.
2187 (dwarf2_build_psymtabs_hard): Free cached compilation units
2188 after loading. Create and manage the list of compilation units.
2189 Remove unnecessary NULL initialization. Fix indentation.
2190 (psymtab_to_symtab_1): Initialize all of CU.
2191 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2192 (find_partial_die): Use dwarf2_find_containing_comp_unit
2194 (free_stack_comp_unit): Update comments. Clear the per-cu
2195 pointer. Handle aging.
2196 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2197 (age_cached_comp_units, free_one_cached_comp_unit)
2198 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2199 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2200 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2201 (show_dwarf2_cmd): New.
2202 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2203 and "maint show dwarf2 max-cache-age".
2204 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2206 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2209 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2211 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2212 and dwarf2_cu struct pointer as arguments. Change function to use
2213 obstack if provided and use dwarf2_cu to determine language-specific
2215 (partial_die_parent_scope): Change comment to include java. Use
2216 new version of typename_concat instead of obconcat.
2217 (partial_die_full_name): Use typename_concat.
2218 (read_namespace): Ditto.
2219 (read_enumeration_type): Use typename_concat instead of obconcat.
2220 (new_symbol): Ditto.
2221 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2222 (guess_structure_name): Ditto.
2223 (read_subroutine_type): Ditto.
2224 (read_structure_type): Ditto.
2225 (is_vtable_name): Add Java support.
2226 (determine_class_name): Switch to new typename_concat call.
2227 (determine_prefix): Switch to new typename_concat call.
2228 * jv-exp.y (FuncStart): New pattern.
2229 (MethodInvocation): Add support for simple function calls. Change
2230 warning message for other forms of inferior call currently not
2232 * valarith.c (value_subscript): Treat an array with upper-bound
2233 of -1 as unknown size.
2235 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2237 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2238 (lookup_partial_symtab): Use symtab_to_fullname.
2240 2004-09-19 Jim Blandy <jimb@redhat.com>
2242 * minsyms.c (lookup_minimal_symbol): Doc fix.
2244 2004-09-20 Andrew Cagney <cagney@gnu.org>
2246 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2248 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2249 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2251 * infptrace.c: Update.
2253 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2255 * symtab.c (output_source_filename): Mark first argument as const.
2256 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2257 for "info sources" output.
2259 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2261 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2262 <machine/vmparam.h>.
2263 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2264 (register_u_addr): Remove prototype.
2266 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2268 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2269 (i386bsd_fetch_inferior_registers): Rename from
2270 fetch_inferior_registers. Make static.
2271 (i386bsd_store_inferior_registers): Rename from
2272 store_inferior_registers. Make static.
2273 (i386bsd_target): New function.
2274 * i386bsd-nat.h: New file.
2275 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2277 (i386fbsd_resume): Rename from child_resume. Make static.
2278 (_initialize_i386fbsd_nat): Construct and add target vector.
2279 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2280 (_initialize_i386nbsd_nat): Construct and add target vector.
2281 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2283 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2284 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2285 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2286 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2287 (LOADLIBES): New variable.
2288 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2289 inf-ptrace.o. Remove inftarg.o.
2290 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2291 inf-ptrace.o. Remove inftarg.o.
2292 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2293 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2294 (LOADLIBES): New variable.
2295 * Makefile.in (i386bsd_nat_h): New variable.
2296 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2299 * sparc64nbsd-tdep.c: Include "objfiles.h".
2300 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2301 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2302 svr4_lp64_fetch_link_map_offsets.
2303 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2305 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2306 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2307 svr4_lp64_fetch_link_map_offsets.
2308 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2311 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2312 * fbsd-nat.h: New file.
2313 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2314 (fbsd_nat_h): New variable.
2315 (fbsd-nat.o): New dependency.
2317 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2318 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2320 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2323 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2325 * ada-exp.y (type_int): New function to add layer of abstraction
2326 around references to expression types.
2328 (type_long_long): Ditto.
2329 (type_float): Ditto.
2330 (type_double): Ditto.
2331 (type_long_double): Ditto.
2333 (type_system_address): Ditto.
2334 (simple_exp): Use type_* functions in place of builtin_*
2337 (write_var_from_name): Ditto.
2338 (write_object_renaming): Ditto.
2339 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2341 (build_ada_types): Remove, replacing with...
2342 (ada_language_arch_info): New function to initialize primitive
2343 type vector in language_arch_info.
2344 (ada_array_length): Remove use of builtin_type_ada_int.
2345 (value_pos_atr): Ditto.
2346 (ada_evaluate_subexp): Ditto.
2347 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2348 builtin_type_ada_long_long, builtin_type_ada_char,
2349 builtin_type_ada_float, builtin_type_ada_double,
2350 builtin_type_ada_long_double, builtin_type_ada_natural,
2351 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2352 (ada_builtin_types): Remove.
2353 (ada_language_defn): Remove entries for la_builtin_type_vector and
2354 string_char_type and use ada_language_arch_info.
2355 (_initialize_ada_language): Do type-vector initialization along
2356 the lines of c-lang.c.
2357 (ada_create_fundamental_type): Break up line.
2358 (ada_dump_symtab): Remove unused function.
2359 (enum ada_primitive_types): Define.
2360 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2361 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2362 builtin_type_ada_float, builtin_type_ada_double,
2363 builtin_type_ada_long_double, builtin_type_ada_natural,
2364 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2365 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2366 (processInt): Ditto.
2367 (processReal): Ditto.
2368 (name_lookup): Ditto.
2369 * ada-typeprint.c (print_range): Use builtin_type_int, not
2370 builtin_type_ada_int.
2372 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2374 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2376 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2377 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2378 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2379 * configure.in: Improve checks for curses library by checking for
2380 mvwaddstr instead of initscr. Drop HP curses in favour of
2381 standard curses on HP-UX.
2382 * configure: Regenerated.
2384 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2386 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2387 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2388 Minor formatting changes.
2389 (empty_array): Slight rewrite for formatting.
2390 (emit_char,parse,ada_language_defn,build_ada_types,
2391 ada_is_exception_sym, _initialize_ada_language): Move
2393 (ada_dump_symtab): Remove unused definition.
2394 (ada_maybe_exception_partial_symbol): Remove unused definition.
2396 2004-09-16 Andrew Cagney <cagney@gnu.org>
2398 * inf-child.c: Include "gdb_string.h".
2399 (inf_child_core_file_to_sym_file): Delete.
2400 (inf_child_target): Set to_fetch_registers and to_store_registers.
2401 * inf-ptrace.c: Include "gdb_string.h".
2402 * Makefile.in: Update all dependencies.
2404 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2407 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2409 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2410 call to heuristic_proc_desc. Remove code that became redundant
2412 (read_next_frame_reg): Remove special case for SP_REGNUM.
2413 (set_reg_offset): Fix small typo.
2414 (reset_saved_regs): New procedure.
2415 (mips32_heuristic_proc_desc): No longer compute a fake
2416 procedure descriptor. Compute the full frame cache instead.
2417 Some minor comment reformatting.
2419 2004-09-14 Andrew Cagney <cagney@gnu.org>
2421 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2424 * thread-db.c (thread_db_new_objfile): Assume that there is a
2427 2004-09-13 Jim Blandy <jimb@redhat.com>
2429 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2430 so that its storage isn't referenced after its lifetime ends.
2432 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2433 and never assigned to. Delete it, and the 'if (use_buffer)'
2434 clauses. Delete 'raw_buffer', since it is now unused.
2436 2004-09-13 Andrew Cagney <cagney@gnu.org>
2438 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2439 * configure: Re-generate.
2440 * nlm/Makefile.in (TAGS): Update.
2441 * Makefile.in (TAGS): Update.
2442 * config/vax/nbsd.mt (TM_FILE): Update.
2443 * config/sparc/vxworks.mt (TM_FILE): Update.
2444 * config/sparc/sol2.mt (TM_FILE): Update.
2445 * config/sparc/sol2-64.mt (TM_FILE): Update.
2446 * config/sparc/obsd64.mt (TM_FILE): Update.
2447 * config/sparc/obsd.mt (TM_FILE): Update.
2448 * config/sparc/nbsd64.mt (TM_FILE): Update.
2449 * config/sparc/nbsd.mt (TM_FILE): Update.
2450 * config/sparc/linux64.mt (TM_FILE): Update.
2451 * config/sparc/linux.mt (TM_FILE): Update.
2452 * config/sparc/fbsd.mt (TM_FILE): Update.
2453 * config/sh/wince.mt (TM_FILE): Update.
2454 * config/sh/nbsd.mt (TM_FILE): Update.
2455 * config/sh/linux.mt (TM_FILE): Update.
2456 * config/sh/embed.mt (TM_FILE): Update.
2457 * config/s390/s390.mt (TM_FILE): Update.
2458 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2459 * config/rs6000/rs6000.mt (TM_FILE): Update.
2460 * config/rs6000/aix4.mt (TM_FILE): Update.
2461 * config/powerpc/vxworks.mt (TM_FILE): Update.
2462 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2463 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2464 * config/powerpc/obsd.mt (TM_FILE): Update.
2465 * config/powerpc/nbsd.mt (TM_FILE): Update.
2466 * config/powerpc/linux.mt (TM_FILE): Update.
2467 * config/powerpc/aix.mt (TM_FILE): Update.
2468 * config/pa/obsd.mt (TM_FILE): Update.
2469 * config/pa/linux.mt (TM_FILE): Update.
2470 * config/pa/hppahpux.mt (TM_FILE): Update.
2471 * config/pa/hppa64.mt (TM_FILE): Update.
2472 * config/pa/hppa.mt (TM_FILE): Update.
2473 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2474 * config/mips/wince.mt (TM_FILE): Update.
2475 * config/mips/vxmips.mt (TM_FILE): Update.
2476 * config/mips/nbsd.mt (TM_FILE): Update.
2477 * config/mips/linux.mt (TM_FILE): Update.
2478 * config/mips/irix6.mt (TM_FILE): Update.
2479 * config/mips/irix5.mt (TM_FILE): Update.
2480 * config/mips/embed.mt (TM_FILE): Update.
2481 * config/m68k/vxworks68.mt (TM_FILE): Update.
2482 * config/m68k/st2000.mt (TM_FILE): Update.
2483 * config/m68k/os68k.mt (TM_FILE): Update.
2484 * config/m68k/obsd.mt (TM_FILE): Update.
2485 * config/m68k/nbsd.mt (TM_FILE): Update.
2486 * config/m68k/monitor.mt (TM_FILE): Update.
2487 * config/m68k/linux.mt (TM_FILE): Update.
2488 * config/m68k/cisco.mt (TM_FILE): Update.
2489 * config/ia64/linux.mt (TM_FILE): Update.
2490 * config/ia64/aix.mt (TM_FILE): Update.
2491 * config/ia64/ia64.mt (TM_FILE): Update.
2492 * config/i386/vxworks.mt (TM_FILE): Update.
2493 * config/i386/obsd64.mt (TM_FILE): Update.
2494 * config/i386/obsd.mt (TM_FILE): Update.
2495 * config/i386/nto.mt (TM_FILE): Update.
2496 * config/i386/nbsd64.mt (TM_FILE): Update.
2497 * config/i386/nbsd.mt (TM_FILE): Update.
2498 * config/i386/linux64.mt (TM_FILE): Update.
2499 * config/i386/linux.mt (TM_FILE): Update.
2500 * config/i386/i386sol2.mt (TM_FILE): Update.
2501 * config/i386/i386lynx.mt (TM_FILE): Update.
2502 * config/i386/fbsd64.mt (TM_FILE): Update.
2503 * config/i386/fbsd.mt (TM_FILE): Update.
2504 * config/i386/cygwin.mt (TM_FILE): Update.
2505 * config/h8300/h8300.mt (TM_FILE): Update.
2506 * config/frv/frv.mt (TM_FILE): Update.
2507 * config/cris/cris.mt (TM_FILE): Update.
2508 * config/arm/wince.mt (TM_FILE): Update.
2509 * config/arm/nbsd.mt (TM_FILE): Update.
2510 * config/arm/linux.mt (TM_FILE): Update.
2511 * config/arm/embed.mt (TM_FILE): Update.
2512 * config/alpha/nbsd.mt (TM_FILE): Update.
2513 * config/alpha/fbsd.mt (TM_FILE): Update.
2514 * config/alpha/alpha.mt (TM_FILE): Update.
2515 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2516 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2518 Eliminate event_loop_p, always has the value 1.
2519 * defs.h (event_loop_p): Delete macro.
2520 * breakpoint.c (until_break_command): Simplify.
2521 * utils.c (prompt_for_continue): Simplify.
2522 * tracepoint.c (read_actions): Simplify.
2523 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2524 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2525 (set_prompt, init_main): Simplify.
2526 (init_signals, disconnect): Delete, unused.
2527 * remote.c (remote_async_resume)
2528 (extended_remote_async_create_inferior): Simplify.
2529 * mi/mi-interp.c (mi_input): Delete, unused.
2530 (mi_interpreter_resume, mi_command_loop): Simplify.
2531 * interps.c (current_interp_command_loop): Simplify.
2532 * infrun.c (proceed): Simplify.
2533 * infcmd.c (run_command, continue_command, step_1, jump_command)
2534 (until_command, advance_command, finish_command)
2535 (interrupt_target_command): Simplify.
2536 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2538 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2539 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2540 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2541 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2542 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2543 * mips-tdep.c (mips_dump_tdep): Do not print same.
2545 2004-09-12 Andrew Cagney <cagney@gnu.org>
2547 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2549 * Makefile.in (valprint.o): Delete explict rule.
2551 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2552 reported by Dave Anderson.
2554 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2556 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2558 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2559 Andrew Cagney <cagney@gnu.org>
2561 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2562 (mi_cmd_data_list_register_values)
2563 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2564 the register number computation.
2566 2004-09-12 Andrew Cagney <cagney@gnu.org>
2568 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2569 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2570 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2571 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2573 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2574 inf-ptrace.o and inf-child.o.
2575 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2576 * Makefile.in: Update dependencies.
2578 2004-09-11 Andrew Cagney <cagney@gnu.org>
2580 * language.c (hex_string, hex_string_custom): Move from here ...
2581 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2582 (CELLSIZE): Increase to 50.
2583 * language.h (hex_string, hex_string_custom): Move from here ...
2584 * defs.h: ... to here.
2585 * Makefile.in: Update all dependencies.
2587 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2589 * language.c (local_hex_format_custom): Remove.
2590 (local_hex_string): Rename to hex_string, use C format, and move to
2592 (local_hex_string_custom): Rename to hex_string_custom and change
2593 interface. Now uses C format. Move to utils.c
2594 (local_octal_format_custom): Remove.
2595 (local_decimal_format_custom): Remove.
2596 (unknown_language_defn): Remove language-specific number
2598 (auto_language_defn): Ditto.
2599 (local_language_defn): Ditto.
2600 * language.h (struct language_format_info): Delete declaration.
2601 (struct language_defn): Remove language_format_info fields
2602 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2603 (local_binary_format): Remove macro.
2604 (local_binary_format_prefix): Remove macro.
2605 (local_binary_format_specifier): Remove macro.
2606 (local_binary_format_suffix): Remove macro.
2607 (local_octal_format): Remove macro.
2608 (local_octal_format_prefix): Remove macro.
2609 (local_octal_format_specifier): Remove macro.
2610 (local_octal_format_suffix): Remove macro.
2611 (local_decimal_format): Remove macro.
2612 (local_decimal_format_prefix): Remove macro.
2613 (local_decimal_format_specifier): Remove macro.
2614 (local_decimal_format_suffix): Remove macro.
2615 (local_hex_format): Remove macro.
2616 (local_hex_format_prefix): Remove macro.
2617 (local_hex_format_specifier): Remove macro.
2618 (local_hex_format_suffix): Remove macro.
2619 (local_decimal_format_custom): Remove.
2620 (local_octal_format_custom): Remove.
2621 (local_hex_format_custom): Remove.
2622 (local_hex_string): Rename to hex_string and move to defs.h.
2623 (local_hex_string_custom): Rename to hex_string_custom, change
2624 interface, and move to defs.h.
2625 * utils.c: (int_string): New function.
2626 (hex_string): New function (from language.c).
2627 (hex_string_custom): New function (from language.c).
2628 (octal2str): New function.
2629 (decimal2str): Add width parameter.
2630 (paddr_u): Use new decimal2str interface.
2632 * defs.h (hex_string): Declare.
2633 (hex_string_custom): Declare.
2634 (int_string): Declare.
2635 * printcmd.c (print_scalar_formatted): Remove localized binary
2637 * valprint.c (print_longest): Use int_string.
2638 (print_floating): Use C hex format.
2639 (print_hex_chars): Ditto.
2640 (print_binary_chars): Remove language-specific formatting.
2641 (print_octal_chars): Use C octal format.
2642 (print_decimal_chars): Delocalize format.
2643 (print_decimal): Remove.
2644 * ada-lang.c (ada_language_defn): Remove language-specific number
2646 * p-lang.c (pascal_language_defn): Ditto.
2647 * c-lang.c (c_language_defn): Ditto.
2648 (cplus_language_defn): Ditto.
2649 (asm_language_defn): Ditto.
2650 (minimal_language_defn): Ditto.
2651 * f-lang.c (f_language_defn): Ditto.
2652 * jv-lang.c (java_language_defn): Ditto.
2653 * m2-lang.c (m2_language_defn): Ditto.
2654 * scm-lang.c (scm_language_defn): Ditto.
2655 * objc-lang.c (objc_language_defn): Ditto.
2656 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2658 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2659 * ui-out.c (ui_out_field_core_addr): Ditto.
2660 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2661 * exec.c (print_section_info): Ditto.
2662 * i387-tdep.c (print_i387_status_word): Ditto.
2663 (print_i387_control_word): Ditto.
2664 (i387_print_float_info): Ditto.
2665 * maint.c (maint_print_section_info): Ditto.
2666 * solib.c (info_sharedlibrary_command): Ditto.
2667 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2668 * symtab.c (print_msymbol_info): Ditto.
2669 * tracepoint.c (tracepoints_info): Ditto.
2670 * solib-frv.c (lm_base): Ditto.
2671 (frv_current_sos): Ditto.
2672 (enable_break2): Ditto.
2673 (enable_break): Ditto.
2674 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2675 (process_one_symbol): Ditto.
2676 * infcmd.c (program_info): Ditto.
2677 * mdebugread.c (parse_partial_symbols): Ditto.
2678 * symfile.c (add_symbol_file_command): Ditto.
2679 * cli/cli-cmds.c (edit_command): Ditto.
2680 (list_command): Ditto.
2681 * infcall.c (call_function_by_hand): Ditto.
2682 * remote-vx.c (vx_run_files_info): Ditto.
2687 * aix-thread.c (pdc_symbol_addrs): Ditto.
2688 (pdc_read_regs): Ditto.
2689 (pdc_write_regs): Ditto.
2690 (pdc_read_data): Ditto.
2691 (pdc_write_data): Ditto.
2692 * d10v-tdep.c (display_trace): Ditto.
2693 * rs6000-nat.c (find_toc_address): Ditto.
2694 * aix-thread.c: Don't include language.h.
2695 * buildsym.c: Ditto.
2697 * mdebugread.c: Ditto.
2698 * rs6000-nat.c: Ditto.
2699 * buildsym.c (make_blockvector): Use renamed hex_string.
2701 2004-09-10 Jason Molenda (jmolenda@apple.com)
2703 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2704 chars after 'if' or 'while' commands in user-defined commands.
2706 2004-09-08 Jim Blandy <jimb@redhat.com>
2708 Fix bug reported and analyzed by Olivier Crete:
2709 * symfile.c (copy_section_addr_info): New function.
2710 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2711 original set of address arguments, instead of handwritten code
2712 that uses one length to allocate and a different length to
2713 initialize. Use make_cleanup_free_section_addr_info.
2714 * symfile.h (copy_section_addr_info): New declaration.
2715 * utils.c: #include "symfile.h".
2716 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2718 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2719 * Makefile.in (utils.o): Update dependencies.
2721 2004-09-08 Andrew Cagney <cagney@gnu.org>
2723 * thread-db.c (keep_thread_db): Delete.
2724 (thread_db_new_objfile, thread_db_create_inferior)
2725 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2727 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2729 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2730 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2731 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2732 (i386_frameless_signal_p): Remove prototype.
2733 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2734 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2736 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2737 instead of FP0_REGNUM.
2738 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2739 of FP0_REGNUM and FPC_REGNUM.
2741 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2742 (sunos_solib_create_inferior_hook): Don't call
2743 sunos_relocate_main_executable.
2745 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2746 solib_svr4_fetch_link_map_offsets to
2747 svr4_ilp32_fetch_link_map_offsets.
2748 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2749 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2750 svr4_ilp32_fetch_link_map_offsets.
2751 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2753 2004-09-07 Jim Blandy <jimb@redhat.com>
2755 * frame.h (frame_register): Doc fix.
2757 2004-09-07 Andrew Cagney <cagney@gnu.org>
2759 * vx-share/wait.h: Delete #ifdef USG.
2760 * utils.c (request_quit): Ditto.
2761 * tui/tui.c (tui_reset): Ditto.
2763 * remote-sds.c: Ditto.
2764 * remote-rdi.c: Ditto.
2765 * mdebugread.c: Ditto.
2766 * m68klinux-nat.c: Ditto.
2767 * infttrace.c: Ditto.
2768 * infptrace.c: Ditto.
2769 * i386v-nat.c: Ditto.
2772 * core-aout.c: Ditto.
2774 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2776 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2777 heuristic_proc_desc.
2778 (mips_insn32_frame_cache): Likewise.
2780 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2782 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2783 left behind by error.
2785 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2787 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2788 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2790 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2792 * config/rs6000/xm-aix4.h: Remove this file.
2793 * config/rs6000/aix4.mh (XM_FILE): Delete.
2795 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2797 * config/rs6000/xm-rs6000.h: Remove this file.
2798 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2800 2004-09-03 Andrew Cagney <cagney@gnu.org>
2802 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2803 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2806 * mips-tdep.c (temp_saved_regs): Delete.
2807 (set_reg_offset): Replace saved_regs parameter with this_cache.
2808 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2809 (mips32_heuristic_proc_desc): Add this_cache parameter.
2810 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2811 (after_prologue): Pass a NULL this_cache.
2813 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2814 non-kernel trap prologues.
2816 * mips-tdep.c (find_proc_desc): Delete function.
2817 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2819 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2820 mips_insn32_frame_cache.
2822 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2823 Simplify as NEXT_FRAME is NULL.
2824 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2826 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2828 (mips_skip_prologue): Update.
2830 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2831 "cur_frame" parameter.
2832 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2833 (mips_insn32_frame_cache, find_proc_desc): Update
2835 * config/vax/nm-obsd.h: Delete file.
2836 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2837 * config/vax/nm-nbsd.h: Delete file.
2838 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2839 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2840 * config/sh/nm-nbsd.h: Delete file.
2841 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2842 * config/rs6000/nm-rs6000ly.h: Delete file.
2843 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2844 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2845 * config/powerpc/nm-obsd.h: Delete file.
2846 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2847 * config/powerpc/nm-nbsd.h: Delete file.
2848 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2849 * config/pa/nm-obsd.h: Delete file.
2850 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2851 * config/mips/nm-nbsd.h: Delete file.
2852 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2853 * config/m88k/nm-obsd.h: Delete file.
2854 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2855 * config/m68k/nm-nbsd.h: Delete file.
2856 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2857 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2858 * config/i386/nm-nbsd.h: Delete file.
2859 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2860 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2861 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2862 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2863 * config/i386/nm-i386lynx.h: Delete file.
2864 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2865 * config/arm/nm-nbsd.h: Delete file.
2866 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2867 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2869 * config/i386/tm-fbsd.h: Delete file.
2870 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2871 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2873 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2874 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2875 * config/rs6000/aix4.mt (TM_FILE): Set to
2876 config/rs6000/tm-rs6000.h.
2877 * config/powerpc/tm-ppc-aix.h: Delete file.
2878 * config/powerpc/aix.mt (TM_FILE): Set to
2879 config/rs6000/tm-rs6000.h.
2880 * config/m68k/tm-linux.h: Delete file.
2881 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2882 * config/i386/tm-linux64.h: Delete file.
2883 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2884 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2886 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2887 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2888 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2889 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2890 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2891 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2892 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2893 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2894 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2896 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2899 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2901 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2902 Minor reformatting. Some code factoring.
2904 2004-09-02 Andrew Cagney <cagney@gnu.org>
2906 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2907 * config/vax/tm-nbsd.h: Delete file.
2908 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2909 * config/sparc/tm-vxworks.h: Delete file.
2910 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2911 * config/sparc/tm-nbsd.h: Delete file.
2912 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2913 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2914 * config/sparc/tm-linux.h: Delete file.
2915 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2916 * config/s390/tm-linux.h: Delete file.
2917 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2918 * config/pa/tm-bsd.h: Delete file.
2919 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2920 * config/m68k/tm-obsd.h: Delete file.
2921 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2922 * config/m68k/tm-nbsd.h: Delete file.
2923 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2924 * config/i386/tm-vxworks.h: Delete file.
2925 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2926 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2927 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2928 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2929 * config/i386/tm-nbsd.h: Delete file.
2930 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2931 * config/i386/tm-i386lynx.h: Delete file.
2932 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2933 * config/cris/tm-cris.h: Delete file.
2935 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2936 * configure: Re-generate.
2937 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2938 * config/arm/tm-nbsd.h: Delete file.
2940 * config/powerpc/tm-ppcle-sim.h: Delete.
2941 * config/powerpc/tm-ppcle-eabi.h: Delete.
2942 * config/powerpc/tm-nbsd.h: Delete.
2943 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2944 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2947 * config/i386/nto.mh (NAT_FILE): Delete.
2948 * config/i386/nm-nto.h: Delete.
2950 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2951 * config/m68k/tm-os68k.h: Ditto.
2952 * config/m68k/tm-monitor.h: Ditto.
2953 * config/m68k/tm-cisco.h: Ditto.
2954 * config/m68k/st2000.mt (TM_FILE): Delete.
2955 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2956 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2957 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2958 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2960 * config/m68k/tm-st2000.h: Delete.
2961 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2962 * config/sparc/fbsd.mt (TM_FILE): Delete.
2963 * config/sparc/tm-fbsd.h: Delete.
2965 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2966 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2967 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2969 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2970 GDB_TM_FILE and GDB_XM_FILE.
2971 * gdbarch.c: Re-generate.
2972 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2973 quotes in macro definition.
2974 * configure.in: Re-generate.
2976 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2977 validating architecture methods.
2978 * gdbarch.c: Re-generate.
2980 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2981 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2982 GDB_MULTI_ARCH_PARTIAL.
2983 * gdbarch.h: Re-generate.
2985 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2986 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2987 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2988 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2989 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2990 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2991 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2992 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2993 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2994 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2995 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2996 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2998 2004-09-01 Andrew Cagney <cagney@gnu.org>
3000 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3001 and main_func_highpc.
3002 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3003 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3004 * nlmread.c (nlm_symfile_read): Update.
3006 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3008 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3009 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3010 (find_proc_desc): Remove dead code.
3012 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3014 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3016 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3018 * observer.sh: Add struct so_list declaration.
3019 * Makefile.in: Add dependencies on observer.h for solib.c and
3021 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3023 (_initialize_breakpoint): Register
3024 disable_breakpoints_in_unloaded_shlib as an observer of the
3025 "solib unloaded" observation event.
3026 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3027 call decode_line_1 so unfound breakpoint errors are silent.
3028 * solib.c (update_solib_list): When a solib is discovered to have
3029 been unloaded by the program, notify all observers of the
3030 "solib unloaded" observation event.
3032 2004-09-01 Andrew Cagney <cagney@gnu.org>
3034 * frame.c: Include "objfiles.h".
3035 (inside_main_func): New function.
3036 (get_prev_frame): Use new inside_main_func.
3037 * Makefile.in (frame.o): Update dependencies.
3038 * defs.h (inside_main_func): Delete declaration.
3039 * blockframe.c (inside_main_func): Delete function.
3041 2004-08-31 Jim Blandy <jimb@redhat.com>
3043 * dwarf2read.c (is_vtable_name): New function, based on logic from
3044 read_structure_type, but passing the correct length to strncmp,
3045 and using 'sizeof' instead of 'strlen'.
3046 (read_structure_type): Call it.
3048 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3050 * config/powerpc/aix.mh: Add comment.
3052 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3054 * MAINTAINERS: Add self to Write-After-Approval.
3056 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3058 * MAINTAINERS: Add self to Write-After-Approval.
3060 2004-08-30 Andrew Cagney <cagney@gnu.org>
3062 Fix PR breakpoints/1757.
3063 * infrun.c (struct execution_control_state): Replace
3064 remove_breakpoints_on_following_step with
3065 step_after_step_resume_breakpoint.
3066 (init_execution_control_state): Update.
3067 (handle_inferior_event): For signals, when stepping off a
3068 breakpoint, set step_after_step_resume_breakpoint. When
3069 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3070 (keep_going): Delete code handling
3071 remove_breakpoints_on_following_step.
3073 2004-08-29 David Lecomber <david@streamline-computing.com>
3076 * language.h (enum array_ordering): New enum.
3077 * language.h (struct language_defn): New la_array_ordering
3079 * language.c (unknown_language_defn, auto_language_defn)
3080 (local_language_defn): Ditto.
3081 * ada-lang.c (ada_language_defn): Ditto.
3082 * c-lang.c (c_language_defn, cplus_language_defn)
3083 (asm_language_defn, minimal_language_defn): Ditto.
3084 * f-lang.c (f_language_defn): Ditto.
3085 * jv-lang.c (java_language_defn): Ditto.
3086 * m2-lang.c (f_language_defn): Ditto.
3087 * objc-lang.c (objc_language_defn): Ditto.
3088 * p-lang.c (pascal_language_defn): Ditto.
3089 * scm-lang.c (scm_language_defn): Ditto.
3090 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3091 oriented large to small in type structure.
3092 * dwarf2read.c (read_array_order): New function.
3093 (read_array_type): Use read_array_order to check row/column
3096 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3098 * target.c (target_resize_to_sections): Check
3099 current_target.to_sections for an old value when updating.
3101 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3103 * procfs.c (dbx_link_bpt_addr): New static global variable.
3104 (dbx_link_shadow_contents): New static global variable.
3105 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3106 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3108 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3109 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3111 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3112 after the inferior has been forked.
3113 (remove_dbx_link_breakpoint): New function.
3114 (dbx_link_addr): New function.
3115 (insert_dbx_link_bpt_in_file): New function.
3116 (insert_dbx_link_bpt_in_region): New function.
3117 (insert_dbx_link_breakpoint): New function.
3118 (proc_trace_syscalls_1): New function, extracted from
3119 proc_trace_syscalls.
3120 (proc_trace_syscalls): Replace extract code by call to
3121 proc_trace_syscalls_1.
3122 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3125 2004-08-25 Jim Blandy <jimb@redhat.com>
3127 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3129 2004-08-25 Andrew Cagney <cagney@gnu.org>
3131 * infrun.c (struct execution_control_state): Delete field
3132 "stepping_through_sigtramp".
3133 (init_execution_control_state): Do not set same.
3134 (context_switch): Do not pass same to save_infrun_state and
3136 * gdbthread.h (struct thread_info): Delete field
3137 stepping_through_sigtramp.
3138 (save_infrun_state, load_infrun_state): Delete parameter
3139 stepping_through_sigtramp.
3140 * thread.c (load_infrun_state, save_infrun_state): Update.
3142 * infrun.c: Re-indent. Move expression operators to the beginning
3143 of the line. Remove long disabled #if 0 code.
3145 2004-08-24 Andrew Cagney <cagney@gnu.org>
3147 * doublest.h (floatformat_ieee_quad): Rename
3148 floatformat_ia64_quad.
3149 * doublest.c (floatformat_ieee_quad): Rename
3150 floatformat_ia64_quad.
3151 (_initialize_doublest): Update.
3153 2004-08-24 Jim Blandy <jimb@redhat.com>
3155 * dwarf2expr.h (struct dwarf_expr_context): New members
3156 'num_pieces' and 'pieces', for returning the result of an
3157 expression that uses DW_OP_piece.
3158 (struct dwarf_expr_piece): New struct type.
3159 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3161 (free_dwarf_expr_context): Free pieces, if any.
3162 (add_piece): New function.
3163 (execute_stack_op): Implement DW_OP_piece.
3164 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3165 expression is a list of pieces, print an error message.
3166 (dwarf2_loc_desc_needs_frame): If the expression yields
3167 pieces, and any piece is in a register, then we need a frame.
3169 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3170 the stack until we've decided what sort of result the evaluation
3171 has produced. Use separate variables, with more specific names.
3173 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3175 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3176 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3177 (arm_netbsd_init_abi_common): Register them.
3179 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3181 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3183 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3184 safe_frame_unwind_memory instead of target_read_memory.
3186 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3188 (fetch_register, store_register): Remove prototypes.
3189 (child_resume): Reorganize code and comments such that it is
3190 grouped a bit more logically.
3191 (attach): Explicitly compare errno against 0.
3192 (detach): Likewise. Use perror_with_name instead of
3194 * Makefile.in (infptrace.o): Update dependencies.
3196 * ia64-linux-nat.c: Update copyright year.
3197 (fetch_debug_register, store_debug_register)
3198 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3200 * config/ia64/nm-linux.h: Update copyright year.
3201 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3203 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3204 from CORE_ADDR to struct frame_info *. Use
3205 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3206 (amd64_linux_sigtramp_p): Adjust for changed signature of
3207 and64_linux_sigtramp_start
3209 * gdb_ptrace.h: GNU/Linux.
3211 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3214 * infptrace.c: Include "gdb_assert.h".
3215 (PTRACE_XFER_TYPE): Remove define.
3216 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3217 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3219 (fetch_inferior_registers, store_inferior_registers): Remove
3220 redundant culry braces. Tweak comment. s/regno/regnum.
3221 * Makefile.in (infptrace.o): Update dependencies.
3223 * configure.in: Change test for return type of ptrace to default
3224 to `long' instead of `int'.
3225 * configure: Regenerate.
3227 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3229 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3231 * configure.in: Check for ttrace function.
3232 * configure, config.in: Regenerate.
3234 * gdb_ptrace.h: New file.
3235 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3237 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3238 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3239 (attach): Don't define PT_ATTACH.
3240 (detach): Don't define PT_DETACH.
3241 * Makefile.in (gdb_ptrace_h): New variable.
3242 (infptrace.o): Update dependencies.
3244 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3246 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3247 instead of `int' if not already defined.
3248 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3250 * infptrace.c (call_ptrace): Revert change that replaced
3251 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3253 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3255 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3258 * linux-nat.c (kill_inferior): Add missing third and fourth
3259 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3261 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3264 * proc-why.c (proc_prettyfprint_why): Fix format string.
3266 * solib-osf.c (osf_current_sos): Remove unsused label.
3268 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3270 * configure, config.in: Regenerate.
3271 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3272 <ncurses/ncurses.h>.
3274 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3275 * config/nm-nbsd.h: Update copyright year.
3276 (PTRACE_ARG3_TYPE): Remove define.
3278 * sparc-nat.c (fetch_inferior_registers)
3279 (store_inferior_registers, sparc_xfer_wcookie):
3280 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3282 * alphabsd-nat.c (fetch_inferior_registers):
3283 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3285 * amd64bsd-nat.c (fetch_inferior_registers)
3286 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3288 * armnbsd-nat.c: Update copyright year.
3289 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3290 (store_register, store_regs, store_fp_register, store_fp_regs):
3291 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3292 * hppabsd-nat.c (fetch_inferior_registers)
3293 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3295 * i386bsd-nat.c (fetch_inferior_registers)
3296 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3297 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3298 * m68kbsd-nat.c (fetch_inferior_registers)
3299 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3301 * m88kbsd-nat.c (fetch_inferior_registers)
3302 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3304 * mipsnbsd-nat.c: Update copyright year.
3305 (fetch_inferior_registers, store_inferior_registers):
3306 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3307 * ns32knbsd-nat.c: Update copyright year.
3308 (fetch_inferior_registers, store_inferior_registers):
3309 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3310 * ppcnbsd-nat.c (fetch_inferior_registers):
3311 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3313 * ppcobsd-nat.c (fetch_inferior_registers):
3314 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3316 * shnbsd-nat.c: Update copyright year.
3317 (fetch_inferior_registers, store_inferior_registers):
3318 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3319 * vaxbsd-nat.c (fetch_inferior_registers)
3320 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3323 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3325 * infptrace.c (call_ptrace, child_resume, attach, detach)
3326 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3327 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3328 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3331 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3333 * defs.h: Remove out-of-date comment.
3334 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3335 [!GETENV_PROVIDED] (getenv): Remove prototype.
3337 * standalone.c: Remove file.
3338 * Makefile.in (standalone.o): Remove dependency.
3340 * i386-linux-nat.c (dummy_sse_values): Remove function and
3342 (i386_linux_dr_get): Fix typo in comment.
3343 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3345 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3347 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3349 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3352 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3354 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3355 parenthesis in definition.
3356 * configure: Regenerated.
3358 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3360 * PROBLEMS: Mention build/1411.
3362 2004-08-09 Robert Millan <robertmh@gnu.org>
3364 Committed by Nathanael Nerode.
3365 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3366 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3368 2004-08-12 Andrew Cagney <cagney@gnu.org>
3370 * NEWS: Mention fixes in GDB 6.2.1.
3371 * PROBLEMS: Remove mention of mips-irix.
3373 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3375 * config/powerpc/xm-aix.h: Delete.
3376 * config/powerpc/aix.mh (MH_FILE): Remove.
3377 * config/powerpc/aix432.mh (MH_FILE): Remove.
3379 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3381 * config/powerpc/aix.mh: Remove obsolete comment.
3382 * config/powerpc/aix432.mh: Likewise.
3384 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3386 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3388 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3390 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3391 this file is now empty.
3392 * config/xm-aix4.h: Remove, this file is no longer included
3395 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3397 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3398 that file is now empty.
3399 (termdef): Remove prototype, function no longer used.
3401 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3403 * doc/gdbint.texinfo (Host Definition): Remove documentation
3404 for USE_O_NOCTTY, no longer used.
3405 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3406 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3408 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3410 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3411 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3412 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3414 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3416 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3417 instead of FIVE_ARG_PTRACE.
3419 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3420 (new_tty): Use O_NOCTTY unconditionally.
3422 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3424 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3425 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3428 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3430 * xcoff_symfile_finish: Replace last call to xmfree by call
3433 2004-08-10 Andrew Cagney <cagney@gnu.org>
3435 * main.c (captured_main): Delete call to init_malloc.
3436 * defs.h (init_malloc): Delete declaration.
3437 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3438 (init_malloc): Delete functions.
3440 * defs.h (xmfree): Delete.
3441 * utils.c (xmfree): Delete function.
3442 (xfree): Inline calls to xmfree and mfree.
3443 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3444 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3445 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3446 * somread.c (som_symfile_finish): Ditto.
3447 * objfiles.c (allocate_objfile, free_objfile):
3448 * nlmread.c (nlm_symfile_finish): Ditto.
3449 * hpread.c (hpread_symfile_finish): Ditto.
3450 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3451 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3452 * coffread.c (coff_symfile_finish): Ditto.
3454 * defs.h (xmcalloc): Delete declaration.
3455 * utils.c (xmcalloc): Delete.
3456 (xcalloc): Inline calls to xmcalloc and mcalloc.
3457 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3459 * symtab.c (create_demangled_names_hash): Ditto.
3461 * defs.h (xmrealloc): Delete.
3462 * utils.c (xmrealloc): Delete.
3463 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3464 * symmisc.c (extend_psymbol_list): Use xrealloc.
3465 * source.c (find_source_lines): Ditto.
3466 * hpread.c (hpread_lookup_type): Ditto.
3467 * dbxread.c (add_bincl_to_list): Ditto.
3469 * utils.c (xmmalloc): Delete.
3470 (xmalloc): Inline xmmalloc and mmalloc calls.
3471 (msavestring): Use xmalloc.
3472 * defs.h (xmmalloc): Delete declaration.
3473 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3475 * symmisc.c (extend_psymbol_list): Ditto.
3476 * symfile.c (init_psymbol_list): Ditto.
3477 * source.c (find_source_lines): Ditto.
3478 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3479 * elfread.c (elf_symtab_read): Ditto.
3480 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3481 * coffread.c (coff_symfile_init): Ditto.
3483 2004-08-10 David Carlton <carlton@bactrian.org>
3485 * MAINTAINERS: Remove David Carlton from c++ testsuite
3488 2004-08-10 Jerome Guitton <guitton@gnat.com>
3490 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3491 print a line feed before the prompt.
3493 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3495 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3497 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3499 General cleanup of the AIX xm include file:
3500 * config/xm-aix4.h (fd_set): Remove undefine.
3501 Remove include of <sys/select.h>.
3502 (HAVE_TERMIO): Remove define.
3504 (NULL): Remove redefine.
3505 (alloca): Remove #pragma.
3506 (vfork): Remove define.
3508 (SIGWINCH_HANDLER): Remove.
3509 (SIGWINCH_HANDLER_BODY): Remove.
3511 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3513 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3514 GDB_OSABI_OPENBSD_ELF.
3516 2004-08-07 Robert Millan <robertmh@gnu.org>
3518 * bsd-kvm.c: Check for nlist.h before including it.
3520 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3522 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3523 sigcontext' offset consistency checks for ancient BSD.
3525 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3527 * configure.in: Check for <sys/types.h>. Check return and
3528 argument types of ptrace.
3529 * configure, config.in: Regenerate.
3531 2004-08-09 Jim Blandy <jimb@redhat.com>
3533 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3534 rs6000_register_sim_regno): Doc fixes.
3536 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3538 * mips-tdep.c: Include "floatformat.h".
3539 (n32n64_floatformat_always_valid): New function.
3540 (floatformat_n32n64_long_double_big): New constant.
3541 (mips_gdbarch_init): Set size and format of long double
3542 for N32 and N64 ABIs.
3543 * Makefile.in (mips-tdep.o): Update dependencies.
3545 2004-08-08 Andrew Cagney <cagney@gnu.org>
3547 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3548 print. Improve script's error messages.
3549 * gdbarch.h: Re-generate.
3551 * gdbarch.sh (pformat): New function.
3552 (float_format, double_format, long_double_format): List with bit
3553 members. Use pformat when printing.
3554 * gdbarch.c, gdbarch.h: Re-generate.
3556 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3558 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3559 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3560 (ppcnbsd_supply_pcb): New function.
3561 (_initialize_ppcnbsd_nat): New prototype and function.
3562 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3563 (LOADLIBES): New variable.
3564 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3566 2004-08-08 Andrew Cagney <cagney@gnu.org>
3568 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3569 (builtin_type_ieee_double, builtin_type_ia64_quad)
3570 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3571 BE/LE floating-point types.
3572 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3573 (builtin_type_ieee_double, builtin_type_ia64_quad)
3574 (builtin_type_ia64_spill): Declare.
3575 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3576 (floatformat_ieee_double, floatformat_arm_ext)
3577 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3578 of LE/BE floatformats.
3579 * doublest.h: (struct floatformat, floatformat_ieee_single)
3580 (floatformat_ieee_double, floatformat_arm_ext)
3581 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3583 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3585 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3587 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3588 instead of regcache_raw_supply when storing the registers.
3590 * i386gnu-nat.c: Update copyright year.
3591 (gnu_store_registers): Don't use deprecated_registers and
3592 deprecated_registers_valid. Use regcache_valid_p and
3593 regcache_raw_supply instead.
3595 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3598 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3599 variables. Incapitalized "process".
3601 * configure.in: Add cursesX to the list of possible curses libs.
3602 Add cursesX.h to the list of possible curses headers.
3603 * configure, config.in: Regenerate.
3605 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3607 * configure.in: Test for struct lwp in <sys/lwp.h>.
3608 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3609 the offset of l_addr in struct lwp.
3611 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3613 * bsd-kvm.c: Include "gdbcore.h"
3614 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3616 2004-08-07 Andrew Cagney <cagney@gnu.org>
3618 * gdbtypes.c (build_flt, build_complex): New functions.
3619 (gdbtypes_post_init): Use.
3621 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3623 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3624 through to builtin_type_uint128.
3626 * c-exp.y: Use builtin_type function to obtain builtin types.
3628 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3630 * gdbtypes.c (gdbtypes_post_init): Update.
3631 (build_gdbtypes): Move initialization of builtin_type_int0
3632 through to builtin_type_uint128 from here ...
3633 (_initialize_gdbtypes): ... to here.
3634 * d10v-tdep.c (d10v_register_type): Update.
3636 * doublest.c: Update copyright.
3637 (floatformat_from_length): Call error when floatformat is NULL.
3638 (extract_floating_by_length): Remove NULL fmt check.
3639 (store_floating_by_length): Ditto.
3641 2004-08-07 Andrew Cagney <cagney@gnu.org>
3643 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3644 that the register is valid.
3646 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3648 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3649 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3650 struct frame_info *. Use safe_frame_unwind_memory instead of
3651 deprecated_read_memory_nobpt.
3652 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3653 changed signature of i386_linux_sigtramp_start and
3654 i386_linux_rt_sigtramp_start.
3656 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3657 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3658 instead of deprecated_read_memory_nobpt.
3659 (i386nbsd_sigtramp_p): Adjust for changed signature of
3660 i386nbsd_sigtramp_offset.
3662 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3663 safe_frame_unwind_memory instead of target_read_memory.
3665 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3667 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3668 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3669 (_initialize_kernel_u_addr): Remove prototype and function.
3670 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3672 * xcoffread.c: Likewise.
3674 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3676 * vax-nat.c: New file.
3677 * vaxbsd-nat.c: Tweak comment.
3678 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3680 (vax-nat.o): New dependency.
3681 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3682 (vax-*-ultrix2*): Remove.
3683 * config/vax/vax.mh: New file.
3684 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3685 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3686 (vax_register_u_addr): New prototype.
3687 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3688 * config/vax/vaxult2.mh: Remove file.
3689 * config/vax/vaxult.mh: Remove file.
3690 * config/vax/vaxbsd.mh: Remove file.
3691 * config/vax/vax.mt (TM_FILE): Remove.
3692 * config/vax/tm-vaxbsd.h: Remove file.
3694 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3696 * aix-thread.c (get_signaled_thread): New function.
3697 (iter_trap): Delete, no longer used.
3698 (iter_tid): New function.
3699 (pd_update): Find the thread that received the SIGTRAP signal
3700 by first locating the kernel thread, and then finding its
3703 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3705 * lin-lwp.c (child_wait): Continue inferior after processing
3706 PTRACE_EVENT_CLONE event.
3708 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3710 * MAINTAINERS: Add self to Write-After-Approval.
3712 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3714 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3715 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3717 2004-08-05 Andrew Cagney <cagney@gnu.org>
3719 * config/xm-sysv4.h: Delete file.
3720 * config/mips/xm-irix5.h: Delete file.
3721 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3722 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3723 * config/ia64/xm-aix.h: Delete file.
3724 * config/ia64/aix.mh (XM_FILE): Delete.
3725 * config/pa/xm-hppah.h: Delete file.
3726 * config/pa/hpux11w.mh (XM_FILE): Delete.
3727 * config/pa/hpux11.mh (XM_FILE): Delete.
3728 * config/pa/hpux1020.mh (XM_FILE): Delete.
3729 * config/pa/hppahpux.mh (XM_FILE): Delete.
3731 * config/alpha/xm-alphalinux.h: Delete file.
3732 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3733 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3734 * config/alpha/xm-alphaosf.h: Delete file.
3735 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3736 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3737 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3738 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3740 * config/i386/xm-i386v.h: Delete file.
3741 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3742 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3743 * config/i386/xm-i386sco.h: Delete file.
3744 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3745 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3746 * config/i386/xm-i386v4.h: Delete file.
3747 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3748 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3749 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3750 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3752 * config/vax/xm-vax.h: Delete file.
3753 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3754 * config/vax/xm-vaxult2.h: Delete file.
3755 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3756 * config/vax/vaxult2.mh (XM_FILE): Delete.
3757 * config/vax/xm-vaxult.h: Delete file.
3758 * config/vax/vaxult.mh (XM_FILE): Delete.
3759 * config/vax/xm-vaxbsd.h: Delete file.
3760 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3762 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3763 * gdbarch.h, gdbarch.c: Re-generate.
3764 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3765 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3766 * frame.h: Delete deprecated_read_fp from comments.
3767 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3768 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3770 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3772 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3773 trampoline in OpenBSD 3.5-current.
3775 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3778 * Makefile.in: Remove embedded page breaks.
3780 2004-08-04 Jim Blandy <jimb@redhat.com>
3782 * regcache.c (regcache_raw_read): Assert that, after calling
3783 target_fetch_registers, the register we're reading is cached.
3785 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3786 a call to 'internal_error', with a more helpful error message.
3787 * rs6000-tdep.c (e500_pseudo_register_read,
3788 e500_pseudo_register_write, rs6000_store_return_value): Same.
3790 2004-08-04 Andrew Cagney <cagney@gnu.org>
3792 * Makefile.in: Update dependencies.
3794 2004-08-04 Jim Blandy <jimb@redhat.com>
3796 Change the layout of the PowerPC E500 raw register cache to allow
3797 the lower 32-bit halves of the GPRS to be their own raw registers,
3798 not pseudoregisters.
3799 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3800 add ppc_ev0_upper_regnum flag.
3801 * rs6000-tdep.c: #include "reggroups.h".
3802 (spe_register_p): Recognize the ev upper half registers as SPE
3804 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3806 (e500_move_ev_register): New function.
3807 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3808 vector registers are the pseudo-registers now, formed by splicing
3809 together the gprs and the upper-half registers.
3810 (e500_register_reggroup_p): New function.
3812 (P8, A4): New macro.
3813 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3814 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3816 (registers_e500): Rearrange register set so that the raw register
3817 set contains 32-bit GPRs and upper-half registers, and the SPE
3818 vector registers become pseudo-registers.
3819 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3820 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3821 register numbers are now the same for the E500 as they are for
3822 other PowerPC variants. Register e500_register_reggroup_p as the
3823 register group function for the E500.
3824 * Makefile.in (rs6000-tdep.o): Update dependencies.
3826 Adapt PPC E500 native support to the new raw regcache layout.
3827 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3828 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3829 (fetch_spe_register, store_spe_register): Handle fetching/storing
3830 all the SPE registers at once, if regno == -1. These now take
3831 over the job of fetch_spe_registers and store_spe_registers.
3832 (fetch_spe_registers, store_spe_registers): Deleted.
3833 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3834 unconditionally; they're always raw. Fetch/store SPE upper half
3835 registers, if present, instead of ev registers.
3836 (fetch_register, store_register): Remove sanity checks: gprs are
3837 never pseudo-registers now, so we never need to even mention any
3838 registers that are ever pseudoregisters.
3840 Use a fixed register numbering when communicating with the PowerPC
3842 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3843 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3844 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3846 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3847 init_sim_regno_table.
3848 * Makefile.in (gdb_sim_ppc_h): New variable.
3849 (rs6000-tdep.o): Update dependencies.
3851 2004-08-02 Andrew Cagney <cagney@gnu.org>
3853 * cris-tdep.c (cris_register_size): Restore function, still used
3856 * gdbarch.sh (deprecated_target_read_fp)
3857 (deprecated_frame_locals_address, deprecated_frame_args_address)
3858 (deprecated_frame_chain_valid, deprecated_frame_chain)
3859 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3860 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3861 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3862 * gdbarch.h, gdbarch.c: Re-generate.
3863 * regcache.c (deprecated_read_fp): Do not call
3864 DEPRECATED_TARGET_READ_FP_P.
3865 * infcmd.c (default_print_registers_info): Do not call
3866 DEPRECATED_DO_REGISTERS_INFO.
3867 * frame-base.c (default_frame_locals_address): Do not call
3868 DEPRECATED_FRAME_LOCALS_ADDRESS.
3869 (default_frame_args_address): Do not call
3870 DEPRECATED_FRAME_ARGS_ADDRESS.
3872 * gdbarch.sh (deprecated_register_raw_size)
3873 (deprecated_register_virtual_size:int): Delete.
3874 * gdbarch.h, gdbarch.c: Re-generate.
3875 * cris-tdep.c (cris_register_size): Delete.
3876 (cris_gdbarch_init): Update.
3877 * alpha-tdep.c (alpha_register_raw_size)
3878 (alpha_register_virtual_size): Delete.
3879 (alpha_gdbarch_init): Update.
3881 * gdbarch.sh (deprecated_register_virtual_type)
3882 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3883 (deprecated_dummy_write_sp): Delete.
3884 * gdbarch.h, gdbarch.c: Re-generate.
3886 * gdbarch.sh (deprecated_register_bytes): Delete.
3887 * gdbarch.h, gdbarch.c: Re-generate.
3888 * regcache.c (deprecated_register_bytes): New function.
3889 * regcache.h (deprecated_register_bytes): Declare.
3890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3891 * v850-tdep.c (v850_gdbarch_init): Update.
3892 * sh64-tdep.c (sh64_gdbarch_init): Update.
3893 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3894 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3895 * mcore-tdep.c (mcore_gdbarch_init): Update.
3896 * cris-tdep.c (cris_gdbarch_init): Update.
3897 * arm-tdep.c (arm_gdbarch_init): Update.
3898 * remote.c (init_remote_state): Update.
3899 * remote-vx.c (vx_prepare_to_store): Update.
3900 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3901 * irix5-nat.c (fetch_core_registers): Update.
3902 * cris-tdep.c (cris_register_bytes_ok): Update.
3903 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3905 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3906 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3907 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3908 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3909 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3910 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3911 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3912 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3913 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3914 with mips_insn16 and mips_insn32.
3916 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3917 * rs6000-tdep.c (rs6000_push_dummy_call)
3918 (rs6000_extract_return_value): Use register_size.
3919 * xstormy16-tdep.c (xstormy16_get_saved_register)
3920 (xstormy16_extract_return_value): Ditto.
3921 * valops.c (value_assign): Ditto.
3922 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3923 * v850-tdep.c (v850_extract_return_value): Ditto.
3924 * tracepoint.c (collect_symbol): Ditto.
3925 * target.c (debug_print_register): Ditto.
3926 * stack.c (frame_info): Ditto.
3927 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3928 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3929 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3930 (store_register_using_P): Ditto.
3931 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3932 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3933 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3934 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3935 * regcache.c (deprecated_read_register_bytes)
3936 (deprecated_write_register_bytes, read_register)
3937 (write_register): Ditto.
3938 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3939 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3940 * monitor.c (monitor_supply_register, monitor_fetch_register)
3941 (monitor_store_register): Ditto.
3942 * mn10300-tdep.c (mn10300_pop_frame_regular)
3943 (mn10300_print_register): Ditto.
3944 * mipsv4-nat.c (fill_fpregset): Ditto.
3945 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3946 (mips64_fill_fpregset): Ditto.
3947 * mi/mi-main.c (register_changed_p, get_register)
3948 (mi_cmd_data_write_register_values): Ditto.
3949 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3950 * irix5-nat.c (fill_gregset, fetch_core_registers):
3951 * infrun.c (write_inferior_status_register): Ditto.
3952 * infptrace.c (fetch_register, store_register): Ditto.
3953 * infcmd.c (default_print_registers_info): Ditto.
3954 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3955 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3956 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3957 * hpux-thread.c (hpux_thread_fetch_registers)
3958 (hpux_thread_store_registers): Ditto.
3959 * hppah-nat.c (store_inferior_registers, fetch_register):
3960 * findvar.c (value_from_register): Ditto.
3961 * dve3900-rom.c (fetch_bitmapped_register):
3962 * cris-tdep.c (cris_gdbarch_init): Ditto.
3963 * alpha-tdep.h: Ditto.
3964 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3966 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3967 DEPRECATED_REGISTER_RAW_SIZE from comments.
3968 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3969 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3970 DEPRECATED_REGISTER_RAW_SIZE.
3971 * findvar.c (value_of_register): Simplify by assuming that the
3972 registers raw and virtual sizes are identical.
3973 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3975 * arch-utils.c (generic_register_size): Simplify by assuming
3978 * regcache.c (legacy_read_register_gen, real_register)
3979 (legacy_write_register_gen): Delete, not used.
3981 * regcache.c (struct regcache_descr): Delete legacy_p.
3982 (init_legacy_regcache_descr): Delete function.
3983 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3984 Do not use deprecated register functions.
3985 (regcache_raw_read, deprecated_write_register_gen):
3986 (deprecated_read_register_gen, regcache_raw_write): Delete code
3987 predicated on legacy_p.
3988 (register_size): Delete check against register raw size.
3990 * cris-tdep.c (cris_register_type): Replace
3991 cris_register_virtual_type.
3992 (cris_gdbarch_init): Update, set register_type.
3994 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3995 * gdbarch.h, gdbarch.c: Re-generate.
3996 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3997 (arm_gdbarch_init) Do not set frameless function invocation.
3998 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3999 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4000 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4001 (frv_gdbarch_init): Do not set frameless function invocation.
4002 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4003 * sh-tdep.c (sh_gdbarch_init): Ditto.
4004 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4005 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4006 * avr-tdep.c (avr_gdbarch_init): Ditto.
4008 * blockframe.c (legacy_frame_chain_valid): Delete function.
4010 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4011 and pc. Update comments.
4012 (pc_in_dummy_frame): Delete function.
4013 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4015 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4016 call_hi, top and pc, use the id.
4017 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4019 * dummy-frame.c: Include "gdb_string.h".
4020 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4021 (generic_save_dummy_frame_tos): Delete.
4022 (dummy_frame_push): New function, replaces above.
4023 * dummy-frame.h: Update copyright.
4024 (dummy_frame_push): Declare.
4025 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4026 (generic_save_call_dummy_addr): Delete declarations.
4027 * infcall.c: Include "dummy-frame.h".
4028 (call_function_by_hand): Add locals caller_regcache,
4029 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4030 with call to frame_save_as_regcache plus cleanup. Delete calls to
4031 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4032 Move clear_proceed_status to just before the resume, add call to
4033 dummy_frame_push (discard cleanup).
4034 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4035 (dummy-frame.o): Add $(gdb_string_h).
4037 2004-08-01 Andrew Cagney <cagney@gnu.org>
4039 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4040 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4041 * dummy-frame.c (find_dummy_frame): Delete.
4042 (struct dummy_frame_cache, dummy_frame_sniffer)
4043 (dummy_frame_prev_register, dummy_frame_this_id)
4044 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4045 frame unwinder using a dummy_frame_cache.
4047 2004-08-01 Andrew Cagney <cagney@gnu.org>
4049 * frame.h (frame_save_as_regcache): Declare.
4050 * frame.c (frame_save_as_regcache): New function.
4051 (do_frame_read_register): Replace do_frame_unwind_register.
4052 (frame_pop): Use frame_save_as_regcache.
4053 * dummy-frame.c (generic_push_dummy_frame): Use
4054 frame_save_as_regcache.
4056 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4058 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4059 file as included until we record the first line in the linetable.
4061 2004-08-01 Andrew Cagney <cagney@gnu.org>
4063 * frame.h (deprecated_pop_dummy_frame)
4064 (deprecated_read_register_dummy)
4065 (deprecated_generic_find_dummy_frame): Delete.
4066 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4067 (deprecated_read_register_dummy)
4068 (deprecated_find_dummy_frame_regcache)
4069 (discard_innermost_dummy)
4070 (deprecated_pop_dummy_frame): Delete.
4071 (dummy_frame_this_id): Simplify.
4072 (struct dummy_frame): Delete "fp" and "sp".
4073 (find_dummy_frame): Simplify.
4074 (generic_push_dummy_frame): Do not set "fp" or "sp".
4075 (fprint_dummy_frames): Do not print "fp" and "sp"
4077 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4079 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4080 (struct i386_insn): New structure.
4081 (i386_match_insn): New function.
4082 (i386_frame_setup_skip_insns): New variable.
4083 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4084 array i386_frame_setup_insns of instructions that should be
4085 skipped inside the frame setup sequence.
4087 2004-08-01 Andrew Cagney <cagney@gnu.org>
4089 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4090 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4091 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4092 * stack.c (frame_info): Delete references to
4093 DEPRECATED_FRAME_INIT_SAVED_REGS and
4094 deprecated_get_frame_saved_regs.
4095 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4096 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4097 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4098 (frame_unwind_register_signed)
4099 (frame_unwind_register_unsigned)
4100 (frame_unwind_unsigned_register): Use register_size.
4101 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4102 (deprecated_frame_xmalloc_with_cleanup)
4103 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4104 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4106 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4107 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4108 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4109 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4111 * infcall.c (call_function_by_hand): Do not use
4112 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4113 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4114 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4115 DEPRECATED_STACK_ALIGN.
4117 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4119 Committed by Andrew Cagney.
4120 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4122 2004-08-01 Andrew Cagney <cagney@gnu.org>
4124 * mips-tdep.c (mips16_frame_cache)
4125 (mips16_frame_this_id, mips16_frame_prev_register)
4126 (mips16_frame_unwind, mips16_frame_sniffer)
4127 (mips16_frame_base_address, mips16_frame_base)
4128 (mips16_frame_base_sniffer, mips32_frame_cache)
4129 (mips32_frame_this_id, mips32_frame_prev_register)
4130 (mips32_frame_unwind, mips32_frame_sniffer)
4131 (mips32_frame_base_address, mips32_frame_base)
4132 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4133 separate heuristic mips16 and mips32 unwinders.
4134 (mips_stub_frame_cache, mips_stub_frame_this_id)
4135 (mips_stub_frame_prev_register)
4136 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4137 (mips_stub_frame_base_address, mips_stub_frame_base)
4138 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4139 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4140 match true mdebug frames.
4141 (non_heuristic_proc_desc): Add forward declaration.
4143 2004-08-01 Andrew Cagney <cagney@gnu.org>
4145 * config/mips/tm-irix6.h: Delete file.
4146 * config/mips/tm-irix5.h: Delete file.
4147 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4148 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4150 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4151 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4152 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4153 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4154 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4155 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4156 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4157 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4158 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4159 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4160 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4161 (TARGET_SIGNAL_RAW_VALUES): Delete.
4162 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4164 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4165 (TARGET_HW_WATCH_LIMIT): Delete.
4166 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4167 * minimon.h: Delete file.
4169 * trad-frame.c (trad_frame_get_this_base)
4170 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4172 * trad-frame.h (trad_frame_set_this_base)
4173 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4175 2004-07-31 Andrew Cagney <cagney@gnu.org>
4177 * trad-frame.c (trad_frame_get_prev_register): Rename
4178 trad_frame_get_prev_register.
4179 * vax-tdep.c (vax_frame_prev_register): Update.
4180 * trad-frame.h: Update.
4181 * trad-frame.c (trad_frame_get_register): Update.
4182 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4183 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4185 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4186 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4188 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4190 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4192 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4194 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4196 * s390-tdep.c (s390_frame_prev_register)
4197 (s390_stub_frame_prev_register)
4198 (s390_sigtramp_frame_prev_register): Update.
4199 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4200 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4201 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4202 * m88k-tdep.c (m88k_frame_prev_register)
4203 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4204 * m32r-tdep.c (m32r_frame_prev_register): Update.
4205 * hppa-tdep.c (hppa_frame_prev_register_helper)
4206 * frv-tdep.c (frv_frame_prev_register): Update.
4207 * d10v-tdep.c (d10v_frame_prev_register): Update.
4208 * cris-tdep.c (cris_frame_prev_register): Update.
4209 * avr-tdep.c (avr_frame_prev_register): Update.
4210 * arm-tdep.c (arm_prologue_prev_register)
4211 (arm_sigtramp_prev_register): Update.
4213 2004-07-31 Andrew Cagney <cagney@gnu.org>
4215 * frame.h (legacy_saved_regs_unwind)
4216 (legacy_frame_chain_valid, legacy_frame_p)
4217 (enum frame_type): Delete UNKNOWN_FRAME.
4218 * dummy-frame.c (dummy_frame_this_id): Simplify.
4219 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4220 * frame.c (struct frame_info): Delete the field "type".
4221 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4222 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4223 (legacy_saved_regs_unwind, legacy_frame_p)
4224 (frame_type_from_pc): Delete.
4225 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4226 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4228 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4230 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4233 * mips-nat.c: Remove file.
4234 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4235 (mips-nat.o): Remove dependency.
4237 * infptrace.c: Update copyright year.
4238 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4239 explicitly setting the buffer to all zeroes.
4241 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4242 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4244 2004-07-30 Andrew Cagney <cagney@gnu.org>
4246 * GDB 6.2 released from gdb_6_2-branch.
4248 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4250 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4252 * exec.c (exec_file_attach):
4253 * nto-tdep.c (nto_find_and_open_solib):
4254 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4255 * solib.c (solib_open):
4256 * somsolib.c (som_solib_sizeof_symbol_table):
4257 * source.c (is_regular_file, openp, open_source_file):
4258 * symfile.c (symfile_bfd_open):
4259 * wince.c (upload_to_device): Differentiate between the search for
4260 binary and source files.
4262 2004-07-30 Andrew Cagney <cagney@gnu.org>
4264 * complaints.c (_initialize_complaints): Pass NULL to
4265 add_setshow_zinteger_cmd for help_doc.
4266 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4268 2004-07-30 Andrew Cagney <cagney@gnu.org>
4271 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4272 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4273 $(PACKAGE).pot and update-po.
4274 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4275 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4276 (update-po): New rules.
4277 (localedir): Define using autoconf.
4278 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4279 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4280 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4281 * configure.in: Generate CATALOGS and LINGUAS from contents of
4282 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4283 * configure: Re-generate.
4284 * po/gdbtext: New file
4286 2004-07-30 Jerome Guitton <guitton@gnat.com>
4288 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4291 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4293 * dwarf2read.c (read_file_scope): Set producer if attribute
4295 (struct dwarf2_cu): Added new member producer.
4297 2004-07-30 Jerome Guitton <guitton@gnat.com>
4299 * inflow.c (kill_command): release file handles in BFD.
4300 * exec.c (exec_file_attach): Ditto.
4301 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4303 2004-07-29 Andrew Cagney <cagney@gnu.org>
4305 * PROBLEMS (mips-irix): Note that it is broken.
4307 2004-07-29 Andrew Cagney <cagney@gnu.org>
4309 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4310 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4312 * config/xm-nbsd.h: Delete file.
4313 * config/arm/xm-nbsd.h: Delete file.
4314 * config/i386/xm-nbsd.h: Delete file.
4315 * config/ns32k/xm-nbsd.h: Delete file.
4316 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4317 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4318 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4319 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4320 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4322 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4323 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4324 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4325 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4326 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4327 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4329 * config/powerpc/xm-linux.h: Delete empty file.
4330 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4331 * config/powerpc/linux.mh (XM_FILE): Delete.
4332 * config/m68k/xm-linux.h: Delete empty file.
4333 * config/m68k/linux.mh (XM_FILE): Delete.
4334 * config/ia64/xm-linux.h: Delete empty file.
4335 * config/ia64/linux.mh (XM_FILE): Delete.
4336 * config/arm/xm-linux.h: Delete empty file.
4337 * config/arm/linux.mh (XM_FILE): Delete.
4339 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4340 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4341 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4342 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4343 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4344 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4345 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4346 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4348 * config/m68k/xm-m68k.h: Delete file.
4349 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4351 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4352 * config/pa/xm-linux.h: Delete empty file.
4353 * config/pa/linux.mh (XM_FILE): Delete.
4354 * config/i386/xm-i386.h: Delete empty file.
4355 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4357 * config/i386/obsdaout.mh (XM_FILE): Delete.
4358 * config/i386/obsd64.mh (XM_FILE): Delete.
4359 * config/i386/fbsd64.mh (XM_FILE): Delete.
4360 * config/i386/nto.mh (XM_FILE): Delete.
4361 * config/i386/obsd.mh (XM_FILE): Delete.
4362 * config/i386/linux64.mh (XM_FILE): Delete.
4363 * config/i386/linux.mh (XM_FILE): Delete.
4364 * config/i386/i386sol2.mh (XM_FILE): Delete.
4365 * config/i386/i386gnu.mh (XM_FILE): Delete.
4366 * config/i386/fbsd.mh (XM_FILE): Delete.
4367 * config/i386/nbsd64.mh (XM_FILE): Delete.
4369 2004-07-29 Andrew Cagney <cagney@gnu.org>
4371 * config/pa/xm-linux.h: Do not include "floatformat.h".
4372 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4373 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4374 * config/i386/xm-i386.h: Do not include "floatformat.h".
4375 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4376 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4377 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4378 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4379 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4380 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4381 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4382 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4383 * configure, config.in: Regenerate.
4384 * configure.host (gdb_host_float_format, gdb_host_double_format)
4385 (gdb_host_long_double_format): Set according to the host.
4387 2004-07-29 Andrew Cagney <cagney@gnu.org>
4389 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4391 2004-07-28 Andrew Cagney <cagney@gnu.org>
4393 * PROBLEMS: Mention threads/1650.
4394 * NEWS: Mention the NPTL fix.
4396 2004-07-28 Andrew Cagney <cagney@gnu.org>
4398 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4399 (add_setshow_cmd_full): Make static.
4400 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4401 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4402 * cli/cli-decode.c (add_setshow_filename_cmd)
4403 (add_setshow_string_cmd): New functions.
4404 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4405 * mips-tdep.c (_initialize_mips_tdep): Update.
4406 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4407 * cli/cli-logging.c (_initialize_cli_logging): Update.
4408 * complaints.c (_initialize_complaints): Update.
4409 * remote.c (_initialize_remote): Update.
4411 2004-07-28 Andrew Cagney <cagney@gnu.org>
4413 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4414 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4415 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4416 print parameters. Make string parameters constant.
4417 * command.h: Update. Update copyright.
4418 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4419 * observer.c (_initialize_observer): Ditto.
4420 * frame.c (_initialize_frame): Ditto.
4421 * complaints.c (_initialize_complaints): Ditto.
4422 * maint.c (_initialize_maint_cmds): Ditto.
4423 * target.c (initialize_targets): Ditto.
4424 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4425 * infcall.c (_initialize_infcall): Ditto.
4426 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4427 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4428 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4429 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4430 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4432 2004-07-28 Andrew Cagney <cagney@gnu.org>
4434 * gdbtypes.c (lookup_primitive_typename): Delete function.
4435 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4436 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4437 * gdbtypes.c (lookup_typename): Ditto.
4438 * f-exp.y (yylex): Ditto.
4439 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4441 * scm-lang.c (c_builtin_types): Delete extern declaration.
4442 (scm_language_defn): Replace
4443 string_char_type and primitive_type_vector with
4444 la_language_arch_info.
4445 * jv-lang.c (java_language_defn): Replace
4446 string_char_type and primitive_type_vector with
4447 la_language_arch_info.
4448 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4449 c_builtin_types in comment.
4450 * c-lang.h (struct language_arch_info): Declare opaque.
4451 (c_language_arch_info): Declare.
4452 (c_builtin_types): Delete declaration.
4453 * c-lang.c (c_language_arch_info): Set string_char_type to
4454 builtin_char, not builtin_true_char. Make global.
4455 (c_builtin_types): Delete array.
4456 (asm_language_defn, minimal_language_defn): Replace
4457 string_char_type and primitive_type_vector with
4458 la_language_arch_info.
4460 2004-07-28 Andrew Cagney <cagney@gnu.org>
4462 * gdbtypes.h (struct builtin_type): Rename true_char to
4464 * gdbtypes.c (gdbtypes_post_init): Update.
4465 * c-lang.c (arch_info): New function.
4466 (enum c_primitive_types): New enum.
4467 (c_language_defn): Instead of string_char_type and
4468 primitive_type_vector set la_language_arch_info.
4470 2004-07-28 Andrew Cagney <cagney@gnu.org>
4472 * language.h (struct language_arch_info): Fix typo
4473 s/primative/primitive/.
4474 * gdbtypes.c (lookup_primitive_typename): Ditto.
4475 * language.c (language_lookup_primitive_type_by_name)
4476 (unknown_language_arch_info): Ditto.
4478 2004-07-27 Andrew Cagney <cagney@gnu.org>
4480 * defs.h (enum language): Add nr_languages.
4481 * language.h (struct language_arch_info): Define.
4482 (struct language_defn): Add la_language_arch_info.
4483 (language_lookup_primative_type_by_name): Declare.
4484 (language_string_char_type): Declare.
4485 * language.c (_initialize_language, language_gdbarch_post_init)
4486 (struct language_gdbarch, language_gdbarch_data): Implement
4487 per-architecture language information.
4488 (unknown_language_arch_info, language_string_char_type)
4489 (language_lookup_primative_type_by_name): New functions.
4490 (unknown_language_defn, auto_language_defn)
4491 (local_language_defn): Set la_language_arch_info to
4492 unknown_language_arch_info.
4493 (unknown_builtin_types): Delete.
4494 * gdbtypes.c (lookup_primitive_typename): Use
4495 language_lookup_primative_type_by_name.
4496 (create_string_type): Use language_string_char_type.
4497 * values.c (value_from_string): Use language_string_char_type.
4498 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4499 * p-lang.c (pascal_language_defn): Ditto.
4500 * m2-lang.c (m2_language_defn): Ditto.
4501 * jv-lang.c (java_language_defn): Ditto.
4502 * objc-lang.c (objc_language_defn): Ditto.
4503 * f-lang.c (f_language_defn): Ditto.
4504 * c-lang.c (c_language_defn, cplus_language_defn)
4505 (asm_language_defn, minimal_language_defn): Ditto.
4507 2004-07-27 Andrew Cagney <cagney@gnu.org>
4509 * gdbtypes.h (struct builtin_type): Declare.
4510 (builtin_type): Declare.
4511 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4512 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4513 (gdbtypes_post_init): New function.
4514 (builtin_type): New function.
4516 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4518 * remote-m32r-sdi.c: Fix breakpoint bug.
4519 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4520 recv_char_data, recv_long_data): New functions to replace communication
4523 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4525 Document PR threads/1650.
4526 * PROBLEMS (Threads): Document problem with many threads
4528 2004-07-26 Andrew Cagney <cagney@gnu.org>
4530 * gdb-mi.el: Move from here ...
4531 * mi/gdb-mi.el: ... to here.
4533 2004-07-26 Andrew Cagney <cagney@gnu.org>
4535 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4536 * main.c (captured_main): When in batch mode always detach.
4538 2004-07-26 Andrew Cagney <cagney@gnu.org>
4540 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4541 and h8300 as broken.
4542 * NEWS: END-OF-LIFE frame compatibility module.
4543 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4546 2004-07-26 Andrew Cagney <cagney@gnu.org>
4548 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4549 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4550 * wince.c (_initialize_wince): Update.
4551 * win32-nat.c (_initialize_win32_nat): Update.
4552 * varobj.c (_initialize_varobj): Update.
4553 * valops.c (_initialize_valops): Update.
4554 * utils.c (initialize_utils, initialize_utils): Update.
4555 * tui/tui-win.c (_initialize_tui_win): Update.
4556 * top.c (init_main): Update.
4557 * symfile.c (_initialize_symfile): Update.
4558 * source.c (_initialize_source): Update.
4559 * somsolib.c (_initialize_som_solib): Update.
4560 * solib.c (_initialize_solib): Update.
4561 * solib-frv.c (_initialize_frv_solib): Update.
4562 * serial.c (_initialize_serial): Update.
4563 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4564 * remote.c (_initialize_remote, _initialize_remote): Update.
4565 * remote-vx.c (_initialize_vx): Update.
4566 * remote-utils.c (_initialize_sr_support): Update.
4567 * remote-sds.c (_initialize_remote_sds): Update.
4568 * remote-mips.c (_initialize_remote_mips): Update.
4569 * remote-e7000.c (_initialize_remote_e7000): Update.
4570 * proc-api.c (_initialize_proc_api): Update.
4571 * printcmd.c: Update.
4572 * parse.c (_initialize_parse): Update.
4573 * pa64solib.c (_initialize_pa64_solib): Update.
4574 * p-valprint.c (_initialize_pascal_valprint): Update.
4575 * monitor.c (_initialize_remote_monitors): Update.
4576 * mips-tdep.c (_initialize_mips_tdep): Update.
4577 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4578 * maint.c (_initialize_maint_cmds): Update.
4579 * lin-lwp.c (_initialize_lin_lwp): Update.
4580 * language.c (_initialize_language): Update.
4581 * kod.c (_initialize_kod): Update.
4582 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4583 * i386-tdep.c (_initialize_i386_tdep): Update.
4584 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4585 * gdbarch.sh: Update.
4586 * gdbarch.c: Re-generate.
4587 * gdb-events.sh: Update.
4588 * gdb-events.c: Re-generate.
4589 * frame.c (_initialize_frame): Update.
4591 * demangle.c (_initialize_demangler): Update.
4592 * dcache.c (_initialize_dcache): Update.
4593 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4594 * cp-valprint.c (_initialize_cp_valprint): Update.
4595 * corefile.c (_initialize_core): Update.
4596 * command.h: Update.
4597 * cli/cli-decode.h: Update.
4598 * cli/cli-cmds.c (init_cli_cmds): Update.
4599 * charset.c (_initialize_charset): Update.
4600 * breakpoint.c (_initialize_breakpoint): Update.
4601 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4602 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4603 * aix-thread.c (_initialize_aix_thread): Update.
4605 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4607 Partial fix for PR backtrace/1718.
4608 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4609 that GCC migrates into the prolugue. Don't handle any
4610 instructions that clobber %ebx.
4612 2004-07-23 Andrew Cagney <cagney@gnu.org>
4614 Use regcache_raw_collect instead of regcache_collect.
4615 * regcache.h (regcache_collect): Delete declaration.
4616 * regcache.c (regcache_colect): Delete function.
4617 * win32-nat.c (do_child_store_inferior_registers): Update.
4618 * sol-thread.c (sol_thread_store_registers): Update.
4619 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4620 * rs6000-nat.c (store_register): Update.
4621 * remote.c (store_register_using_P, remote_store_registers): Update.
4622 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4623 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4624 (fill_vrregset, store_spe_registers, fill_gregset)
4625 (fill_gregset): Update.
4626 * nto-procfs.c (procfs_store_registers): Update.
4627 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4628 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4629 * m68klinux-nat.c (store_register, fill_gregset): Update.
4630 * m68k-tdep.c (fill_gregset): Update.
4631 * infptrace.c (store_register): Update.
4632 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4633 * i386-linux-nat.c (store_register, fill_gregset): Update.
4634 * hppa-linux-nat.c (fill_gregset): Update.
4635 * go32-nat.c (store_register): Update.
4636 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4637 (store_fp_regs): Update.
4638 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4639 (store_nwfpe_extended, store_fpregister, store_fpregs)
4640 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4641 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4642 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4643 (store_regs_user_thread, store_regs_kernel_thread): Update.
4645 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4647 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4648 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4650 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4651 member of `struct comp_unit'.
4653 2004-07-23 Andrew Cagney <cagney@gnu.org>
4655 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4656 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4658 2004-07-23 Martin Hunt <hunt@redhat.com>
4659 Kevin Buettner <kevinb@redhat.com>
4661 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4662 alignment was being added to the offset instead of multiplied.
4664 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4666 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4667 changed signal trampoline in OpenBSD 3.5-current.
4669 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4670 <machine/pcb.h> and "bsd-kvm.h".
4671 (sparc64nbsd_supply_pcb): New function.
4672 (_initialize_sparc64nbsd_nat): Renamed from
4673 _initialize_sparcnbsd_nat. Enable libkvm interface.
4674 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4675 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4676 (LOADLIBES): New variable.
4678 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4680 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4682 2004-07-21 Andrew Cagney <cagney@gnu.org>
4684 Use regcache_raw_supply instead of supply_register.
4685 * regcache.h (supply_register): Delete declaration.
4686 * regcache.c (supply_register): Delete function.
4687 * wince.c (do_child_fetch_inferior_registers): Update.
4688 * win32-nat.c (do_child_fetch_inferior_registers)
4689 (fetch_elf_core_registers): Update.
4690 * v850ice.c (v850ice_fetch_registers): Update.
4691 * thread-db.c (thread_db_store_registers): Update.
4692 * sol-thread.c (sol_thread_store_registers): Update.
4693 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4694 * rs6000-nat.c (fetch_register): Update.
4695 * rom68k-rom.c (rom68k_supply_one_register): Update.
4696 * remote.c (remote_wait, remote_async_wait): Update.
4697 * remote-st.c (get_hex_regs): Update.
4698 * remote-sim.c (gdbsim_fetch_register): Update.
4699 * remote-sds.c (sds_fetch_registers): Update.
4700 * remote-rdp.c (remote_rdp_fetch_register): Update.
4701 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4702 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4703 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4704 * remote-hms.c (init_hms_cmds): Update.
4705 * remote-est.c (init_est_cmds): Update.
4706 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4707 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4708 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4709 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4710 (fetch_register, supply_vrregset, supply_vrregset)
4711 (fetch_spe_registers): Update.
4712 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4713 * monitor.c (monitor_supply_register): Update.
4714 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4715 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4716 (mipsnbsd_supply_fpreg): Update.
4717 * mips-nat.c (fetch_inferior_registers)
4718 (fetch_core_registers): Update.
4719 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4720 (supply_fpregset, mips64_supply_gregset)
4721 (mips64_supply_fpregset): Update.
4722 * m68klinux-nat.c (fetch_register, supply_gregset)
4723 (supply_fpregset): Update.
4724 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4725 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4726 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4727 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4728 * infptrace.c (fetch_register): Update.
4729 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4730 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4731 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4732 (gnu_fetch_registers, gnu_store_registers): Update.
4733 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4734 * i386-linux-nat.c (fetch_register, supply_gregset)
4735 (dummy_sse_values): Update.
4736 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4737 * hppah-nat.c (fetch_register): Update.
4738 * hppa-linux-nat.c (fetch_register, supply_gregset)
4739 (supply_fpregset): Update.
4740 * go32-nat.c (fetch_register): Update.
4741 * dve3900-rom.c (fetch_bitmapped_register)
4742 (_initialize_r3900_rom): Update.
4743 * cris-tdep.c (supply_gregset): Update.
4744 * abug-rom.c (init_abug_cmds): Update.
4745 * core-aout.c (fetch_core_registers): Update.
4746 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4747 (fetch_register, fetch_fp_register): Update.
4748 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4749 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4750 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4751 * alphanbsd-tdep.c (fetch_core_registers): Update.
4752 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4753 * alpha-nat.c (fetch_osf_core_registers)
4754 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4755 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4756 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4758 2004-07-21 Andrew Cagney <cagney@gnu.org>
4760 * PROBLEMS: Mention breakpoints/1702.
4761 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4762 that is known to work.
4764 2004-07-21 Andrew Cagney <cagney@gnu.org>
4766 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4767 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4768 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4769 (handle_inferior_event): Wrap call to deprecated
4770 IGNORE_HELPER_CALL in #ifdef.
4771 * config/mips/tm-nbsd.h: Update.
4773 2004-07-20 Jim Blandy <jimb@redhat.com>
4775 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4776 bfd_mach_ppc has no segment registers.
4778 Include PowerPC SPR numbers for special-purpose registers.
4779 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4780 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4781 new member in initializer.
4782 (S, S4, SN4, S64): New macros for defining special-purpose
4784 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4785 registers_403, registers_403GC, registers_505, registers_860,
4786 registers_601, registers_602, registers_603, registers_604,
4787 registers_750, registers_e500): Use them.
4789 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4790 replace references with expression used to initialize variable.
4792 2004-07-20 Andrew Cagney <cagney@gnu.org>
4794 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4796 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4797 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4798 (s390_sigtramp_frame_sniffer): Update.
4799 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4800 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4801 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4802 (mips32_fetch_instruction): Update.
4803 * mcore-tdep.c (get_insn): Update.
4804 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4805 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4806 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4807 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4808 (i386_linux_rt_sigtramp_start): Update.
4809 * i386-linux-nat.c (child_resume): Update.
4810 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4811 * hppa-linux-tdep.c (insns_match_pattern): Update.
4812 * gdbcore.h: Update.
4813 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4814 * frame.c (safe_frame_unwind_memory): Update.
4815 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4816 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4817 * alpha-tdep.c (alpha_read_insn): Update.
4819 2004-07-20 Andrew Cagney <cagney@gnu.org>
4821 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4822 containing both bytes and mask. Add "frame_type".
4823 * tramp-frame.c (tramp_frame_start): Update.
4824 (tramp_frame_prepend_unwinder): Update.
4825 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4826 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4827 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4828 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4830 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4832 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4833 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4834 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4835 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4837 2004-07-17 Andrew Cagney <cagney@gnu.org>
4839 * NEWS, PROBLEMS: Update for 6.2.
4841 * README: Update to 6.2.
4843 * utils.c (xvasprintf): Call xstrvprintf.
4845 * parse.c: Update copyright.
4846 (null_post_parser): Eliminate ARGSUSED.
4848 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4849 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4850 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4852 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4853 * ppc-linux-nat.c: Use "Linux kernel".
4854 * hppa-linux-tdep.c: Use GNU/Linux.
4855 * hppa-linux-nat.c: Use GNU/Linux.
4856 * dwarfread.c: Add [sic] to use of Linux.
4858 * hppa-linux-nat.c: Do not include <string.h>.
4859 (supply_fpregset): Remove "register" attribute.
4861 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4863 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4865 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4866 * configure, config.in: Regenerated.
4868 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4870 (vaxbsd_supply_pcb): New function.
4871 (_initialize_vaxbsd_nat): New prototype and function.
4872 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4874 (LOADLIBES): New variable.
4875 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4876 (LOADLIBES): New variable.
4877 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4878 (LOADLIBES): New variable.
4879 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4881 2004-07-16 Andrew Cagney <cagney@gnu.org>
4883 * defs.h (event_loop_p): Replace variable declaration with macro,
4885 * main.c (captured_main): Delete options "-async" and "-noasync".
4886 (event_loop_p): Delete variable.
4887 * NEWS: Mention that "-async" and "-noasync" were removed.
4889 2004-07-16 Andrew Cagney <cagney@gnu.org>
4891 * remote-m32r-sdi.c: Re-indent.
4893 2004-07-16 Jim Blandy <jimb@redhat.com>
4895 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4896 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4897 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4898 missing MPC823 SPRs.
4899 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4900 incorrect. (This was corrected in GDB's register name tables on
4903 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4904 should be "esasrr" ("ESA Save and Restore Register").
4906 2004-07-16 Andrew Cagney <cagney@gnu.org>
4908 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4909 calls, no longer applicable. Update comments and rename parameter
4910 "step_frame" to "return_frame".
4912 2004-07-16 Andrew Cagney <cagney@gnu.org>
4914 * frame.c (fprint_field): New function.
4915 (fprint_frame_id): Use fprint_field.
4917 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4919 * ada-lang.c (ada_language_defn): Remove commented out code.
4921 2004-07-15 Jim Blandy <jimb@redhat.com>
4923 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4924 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4926 2004-07-14 Jim Blandy <jimb@redhat.com>
4928 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4930 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4932 * ppc-tdep.h (ppc_num_srs): New enum constant.
4934 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4935 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4936 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4937 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4938 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4939 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4940 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4941 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4942 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4943 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4944 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4945 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4946 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4947 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4948 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4949 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4950 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4951 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4952 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4953 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4954 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4955 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4956 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4957 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4958 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4959 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4960 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4961 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4962 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4963 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4964 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4965 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4966 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4967 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4968 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4969 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4970 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4971 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4972 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4973 special-purpose register numbers.
4975 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4976 manual mentions 'md_twb', but many mention 'm_twb', and at that
4977 point in the register list.)
4979 2004-07-14 Andrew Cagney <cagney@gnu.org>
4981 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4982 instead of "internal-error".
4984 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4986 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4987 that was inserted inside a comment.
4989 2004-07-10 Randolph Chung <tausq@debian.org>
4991 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4993 (hppa_hpux_push_dummy_code): New function.
4994 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4995 Set find_global_pointer method.
4997 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4999 * NEWS: Mention BSD libkvm interface.
5001 2004-07-10 Michael Snyder <msnyder@redhat.com>
5003 * symfile.c (generic_load): Comment typo.
5004 * stack.c (get_selected_block): Ditto.
5005 * regcache.c (regcache_cooked_read): Ditto.
5006 * monitor.c (monitor_debug): Ditto.
5007 * mips-tdep.c (mips_read_pc): Ditto.
5008 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5009 * gdb_mbuild.sh: Ditto.
5010 * gdbarch.sh: Ditto.
5013 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5015 * ada-tasks.c: Remove file.
5017 Remove ARI problems:
5019 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5022 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5024 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5025 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5026 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5027 (UMIN_OF_SIZE): Remove.
5028 (max_of_type): New function to replace orphan macro in gdbtypes.h
5029 (min_of_type): Ditto.
5030 (discrete_type_high_bound): Use max_of_type.
5031 (discrete_type_low_bound): Use min_of_type.
5032 (possible_user_operator_p): Move operator to beginning of line.
5033 (ada_is_variant_part): Ditto.
5034 (ensure_lval): Rewrite to avoid deprecated operations.
5035 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5036 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5037 (ada_enum_name): Remove assignments in 'if' statements.
5038 (build_ada_types): Add gdbarch parameter.
5039 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5040 with gdbarch_data_register_post_init.
5041 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5044 * ada-valprint.c (inspect_it): Remove declaration.
5045 (repeat_count_threshold): Remove declaration.
5046 (ada_print_floating): Remove assignments in 'if' statements.
5047 (print_str): Move operator to beginning of line.
5049 2004-07-08 Jim Blandy <jimb@redhat.com>
5051 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5053 2004-07-08 Bob Rossi <bob@brasko.net>
5055 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5057 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5059 * language.h (struct_language_defn): Add new function pointer:
5060 la_class_name_from_physname. Also add new prototype for
5061 language_class_name_from_physname.
5062 * language.c (language_class_name_from_physname): New function.
5063 (unk_lang_class_name): Ditto.
5064 (unknown_language_defn, auto_language_defn): Change
5065 to add unk_lang_class_name function pointer for
5066 la_class_name_from_physname.
5067 (local_language_defn): Ditto.
5068 * dwarf2read.c (guess_structure_name): Change to call
5069 language_class_name_from_physname.
5070 (determine_class_name): Ditto.
5071 * cp-support.c (class_name_from_physname): Renamed.
5072 (cp_class_name_from_physname): New name of function.
5073 * cp-support.h: Ditto.
5074 * c-lang.c (c_language_defn): Change to add NULL
5075 for class_name_from_physname function pointer.
5076 (cplus_language_defn): Change to add cp_class_name_from_physname.
5077 * jv-lang.c (java_class_name_physname): New function.
5078 (java_find_last_component): New static routine.
5079 (java_language_defn): Add java_class_name_from_physname pointer.
5080 * ada-lang.c (ada_language_defn): Change to add NULL
5081 for class_name_from_physname function pointer.
5082 * f-lang.c (f_language_defn): Ditto.
5083 * m2-lang.c (m2_language_defn): Ditto.
5084 * objc-lang.c (objc_language_defn): Ditto.
5085 * p-lang.c (pascal_language_defn): Ditto.
5086 * scm-lang.c (scm_language_defn): Ditto.
5088 2004-07-06 Andrew Cagney <cagney@gnu.org>
5090 Patch from Bart Robinson.
5091 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5092 (O_LARGEFILE): Define to 0, if not defined.
5094 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5096 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5097 <machine/pcb.h> and "bsd-kvm.h".
5098 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5099 (m68kbsd_supply_pcb): New function.
5100 (_initialize_m68kbsd_nat): New prototype and function.
5101 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5102 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5103 (LOADLIBES): New variable.
5104 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5105 (LOADLIBES): New variable.
5107 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5109 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5111 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5113 (bsd_kvm_cmdlist): New variable.
5114 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5115 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5116 command and "kvm proc" command.
5117 * Makefile.in (bsd-kvm.o): Update dependencies.
5119 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5121 * osabi.c: Update copyright year.
5122 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5123 notes if EI_OSABI is set to ELFOSABI_HPUX.
5125 2004-07-01 Michael Snyder <msnyder@redhat.com>
5127 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5128 that seems to have gotten whacked out of line.
5130 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5132 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5135 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5137 * ada-lang.c (decode_packed_array): Minor change to comment.
5138 (ada_value_slice_ptr): New function.
5139 (ada_value_slice): New function.
5140 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5141 test. Don't know why it is there.
5142 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5143 to avoid dereferencing huge arrays from which one is slicing.
5144 (empty_array): Correct to return an array rather than
5146 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5147 on empty arrays (let'em use 'FIRST instead).
5149 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5151 Address complaints from gdb_ari.sh:
5153 * ada-exp.y: Include gdb_string.h rather than string.h.
5154 (convert_char_literal): Reformat declaration.
5155 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5156 * ada-lex.l: Change use of free to xfree (the macro would do so
5157 anyway, but this is harmless).
5158 Include gdb_string.h rather than string.h.
5159 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5161 * ada-lang.c (parse): Remove K&Rism in parameter list.
5162 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5164 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5166 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5169 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5171 * alphabsd-nat.c: Update copyright year.
5172 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5174 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5176 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5177 (i386_cygwin_in_solib_call_trampoline): New function.
5178 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5179 and skip_trampoline_code gdbarch methods.
5181 2004-06-29 Jim Blandy <jimb@redhat.com>
5183 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5184 name actually used in the dependency lists.
5186 2004-06-29 Randolph Chung <tausq@debian.org>
5188 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5190 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5192 * win32-nat.c (child_pid_to_exec_file): New function.
5193 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5196 2004-06-28 Andrew Cagney <cagney@gnu.org>
5198 * defs.h (xstrvprintf): Declare.
5199 * utils.c (xstrvprintf): New function.
5200 (internal_vproblem, xstrprintf, xasprintf)
5201 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5202 * serial.c (serial_printf): Ditto.
5203 * complaints.c (vcomplaint): Ditto.
5205 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5207 * infcmd.c (attach_command): Move call to target_terminal_inferior
5208 behind loading symbol table.
5210 2004-06-28 Andrew Cagney <cagney@gnu.org>
5212 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5213 change - add back extern deprecated_ui_loop_hook declaration.
5215 2004-06-28 Andrew Cagney <cagney@gnu.org>
5217 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5219 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5220 (c_value_of_variable): Ditto.
5221 * utils.c (internal_vproblem): Ditto.
5222 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5223 * remote.c (add_packet_config_cmd): Ditto.
5224 * remote-rdp.c (rdp_set_command_line): Ditto.
5225 * regcache.c (regcache_dump): Ditto.
5226 * frv-tdep.c (new_variant, new_variant): Ditto.
5227 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5228 (fbsd_find_memory_regions): Ditto.
5229 * breakpoint.c (create_thread_event_breakpoint)
5230 (create_breakpoints): Ditto.
5231 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5232 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5234 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5236 * ada-lang.c: Re-indent file, with some massaging to help indent
5237 a bit when the result is otherwise really too ugly.
5239 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5241 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5242 code_addr_p and special_addr_p to 'unsigned int'.
5244 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5246 * i386v4-nat.c: Update copyright year and tweak comment.
5247 (regmap): Remove trailing comma.
5248 (supply_gregset): Rename local variable i to regnum. Call
5249 regcache_raw_supply instead of supply_register.
5250 (fill_gregset): Rename argument regno to regnum. Call
5251 regcache_raw_collect instead of regcache_collect.
5253 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5255 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5257 (frame_id_build, frame_id_build_special): Update comments.
5258 (frame_id_build_wild): New prototype.
5259 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5260 struct frame_id fields.
5261 (frame_id_build_wild): New function.
5262 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5264 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5266 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5269 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5271 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5273 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5275 * ada-lang.c: Re-indent file.
5277 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5279 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5280 (no_symtab_msg): Likewise.
5282 2004-06-27 Andreas Schwab <schwab@suse.de>
5284 * source.c: Fix whitespace.
5286 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5288 * configure.in: Include <sys/param.h> for td_pcb test.
5289 * configure: Regenerated.
5291 * i386nbsd-nat.c: New file.
5292 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5293 i386obsd-nat.c and i386obsd-tdep.c.
5294 (i386nbsd-nat.o): New dependency.
5295 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5297 (LOADLIBES): New variable.
5298 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5300 (LOADLIBES): New variable.
5302 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5303 (LOADLIBES): New variable.
5305 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5306 fetching from BSD_KVM_PADDR. Correctly lookup address for
5309 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5311 (amd64fbsd_supply_pcb): New funcion.
5312 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5314 2004-06-27 <david@streamline-computing.com>
5316 Partial fix for PR cli/1056.
5317 * valarith.c: Check for zero in division and remainder
5320 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5322 * i387-tdep.c: Remove excessive whitespace.
5324 2004-06-26 Andrew Cagney <cagney@gnu.org>
5326 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5327 * gdb-events.h, gdb-events.c: Re-generate.
5328 * tui/tui-hooks.c (tui_install_hooks): Update.
5329 (tui_remove_hooks): Update.
5330 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5332 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5334 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5335 (gregset_t, fpregset_t): Remove typedefs.
5336 (REG_OFFSET): Rename argument.
5337 (amd64bsd_r_reg_offset): Rename from reg_offset.
5338 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5340 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5342 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5344 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5346 * vax-tdep.c: Tweak comment.
5348 Add OpenBSD/hppa support.
5349 * NEWS (New native configurations): Mention OpenBSD/hppa.
5350 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5351 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5353 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5354 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5355 * configure.host: Add hppa*-*-openbsd*.
5356 * configure.tgt: Add hppa*-*-openbsd*.
5358 2004-06-25 Andrew Cagney <cagney@gnu.org>
5360 * defs.h (deprecated_ui_loop_hook): Deprecated.
5361 * wince.c (child_wait): Update.
5362 * win32-nat.c (child_wait): Update.
5363 * v850ice.c (v850ice_wait): Update.
5364 * top.c (deprecated_ui_loop_hook): Update.
5366 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5367 (do_unix_readchar): Update.
5368 * ser-tcp.c (net_open): Update.
5369 * remote-sim.c (gdb_os_poll_quit): Update.
5370 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5372 2004-06-24 Andrew Cagney <cagney@gnu.org>
5374 * defs.h (deprecated_pre_add_symbol_hook)
5375 (deprecated_post_add_symbol_hook): Deprecated.
5376 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5377 (symbol_file_add_with_addrs_or_offsets): Update references.
5379 2004-06-24 Andrew Cagney <cagney@gnu.org>
5381 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5382 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5383 * wince.c (ui_loop_hook): Delete extern declaration.
5384 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5385 * v850ice.c (ui_loop_hook): Delete extern declaration..
5386 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5387 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5388 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5389 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5390 ui_loop_hook declaration.
5392 2004-06-24 Andrew Cagney <cagney@gnu.org>
5394 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5395 entry_func_highpc fields.
5396 * objfiles.c (init_entry_point_info): Do not clear
5397 entry_func_lowpc and entry_func_highpc.
5398 (objfile_relocate): Do not relocate entry_func_lowpc and
5400 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5402 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5404 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5405 entry_func_lowpc and entry_func_highpc with call to
5408 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5410 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5411 quad-precision floating point arguments in registers.
5413 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5415 From Michael Mueller <m.mueller99@kay-mueller.de>:
5416 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5419 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5421 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5423 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5424 untriggered watchpoints to a separate if clause. Update function
5425 comment regarding STOPPED_BY_WATCHPOINT argument.
5427 2004-06-22 Jim Blandy <jimb@redhat.com>
5429 * gdbarch.sh: Doc fix.
5431 2004-06-21 Martin Hunt <hunt@redhat.com>
5432 Kevin Buettner <kevinb@redhat.com>
5434 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5435 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5436 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5437 to set_gdbarch_sp_regnum(). Use cooked register number.
5438 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5440 2004-06-21 Andrew Cagney <cagney@gnu.org>
5442 * gdbarch.sh: When the macro field is empty, do not generate a
5443 macro definition. When the macro field is "=", generate the macro
5444 name from the upper-case function name.
5445 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5446 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5447 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5448 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5449 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5450 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5451 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5452 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5453 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5454 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5455 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5456 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5457 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5458 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5459 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5460 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5461 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5462 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5463 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5464 (DEPRECATED_USE_STRUCT_CONVENTION)
5465 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5466 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5467 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5468 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5469 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5470 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5471 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5472 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5473 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5474 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5475 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5476 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5477 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5478 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5479 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5480 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5481 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5482 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5484 2004-06-21 Andrew Cagney <cagney@gnu.org>
5486 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5487 macro name, and the function rather than macro value. Only wrap
5488 macro print statements in #ifdef. Move format logic to where it
5490 * gdbarch.c: Re-generate.
5492 * gdbarch.sh (read): Delete "print_p" and "description", add
5493 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5494 Delete references to print_p.
5495 (TARGET_ARCHITECTURE): Delete print predicate.
5496 * gdbarch.c: Re-generate.
5498 * gdbarch.sh: Check that multi-arch methods do not provide a
5500 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5501 (print_registers_info, print_float_info, print_vector_info)
5502 (adjust_breakpoint_address, remote_translate_xfer_address)
5503 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5504 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5505 name from the multi-arch definition.
5507 2004-06-20 Andrew Cagney <cagney@gnu.org>
5509 * gdbarch.sh: Sort by the function, instead of macro name.
5510 * gdbarch.c: Re-generate.
5512 2004-06-20 Andrew Cagney <cagney@gnu.org>
5514 * gdbarch.sh: Use the function, instead of macro name in
5515 errors and the log file.
5516 (return_value): Remove stray ":" in spec.
5518 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5519 * gdbarch.h, gdbarch.c: Re-generate.
5520 * Makefile.in (arch-utils.o): Update dependencies.
5521 * values.c (using_struct_return): Move code calling
5522 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5523 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5524 to legacy_return_value, simplify.
5525 * infcmd.c (print_return_value): Move code calling
5526 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5527 to legacy_return_value, simplify.
5528 * infcall.c (call_function_by_hand): Move code calling
5529 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5530 * arch-utils.c: Update copyright. Include "gdbcore.h".
5531 (legacy_return_value): New function.
5532 * arch-utils.h: Update copyright.
5533 (legacy_return_value): Declare.
5535 2004-06-20 Andrew Cagney <cagney@gnu.org>
5537 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5538 * gdbarch.h, gdbarch.c: Re-generate.
5539 * values.c (using_struct_return): Update call.
5540 * mcore-tdep.c: Update comment.
5541 * infcall.c (call_function_by_hand): Update comment.
5542 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5543 * arch-utils.h (always_use_struct_convention): Update.
5544 * v850-tdep.c (v850_gdbarch_init): Update.
5545 * sh64-tdep.c (sh64_gdbarch_init): Update.
5546 * sh-tdep.c (sh_gdbarch_init): Update.
5547 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5548 * mips-tdep.c (mips_gdbarch_init): Update.
5549 * mcore-tdep.c (mcore_gdbarch_init): Update.
5550 * m32r-tdep.c (m32r_gdbarch_init): Update.
5551 * ia64-tdep.c (ia64_gdbarch_init): Update.
5552 * h8300-tdep.c (h8300_gdbarch_init): Update.
5553 * frv-tdep.c (frv_gdbarch_init): Update.
5554 * cris-tdep.c (cris_gdbarch_init): Update.
5555 * arm-tdep.c (arm_gdbarch_init): Update.
5556 * alpha-tdep.c (alpha_gdbarch_init): Update.
5558 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5560 * PROBLEMS: Add more specific information, and a work-around,
5563 2004-06-18 Andrew Cagney <cagney@gnu.org>
5565 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5566 * gdbarch.h, gdbarch.c: Re-generate.
5567 * ada-lang.c (ada_finish_decode_line_1): Update.
5568 * infrun.c (handle_inferior_event): Update.
5569 * infcall.c (find_function_addr): Update.
5570 * linespec.c (minsym_found): Update.
5571 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5573 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5574 * cli/cli-cmds.c (disassemble_command): Update.
5575 * vax-tdep.c (vax_gdbarch_init): Update.
5577 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5579 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5581 2004-06-17 Andrew Cagney <cagney@gnu.org>
5583 GDB 6.1.1 released from the GDB 6.1 branch.
5584 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5587 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5590 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5591 operation as a uleb128. Found by Michael Coulter.
5593 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5595 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5597 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5598 to ada-lang.h; this is needed to be able to implement the kill command
5601 (task_entry): Ditto.
5603 (ada_build_task_list): Ditto.
5605 * ada-lang.c: Conditionalize routines and data structures related
5606 to breakpoints, exceptions, completion, and symbol caching on
5607 GNAT_GDB, since these are not yet used in the submitted public sources.
5608 (ada_main_name): Editorial: Move definition out of exception-related
5611 2004-06-15 Andrew Cagney <cagney@gnu.org>
5613 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5614 deprecated_pc_in_call_dummy.
5616 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5618 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5619 bfd_get_section_size_before_reloc or _raw_size.
5620 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5621 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5622 (dwarf2_read_section): Likewise.
5623 * elfread.c (elf_locate_sections): Likewise.
5624 * gcore.c (derive_heap_segment): Likewise.
5625 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5626 * remote-e7000.c (e7000_load): Likewise.
5627 * remote-m32r-sdi.c (m32r_load): Likewise.
5628 * remote-mips.c (mips_load_srec): Likewise.
5629 (pmon_load_fast): Likewise.
5630 * remote.c (compare_sections_command): Likewise.
5631 * symfile.c (add_section_size_callback): Likewise.
5632 (load_section_callback): Likewise.
5633 (pc_in_unmapped_range): Likewise.
5634 (pc_in_mapped_range): Likewise.
5635 (sections_overlap): Likewise.
5636 (list_overlays_command): Likewise.
5637 (simple_overlay_update_1): Likewise.
5638 (simple_overlay_update): Likewise.
5639 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5640 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5642 2004-06-14 Randolph Chung <tausq@debian.org>
5644 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5645 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5647 (hppa_hpux_inferior_created): New function.
5648 (hppa_hpux_init_abi): Register observer.
5649 * symfile.c (hp_cxx_exception_support_initialized)
5650 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5651 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5653 2004-06-14 Randolph Chung <tausq@debian.org>
5655 * MAINTAINERS (Write After Approval): Alphabetize my entry
5658 2004-06-14 Andrew Cagney <cagney@gnu.org>
5660 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5661 testsuite maintainer.
5663 2004-06-13 Andrew Cagney <cagney@gnu.org>
5665 * infcmd.c (print_return_value): Fix logic, allow
5666 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5668 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5669 defining any macros.
5670 * gdbarch.h: Re-generate.
5672 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5673 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5674 * gdbarch.h: Re-generate.
5676 * values.c (generic_use_struct_convention): Don't check gcc_p.
5678 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5679 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5680 * gdbarch.h, gdbarch.c: Regenerate.
5681 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5682 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5684 deprecated_max_register_raw_size and
5685 deprecated_max_register_virtual_size.
5686 * v850-tdep.c (v850_gdbarch_init): Ditto.
5687 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5688 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5689 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5690 * cris-tdep.c (cris_gdbarch_init): Ditto.
5692 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5693 * gdbarch.h, gdbarch.c: Re-generate.
5694 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5695 (m68hc11_use_struct_convention): Delete function.
5696 (m68hc11_extract_struct_value_address): Delete function.
5697 (m68hc11_return_value): New function.
5698 (m68hc11_gdbarch_init): Instead of store_return_value,
5699 extract_return_value, return_value_on_stack,
5700 deprecated_extract_struct_value_address and use_struct_convention,
5702 * values.c (using_struct_return): Do not call
5703 RETURN_VALUE_ON_STACK.
5704 * arch-utils.h (generic_return_value_on_stack_not): Delete
5706 * arch-utils.c (generic_return_value_on_stack_not): Delete
5709 2004-06-12 Andrew Cagney <cagney@gnu.org>
5711 * values.c (register_value_being_returned): Delete function.
5712 * infcmd.c (legacy_return_value): Delete function.
5713 * infcall.c (call_function_by_hand): Inline
5714 "register_value_being_returned", simplify.
5715 * values.c (using_struct_return): Update comment, refer to
5716 print_return_value instead of register_value_being_returned.
5717 * infcmd.c (print_return_value): Inline calls to
5718 register_value_being_returned and legacy_return_value. Simplify.
5720 2004-06-11 Randolph Chung <tausq@debian.org>
5722 * somread.c (som_symtab_read): Exclude gcc local symbols.
5724 2004-06-11 Randolph Chung <tausq@debian.org>
5726 * infrun.c (handle_inferior_event): Handle the case when a
5727 trampoline ends up in the runtime resolver, and if the trampoline
5728 has no name. Rearrange the code so that all the trampoline
5729 processing happens before other step-out-of-range handling.
5731 2004-06-11 Martin Hunt <hunt@redhat.com>
5733 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5736 2004-06-10 Andrew Cagney <cagney@gnu.org>
5738 * blockframe.c (legacy_inside_entry_func): Delete.
5739 (legacy_frame_chain_valid): Inline call to
5740 legacy_inside_entry_func, simplify.
5742 2004-06-10 Bob Rossi <bob@brasko.net>
5744 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5745 * dwarf2read.c (partial_die_info): Add dirname field.
5746 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5747 (read_partial_die): Save away DW_AT_comp_dir.
5748 * defs.h (symtab_to_filename): Removed.
5749 * source.c (find_and_open_source): Added.
5750 (open_source_file): Just calls find_and_open_source.
5751 (symtab_to_filename): Removed.
5752 (symtab_to_fullname, psymtab_to_fullname): Added.
5753 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5754 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5756 * symtab.h (partial_symtab): Add dirname field.
5757 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5758 (mi_cmd_file_list_exec_source_file): Call new function
5759 symtab_to_fullname to find fullname.
5760 (mi_cmd_file_list_exec_source_files): Added.
5761 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5762 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5764 2004-06-10 Andrew Cagney <cagney@gnu.org>
5766 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5767 to generic_use_struct_convention, the default value.
5769 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5772 * ns32k-tdep.c (ns32k_push_arguments): New function.
5773 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5774 * infcall.c (call_function_by_hand): Call error instead of
5775 legacy_push_arguments.
5776 * value.h (legacy_push_arguments): Delete declaration.
5777 * valops.c (legacy_push_arguments): Delete function.
5778 (value_push): Delete function.
5780 2004-06-10 Brian Ford <ford@vss.fsi.com>
5782 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5783 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5785 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5787 2004-06-10 Andrew Cagney <cagney@gnu.org>
5789 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5790 * gdbarch.h, gdbarch.c: Re-generate.
5791 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5793 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5794 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5795 deprecated_pc_in_call_dummy instead of
5796 DEPRECATED_PC_IN_CALL_DUMMY.
5797 (arm_skip_prologue): Ditto.
5798 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5799 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5800 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5801 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5803 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5804 (sh64_init_extra_frame_info, sh64_get_saved_register)
5805 (sh64_pop_frame): Ditto.
5806 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5807 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5808 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5809 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5810 (h8300_pop_frame): Ditto.
5811 * blockframe.c (legacy_inside_entry_func)
5812 (legacy_frame_chain_valid): Ditto.
5813 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5814 to deprecated_pc_in_call_dummy.
5816 2004-06-09 Andrew Cagney <cagney@gnu.org>
5818 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5819 provide a default value.
5820 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5821 * gdbarch.h, gdbarch.c: Re-generate.
5822 * arch-utils.c (generic_convert_register_p): Rename
5823 legacy_convert_register_p
5824 (legacy_register_to_value, legacy_value_to_register): Delete
5826 * arch-utils.h (generic_convert_register_p): Rename
5827 legacy_convert_register_p.
5828 (legacy_register_to_value, legacy_value_to_register): Delete
5831 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5832 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5833 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5834 * gdbarch.h, gdbarch.c: Re-generate.
5835 * infcmd.c (default_print_registers_info): Simplify.
5836 * findvar.c (value_of_register): Simplify.
5837 * mi/mi-main.c (get_register): Simplify.
5838 * arch-utils.c (legacy_convert_register_p): Always return 0.
5839 (legacy_register_to_value, legacy_value_to_register): Always call
5842 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5843 #ifdef CLEAR_INSN_CACHE code.
5844 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5845 Delete #ifdef CLEAR_DEFERRED_STORES code.
5847 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5849 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5851 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5853 * config/mips/mipsv4.mh: Delete file.
5855 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5857 (hpread_adjust_stack_address): Delete declaration.
5859 2004-06-08 Andrew Cagney <cagney@gnu.org>
5861 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5862 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5863 PTRACE_ATTACH / PTRACE_DETACH available call error.
5864 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5865 * infttrace.c (update_thread_state_after_attach, attach, detach):
5866 Remove #ifdef wrappers.
5867 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5868 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5869 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5870 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5871 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5872 * config/nm-linux.h (ATTACH_DETACH): Delete.
5873 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5874 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5875 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5876 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5877 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5879 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5881 * configure.in: Set $configdir to the right OS specific value.
5882 Use value when setting $tcldir and $tkdir.
5883 * configure: Regenerate.
5885 2004-06-06 Paul Brook <paul@codesourcery.com>
5887 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5890 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5892 * ada-lang.c (lookup_symbol_in_language): New function to allow
5893 re-use of another language's symbol lookup code. (Placed here
5894 temporarily while Ada support is being integrated into the public
5896 (restore_language): New auxiliary function for
5897 lookup_symbol_in_language.
5898 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5899 temporarily while Ada support is being integrated into the public
5902 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5904 * Makefile.in (check//%): New.
5906 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5907 (mn10300_store_return_value): Rewrite.
5908 (mn10300_type_align): New.
5909 (mn10300_use_struct_convention): Rewrite.
5910 (mn10300_return_value): New, using all of the above.
5911 (mn10300_pop_frame_regular): Add saved_regs_size.
5912 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5914 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5915 regs if PC is on movm.
5917 2004-06-07 Jim Blandy <jimb@redhat.com>
5919 Add native Linux support for the PowerPC E500.
5920 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5921 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5922 all architectures except the E500.
5923 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5925 (struct gdb_evrregset_t): New type.
5926 (have_ptrace_getsetevrregs): New variable.
5927 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5928 fetch_spe_registers): New functions.
5929 (fetch_register): Call fetch_spe_register as appropriate.
5930 Assert that we're only passed raw register numbers.
5931 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5932 Don't fetch gprs if they're pseudoregisters.
5933 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5934 store_spe_registers): New functions.
5935 (store_register): Call store_spe_register as appropriate.
5936 Assert that we're only passed raw register numbers.
5937 (store_ppc_registers): Call store_spe_registers as appropriate.
5938 Don't store gprs if they're pseudoregisters.
5940 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5942 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5943 struct if one exists, even if we are dealing with a zombie thread.
5945 2004-06-07 Andrew Cagney <cagney@gnu.org>
5947 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5948 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5949 Rename PC_REQUIRES_RUN_BEFORE_USE.
5950 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5953 2004-06-07 Randolph Chung <tausq@debian.org>
5955 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5956 unwinding after sp has been saved to the stack but before the end
5957 of the prologue, and after the fp has been modified but before it has
5958 been saved to the stack.
5959 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5960 Remove superfluous definitions.
5961 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5963 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5965 Committed by Randolph Chung.
5966 * hppa-linux-nat.c: Include the correct version of the header file
5967 depending on the kernel version.
5969 2004-06-06 Randolph Chung <tausq@debian.org>
5971 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5972 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5974 2004-06-06 Randolph Chung <tausq@debian.org>
5976 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5977 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5978 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5979 * hppa-tdep.c (hppa_symbol_address): New function definition.
5980 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5982 2004-06-06 Randolph Chung <tausq@debian.org>
5984 * hppa-tdep.h (struct value): Forward declaration.
5985 (gdbarch_tdep): Define tdep find_global_pointer method.
5986 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5987 associated with the function we are trying to call, and write it
5989 (hppa32_convert_from_funct_ptr_addr): New function.
5990 (hppa_find_global_pointer): New function.
5991 (hppa_gdbarch_init): Set default find_global_pointer method; set
5992 convert_from_func_ptr_addr method.
5993 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5994 (hppa_linux_init_abi): Set find_global_pointer method.
5995 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5997 2004-06-06 Randolph Chung <tausq@debian.org>
5999 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6000 to struct value *function.
6001 * gdbarch.c: Regenerate.
6002 * gdbarch.h: Likewise.
6003 * infcall.c (call_function_by_hand): Pass entire function value
6006 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6007 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6008 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6009 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6010 * arm-tdep.c (arm_push_dummy_call): Likewise.
6011 * avr-tdep.c (avr_push_dummy_call): Likewise.
6012 * cris-tdep.c (cris_push_dummy_call): Likewise.
6013 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6014 * frv-tdep.c (frv_push_dummy_call): Likewise.
6015 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6016 * hppa-tdep.c (hppa32_push_dummy_call)
6017 (hppa64_push_dummy_call): Likewise.
6018 * i386-tdep.c (i386_push_dummy_call): Likewise.
6019 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6020 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6021 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6022 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6023 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6024 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6025 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6026 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6027 (ppc64_sysv_abi_push_dummy_call): Likewise.
6028 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6029 (ppc64_sysv_abi_push_dummy_call): Likewise.
6030 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6031 * s390-tdep.c (s390_push_dummy_call): Likewise.
6032 * sh-tdep.c (sh_push_dummy_call_fpu)
6033 (sh_push_dummy_call_nofpu): Likewise.
6034 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6035 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6036 * vax-tdep.c (vax_push_dummy_call): Likewise.
6038 2004-06-04 Jim Blandy <jimb@redhat.com>
6040 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6041 gdbarch argument to register_size.
6043 * rs6000-tdep.c (rs6000_store_return_value): Use
6044 regcache_cooked_write_part instead of
6045 deprecated_write_register_bytes.
6046 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6047 not gdbarch_deprecated_store_return_value.
6049 * ppc-linux-nat.c (store_register, fetch_register): Remove
6050 incorrect assertions. Simplify and generalize handling of
6051 transfers whose sizes are not multiples of, or less than, sizeof
6054 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6056 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6057 as a new thread event.
6058 * thread-db.c (thread_get_info_callback): If the thread is a
6059 zombie, return TD_THR_ZOMBIE.
6060 (thread_from_lwp): If thread_get_info_callback returns
6061 TD_THR_ZOMBIE, check if the thread is still on the thread list
6062 and return a -1 ptid if not found.
6063 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6064 change the status to TARGET_WAITKIND_SPURIOUS.
6066 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6068 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6069 double values in little endian mode.
6071 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6073 Committed by Andrew Cagney.
6074 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6075 after last enum constant to avoid error from IBM C
6078 2004-06-02 Jim Blandy <jimb@redhat.com>
6080 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6081 to 'message', and make it local to the lone block that uses it.
6083 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6085 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6087 * ada-exp.y: Update copyright notice.
6090 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6091 SPECIAL_VARIABLE and unify the treatment of these cases.
6093 (write_attribute_call0): Remove.
6094 (write_attribute_call1): Remove.
6095 (write_attribute_calln): Remove.
6096 (save_qualifier): Add missing semicolon.
6098 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6099 temporarily disabled to allow compilation with FSF head version.
6101 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6102 use individual operators (OP_*) for all attributes.
6103 (exp syntax): Use write_int.
6104 Handle STRING literals with OP_STRING.
6105 (variable syntax): Add limit parameter to calls to
6106 write_object_renaming.
6108 (temp_parse_space): New definition to hold entities that need
6109 only live until the next call to ada_parse.
6110 (string_to_operator): Rename fields of ada_opname_table entries.
6112 (write_var_from_sym): Record block.
6113 (write_var_from_name): Minor reformatting.
6114 Make sure saved name is properly encoded in the case of multiple
6115 matches, and set its language to Ada.
6117 Modify to indicate unresolved name as symbol in the UNRESOLVED
6118 namespace, allocated in temp_parse_space.
6119 (write_int): New function.
6121 (write_object_renaming): Add max_depth parameter to limit
6122 chains of object renamings.
6123 Handle case where root of renaming expression is itself a renaming.
6124 Use temp_parse_space for temporary name buffer.
6125 Handle renamings to dereferenced pointers (___XEXA suffices).
6127 (ada_parse, yyerror, string_to_operator,
6128 write_var_from_sym, write_var_from_name, write_attribute_call0,
6129 write_attribute_call1, write_attribute_calln,
6130 write_object_renaming): Protoize.
6132 (_initialize_ada_exp): New function.
6134 * ada-lang.c: Update copyright notice.
6135 General terminology change to conform to GNAT compiler usage:
6136 mangle => encode, demangle => decode
6137 Include gdb_obstack.h.
6146 (ADA_RETAIN_DOTS): Make sure this is defined.
6147 (TRUNCATION_TOWARDS_ZERO): Define.
6148 (struct string_vector): Define.
6149 (unresolved_names): Remove definition.
6150 (xnew_string_vector): New function.
6151 (string_vector_append): New function.
6152 (extract_string): Make static.
6153 (ada_unqualified_name): New function.
6154 (add_angle_brackets): New function.
6155 (function_name_from_pc): New function.
6156 (place_on_stack): Rename to ensure_lval.
6158 (ensure_lval): Renamed from place_on_stack.
6159 Make identity on lvals.
6161 (is_nonfunction): New interface.
6162 Only symbols in LOC_CONST class can be enumerals.
6163 (fill_in_ada_prototype): Remove; now independent of language.
6164 (add_defn_to_vec): Add obstack and symtab arguments.
6165 Use obstack to hold collected definitions.
6166 (num_defns_collected): New function.
6167 (defns_collected): New function.
6168 (ada_resolve_subexp): Rename to resolve_subexp.
6169 (resolve_subexp): Renamed from ada_resolve_subexp.
6170 (ada_op_name): Return non-const result.
6171 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6174 (to_fixed_array_type): Add declaration.
6175 (coerce_unspec_val_to_type): Remove offset parameter.
6176 (find_sal_from_funcs_and_line): New interface.
6177 (find_line_in_linetable): Ditto.
6179 (all_sals_for_line): Rename to ada_sals_for_line and make
6181 Add new parameter. When set, do not ask the user to choose the
6182 instance, but use the first one found instead.
6183 Use given line number in returned sals.
6185 Skip the prologue if funfirstline is set.
6186 Correct for memory leak when 0 lines found.
6188 (value_pos_atr): Use pos_atr.
6189 (pos_atr): New function.
6190 (standard_lookup): Add block parameter.
6192 (makeTimeStart): Remove declaration and uses.
6193 (makeTimeStop): Remove declaration and uses.
6195 (ada_completer_word_break_characters): Allow for VMS.
6196 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6197 (raise_sym_name): New constant.
6198 (raise_unhandled_sym_name): New constant.
6199 (raise_assert_sym_name): New constant.
6200 (process_raise_exception_name): New constant.
6201 (longest_exception_template): New constant.
6202 (warning_limit): New variable to limit warnings during expression
6204 (warnings_issued): New variable to keep track of warnings issued.
6205 (known_runtime_file_name_patterns): New constant.
6206 (known_auxiliary_function_name_patterns): New constant.
6207 (symbol_list_obstack): New variable.
6209 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6210 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6211 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6212 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6213 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6214 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6215 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6216 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6219 (ada_get_field_index): New function.
6220 (lim_warning): New function.
6221 (ada_translate_error_message): New function.
6222 (MAX_OF_SIZE): New function.
6223 (MIN_OF_SIZE): New function.
6224 (UMAX_OF_SIZE): New function.
6225 (UMIN_OF_SIZE): New function.
6226 (discrete_type_high_bound): New function.
6227 (discrete_type_low_bound): New function.
6228 (base_type): New function.
6229 (do_command): Remove.
6231 (ada_update_initial_language): Use language_ada, not language_unknown.
6232 (ada_encode): Renamed from ada_mangle.
6233 Obey ADA_RETAIN_DOTS.
6234 (ada_decode): Renamed from ada_demangle.
6235 Update coding conventions.
6236 (decoded_names_store): New hash table.
6237 (ada_decode_symbol): New function.
6238 (ada_la_decode): New function.
6240 (modify_general_field): Correct computations of offset and bit
6242 (desc_base_type): Handle ref types, too.
6243 (ada_is_direct_array_type): New function.
6245 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6246 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6247 (ada_is_bogus_array_descriptor,ada_type_of_array,
6248 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6249 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6250 ada_is_array_descriptor_type.
6252 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6253 (ada_is_packed_array_type): Handle pointers or
6254 references to packed arrays as well.
6255 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6256 (decode_packed_array_type): Search for the packed array type
6257 symbol in the currently selected block and associated
6259 Use lookup_symbol again.
6261 (decode_packed_array): Handle pointers and references.
6262 Update call to coerce_unspec_val_to_type.
6263 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6264 (ada_value_primitive_packed_val): Improve comment.
6266 (ada_index_type): Substitute int type for "undefined".
6267 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6268 ada_array_langth, ada_is_string_type): Use renamed
6269 ada_is_simple_array_type.
6270 (empty_array): New function.
6272 (ada_resolve): Rename to resolve.
6273 (resolve): Make static.
6274 Call renamed resolve_subexp.
6276 (ada_resolve_subexp): Rename to resolve_subexp.
6277 (resolve_subexp): Update comment.
6278 Decomment disabled code.
6279 Add LOC_COMPUTED* cases.
6280 Modify to use temporary struct symbols (marked as being in
6281 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6282 OP_UNRESOLVED_VALUE.
6283 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6286 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6287 Use new ada_lookup_symbol_list interface.
6288 Use new ada_resolve_function interface.
6289 Remove OP_TYPE case.
6291 (ada_args_match): Idiot proof against null actuals.
6292 Use intermediate variables to clarify.
6293 (ada_resolve_function): Update comment and interface.
6294 (mangled_ordered_before): Rename to encoded_ordered_before and
6296 (sort_choices): Update comment and interface.
6297 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6298 (user_select_syms): New interface.
6299 Use new sort_choices interface.
6300 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6301 (possible_user_operator_p): Idiot-proof against null values.
6302 (ada_simple_renamed_entity): Don't make cleanup; rely on
6303 caller to free result string.
6304 Remove const from return type.
6305 (make_array_descriptor): Rename uses of place_on_stack to
6307 Make sure that arrays are on stack.
6309 (HASH_SIZE): Define.
6310 (struct cache_entry): Define.
6311 (cache_space): Define.
6313 (clear_ada_sym_cache): New function.
6314 (find_entry): New function.
6315 (lookup_cached_symbol): New function.
6316 (defn_vector_size): Define.
6317 (cache_symbol): New function.
6318 (defn_symbols): Remove.
6320 (standard_lookup): Use lookup_symbol_in_language to get effect of
6324 (symbol_completion_match): New function.
6325 (symbol_completion_add): New function.
6326 (ada_make_symbol_completion_list): New function.
6328 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6329 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6330 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6331 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6333 (ada_lookup_simple_minsym): New function.
6334 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6336 (add_symbols_from_enclosing_procs): New interface.
6337 Conditionalize more helpfully.
6338 Don't bother if program isn't running.
6339 Use new interface to get_frame_block.
6340 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6342 (remove_extra_symbols): New interface.
6343 (xget_renaming_scope): New function.
6344 (is_package_name): New function.
6345 (renaming_is_visible): New function.
6346 (remove_out_of_scope_renamings): New function.
6348 (ada_lookup_symbol_list): New interface.
6349 Properly reinitialize the symbol list obstack.
6350 Don't call add_symbols_from_enclosing_procs if we start from a
6351 static or global block.
6352 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6353 add_symbols_from_enclosing_procs.
6354 Add symtab data to cached entries.
6355 Handle symbols prefixed with
6356 "standard__" specially; strip prefix and don't look in local symbols.
6357 Do not include out of scope renaming symbols in list of
6359 Add const to block parameter.
6360 Move check for non-local, non-global symbols earlier.
6361 Remove timing stuff.
6362 (ada_lookup_symbol): New interface.
6363 Find symtab as well.
6364 (ada_lookup_symbol_nonlocal): New function.
6366 (is_name_suffix): Enhance suffix detection to recognize
6367 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6368 (is_dot_digits_suffix): New function.
6369 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6371 (ada_add_block_symbols): New interface. Use obstack to return results
6372 in a vector of struct ada_symbol_infos. Add symtab argument.
6373 Use new interface to add_defn_to_vec.
6374 Remove calls to fill_in_ada_prototype.
6375 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6377 (ada_finish_decode_line_1): Add const qualification to local to fix
6379 Start looking in static block for functions to avoid attempts
6380 to search frame chain for up-level variables.
6381 Adapt to new ada_sals_for_line interface.
6382 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6383 Handle quoting of the function name inside the spec string.
6384 Skip prologue when funfirstline is set and update the
6385 function documentation to that effect.
6387 (debug_print_lines, debug_print_block, debug_print_blocks,
6388 debug_print_symtab): Remove.
6390 (ada_main_name): New function.
6391 (ada_exception_breakpoint_type): New function.
6392 (is_known_support_routine): New function.
6393 (ada_find_printable_frame): Renamed from find_printable_frame and made
6395 Remove level parameter.
6396 Use new interface to select_frame.
6398 (begin_command): Remove.
6399 (ada_adjust_exception_stop): New function.
6400 (ada_print_exception_stop): New function.
6401 (exception_name_from_cond): New function.
6402 (ada_report_exception_break): Replace disabled code with
6403 conditionalization on GNAT_GDB.
6404 Get the exception name from the condition string.
6405 Remove and move functionality into new functions
6406 ada_print_exception_breakpoint_task and
6407 ada_print_exception_breakpoint_nontask.
6408 (error_breakpoint_runtime_sym_not_found): New function.
6409 (is_runtime_sym_defined): New function.
6410 (ada_breakpoint_rewrite): Uncomment suppressed code.
6411 Use symbolic error-message and runtime-symbol names.
6412 Surround runtime symbol names in quotes.
6413 Allow non-specific breakpoints on exceptions and assertions before
6416 (ada_is_tagged_type): Add parameter.
6417 (ada_is_tag_type): New function.
6418 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6419 (ada_variant_discrim_type): Ditto.
6420 (value_tag_from_contents_and_address): New function.
6421 (type_from_tag): New function.
6422 (struct tag_args): New structure used to communicate with
6424 (ada_tag_name_1): New function.
6425 (ada_tag_name): New function.
6427 (ada_scan_number): Update comment.
6428 (find_struct_field): New function.
6429 (ada_search_struct_field): Make static.
6430 (ada_value_struct_elt): New version that returns references when
6431 given pointers or references to structs.
6432 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6433 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6435 (ada_value_ind): Use new ada_to_fixed_value interface.
6436 (ada_coerce_ref): Ditto.
6437 (field_offset): Remove.
6439 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6440 (ada_find_renaming_symbol): New function.
6441 (ada_prefer_type): Prefer named types over unnamed ones.
6442 (variant_field_index): New function.
6443 (contains_variant_part): Removed: subsumed by variant_field_index.
6444 (ada_template_to_fixed_record_type): New function, mostly from
6445 template_to_fixed_record_type.
6446 (template_to_fixed_record_type):
6447 Do not scan the type fields beyond the last one; prevents a
6449 Handle case where variant field is listed BEFORE discriminant it
6451 Fix calculation of record length when bit length is
6452 not evenly divisible by char length.
6453 Move code to ada_template_to_fixed_record_type and call it.
6455 (template_to_static_fixed_type): Revise comment.
6456 Modify to work on ordinary record types as well as templates,
6457 so as to handle fields that use ___XVE or ___XVU encodings.
6458 (to_record_with_fixed_variant_part): Fill out comment.
6459 Initialize C++ stuff in right type.
6460 Allow case where DVAL is null.
6461 Handle case where variant field is not last.
6462 Fix typo concerning record length.
6463 (to_fixed_record_type): Decomment disabled code.
6464 (to_fixed_record_type): Use variant_field_index instead of
6465 contains_variant_part.
6466 (to_fixed_variant_branch_type): Ditto.
6467 (to_fixed_array_type): Decomment disabled code.
6468 (ada_to_fixed_type): Convert tagged types to the specific type.
6469 Deactivate the size-check for array types in order to avoid
6470 some false size alarms.
6471 (to_static_fixed_type): Decomment disabled code.
6472 Modify to call template_to_static_fixed_type
6473 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6474 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6475 Remove valaddr argument, as it is never really used.
6476 (ada_to_fixed_value): Change interface to act on single struct value*
6478 (adjust_pc_past_prologue): New function.
6479 (ada_attribute_name): Modify to take enum exp_opcode argument.
6481 (ada_enum_name): Recognize new homonym-distinguishing convention.
6482 Adjust local variable's type to remove compiler warning.
6483 Fix a small problem in the part that unqualifies the enumeration name.
6484 (ada_value_binop): New function.
6485 (ada_value_equal): New function.
6487 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6488 Don't give error message when not doing normal evaluation
6489 and a tagged type doesn't seem to contain a structure member.
6490 Give error message for packed arrays.
6491 For indexing arrays, handle pointers to packed arrays correctly.
6492 Handle case of 'first and 'last attributes of bare integral type
6493 without encoded subtype info.
6494 Remove some unnecessary casts.
6495 Fix uninitialized value of type in computing 'first, 'last, or 'length
6497 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6498 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6500 Attributes are now exp_opcode values.
6501 Correct treatment of 'modulus.
6502 Better error message for taking 'length of wrong kind of type;
6504 Change EVAL_NORMAL to noside for consistency.
6505 Use ada_value_binop for DIV, MOD, REM.
6506 Make special case out of array of length 0, since an argument
6507 of 0 upsets some platforms' malloc.
6508 Use OP_STRING instead of OP_ARRAY.
6509 For slice, add check that we have an array type before extracting
6510 a slice out of it. Avoids a SEGV.
6511 When evaluating an array slice, if the array type is a reference to
6512 an aligner type, then replace the aligner type by the actual type.
6513 Decomment disabled code.
6514 Remove some dead code.
6515 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6516 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6517 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6518 and UNOP_MBR to UNOP_IN_RANGE.
6519 If an array type has a parallel ___XVE type, then use it.
6520 Turn arrays into pointers for lvalue arrays.
6521 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6522 bounds error and handle 0-length slices.
6524 When selecting fields, apply ada_to_fixed_value (because the fields
6525 might have ___XVU or ___XVE encodings even if not dynamic.)
6526 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6527 (ada_is_system_address_type): New function.
6529 (get_var_value): Use new interface to ada_lookup_symbol_list.
6530 (get_int_var_value): New interface.
6531 (to_fixed_range_type): Allow unknown bound, with warning.
6532 (ada_is_modular_type): Decomment disabled code.
6533 (ADA_OPERATORS): New definition.
6534 (ada_operator_length): New function.
6535 (ada_expr_op_name): New function.
6536 (ada_forward_operator_length): New function.
6537 (ada_dump_subexp_body): New function.
6538 (ada_print_subexp): New function.
6539 (ada_exp_descriptor): New constant.
6540 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6541 (ada_language_defn): Add ada_exp_descriptor entry.
6542 Change ada_parse => parse.
6543 Add post-parser entry.
6544 Use ada-specific non-local symbol lookup.
6545 Don't use C-style arrays.
6546 String lower-bound is 1.
6547 Decomment disabled code.
6548 (parse): New function.
6549 New fields ada_translate_error_message, ada_lookup_symbol,
6550 ada_lookup_minimal_symbol.
6552 * ada-lang.h: Update copyright dates.
6553 Replace the mangle/demangle terminology throughout by the
6554 more appropriate encode/decode one.
6555 Include breakpoint.h.
6556 Forward declare struct partial_symbol, struct block.
6557 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6558 (EXTRACT_ADDRESS): Remove.
6559 (EXTRACT_INT): Remove.
6560 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6561 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6562 (MAX_RENAMING_CHAIN_LENGTH): Define.
6563 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6565 (enum task_states): Remove.
6566 ada_task_states: Remove.
6567 (fat_string): Remove.
6568 (struct entry_call): Remove.
6569 (struct task_fields): Remove.
6570 (struct task_entry): Remove.
6572 (struct ada_symbol_info): Define.
6573 (enum ada_attribute): Remove.
6574 (enum ada_operator): Define.
6576 (ada_get_field_index): Declare.
6577 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6578 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6579 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6580 (ada_lookup_symbol_list): New interface.
6581 (ada_decode_symbol): Declare.
6582 (ada_decode): Declare.
6583 (ada_lookup_symbol): New interface.
6584 (ada_update_initial_language): Declare.
6585 (ada_lookup_simple_minsym): Declare.
6586 (user_select_syms): New interface.
6587 (ada_sals_for_line): Declare.
6588 (ada_is_tagged_type): New interface.
6589 (ada_tag_name): Declare.
6590 (ada_lookup_struct_elt_type): Remove declaration.
6591 (ada_search_struct_field): Remove declaration.
6592 (ada_attribute_name): New interface.
6593 (ada_is_system_address_type): Declare.
6594 (ada_to_fixed_value): Remove declaration.
6595 (ada_template_to_fixed_record_type_1): Declare.
6596 (get_int_var_value): New interface.
6597 (ada_find_any_symbol): Declare.
6598 (ada_find_renaming_symbol): Declare.
6599 (ada_mangle): Rename to ada_encode.
6600 (ada_simple_renamed_entity): Remove const.
6601 (ada_main_name): Declare.
6602 (get_current_task): Rename to ada_get_current_task.
6603 (get_entry_number): Remove declaration.
6604 (ada_report_exception_break): Remove declaration.
6605 (ada_print_exception_breakpoint_nontask): Declare.
6606 (ada_print_exception_breakpoint_task): Declare.
6607 (ada_find_printable_frame): Declare.
6609 * ada-lex.l: Update copyright notices.
6610 Use xmalloc and xfree instead of malloc and free.
6611 Use new interface to name_lookup.
6612 Use new interface to
6613 ada_mangle=>ada_encode.
6614 Redo handling of '$...' variable to parallel current treatment
6616 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6617 digit_to_int, strtoulst, processInt, processReal, processId,
6618 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6621 (processInt): Use cast to remove harmless warning.
6622 (processReal): Modify to get rid of compiler warning on scan formats.
6624 (processId): Replace xmalloc with obstack_alloc for name and remove
6625 call to ada_name_string_cleanup.
6626 Remove obsolete disabled code.
6627 (name_lookup): Ditto.
6629 Use obsavestring on temp_parse_space instead of savestring
6630 on name, and remove call to ada_name_string_cleanup.
6631 Free string returned from ada_simple_renamed_entity.
6632 Use new interface to ada_lookup_symbol_list.
6633 Decomment disabled code.
6634 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6636 When a type name lookup succeeds as a result of
6637 lookup_primitive_typename, check for regular type entry that has not
6639 Limit length of chain of renamed symbols we are willing to follow.
6640 Do not break names beginning with "standard__" into segments.
6641 (block_lookup): Use new interface to ada_lookup_symbol_list.
6643 * ada-typeprint.c: Update copyright notice.
6644 (demangled_type_name): Rename to decoded_type_name.
6645 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6646 (print_range_bound): Correct handling of negative
6647 bounds that make the index type looked unsigned under STABS.
6648 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6649 (print_range_type_named): Use the builtin int type if no type
6650 corresponding to the given type name could be found.
6651 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6652 Add some bullet-proofing.
6653 (print_variant_clauses): Allow for variant branches with ___XVU
6654 encodings that are not dynamic fields.
6655 Use new interface to ada_is_tagged_type.
6656 (print_record_type): Allow for fields with ___XVE encodings that
6657 are not dynamic fields.
6658 Use new interface to ada_is_tagged_type.
6659 (ada_print_type): ada_is_array_descriptor =>
6660 ada_is_array_descriptor_type.
6662 * ada-valprint.c: Update copyright notice.
6663 Include gdb_string.h
6665 (ui_memcpy): New function.
6666 (ada_print_floating): New function.
6667 (ada_print_str): Order arguments correctly.
6668 Correct handling of empty arrays and arrays of 0-length items.
6669 ada_is_array_descriptor => ada_is_array_descriptor_type
6670 Print values of type System.Address in hexadecimal format.
6671 Use ada_print_floating to print floating-point numbers in Ada format.
6672 Print class tag values with type names.
6673 No longer print the address of reference values. Avoids
6674 a potential confusion.
6675 (ada_value_print): Stop printing the object type for reference
6676 values, but preserve that behavior for access types. Avoids
6677 a potential confusion.
6678 Simplify one conditional expression, as the first part is now
6680 ada_is_array_descriptor => ada_is_array_descriptor_type
6681 Add check for arrays for null records, and print them by hand.
6683 2004-06-01 Jim Blandy <jimb@redhat.com>
6685 * ppc-tdep.h: Delete unused 'regoff' member.
6686 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6688 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6691 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6692 (hpread_read_struct_type): Likewise.
6694 2004-06-01 Andrew Cagney <cagney@gnu.org>
6696 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6697 instead of xasprintf.
6698 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6699 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6700 (mi_cmd_data_list_register_names)
6701 (mi_cmd_data_list_changed_registers)
6702 (mi_cmd_data_list_register_values)
6703 (get_register, mi_cmd_data_write_register_values)
6704 (mi_cmd_data_write_register_values)
6705 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6706 (mi_cmd_target_download, mi_cmd_target_select)
6707 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6708 (mi_execute_cli_command, mi_execute_async_cli_command)
6709 (mi_execute_async_cli_command): Ditto.
6710 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6711 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6713 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6714 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6715 error_last_message instead of mi_error_last_message.
6716 * mi/mi-main.c (mi_error_last_message): Delete function.
6718 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6719 "invalid number of columns" error. Delete redundant "out of
6722 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6724 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6725 (gregset_t, fpregset_t): Remove typedefs.
6726 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6727 (REG_OFFSET): Rename argument.
6728 (i386bsd_r_reg_offset): Rename from reg_offset.
6729 (REG_ADDR): Remove macro.
6730 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6732 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6733 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6734 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6735 instead of supply_gregset.
6736 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6737 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6738 instead of fill_gregset.
6739 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6741 * i386bsd-nat.c: Don't include "gregset.h".
6742 (supply_gregset, fill_gregset): Make static.
6743 (supply_fpregset, fill_fpregset): Remove.
6744 * Makefile.in (i386bsd-nat.o): Update dependencies.
6746 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6748 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6749 "gdb_assert.h". Con't include "gregset.h".
6750 (fbsd_make_corefile_notes): Use regset-based core file support
6751 instead off fill_gregset and fill_fpregset.
6752 * Makefile.in (fbsd-proc.o): Update dependencies.
6754 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6756 (m88k_frame_prev_register): Simplify code a bit.
6758 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6759 (amd64_collect_fpregset): New function.
6760 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6762 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6764 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6765 (i386_collect_gregset): New function.
6766 (i386_supply_fpregset): Adjust comment.
6767 (i386_collect_fpregset): New function.
6768 (i386_regset_from_core_section): Use i386_collect_gregset and
6769 i386_collect_fpregset.
6771 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6772 handle VALUEP being null.
6774 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6776 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6778 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6780 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6781 assembler in OpenBSD 3.5-current.
6782 (amd64obsd_sigcontext_addr): Likewise.
6784 2004-05-28 Jim Blandy <jimb@redhat.com>
6786 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6787 register set, so our regcache isn't declared "legacy" and our E500
6788 pseudoregister read and write functions aren't ignored.
6789 (rs6000_register_byte, rs6000_register_raw_size,
6790 rs6000_register_virtual_type, rs6000_register_convertible,
6791 rs6000_register_convert_to_virtual,
6792 rs6000_register_convert_to_raw): Deleted.
6793 (rs6000_register_type, rs6000_convert_register_p,
6794 rs6000_register_to_value, rs6000_value_to_register): New
6796 (rs6000_gdbarch_init): Don't register
6797 gdbarch_deprecated_register_size,
6798 gdbarch_deprecated_register_bytes,
6799 gdbarch_deprecated_register_byte,
6800 gdbarch_deprecated_register_raw_size,
6801 gdbarch_deprecated_register_virtual_type,
6802 gdbarch_deprecated_register_convertible,
6803 gdbarch_deprecated_register_convert_to_virtual, or
6804 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6805 register gdbarch_register_type, gdbarch_convert_register_p,
6806 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6808 2004-05-26 Jim Blandy <jimb@redhat.com>
6810 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6811 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6812 functions, updated to match the register numberings used in GCC.
6813 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6814 rs6000_dwarf2_reg_to_regnum as register number conversions
6815 functions for STABS and Dwarf2.
6817 2004-05-26 Randolph Chung <tausq@debian.org>
6819 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6822 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6824 * NEWS: Document new "start" command.
6826 2004-05-25 Randolph Chung <tausq@debian.org>
6828 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6831 2004-05-25 Randolph Chung <tausq@debian.org>
6833 * hppa-hpux-tdep.c (offsetof): Define.
6834 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6835 (hppa32_hpux_frame_base_before_sigtramp)
6836 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6837 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6838 (hppa64_hpux_frame_base_before_sigtramp)
6839 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6841 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6842 (hppa_hpux_sigtramp_frame_unwind_cache)
6843 (hppa_hpux_sigtramp_frame_this_id)
6844 (hppa_hpux_sigtramp_frame_prev_register)
6845 (hppa_hpux_sigtramp_frame_unwind)
6846 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6847 (hppa_hpux_init_abi): Register sigtramp unwinder.
6848 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6850 2004-05-25 Randolph Chung <tausq@debian.org>
6852 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6853 and multiple stack unwinds.
6854 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6856 2004-05-25 Andrew Cagney <cagney@gnu.org>
6858 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6859 * symfile-mem.h: Delete file.
6860 * symfile-mem.c: Do not include "symfile-mem.h".
6861 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6862 "struct bfd_section". When an error do not bother returning NULL.
6863 (add_symbol_file_from_memory_command): Use "struct bfd" and
6864 "struct bfd_section".
6865 * Makefile.in (symfile_mem_h): Delete.
6866 (symfile-mem.o): Update dependencies.
6868 2004-05-25 Nick Roberts <nickrob@gnu.org>
6870 * gdb-mi.el: New file.
6872 2004-05-25 Andrew Cagney <cagney@gnu.org>
6874 * inftarg.c: Include "observer.h".
6875 (child_attach, child_create_inferior): Notify inferior_created.
6876 * corelow.c: Include "observer.h".
6877 (core_open): Notify inferior_created.
6878 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6880 2004-05-25 Andrew Cagney <cagney@gnu.org>
6882 * target.h (struct target_ops): Add from_tty to
6884 (target_create_inferior, find_default_create_inferior): Update.
6885 * infcmd.c (run_command): Update.
6886 * wince.c (child_create_inferior): Update.
6887 * win32-nat.c (child_create_inferior): Update.
6888 * uw-thread.c (uw_thread_create_inferior): Update.
6889 * thread-db.c (thread_db_create_inferior): Update.
6890 * target.c (debug_to_create_inferior)
6891 (find_default_create_inferior): Update.
6892 (maybe_kill_then_create_inferior): Update.
6893 * sol-thread.c (sol_thread_create_inferior): Update.
6894 * remote.c (extended_remote_async_create_inferior)
6895 (extended_remote_create_inferior): Update.
6896 * remote-vx.c (vx_create_inferior): Update.
6897 * remote-st.c (st2000_create_inferior): Update.
6898 * remote-sim.c (gdbsim_create_inferior): Update.
6899 * remote-sds.c (sds_create_inferior): Update.
6900 * remote-rdp.c (remote_rdp_create_inferior): Update.
6901 * remote-rdi.c (arm_rdi_create_inferior): Update.
6902 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6903 * remote-e7000.c (e7000_create_inferior): Update.
6904 * procfs.c (procfs_create_inferior): Update.
6905 * ocd.c (ocd_create_inferior): Update.
6906 * ocd.h (ocd_create_inferior): Update.
6907 * nto-procfs.c (procfs_create_inferior): Update.
6908 * monitor.c (monitor_create_inferior): Update.
6909 * lin-lwp.c (lin_lwp_create_inferior): Update.
6910 * inftarg.c (child_create_inferior): Update.
6911 * hpux-thread.c (hpux_thread_create_inferior): Update.
6912 * gnu-nat.c (gnu_create_inferior): Update.
6914 2004-05-25 Andrew Cagney <cagney@gnu.com>
6916 * MAINTAINERS: Update e-mail address.
6918 2004-05-24 Randolph Chung <tausq@debian.org>
6920 * thread.c (info_threads_command, thread_apply_all_command)
6921 (thread_apply_command, thread_command, do_captured_thread_select):
6922 Remove HPUXHPPA-specific code.
6924 2004-05-24 Randolph Chung <tausq@debian.org>
6926 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6928 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6931 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6933 * infcmd.c (kill_if_already_running): New function, extracted
6935 (run_command): Replace extracted code by call to
6936 kill_if_already_running().
6937 (start_command): New function.
6938 (_initialize_infcmd): Add "start" command.
6940 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6942 Add OpenBSD/m88k support.
6943 * NEWS (New native configurations): Mention OpenBSD/m88k.
6944 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6945 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6946 * Makefile.in (m88k_tdep_h): New variable.
6947 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6948 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6949 * configure.host: Add m88*-*-openbsd*.
6950 * configure.tgt: Add m88*-*-openbsd*.
6952 2004-05-24 Jim Blandy <jimb@redhat.com>
6954 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6957 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6959 * symtab.c (fixup_section): Search section table when lookup by
6962 2004-05-24 Randolph Chung <tausq@debian.org>
6964 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6967 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6969 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6970 register number in regcache_raw_collect call.
6971 (m68kbsd_collect_fpregset): Likewise.
6972 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6974 * regset.h (struct regset): Add back `regset' member.
6976 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6978 * configure.in: Check for td_pcb in `struct thread'.
6979 * configure, config.in: Regenerated.
6981 * dpx2-nat.c: Remove file.
6982 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6983 (dpx2-nat.o): Remove dependencies.
6985 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6986 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6987 (amd64obsd_supply_pcb): New function.
6988 (_initialize_amd64obsd_nat): Enable libkvm interface.
6989 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6990 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6991 (LOADLIBES): New variable.
6993 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6994 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6995 (sparc32nbsd_supply_pcb): New function.
6996 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6997 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6998 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6999 (LOADLIBES): New variable.
7001 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7003 * bsd-kvm.c, bsd-kvm.h: New files.
7004 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7006 (i386fbsd_supply_pcb): New function.
7007 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7008 (i386fbsd-nat.o): Update dependencies.
7009 (bsd_kvm_h): New variable.
7010 (bsd-kvm.o): New dependency.
7011 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7012 (LOADLIBES): New variable.
7014 * regset.c: Tweak comment.
7015 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7017 * regset.h: Update copyright year.
7018 (struct regset): Remove `descr' member, add `gdbarch' member.
7019 (regset_alloc): Adjust prototype and comment.
7020 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7021 (i386_supply_fpregset): Likewise.
7022 (i386_regset_from_core_section): Update call to regset_alloc.
7023 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7025 (i386obsd_aout_regset_from_core_section): Update call to
7027 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7029 (i386nbsd_aout_regset_from_core_section): Update call to
7031 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7033 (amd64_regset_from_core_section): Update call to regset_alloc.
7034 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7036 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7037 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7038 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7039 (sparc32nbsd_init_abi): Update call to regset_alloc.
7040 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7041 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7042 (sparc64obsd_init_abi): Update call to regset_alloc.
7043 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7044 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7045 (sparc64nbsd_init_abi): Update call to regset_alloc.
7046 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7047 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7048 (sparc64fbsd_init_abi): Update call to regset_alloc.
7050 2004-05-22 Jim Blandy <jimb@redhat.com>
7052 * ppc-tdep.h (spe_register_p): New declaration.
7053 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7055 * rs6000-tdep.c (spe_register_p): New function.
7056 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7058 (rs6000_gdbarch_init): Initialize the new members of the tdep
7061 2004-05-21 Jim Blandy <jimb@redhat.com>
7063 * ppc-linux-nat.c (fetch_register): Move code back to be next
7064 to the comment that describes it. (Moved code, instead of
7065 comment, for symmetry with store_register.)
7067 Allocate regset structures in the gdbarch's obstack, not using
7069 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7070 Add 'arch' argument. Allocate the regset on arch's obstack, not
7072 * regset.h (regset_alloc): Update declaration.
7073 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7075 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7076 * i386-tdep.c (i386_regset_from_core_section): Same.
7077 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7078 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7079 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7080 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7081 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7082 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7084 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7086 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7088 2004-05-21 Jim Blandy <jimb@redhat.com>
7090 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7091 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7093 2004-05-20 Jim Blandy <jimb@redhat.com>
7095 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7097 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7099 * regset.h: Make prototype const-correct.
7100 * regset.c (regset_xmalloc): Make const-correct.
7102 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7104 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7105 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7106 (symbol_search_name): Declare.
7108 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7109 (iter_name_next_hashed): Ditto.
7110 (iter_name_next_linear): Ditto.
7111 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7113 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7114 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7115 (symbol_search_name): New function.
7117 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7119 * minsyms.c (build_minimal_symbol_hash_tables): Change
7120 test for adding to demangled hash table to check for difference
7121 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7123 2004-05-19 Jim Blandy <jimb@redhat.com>
7125 Use a constructor function to create regset structures.
7126 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7127 (struct regset): Use supply_regset_ftype. Add new
7128 'collect_regset' member.
7129 (regset_xmalloc): New declaration.
7130 * regset.c: New file.
7131 * am64-tdep.c (amd64_regset_from_core_section): Use
7132 regset_xmalloc to construct regset structures.
7133 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7134 * i386-tdep.c (i386_regset_from_core_section): Same.
7135 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7136 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7137 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7138 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7139 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7140 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7141 * Makefile.in (COMMON_OBS): Add regset.o.
7142 (regset.o): New rule.
7144 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7146 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7147 and pthread_cond_wait.c.
7149 2004-05-18 Jim Blandy <jimb@redhat.com>
7151 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7152 before the mach-specific switch, and then let the individual cases
7153 override the defaults, rather than leaving them uninitialized
7154 until the switch and then setting them in each case.
7156 2004-05-18 Randolph Chung <tausq@debian.org>
7158 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7159 millicode functions.
7161 2004-05-18 Randolph Chung <tausq@debian.org>
7163 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7164 references to dld_flags_buffer consistent.
7166 2004-05-18 Randolph Chung <tausq@debian.org>
7168 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7169 it for unwinding the stack.
7171 2004-05-18 Randolph Chung <tausq@debian.org>
7173 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7174 Undefine these so we can overide them using gdbarch.
7176 2004-05-18 Randolph Chung <tausq@debian.org>
7178 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7179 handling for 64-bit HPUX (elf).
7181 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7183 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7185 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7186 * ia64-tdep.c (examine_prologue): Likewise.
7187 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7188 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7190 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7192 * vax-tdep.c (vax_return_value): Implement
7193 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7195 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7197 * vax-tdep.c (vax_return_value): Fix typo.
7199 2004-05-17 Andrew Cagney <cagney@redhat.com>
7201 * MAINTAINERS: Mark Salter was also responsible for
7204 * NEWS: Mention signal fixes.
7206 2004-05-17 Randolph Chung <tausq@debian.org>
7208 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7209 check to see if we are unwinding an export stub. Export stubs clobber
7210 the %rp in the call path and stores the original rp in a stack slot.
7212 2004-05-17 Jim Blandy <jimb@redhat.com>
7214 * MAINTAINERS: Update address for J.T. Conklin.
7216 2004-05-17 Randolph Chung <tausq@debian.org>
7218 * hppa-tdep.c: Remove superfluous #include's.
7219 * Makefile.in (hppa-tdep.o): Update dependencies.
7221 2004-05-17 Randolph Chung <tausq@debian.org>
7223 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7224 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7225 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7226 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7227 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7228 Remove static function declarations.
7230 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7232 * alphabsd-nat.c: Update copyright year.
7233 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7235 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7238 * m68k-tdep.c (m68k_svr4_return_value): Implement
7239 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7241 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7243 * sol-thread.c Update copyright year. Fix various coding
7244 standards violations. Tweak a few comments.
7245 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7248 2004-05-15 Randolph Chung <tausq@debian.org>
7250 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7251 as pointer instead of array reference since HPUX compiler does
7252 not accept unsized array arguments.
7253 * somsolib.c (dld_flags_buffer): Use constant array size.
7255 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7257 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7258 offset with decimal offset.
7259 (amd64obsd_sigcontext_addr): Return correct address for entire
7262 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7263 instead of get_frame_base.
7265 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7266 (fill_gregset): Use regcache_raw_collect.
7268 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7271 * config/sparc/tm-nbsd64.h: Remove file.
7272 * config/tm-sunos.h: Remove file.
7274 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7276 * rs6000-tdep.c (store_param_on_stack_p): New function,
7277 an improved version of some code extracted from skip_prologue().
7278 (skip_prologue): Use store_param_on_stack_p() to detect
7279 instructions saving a parameter on the stack. Detect when r0
7280 is used to save a parameter.
7281 Do not mark "li rx, SIMM" instructions as part of the prologue,
7282 unless the following instruction is also part of the prologue.
7284 2004-05-14 Andrew Cagney <cagney@redhat.com>
7286 * infrun.c (handle_inferior_event): Simplify
7287 STEP_OVER_UNDEBUGGABLE.
7289 * infrun.c (handle_step_into_function): Delete function.
7290 (handle_inferior_event): Inline calls to
7291 handle_step_into_function.
7293 2004-05-14 Jerome Guitton <guitton@gnat.com>
7295 * rs6000-nat.c: Fix a comment.
7297 2004-05-12 David Anderson <davea@sgi.com>
7299 Committed by Jim Blandy <jimb@redhat.com>:
7300 * regcache.c (struct regcache_descr): fix comment spelling.
7302 2004-05-13 J. Brobecker <brobecker@gnat.com>
7304 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7305 Fixes a link link failure.
7307 2004-05-13 J. Brobecker <brobecker@gnat.com>
7309 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7310 error that was causing the build to fail.
7312 2004-05-13 J. Brobecker <brobecker@gnat.com>
7314 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7315 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7317 2004-05-13 Andrew Cagney <cagney@redhat.com>
7319 * infrun.c (handle_inferior_event): Check for
7320 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7321 calls. Update comments.
7323 2004-05-13 Jim Blandy <jimb@redhat.com>
7325 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7326 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7327 (store_regs_user_thread, store_regs_kernel_thread): Use
7328 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7329 * ppc-linux-nat.c (fill_gregset): Same.
7330 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7331 (ppc_linux_sigtramp_cache): Same.
7332 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7333 (ppcnbsd_sigtramp_cache_init): Same.
7334 * rs6000-nat.c (fetch_core_registers): Same.
7335 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7336 (rs6000_frame_cache): Same.
7338 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7339 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7340 of assuming that the gprs are numbered starting with zero.
7341 * ppc-linux-nat.c (fill_gregset): Same.
7342 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7343 * ppcnbsd-nat.c (getregs_supplies): Same.
7344 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7345 * rs6000-nat.c (fetch_core_registers): Same.
7346 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7348 2004-05-07 Michael Snyder <msnyder@redhat.com>
7350 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7351 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7353 2004-05-13 Andrew Cagney <cagney@redhat.com>
7355 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7357 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7359 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7360 base_address for shared libraries.
7362 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7364 * MAINTAINERS (write after approval): Add myself.
7366 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7368 * breakpoint.c (bpstat_stop_status): Add new argument
7369 STOPPED_BY_WATCHPOINT. Use it instead of testing
7370 target_stopped_data_address agaist 0 to check whether
7371 or not we stopped due to a hardware watchpoint.
7372 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7373 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7376 2004-05-12 Jim Blandy <jimb@redhat.com>
7378 * configure.in: When checking whether we should use the -bbigtoc
7379 option, don't forget to restore the original value of LDFLAGS.
7380 * configure: Regenerated.
7382 2004-05-12 Andrew Cagney <cagney@redhat.com>
7384 * thread.c (load_infrun_state): Delete step_sp.
7385 * infrun.c (context_switch): Ditto.
7386 * inferior.h (step_sp): Ditto.
7387 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7388 * gdbthread.h (struct thread_info, save_infrun_state)
7389 (restore_infrun_state): Ditto.
7391 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7393 * MAINTAINERS (write after approval): Add myself.
7395 2004-05-12 Andrew Cagney <cagney@redhat.com>
7397 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7398 eliminate reference to step_sp.
7399 (struct execution_control_state, init_execution_control_state)
7400 (handle_inferior_event, keep_going): Delete update_step_sp and
7402 * infcmd.c (step_sp): Note that variable is unused.
7404 2004-05-11 Andrew Cagney <cagney@redhat.com>
7406 * infrun.c (step_over_function): Delete function.
7407 (handle_step_into_function): Use insert_step_resume_breakpoint.
7408 (insert_step_resume_breakpoint): Fix assertion.
7410 2004-05-11 Nick Roberts <nickrob@gnu.org>
7412 * utils.c (defaulted_query): Just use the normal query input type
7413 when printing the annotations.
7415 2004-05-11 Andrew Cagney <cagney@redhat.com>
7417 * infrun.c (handle_inferior_event): Simplify code handling
7418 step-into or return-from a signal trampoline.
7420 2004-05-11 Andrew Cagney <cagney@redhat.com>
7422 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7423 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7425 2004-05-10 Jim Blandy <jimb@redhat.com>
7427 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7428 with a call to internal_error.
7430 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7431 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7432 processor variant lacks those registers.
7433 (ppc_floating_point_unit_p): Change description to make it clear
7434 that this returns info about the ISA, not the ABI.
7435 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7436 return true or false by checking tdep->ppc_fp0_regnum and
7437 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7438 arch/mach switching done in rs6000_gdbarch_init; it's better to
7439 keep that logic there, and just check the results here.
7440 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7441 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7442 floating-point registers.
7443 (ppc_supply_fpregset, ppc_collect_fpregset)
7444 (rs6000_push_dummy_call, rs6000_extract_return_value)
7445 (rs6000_store_return_value): Assert that we have floating-point
7447 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7448 (rs6000_frame_cache): Don't note the locations at which
7449 floating-point registers were saved if we have no fprs.
7450 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7452 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7453 (store_regs_user_thread, store_regs_kernel_thread): Only call
7454 supply_fprs / fill_fprs if we actually have floating-point
7456 (special_register_p): Check ppc_fpscr_regnum before matching
7458 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7459 supply / collect fpscr if we don't have it.
7460 * ppc-bdm.c: #include "gdb_assert.h".
7461 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7462 have floating-point registers, since I can't test this code on
7463 FP-free systems to adapt it.
7464 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7465 fpscr and floating point register numbers if they don't exist.
7466 (fetch_register): Assert that we have floating-point registers
7467 before we reach the code that handles them.
7468 (store_register): Same. And use tdep instead of calling
7470 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7472 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7473 fprs and fpscr if we don't have them.
7474 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7476 * ppcnbsd-nat.c: #include "gdb_assert.h".
7477 (getfpregs_supplies): Assert that we have floating-point registers.
7478 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7479 * ppcobsd-tdep.c: #include "gdb_assert.h".
7480 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7481 have floating-point registers.
7482 * rs6000-nat.c (regmap): Don't match against the fpscr and
7483 floating point register numbers if they don't exist.
7484 (fetch_inferior_registers, store_inferior_registers,
7485 fetch_core_registers): Only fetch / store / supply the
7486 floating-point registers and the fpscr if we have them.
7487 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7488 (ppcobsd-tdep.o): Update dependencies.
7490 2004-05-10 Andrew Cagney <cagney@redhat.com>
7492 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7493 (context_switch): Do not switch through_sigtramp_breakpoint.
7494 * gdbthread.h (save_infrun_state, load_infrun_state)
7495 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7496 and structure member.
7497 * thread.c (load_infrun_state, save_infrun_state): Update.
7499 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7501 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7503 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7505 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7507 * aclocal.m4: Regenerate.
7509 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7511 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7513 2004-05-10 Andrew Cagney <cagney@redhat.com>
7515 * infrun.c (check_sigtramp2): Delete function.
7516 (handle_inferior_event): When single stepping, and taking a
7517 signal, set a breakpoint at the signal return address. Delete
7518 redundant calls to check_sigtramp2.
7519 (insert_step_resume_breakpoint): New function.
7520 (through_sigtramp_breakpoint, handle_inferior_event)
7521 (follow_exec, wait_for_inferior, fetch_inferior_event)
7522 (currently_stepping, keep_going): Delete most uses of
7523 through_sigtramp_breakpoint, not that it should be deleted.
7524 (delete_breakpoint_current_contents): Delete function.
7526 2004-05-10 Randolph Chung <tausq@debian.org>
7528 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7530 * config/pa/tm-linux.h: New file.
7532 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7534 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7535 of prefixes. Don't print the prefix twice in the CLI.
7537 2004-05-10 Jim Blandy <jimb@redhat.com>
7539 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7540 collect all the gprs.
7542 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7543 loop collecting gprs.
7545 2004-05-09 Andrew Cagney <cagney@redhat.com>
7547 * remote-vx.c (net_step): Delete step-range code.
7548 * remote.c (remote_resume, init_all_packet_configs)
7549 (set_remote_protocol_E_packet_cmd)
7550 (show_remote_protocol_E_packet_cmd)
7551 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7552 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7553 (show_remote_protocol_e_packet_cmd): Ditto.
7555 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7557 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7559 * hppa-tdep.h: Update copyright year.
7560 (struct trad_frame_saved_reg): Add opaque declaration.
7562 * amd64-tdep.c (amd64_return_value): Implement
7563 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7565 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7566 (m68k_value_to_register): New functions.
7567 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7570 * defs.h (enum return_value_convention): Add
7571 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7572 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7573 * infcmd.c (legacy_return_value): New function.
7574 (print_return_value): Rwerite to implement
7575 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7576 * values.c (using_struct_return): Check for inequality to
7577 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7578 RETURN_VALUE_STRUCT_CONVENTION.
7579 * i386-tdep.c (i386_return_value): Implement
7580 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7582 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7583 include "symtab.h", "opcode/vax.h" and "inferior.h".
7584 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7585 to read_memory_unsigned_integer.
7586 (vax_gdbarch_init): Reorder.
7587 (_initialize_vax_tdep): Spell out prototype.
7588 * Makefile.in (vax-tdep.o): Update dependencies.
7590 2004-05-08 Andrew Cagney <cagney@redhat.com>
7592 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7593 * target.c (target_detach, target_disconnect): Ditto.
7595 * infcall.c (call_function_by_hand): When no
7596 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7597 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7598 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7599 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7600 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7602 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7603 * gdbarch.h, gdbarch.c: Re-generate.
7604 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7605 deprecated_fix_call_dummy.
7606 * v850-tdep.c (v850_gdbarch_init): Ditto.
7607 * infcall.c (call_function_by_hand): Do not call
7608 DEPRECATED_FIX_CALL_DUMMY.
7610 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7611 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7612 * gdbarch.h, gdbarch.c: Re-generate.
7613 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7614 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7615 deprecated_sizeof_call_dummy_words.
7616 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7618 * v850-tdep.c (v850_gdbarch_init): Ditto.
7619 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7620 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7621 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7622 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7623 * arch-utils.h (legacy_call_dummy_words)
7624 (legacy_sizeof_call_dummy_words): Delete declarations.
7625 * arch-utils.c (legacy_call_dummy_words)
7626 (legacy_sizeof_call_dummy_words): Delete variables.
7628 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7629 * gdbarch.h, gdbarch.c: Re-generate.
7630 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7631 * infcall.c (call_function_by_hand): Eliminate call to
7632 DEPRECATED_PUSH_DUMMY_FRAME.
7633 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7635 (ns32k_push_dummy_frame): Delete function.
7637 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7638 deprecated_call_dummy_breakpoint_offset or
7639 deprecated_call_dummy_start_offset.
7640 * dummy-frame.c, arm-tdep.c: Update comments.
7641 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7642 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7643 * gdbarch.h, gdbarch.c: Re-generate.
7645 * infcall.c (legacy_push_dummy_code): Delete function.
7646 (push_dummy_code): Delete call.
7648 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7649 * gdbarch.h, gdbarch.c: Re-generate.
7650 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7651 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7652 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7653 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7655 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7656 (struct frame_info): Delete opaque declaration.
7657 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7658 * frame.c (get_frame_type): Delete call.
7660 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7662 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7663 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7665 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7667 * alphanbsd-tdep.c: Include "gdb_string.h".
7668 * armnbsd-tdep.c: Update copyright year.
7669 Include "gdb_string.h".
7670 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7673 * delta68-nat.c: Remove file.
7674 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7675 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7676 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7677 (delta68-nat.o): Remove dependency.
7679 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7681 (m68k_gdbarch_init): Don't set
7682 deprecated_frameless_function_invocation.
7684 2004-05-07 Randolph Chung <tausq@debian.org>
7686 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7687 read_memory_nobpt for code reading when doing frame unwinding.
7688 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7690 2004-05-07 Randolph Chung <tausq@debian.org>
7692 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7693 instead of sp, handle sigaltstack case.
7694 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7695 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7696 signal handler and not that of the caller.
7697 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7698 hppa_linux_sigtramp_find_sigcontext.
7700 2004-05-07 Randolph Chung <tausq@debian.org>
7702 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7704 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7705 * hppa-linux-nat.c (fetch_register, store_register): Define.
7706 (fetch_inferior_registers, store_inferior_registers): Define.
7707 (supply_gregset): Add comment and clean up some unneeded code.
7708 (fill_gregset): Add comment and fix so that it saves registers in
7709 the right place in the gregset.
7710 (fill_fpregset): Fix buffer overrun problem.
7711 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7713 2004-05-07 Randolph Chung <tausq@debian.org>
7715 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7716 do common handling of the pcoqt register.
7717 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7718 to use helper function.
7719 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7720 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7721 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7722 generic fallback unwinder when all else fails.
7723 (hppa_gdbarch_init): Add fallback sniffer.
7724 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7725 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7726 to use helper function.
7728 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7730 * config/djgpp/fnchange.lst: Add translation rules for
7731 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7733 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7735 * frame.c (get_prev_frame_1): Work around GCC bug.
7736 * frame.h: Add comment about GCC bug.
7738 2004-05-07 Andrew Cagney <cagney@redhat.com>
7740 * observer.c: Include "commands.h" and "gdbcmd.h".
7741 (observer_debug, _initialize_observer): Add the
7742 command "set/show debug observer".
7743 * observer.sh: When observer debugging, log notify calls.
7744 * Makefile.in (observer.o): Update dependencies.
7746 2004-05-07 Jason Molenda (jmolenda@apple.com)
7748 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7750 2004-05-07 Jim Blandy <jimb@redhat.com>
7752 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7753 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7754 to recognize gpr regnums, instead of assuming that
7755 tdep->ppc_fp0_regnum marks the end of the general-purpose
7758 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7759 the given architecture has floating-point registers.
7761 2004-05-07 Andrew Cagney <cagney@redhat.com>
7763 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7765 * gdbarch.h, gdbarch.c: Re-generate.
7766 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7767 deprecated_use_generic_dummy_frames.
7769 2004-05-07 Brian Ford <ford@vss.fsi.com>
7771 * NEWS: Mention Cygwin DWARF 2 support.
7773 2004-05-07 Andrew Cagney <cagney@redhat.com>
7775 * objfiles.h (struct entry_info): Delete unused fields
7776 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7777 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7778 * mipsread.c (mipscoff_symfile_read): Update.
7779 * mdebugread.c (parse_partial_symbols): Update.
7780 * dwarfread.c (read_file_scope): Update.
7781 * dwarf2read.c (read_file_scope): Update.
7782 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7783 * coffread.c (complete_symtab): Update.
7785 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7787 * infcall.c (_initialize_infcall): Fix typo.
7789 2004-05-07 Andrew Cagney <cagney@redhat.com>
7791 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7792 * command.h (add_setshow_zinteger_cmd): Declare.
7794 2004-05-06 Randolph Chung <tausq@debian.org>
7796 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7797 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7798 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7799 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7800 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7801 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7802 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7804 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7805 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7806 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7807 (hppa64_hpux_frame_find_saved_regs_in_sig)
7808 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7809 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7810 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7811 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7812 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7813 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7814 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7815 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7816 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7817 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7818 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7819 (hppa32_register_type, hppa_cannot_store_register)
7820 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7821 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7822 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7823 * pa64solib.c (pa64_solib_have_load_event)
7824 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7825 (pa64_solib_unloaded_library_pathname): Likewise.
7826 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7827 (som_solib_library_pathname): Likewise.
7829 2004-05-05 Jim Ingham <jingham@apple.com>
7831 * breakpoint.c (create_breakpoints): Copy the ignore count and
7832 thread id over from the pended breakpoint to the actual
7835 2004-05-05 Andrew Cagney <cagney@redhat.com>
7837 * gdbarch.sh (PARM_BOUNDARY): Delete.
7838 gdbarch.h, gdbarch.c: Re-generate.
7839 * valops.c (PARM_BOUNDARY): Delete macro.
7840 (value_push): Delete PARM_BOUNDARY code.
7841 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7843 2004-05-04 Jim Blandy <jimb@redhat.com>
7845 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7846 Don't assume that the gprs, fprs, and UISA sprs are
7847 contiguous, start at register number zero, and end with fpscr.
7848 Instead, use the numbers from the tdep structure.
7850 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7851 should no longer be used in code specific to the RS6000 and its
7853 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7854 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7855 tdep->ppc_fp0_regnum.
7856 (ppc_supply_fpregset, ppc_collect_fpregset)
7857 (rs6000_push_dummy_call, rs6000_extract_return_value)
7858 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7859 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7861 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7862 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7864 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7865 bdm_ppc_store_registers): Same.
7866 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7867 (store_register, fill_fpregset): Same.
7868 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7869 (ppc_linux_supply_fpregset): Same.
7870 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7871 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7873 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7874 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7875 ppc64_sysv_abi_return_value): Same.
7876 * rs6000-nat.c (regmap, fetch_inferior_registers)
7877 (store_inferior_registers, fetch_core_registers): Same.
7879 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7881 * m68knbsd-nat.c: Remove file.
7882 * m68knbsd-tdep.c: Remove file.
7883 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7885 * configure.host: Add m68k-*-netbsdelf*.
7886 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7887 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7888 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7890 * config/m68k/nbsdelf.mh: New file.
7891 * config/m68k/nbsd.mt: New file.
7892 * config/m68k/nbsdaout.mt: Remove file.
7893 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7894 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7895 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7896 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7897 (use_struct_convention): Remove prototype.
7898 (USE_STRUCT_CONVENTION): Remove define.
7899 * config/m68k/xm-nbsd.h: Remove file.
7901 2004-05-04 Michael Snyder <msnyder@redhat.com>
7903 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7904 reg_struct_return method (as gcc usually does for cross targets).
7906 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7908 Committed by Andrew Cagney.
7909 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7910 alignment padding when accessing ucontext struct members.
7912 2004-05-04 Jim Blandy <jimb@redhat.com>
7914 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7915 'ppc_gplast_regnum' member.
7916 (ppc_num_gprs): New enum constant.
7917 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7918 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7919 * rs6000-nat.c (regmap, fetch_inferior_registers,
7920 store_inferior_registers): Same.
7921 * rs6000-tdep.c (e500_pseudo_register_read)
7922 (e500_pseudo_register_write): Same.
7923 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7925 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7926 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7927 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7928 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7930 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7932 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7933 * rs6000-nat.c (regmap, fetch_inferior_registers)
7934 (store_inferior_registers): Same.
7936 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7939 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7941 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7942 failure detected by recent versions of GCC.
7943 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7944 to be consistent with the usage in dwarf2_create_include_psymtab.
7946 2004-05-03 Michael Snyder <msnyder@redhat.com>
7948 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7949 (heuristic_proc_start): Whitespace cleanup.
7951 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7953 * sun3-nat.c: Remove file.
7954 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7956 (ALLDEPFILES): Remove sun3-nat.c.
7957 (sun3-nat.o): Remove dependencies.
7959 * i386-interix-nat.c, i386-interix-tdep.c,
7960 config/i386/nm-interix.h, config/i386/interix.mh,
7961 config/i386/interix.mt: Remove files.
7962 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7965 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7967 * m68k-tdep.h (struct gdbarch_tdep): Add member
7968 struct_value_regnum.
7969 (m68k_svr4_init_abi): New prototype.
7970 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7971 different calling conventions.
7972 (m68k_extract_return_value): Remove code dealing with single-field
7974 (m68k_store_return_value): Remove code dealing with single-field
7975 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7976 (m68k_extract_struct_value_address): Remove function.
7977 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7978 (m68k_reg_struct_return_p, m68k_return_value)
7979 (m68k_svr4_return_value): New functions.
7980 (m68k_use_struct_convention): Remove function.
7981 (m68k_push_dummy_call): Use new struct_value_regnum member of
7982 `struct gdbarch_tdep' instead of hardcoded register number to
7984 (m68k_svr4_init_abi): New function.
7985 (m68k_gdbarch_init): Don't set extract_return_value,
7986 store_return_values, deprecated_extract_struct_value_address and
7987 use_struct_convention. Set return_value instead. Initialize new
7988 struct_value_regnum member of `struct gdbarch_tdep'.
7989 * m68klinux-tdep.c: Update copyright year.
7990 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7991 (m68k_linux_extract_struct_value_address): Remove function.
7992 (m68k_linux_init_abi): Don't set extract_return_value,
7993 store_return_values, deprecated_extract_struct_value_address and
7994 use_struct_convention. Call m68k_svr4_init_abi but override the
7995 new struct_value_regnum member of `struct gdbarch_tdep'.
7996 * Makefile.in (m68k-tdep.o): Update dependencies.
7998 2004-05-03 J. Brobecker <brobecker@gnat.com>
8000 * dwarf2read.c (line_header): Add new included_p field in
8002 (partial_die_info): New field has_stmt_list. New field line_offset.
8003 (dwarf2_create_include_psymtab): New function.
8004 (dwarf2_build_include_psymtabs): New function.
8005 (add_file_name): Add forward declaration. Initialize new field.
8006 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8007 to be able to determine the list of files included by the
8008 given unit, and build their associated psymtabs.
8009 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8011 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8012 (read_file_scope): Update call to dwarf_decode_lines.
8013 (read_partial_die): Handle DW_AT_stmt_list attributes.
8015 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8018 * configure.in: Revert special case for osf5.*.
8019 * configure: Regenerate.
8021 2004-05-02 Jim Blandy <jimb@redhat.com>
8023 Move the symbol-file-from-memory functions into their own file.
8024 * symfile-mem.c, symfile-mem.h: New files.
8025 * symfile.c (symbol_file_add_from_bfd): New function.
8026 (symbol_file_add): Call symbol_file_add_from_bfd.
8027 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8028 Moved to symfile-mem.c.
8029 (_initialize_symfile): Move definition of
8030 add-symbol-file-from-memory command to symfile-mem.c.
8031 * symfile.h (symbol_file_add_from_bfd): New declaration.
8032 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8033 * config/powerpc/linux.mt (TDEPFILES): Same.
8034 * Makefile.in (SFILES): Add symfile-mem.c.
8035 (symfile_mem_h): New variable.
8036 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8037 (symfile-mem.o): New rule.
8039 2004-05-01 Andrew Cagney <cagney@redhat.com>
8041 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8042 frame_find_by_id instead of frame_relative_level.
8043 (do_enable_breakpoint): Ditto.
8044 * thread.c: Update copyright.
8045 (info_threads_command): Ditto, simplify.
8047 * frame.c (deprecated_generic_get_saved_register): Delete
8048 function, moved to "xstormy16-tdep.c".
8049 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8050 deprecated_generic_get_saved_register from "frame.c".
8051 (xstormy16_frame_saved_register): Call
8052 xstormy16_get_saved_register.
8053 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8055 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8056 * frame.h (deprecated_generic_get_saved_register): Delete.
8058 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8060 * dwarfread.c: Update documentation on the state of dwarf-1.
8062 2004-05-01 Andrew Cagney <cagney@redhat.com>
8064 * stack.c (select_frame_command): Delete call to
8065 frame_relative_level.
8066 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8068 (frame_info): Do not print FRAMELESS.
8069 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8070 (catch_info): Delete #if0 code.
8072 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8073 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8074 of frame_relative_level.
8075 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8077 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8078 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8079 frame_relative_level.
8081 * frame.h (deprecated_set_frame_type): Delete declaration.
8082 * frame.c (deprecated_set_frame_type): Delete function, update
8085 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8086 * gdbarch.h, gdbarch.c: Re-generate.
8087 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8088 (shnbsd_pc_in_sigtramp): Delete.
8089 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8091 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8093 * frame.h: Update comments.
8094 * ppc-linux-tdep.c: Update comments.
8095 * breakpoint.c (bpstat_what): Update comments.
8097 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8098 m68klinux-tdep.o's dependencies, were previously added to
8101 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8102 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8103 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8104 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8105 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8107 * Makefile.in (m68klinux-nat.o): Update dependencies.
8108 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8109 (m68k_linux_sigtramp_frame_cache)
8110 (m68k_linux_sigtramp_frame_this_id)
8111 (m68k_linux_sigtramp_frame_prev_register)
8112 (m68k_linux_sigtramp_frame_unwind)
8113 (m68k_linux_sigtramp_frame_sniffer)
8114 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8115 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8116 names, use trad-frame.h.
8117 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8118 (struct m68k_sigtramp_info): Delete.
8119 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8120 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8121 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8122 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8125 * infrun.c (check_sigtramp2): Delete check for
8126 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8128 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8130 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8132 2004-05-01 Andrew Cagney <cagney@redhat.com>
8134 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8135 (frv_linux_sigtramp_frame_cache)
8136 (frv_linux_sigtramp_frame_this_id)
8137 (frv_linux_sigtramp_frame_prev_register)
8138 (frv_linux_sigtramp_frame_unwind)
8139 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8140 include "linux" in function and variable names, directly call
8141 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8142 the latest trad-frame code.
8143 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8144 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8145 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8146 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8147 * frv-tdep.c (frv_sigtramp_frame_cache)
8148 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8149 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8151 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8152 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8153 (frv_set_sigcontext_reg_addr): Delete function.
8155 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8156 (DEPRECATED_SIGTRAMP_END): Delete.
8157 * gdbarch.h, gdbarch.c: Re-generate.
8158 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8159 * config/vax/tm-vaxbsd.h: Update copyright.
8160 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8161 (DEPRECATED_IN_SIGTRAMP): Define.
8162 * config/m68k/tm-nbsd.h: Update copyright.
8163 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8164 (DEPRECATED_IN_SIGTRAMP): Define.
8166 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8168 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8169 encondings. Fixes PR gdb/1628.
8171 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8172 DW_CFA_restore state without a matching DW_CFA_remember_state
8173 instead of aborting. Fixes PR backtrace/1589.
8175 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8177 * MAINTAINERS: Add self as AIX maintainer.
8178 Update my e-mail address in write-after-approval section.
8180 2004-04-30 Andrew Cagney <cagney@redhat.com>
8182 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8183 (legacy_get_prev_frame): Ditto.
8185 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8186 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8187 * mipsread.c (sigtramp_address): Delete extern variable.
8188 (mipscoff_new_init): Delete reference.
8189 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8190 (fixup_sigtramp): Delete function.
8191 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8192 (fixup_sigtramp): Delete declarations.
8194 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8195 deprecated_pc_in_sigtramp.
8196 (ppcnbsd_pc_in_sigtramp): Delete function.
8198 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8200 * config/m68k/nm-nbsd.h: Tweak comments.
8201 * config/m68k/nm-nbsdaout.h: Likewise.
8203 2004-04-30 Andrew Cagney <cagney@redhat.com>
8205 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8206 legacy_pc_in_sigtramp.
8207 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8209 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8211 Add OpenBSD/m68k support.
8212 * NEWS (New native configurations): Mention OpenBSD/m68k.
8213 * m68kbsd-tdep.c: New file.
8214 * m68kbsd-nat.c: New file.
8215 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8216 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8217 * configure.host: Add m68k-*-openbsd.
8218 * configure.tgt: Add m68k-*-openbsd.
8219 * config/m68k/tm-obsd.h: New file.
8220 * config/m68k/obsd.mt: New file.
8221 * config/m68k/obsd.mh: New file.
8222 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8225 2004-04-30 Andrew Cagney <cagney@redhat.com>
8227 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8228 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8230 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8232 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8233 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8235 2004-04-30 Brian Ford <ford@vss.fsi.com>
8237 Revert 2004-04-16 change.
8238 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8239 (i386_coff_init_abi): Remove.
8240 * i386-tdep.h (i386_coff_init_abi): Remove.
8241 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8243 2004-04-30 Andrew Cagney <cagney@redhat.com>
8245 * blockframe.c (find_pc_partial_function): Delete use of
8246 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8247 DEPRECATED_SIGTRAMP_END.
8249 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8250 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8251 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8252 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8253 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8255 * defs.h (deprecated_inside_entry_file): Delete declaration.
8256 * blockframe.c (deprecated_inside_entry_file): Delete function.
8257 (legacy_frame_chain_valid): Delete call.
8258 * sh64-tdep.c (sh64_frame_chain): Delete call.
8259 * objfiles.h: Update comments.
8260 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8262 * frame.c (get_prev_frame): Delete call, update comments.
8264 2004-04-30 Brian Ford <ford@vss.fsi.com>
8266 * MAINTAINERS (Write After Approval): Add myself.
8268 2004-04-30 Andrew Cagney <cagney@redhat.com>
8270 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8271 * gdbarch.h, gdbarch.c: Re-generate.
8272 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8275 2004-04-30 Andrew Cagney <cagney@redhat.com>
8277 * gdb-events.sh (selected_thread_changed)
8278 (selected_frame_level_changed, target_changed): Delete.
8279 * gdb-events.h, gdb-events.c: Re-generate.
8280 * valops.c (value_assign): Update.
8281 * stack.c (select_frame_command, up_silently_base)
8282 (down_silently_base): Update.
8284 2004-04-29 Andrew Cagney <cagney@redhat.com>
8286 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8287 registers correctly.
8288 (print_gp_register_row, mips32_heuristic_proc_desc)
8289 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8290 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8291 references to mips_isa_regsize.
8293 2004-04-29 Andrew Cagney <cagney@redhat.com>
8295 * mips-tdep.c (struct gdbarch_tdep): Delete
8296 mips_fp_register_double.
8297 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8299 (mips_gdbarch_init): Do not set mips_fp_register_double.
8300 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8302 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8304 Committed by Andrew Cagney.
8305 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8308 2004-04-29 Andrew Cagney <cagney@redhat.com>
8310 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8311 gdbarch, use mips_abi, update callers.
8312 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8313 mips_abi_regsize, update callers.
8314 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8315 mips_default_abi_regsize.
8316 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8317 mips_default_abi_regsize.
8319 2004-04-29 Andrew Cagney <cagney@redhat.com>
8321 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8322 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8323 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8324 mips_default_abi_regsize.
8325 (mips_isa_regsize): Rename mips_regisze.
8326 * mipsnbsd-tdep.c: Update.
8327 * mips-linux-tdep.c: Update.
8328 * irix5-nat.c: Update.
8329 * mips-tdep.h (mips_isa_regsize): Update.
8331 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8332 Delete all disabled code.
8333 * gdb-events.h, gdb-events.c: Re-generate.
8335 2004-04-19 Jerome Guitton <guitton@gnat.com>
8336 Mark Kettenis <kettenis@gnu.org>
8338 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8339 the function begins with a branch instruction.
8341 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8343 * i386-tdep.c: Fix spelling mistakes.
8345 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8346 Andrew Cagney <cagney@redhat.com>
8348 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8350 * acconfig.h: Provide default _KMEMUSER value.
8351 * config.in, configure: Re-generate.
8352 * NEWS: Mention fix.
8354 2004-04-24 Randolph Chung <tausq@debian.org>
8356 * configure.host (hppa*-*-linux*): New target.
8357 * configure.tgt (hppa*-*-linux*): Likewise.
8358 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8359 gdbarch_init_osabi() call earlier so that osabi-specific frame
8360 unwinders can be registered first.
8361 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8363 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8364 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8365 * config/pa/linux.mh: New file.
8366 * config/pa/linux.mt: New file.
8367 * config/pa/nm-linux.h: New file.
8368 * config/pa/xm-linux.h: New file.
8369 * hppa-linux-nat.c: New file.
8370 * hppa-linux-tdep.c: New file.
8372 2004-04-28 Randolph Chung <tausq@debian.org>
8374 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8376 (hppa32_push_dummy_call): Fix small struct and floating point argument
8377 passing, and make sure the stack frame is properly aligned.
8379 2004-04-28 Andrew Cagney <cagney@redhat.com>
8381 * stack.c (print_stack_frame): Fix description.
8383 * NEWS: Mention gdb/gdbserver/configure execute permission
8384 changed. PR server/519.
8386 2004-04-28 Andrew Cagney <cagney@redhat.com>
8388 * stack.c (print_stack_frame_stub): Delete declaration.
8389 (struct print_stack_frame_args, print_stack_frame)
8390 (print_frame_info, print_frame): Replace "source" with print what.
8391 Replace "print" with "print_level". Replace "args" with
8393 * frame.h (show_and_print_stack_frame, print_stack_frame)
8394 (print_frame_info): Update declarations.
8395 * stack.c (select_and_print_frame, frame_command)
8396 (current_frame_command, up_command, down_command): Update calls -
8397 use get_selected_frame, pass "enum print_what" for source, do not
8398 call frame_relative_level.
8399 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8400 * remote-rdp.c (remote_rdp_open): Ditto.
8401 * remote-mips.c (common_open): Ditto.
8402 * remote-e7000.c (e7000_start_remote): Ditto.
8403 * ocd.c (ocd_start_remote): Ditto.
8404 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8405 * infrun.c (normal_stop): Ditto.
8406 * inflow.c (kill_command): Ditto.
8407 * infcmd.c (finish_command): Ditto.
8408 * corelow.c (core_open): Ditto.
8409 * tracepoint.c (finish_tfind_command): Ditto.
8410 * thread.c (info_threads_command, info_threads_command)
8411 (restore_current_thread, do_captured_thread_select): Ditto.
8412 * ada-tasks.c (task_command): Ditto.
8414 2004-04-26 Orjan Friberg <orjanf@axis.com>
8416 * frame.c: Include "observer.h".
8417 (frame_observer_target_changed): New function.
8418 (_initialize_frame): Attach target_changed observer.
8419 * regcache.c: Include "observer.h".
8420 (regcache_observer_target_changed): New function.
8421 (_initialize_regcache): Attach target_changed observer.
8422 * valops.c: Include "observer.h".
8423 (value_assign): Notify target_changed event when modifying register.
8424 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8426 2004-04-26 Orjan Friberg <orjanf@axis.com>
8428 From Paul Koning <pkoning@equallogic.com>:
8429 * breakpoint.c (free_valchain): New function.
8430 (insert_bp_location, delete_breakpoint): Use free_valchain.
8431 (remove_breakpoint): Do not remove the valchain.
8432 (bpstat_stop_status): If not stopped by watchpoint, skip
8433 watchpoints when generating stop status list.
8434 * infrun.c (handle_inferior_event): Make
8435 stepped_after_stopped_by_watchpoint a global variable.
8436 * remote.c (remote_stopped_data_address): Return watch data
8437 address rather than zero if stepped_after_stopped_by_watchpoint is
8440 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8443 * configure.in: Check for curses after termcap.
8444 On osf5.*, do not check for ncurses.
8445 * configure: Regenerate.
8447 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8449 * ppcobsd-nat.c: Include "ppc-tdep.h".
8450 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8452 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8453 Fixes PR tdep/1623 and PR tdep/1624.
8455 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8457 * xmodem.h, xmodem.c: Remove files.
8458 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8460 2004-04-23 Randolph Chung <tausq@debian.org>
8462 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8463 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8464 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8465 for handling stackless frames.
8466 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8468 2004-04-23 Randolph Chung <tausq@debian.org>
8470 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8471 starts at a pc before the frame is created.
8473 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8475 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8477 2004-04-23 Jerome Guitton <guitton@gnat.com>
8479 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8480 use convert_typed_floating to get the appropriate format.
8482 2004-04-22 Randolph Chung <tausq@debian.org>
8484 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8485 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8486 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8487 (hppa_sign_extend): Add prototype.
8488 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8489 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8490 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8491 hppa targets will also use these functions.
8492 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8493 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8494 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8495 (hppa_gdbarch_init): Remove gdbarch setting of
8496 skip_trampoline_code, in_solib_call_trampoline and
8497 in_solib_return_trampoline.
8498 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8499 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8500 hppa_in_solib_call_trampoline.
8501 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8502 Moved from hppa-tdep.c.
8503 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8504 in_solib_call_trampoline and in_solib_return_trampoline.
8506 2004-04-22 Randolph Chung <tausq@debian.org>
8508 * hppa-tdep.c (hppa_debug): New variable.
8509 (find_unwind_entry, hppa_frame_cache): Add debug output.
8510 (_initialize_hppa_tdep): Add command to set debug flag.
8512 2004-04-22 Andrew Cagney <cagney@redhat.com>
8514 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8516 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8517 signal trampoline unwinder.
8518 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8520 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8522 Add OpenBSD/powerpc support.
8523 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8524 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8525 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8526 (ppc_collect_fpregset): New prototypes.
8527 * ppcobsd-nat.c: New file.
8528 * ppcobsd-tdep.c: New file.
8529 * ppcobsd-tdep.h: New file.
8530 * rs6000-tdep.c: Include "regset.h".
8531 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8532 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8534 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8535 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8536 (rs6000-tdep.o): Update dependencies.
8537 * configure.host: Add powerpc-*-openbsd.
8538 * configure.tgt: Add powerpc-*-openbsd.
8539 * config/powerpc/obsd.mh: New file.
8540 * config/powerpc/nm-obsd.h: New file.
8541 * config/powerpc/obsd.mt: New file.
8543 2004-04-22 Andrew Cagney <cagney@redhat.com>
8545 * frame.h (show_frame_info): Delete declaration.
8547 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8548 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8549 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8550 * frv-tdep.c (frv_frame_this_id): Ditto.
8551 * avr-tdep.c (avr_frame_this_id): Ditto.
8553 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8555 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8557 2004-04-22 Jim Blandy <jimb@redhat.com>
8559 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8560 register number zero.
8562 2004-04-21 Michael Snyder <msnyder@redhat.com>
8564 * mips-tdep.c (heuristic_proc_start):
8565 Warning() already prefixes "Warning: ".
8567 2004-04-21 Andrew Cagney <cagney@redhat.com>
8569 * annotate.h (deprecated_annotate_starting_hook)
8570 (deprecated_annotate_stopped_hook)
8571 (deprecated_annotate_exited_hook)
8572 (deprecated_annotate_signal_hook)
8573 (deprecated_annotate_signalled_hook): Deprecate.
8574 * tracepoint.h (deprecated_create_tracepoint_hook)
8575 (deprecated_delete_tracepoint_hook)
8576 (deprecated_modify_tracepoint_hook)
8577 (deprecated_trace_find_hook)
8578 (deprecated_trace_start_stop_hook): Deprecate.
8579 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8580 * remote.h (deprecated_target_resume_hook)
8581 (deprecated_target_wait_loop_hook): Deprecate.
8582 * gdbcore.h (deprecated_exec_file_display_hook)
8583 (deprecated_file_changed_hook): Deprecate.
8584 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8585 * defs.h (deprecated_modify_breakpoint_hook)
8586 (deprecated_command_loop_hook, deprecated_show_load_progress)
8587 (deprecated_print_frame_info_listing_hook)
8588 (deprecated_query_hook, deprecated_warning_hook)
8589 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8590 (deprecated_delete_breakpoint_hook)
8591 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8592 (deprecated_readline_begin_hook, deprecated_readline_hook)
8593 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8594 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8595 (deprecated_context_hook, deprecated_target_wait_hook)
8596 (deprecated_attach_hook, deprecated_detach_hook)
8597 (deprecated_call_command_hook, deprecated_set_hook)
8598 (deprecated_error_hook, deprecated_error_begin_hook)
8599 (deprecated_ui_load_progress_hook): Deprecate.
8600 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8601 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8602 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8603 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8604 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8605 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8606 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8607 * annotate.c, aix-thread.c: Update.
8609 2004-04-21 Andrew Cagney <cagney@redhat.com>
8611 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8612 * vaxnbsd-tdep.c: Include "gdb_string.h".
8614 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8615 (add_symbol_file_from_memory_command): #if 0 function body, call
8618 2004-04-21 Andrew Cagney <cagney@redhat.com>
8620 * gdbcore.h: Update copyright.
8621 (deprecated_add_core_fns): Rename add_core_fns.
8622 * win32-nat.c (_initialize_core_win32): Update.
8623 * sun3-nat.c (_initialize_core_sun3): Update.
8624 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8625 * rs6000-nat.c (_initialize_core_rs6000): Update.
8626 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8627 * nto-tdep.c (_initialize_nto_tdep): Update.
8628 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8629 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8630 * mips-nat.c (_initialize_core_mips): Update.
8631 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8632 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8633 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8634 * lynx-nat.c (_initialize_core_lynx): Update.
8635 * irix5-nat.c (_initialize_core_irix5): Update.
8636 * i386-interix-nat.c (_initialize_core_interix): Update.
8637 * cris-tdep.c (_initialize_cris_tdep): Update.
8638 * corelow.c (deprecated_add_core_fns): Update.
8639 * core-regset.c (_initialize_core_regset): Update.
8640 * core-aout.c (_initialize_core_aout): Update.
8641 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8642 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8643 * alpha-nat.c (_initialize_core_alpha): Update.
8645 2004-04-21 Jim Blandy <jimb@redhat.com>
8647 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8649 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8651 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8653 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8654 (read_attribute_value): Update calls to dwarf_alloc_block.
8655 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8657 (psymtab_to_symtab_1): Likewise. Clean up using
8658 free_stack_comp_unit.
8659 (add_to_cu_func_list): Use the comp_unit_obstack.
8661 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8663 * dwarf2read.c (dwarf2_flag_true_p): New function.
8664 (die_is_declaration): Use the function above. Add some comments.
8666 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8668 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8669 architecture when registering sparcnbsd_core_osabi_sniffer.
8672 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8674 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8677 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8678 * i386-tdep.c: Correct register numbering scheme comments
8680 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8681 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8682 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8683 (i386_gdb_arch_init): Likewise.
8685 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8686 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8689 * m68k-tdep.h: Tweak comments.
8690 * m68k-tdep.c: Tweak comment.
8692 2004-04-17 Randolph Chung <tausq@debian.org>
8694 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8695 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8696 (hppa_hpux_som_init_abi): Set is_elf to 0.
8697 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8698 * hppa-tdep.c (low_text_segment_address): Remove global.
8699 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8700 section offset to calculate segment address.
8701 (internalize_unwinds): Define low_text_segment_address as local and
8702 pass to record_text_segment_lowaddr for ELF targets.
8703 (hppa_gdbarch_init): Zero fill tdep structure.
8704 (hppa_dump_tdep): Print tdep structure.
8705 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8707 2004-04-17 Randolph Chung <tausq@debian.org>
8709 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8710 (hppa_gdbarch_init): Set pseudo_register_read.
8711 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8712 * regcache.c (supply_register): Remove check for
8713 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8715 2004-04-17 Randolph Chung <tausq@debian.org>
8717 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8718 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8719 (hpread_adjust_stack_address): Move to hpread.c.
8720 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8721 obj_private_struct): Move from tm-hppa.h.
8722 * hpread.c (hppa-tdep.h): Include.
8723 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8724 (hpread_read_function_type, hpread_read_doc_function_type)
8725 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8727 * pa64solib.c (hppa-tdep.h): Include.
8728 * somsolib.c (hppa-tdep.h): Include.
8729 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8730 inferior_status): Remove unused forward declarations.
8731 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8732 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8733 obj_private_struct): Move to hppa-tdep.h.
8734 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8736 2004-04-17 Randolph Chung <tausq@debian.org>
8738 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8739 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8740 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8741 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8742 Remove forward declaration and make static.
8743 (hppa_reg_struct_has_addr): Remove.
8745 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8747 * observer.sh: Move comments in sed command to first column.
8749 2004-04-16 Jason Molenda (jmolenda@apple.com)
8751 * frame.c: Minor typeo corrections in comments.
8753 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8755 * observer.c (observer_test_first_notification_function): Update
8757 (observer_test_second_notification_function): Likewise.
8758 (observer_test_third_notification_function): Likewise.
8760 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8762 From Brian Ford <ford@vss.fsi.com>:
8763 * i386-tdep.c (i386_coff_init_abi): New function.
8764 * i386-tdep.h (i386_coff_init_abi): New prototype.
8765 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8766 register number translation functions for DWARF and DWARF 2.
8768 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8770 * dwarf2read.c: Back out my previous change, it was incorrect.
8772 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8774 * dwarf2read.c: Include "hashtab.h".
8775 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8777 (struct partial_die_info): Add comments. Use bitfields to reduce
8778 memory footprint. Add scope, scope_set, has_specification,
8779 spec_offset, die_parent, die_child, and die_sibling.
8780 (peek_die_abbrev): Add prototype.
8781 (partial_read_comp_unit_head): New function, broken out from
8782 dwarf2_build_psymtabs_hard.
8783 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8784 Use partial_read_comp_unit_head. Initialize the CU and
8785 comp_unit_obstack. Update calls to read_partial_die and
8786 scan_partial_symbols. Use free_stack_comp_unit and
8788 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8789 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8790 Update calls to helper functions. Remove NAMESPACE argument.
8792 (partial_die_parent_scope, partial_die_full_name): New functions.
8793 (add_partial_symbol): Remove namespace argument. Update call to
8794 pdi_needs_namespace. Use partial_die_full_name. Handle
8795 DW_TAG_namespace. Check has_namespace_info flag.
8796 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8797 tag. Handle namespaces.
8798 (add_partial_namespace, add_partial_enumeration): Simplify.
8799 (guess_structure_name): New function, derived from
8800 add_partial_structure.
8801 (add_partial_structure): Remove.
8802 (determine_class_name): Update comment.
8803 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8804 (is_type_tag_for_partial, load_partial_dies): New functions.
8805 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8806 Record specifications instead of following them immediately.
8807 (find_partial_die_in_comp_unit, find_partial_die)
8808 (fixup_partial_die, free_stack_comp_unit)
8809 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8810 (partial_die_hash, partial_die_eq): New functions.
8811 * Makefile.in (hashtab_h): Define.
8812 (dwarf2read.o): Update dependencies.
8813 (observer_inc, observer_h): Move to the correct section.
8815 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8817 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8818 (die_is_declaration): Use the function above. Add comment.
8820 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8822 * dwarf2read.c (read_structure_scope): Identify stub types
8823 using die_is_declaration() only.
8825 2004-04-15 Roland McGrath <roland@redhat.com>
8827 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8828 argument instead of NAME.
8829 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8830 in call to symbol_file_add_with_addrs_or_offsets.
8831 (build_addr_info): New function, helper for ...
8832 (symbol_file_add_from_memory): New function.
8833 (add_symbol_file_from_memory_command): New function using that.
8834 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8835 (pre_add_symbol_hook): Add const to argument type.
8836 * symfile.h (symbol_file_add_from_memory): Declare it.
8838 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8840 * NEWS (New native configurations): Mention OpenBSD/vax.
8841 * configure.host: Add vax-*-openbsd*.
8842 * config/vax/obsd.mh: New file.
8843 * config/vax/nm-obsd.h: New file.
8845 * vax-tdep.c: Include "regset.h".
8846 (vax_supply_gregset): New function.
8847 (vax_gregset): New variable.
8848 (vax_regset_from_core_section): New function.
8849 (vax_gdbarch_init): Set regset_from_core_section.
8850 * Makefile.in (vax-tdep.o): Update dependencies.
8852 2004-04-15 Andrew Cagney <cagney@redhat.com>
8854 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8855 (observer_normal_stop_notification_stub)
8856 (observer_attach_normal_stop, observer_detach_normal_stop):
8857 Delete, replaced by #include "observer.inc".
8858 * infrun.c (normal_stop): Pass "stop_bpstat" to
8859 observer_notify_normal_stop.
8860 * Makefile.in (observer_inc): Define.
8861 (observer.o): Update dependencies.
8862 (observer.h, observer.inc): New rules.
8863 * observer.h: Delete file.
8864 * observer.sh: New file.
8866 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8868 * vax-tdep.c (vax_frame_cache): Fix typo.
8870 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8872 * NEWS (New native configurations): Mention NetBSD/vax.
8873 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8874 * config/vax/nbsdelf.mh: New file.
8875 * config/vax/nbsdaout.mh: New file.
8876 * config/vax/nm-nbsd.h: New file.
8877 * config/vax/nm-nbsdaout.h: New file.
8879 * vaxnbsd-tdep.c: New file.
8880 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8881 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8882 * config/vax/nbsd.mt: New file.
8883 * config/vax/tm-nbsd.h: New file.
8885 * Makefile.in (vaxbsd-nat.o): New dependency.
8887 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8888 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8889 struct_addr arguments. Don't push return value address.
8890 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8891 arguments to vax_store_arguments. Store return value address in
8893 (vax_store_struct_return, vax_extract_return_value)
8894 (vax_store_return_value): Remove functions.
8895 (vax_return_value): New function.
8896 (vax_gdbarch_init): Set return value. Don't set
8897 deprecated_store_struct_return, deprecated_extract_struct_return
8898 and deprecated_store_return_value.
8900 2004-04-14 Andreas Schwab <schwab@suse.de>
8902 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8904 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8906 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8908 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8909 (vax_unwind_dummy_id): New functions.
8910 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8911 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8913 (vax_fix_call_dummy): Remove function.
8914 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8915 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8916 call_dummy_location, deprecated_call_dummy_words,
8917 deprecated_sizeof_call_dummy_words,
8918 deprecated_call_dummy_breakpoint_offset,
8919 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8920 and deprecated_dummy_write_sp.
8922 2004-04-13 David Carlton <carlton@kealia.com>
8924 * MAINTAINERS: Move myself to "paper trail" section.
8926 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8928 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8930 (vax_frame_init_saved_regs): Remove function.
8931 (vax_sigtramp_saved_pc): Remove function.
8932 (vax_frame_saved_pc): Remove function.
8933 (vax_frame_args_address): Remove function.
8934 (vax_frame_num_args): Rewrite.
8935 (vax_frame_chain): Remove function.
8936 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8938 (vax_pop_frame): Likewise.
8939 (vax_saved_pc_after_call): Remove function.
8940 (struct vax_frame_cache): New structure.
8941 (vax_frame_cache): New function.
8942 (vax_frame_this_id): New function.
8943 (vax_frame_prev_register): New function.
8944 (vax_frame_unwind): New variable.
8945 (vax_frame_sniffer): New function.
8946 (vax_frame_base_address): New function.
8947 (vax_frame_args_address): New function.
8948 (vax_frame_base): New variable.
8949 (vax_unwind_pc): New function.
8950 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8951 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8952 deprecated_frame_chain, deprecated_frame_saved_pc,
8953 deprecated_frame_args_address and
8954 deprecated_frame_init_saved_regs.
8955 * Makefile.in (vax-tdep.o): Update dependencies.
8957 * vaxbsd-nat.c: New file.
8959 * vax-tdep.h: Update copyright year. Adjust comments.
8960 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8961 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8962 (vax_regnum): New enum. Replacing...
8963 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8964 (VAX_PS_REGNUM): ... these removed macros.
8965 * vax-tdep.c (vax_register_name): Remove prototype.
8966 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8967 (vax_register_byte, vax_register_raw_size,
8968 vax_register_virtual_size, vax_register_virtual_type): Remove
8970 (vax_register_type): New function.
8971 (vax_breakpoint_from_pc): Reorganize.
8972 (vax_gdbarch_init): Set register_type. Don't set
8973 deprecated_register_size, deprecated_register_bytes,
8974 deprecated_register_byte, deprecated_register_raw_size,
8975 deprecated_max_register_raw_size,
8976 deprecated_register_virtual_size,
8977 deprecated_max_register_virtual_size and
8978 deprecated_register_virtual_type. Add comment on stack direction.
8980 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8982 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8983 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8984 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8986 2004-04-10 Randolph Chung <tausq@debian.org>
8988 * MAINTAINERS (write after approval): Add myself.
8990 2004-04-07 Randolph Chung <tausq@debian.org>
8992 * hppa-tdep.c (hppa_inner_than): Remove.
8993 (is_pa_2): Remove unused static variable.
8994 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8996 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8998 * language.h (language_defn): Add new la_post_parser field.
8999 * parser-defs.h (null_post_parser): New declaration (default for
9002 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9003 insert call to that function.
9004 (parse_exp_in_context): New function, including code formerly in
9005 parse_exp_1. Calls language-dependent post-parser after
9007 (parse_expression_in_context): New exported function.
9008 (null_post_parser): New definition.
9009 * expression.h (parse_expression_in_context): Add declaration.
9011 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9012 * c-lang.c (c_language_defn): Ditto.
9013 (cplus_language_defn): Ditto.
9014 (asm_language_defn): Ditto.
9015 (minimal_language_defn): Ditto.
9016 * f-lang.c (f_language_defn): Ditto.
9017 * jv-lang.c (java_language_defn): Ditto.
9018 * language.c (unknown_language_defn): Ditto.
9019 (auto_language_defn): Ditto.
9020 (local_language_defn): Ditto.
9021 * m2-lang.c (m2_language_defn): Ditto.
9022 * scm-lang.c (scm_language_defn): Ditto.
9023 * obj-lang.c (objc_language_defn): Ditto.
9025 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9027 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9028 (amd64nbsd_mcontext_addr): New function.
9029 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9030 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9031 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9033 * corelow.c (core_xfer_partial): Fix coding standards violation.
9034 Add support for TARGET_OBJECT_WCOOKIE.
9036 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9037 deprecated_pc_in_sigtramp.
9038 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9039 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9040 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9041 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9042 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9043 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9044 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9046 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9047 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9050 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9051 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9052 (amd64_collect_fxsave): Likewise.
9054 * i386-sol2-tdep.c: Include "gdb_string.h".
9055 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9057 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9059 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9061 * i386-sol2-tdep.c: Include "solib-svr4.h".
9062 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9063 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9064 * config/i386/tm-i386sol2.h: Include :solib.h".
9065 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9066 solib-svr4.o and solib-legacy.o.
9067 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9070 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9072 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9073 whether a register is supplied by PTRACE_GETFPREGS.
9074 (store_inferior_registers): Likewise.
9075 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9076 whether a register is supplied by PT_GETFPREGS.
9077 (store_inferior_registers): Likewise.
9079 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9080 * config/i386/linux64.mt (TDEPFILES): Likewise.
9082 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9084 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9085 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9086 the program counter is in the range specified by `struct
9088 * amd64-linux-tdep.c: Include "symtab.h".
9089 (amd64_linux_pc_in_sigtramp): Remove function.
9090 (amd64_linux_sigtramp_p): New function.
9091 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9092 deprecated_pc_in_sigtramp.
9093 * amd64nbsd-tdep.c: Include "symtab.h".
9094 (amd64nbsd_sigtramp_p): New function.
9095 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9096 deprecated_pc_in_sigtramp.
9097 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9099 (amd64obsd_pc_in_sigtramp): Remove function.
9100 (amd64obsd_sigtramp_p): New function.
9101 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9102 deprecated_pc_in_sigtramp.
9103 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9104 (i386bsd_pc_ins_sigtramp): Remove prototype.
9105 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9106 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9107 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9108 the program counter is in the range specified by `struct
9110 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9111 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9112 (i386_go32_pc_in_sigtramp): Remove function.
9113 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9114 Initialize TDEP->sigtramp_p.
9115 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9116 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9117 deprecated_pc_in_sigtramp.
9118 * i386-linux-tdep.c: Adjust comments.
9119 (i386_linux_pc_in_sigtramp): Remove function.
9120 (i386_linux_sigtramp_p): New function.
9121 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9122 deprecated_pc_in_sigtramp.
9123 * i386-nto-tdep.c: Update copyright year.
9124 (i386nto_pc_in_sigtramp): Remove function.
9125 (i386nto_sigtramp_p): New function.
9126 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9128 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9129 deprecated_pc_in_sigtramp.
9130 * i386-sol2-tdep.c: Update copyright year.
9131 (i386_sol2_pc_in_sigtramp): Remove function.
9132 (i386_sol2_sigtramp_p): New function.
9133 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9134 deprecated_pc_in_sigtramp.
9135 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9136 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9137 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9138 deprecated_sigtramp_start and deprecated_sigtramp_end.
9139 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9140 (i386nbsd_pc_in_sigtramp): Remove function.
9141 (i386nbsd_sigtramp_p): New function.
9142 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9143 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9144 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9145 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9146 (i386obsd_pc_in_sigtramp): Remove function.
9147 (i386obsd_sigtramp_p): New function.
9148 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9150 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9151 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9153 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9154 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9157 * config/i386/i386aout.mt: Remove file.
9159 * configure.tgt: Remove i[34567]86-*-go32*,
9160 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9161 and i[34567]86-*-isc*. Set gdb_target to i386 for
9162 i[34567]86-*-netware* and i[34567]86-*-*.
9163 * config/i386/i386.mt: New file.
9164 * config/i386/embed.mt: Remove file.
9165 * config/i386/go32.mt: Remove file.
9166 * config/i386/i386nw.mt: Remove file.
9167 * config/i386/i386v.mt: Remove file.
9168 * config/i386/tm-go32.h: Remove file.
9170 * tui/tui-hooks.c: Include "readline/readline.h" after
9171 "gdb_curses.h" instead of before.
9172 * tui/tui-io.c: Likewise.
9174 * tui/tui.c: Fix typo in comment.
9176 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9178 2004-04-08 Andrew Cagney <cagney@redhat.com>
9180 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9181 (deprecated_exception_support_initialized): Declare.
9182 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9183 (initialize_hp_cxx_exception_support)
9184 (child_enable_exception_callback): Update.
9185 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9186 (deprecated_exception_support_initialized): Rename
9187 deprecated_exception_catchpoints_are_fragile and
9188 deprecated_exception_support_initialized.
9189 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9191 * symtab.c (deprecated_hp_som_som_object_present): Rename
9192 hp_som_som_object_present.
9193 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9194 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9195 Update. Delete extern declaration.
9196 * valops.c (hp_som_som_object_present): Ditto.
9197 * parse.c (deprecated_hp_som_som_object_present)
9198 (parse_nested_classes_for_hpacc): Ditto.
9199 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9200 * hppa-hpux-tdep.c (hp_som_som_object_present)
9201 (initialize_hp_cxx_exception_support): Ditto.
9202 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9203 * cp-valprint.c (hp_som_som_object_present)
9204 (cp_print_class_method): Ditto.
9205 * c-typeprint.c (hp_som_som_object_present):
9206 (c_type_print_base): Ditto.
9207 * c-exp.y (hp_som_som_object_present): Ditto.
9209 2004-04-08 Andrew Cagney <cagney@redhat.com>
9211 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9212 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9213 (frame_unwind_find_by_frame): Re-implement the unwind code so
9214 that it can both prepend and append sniffers. Replace
9215 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9216 * tramp-frame.c (tramp_frame_append): Use
9217 frame_unwind_prepend_unwinder.
9218 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9219 frame_unwind_register_unwinder.
9220 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9222 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9223 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9224 (mips_linux_init_abi): Update.
9226 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9228 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9229 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9232 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9234 * ia64-tdep.c (elf.h): Don't include.
9235 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9237 2004-04-07 Jason Molenda (jmolenda@apple.com)
9239 * frame.h: Typeo corrections in comments.
9241 2004-04-07 Jim Blandy <jimb@redhat.com>
9243 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9246 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9248 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9249 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9250 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9251 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9253 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9255 * config/sparc/tm-sol2.h: Update copyright year. Include
9258 * sparc-sol2-tdep.c: Update copyright year. Include
9260 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9261 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9262 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9263 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9266 2004-04-06 Andrew Cagney <cagney@redhat.com>
9268 * infttrace.c: Include "infttrace.h".
9269 * infttrace.h: Include "target.h".
9270 * Makefile.in (infttrace_h): Update.
9271 (infttrace.o): Update.
9273 2004-04-06 Andrew Cagney <cagney@redhat.com>
9275 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9276 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9277 move extern declarations from here ...
9278 * infttrace.h: ... to here.
9279 * Makefile.in (hppah-nat.o): Update dependencies.
9281 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9282 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9283 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9284 (hppa_breakpoint_from_pc): Delete.
9286 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9288 2004-04-05 Andrew Cagney <cagney@redhat.com>
9290 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9291 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9294 2004-04-06 Randolph Chung <tausq@debian.org>
9296 Committed by Andrew Cagney (mechanical change).
9297 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9298 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9299 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9300 child_enable_exception_callback, current_ex_event,
9301 null_symtab_and_line, child_get_current_exception_event,
9302 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9303 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9304 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9305 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9306 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9307 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9308 Move hpux-specific definitions ...
9309 * hppa-hpux-tdep.c: ... to here.
9311 2004-04-05 Andrew Cagney <cagney@redhat.com>
9313 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9314 skip_prologue_using_sal.
9316 2004-04-05 Andrew Cagney <cagney@redhat.com>
9318 * config/i386/tm-i386.h: Delete file.
9319 * config/i386/tm-vxworks.h: Update copyright, do not include
9321 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9322 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9323 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9324 * config/i386/ncr3000.mt (TM_FILE): Delete.
9325 * config/i386/interix.mt (TM_FILE): Delete.
9326 * config/i386/i386v.mt (TM_FILE): Delete.
9327 * config/i386/i386nw.mt (TM_FILE): Delete.
9328 * config/i386/i386gnu.mt (TM_FILE): Delete.
9329 * config/i386/i386aout.mt (TM_FILE): Delete.
9330 * config/i386/embed.mt (TM_FILE): Delete.
9332 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9334 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9335 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9336 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9337 (accg7_regnum): New constants.
9338 (last_spr_regnum, last_pseudo_regnum): Update.
9339 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9340 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9341 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9343 (frv_register_sim_regno): Update spr_map[].
9345 2004-04-04 Andrew Cagney <cagney@redhat.com>
9347 * config/mips/xm-riscos.h: Delete.
9348 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9349 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9350 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9351 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9352 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9353 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9354 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9355 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9356 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9357 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9358 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9359 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9360 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9361 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9362 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9363 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9364 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9365 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9366 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9367 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9368 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9369 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9370 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9371 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9372 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9373 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9375 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9376 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9377 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9378 * configure.host: Remove m680[01]0-sun-sunos3*,
9379 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9380 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9381 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9382 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9384 * NEWS: Mention removed systems.
9386 2004-04-04 Andrew Cagney <cagney@redhat.com>
9388 GDB 6.1 release created from 6.1 branch.
9390 2004-04-04 Andrew Cagney <cagney@redhat.com>
9392 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9393 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9394 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9396 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9397 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9398 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9400 2004-04-03 Jim Blandy <jimb@redhat.com>
9402 * MAINTAINERS: Chris Faylor has changed employers; add him to
9403 "paper trail" section, and update his E-mail address.
9405 2004-04-03 Andrew Cagney <cagney@redhat.com>
9407 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9408 generic dummy frames.
9409 * dummy-frame.c: Update copyright.
9410 (dummy_frame_sniffer): Delete check for generic dummy frames.
9412 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9413 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9414 (REG_PARM_STACK_SPACE): Delete.
9415 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9416 Inline reference to REG_PARM_STACK_SPACE.
9418 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9419 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9420 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9421 (FRAME_BASE_BEFORE_SIGTRAMP)
9422 (hppa32_hpux_frame_base_before_sigtramp)
9423 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9424 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9425 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9426 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9427 (FRAME_BASE_BEFORE_SIGTRAMP)
9428 (hppa64_hpux_frame_base_before_sigtramp)
9429 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9431 2004-04-03 Andrew Cagney <cagney@redhat.com>
9433 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9435 2004-04-02 Andrew Cagney <cagney@redhat.com>
9437 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9438 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9439 * dummy-frame.h: Delete out-of-date comments.
9440 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9441 * gdbarch.h, gdbarch.c: Re-generate.
9443 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9445 Committed by Andrew Cagney <cagney@redhat.com>.
9446 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9447 into account an instruction saving a register if we have already
9448 seen an earlier instruction saving that same register.
9450 2004-04-02 Andrew Cagney <cagney@redhat.com>
9452 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9453 * gdbarch.h, gdbarch.c: Re-generate.
9454 * frame.c (legacy_get_prev_frame): Delete references to
9455 DEPRECATED_INIT_FRAME_PC_FIRST.
9457 * infrun.c (pc_in_sigtramp): Delete function.
9458 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9461 2004-04-02 Andrew Cagney <cagney@redhat.com>
9463 * infrun.c (handle_step_into_function): Delete code conditional on
9465 (handle_inferior_event, step_over_function): Ditto.
9467 2004-04-02 Andrew Cagney <cagney@redhat.com>
9469 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9470 "previous frame inner to this frame" test.
9472 2004-04-02 Andrew Cagney <cagney@redhat.com>
9474 * frame.c (safe_frame_unwind_memory): New function.
9475 * frame.h (safe_frame_unwind_memory): Declare. Update description
9477 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9478 "next_frame". Use safe_frame_unwind_memory.
9479 (tramp_frame_sniffer): Update call to tramp_frame_start.
9481 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9483 * dwarf2read.c (dwarf2_objfile_data_key): New.
9484 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9485 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9486 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9487 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9488 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9489 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9490 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9492 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9493 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9494 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9495 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9496 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9497 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9499 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9501 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9502 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9503 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9504 (read_partial_die, read_full_die, read_indirect_string)
9505 (dwarf_decode_line_header, dwarf_decode_macros)
9506 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9507 Update uses of removed variables.
9508 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9510 (_initialize_dwarf2_read): New function.
9511 * symfile.h (dwarf2_has_info): Update prototype.
9512 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9513 * elfread.c (elf_symfile_read): Likewise.
9515 2004-04-01 Jim Blandy <jimb@redhat.com>
9517 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9518 function for register numbers on all the rs6000-derived targets.
9519 (rs6000_gdbarch_init): Don't register a separate
9520 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9521 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9524 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9527 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9529 * valarith.c: Update copyright notice.
9530 (value_add): Handle range types.
9532 (value_equal): Ditto.
9533 (value_less): Ditto.
9535 (value_complement): Ditto.
9536 (value_binop): Simplify slightly by using is_integral_type and
9537 eliminiating unnecessary COERCE_ENUMs.
9539 2004-03-31 Andrew Cagney <cagney@redhat.com>
9541 * frame.h (frame_unwind_id): Declare.
9542 * frame.c (frame_unwind_id): New function.
9543 (get_prev_frame_1): New function.
9544 (frame_debug_got_null_frame): New function.
9545 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9546 code proper to prev_frame, update description.
9547 * infrun.c (step_over_function): Use frame_unwind_id.
9549 2004-04-31 J. Brobecker <brobecker@gnat.com>
9551 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9552 (hppa64_push_dummy_call): Likewise.
9554 2004-03-30 Jim Blandy <jimb@redhat.com>
9556 From Ulrich Weigand:
9557 * utils.c (query): Do not use a va_list variable multiple times.
9559 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9561 * Makefile.in (linux_nat_h): Update dependencies.
9562 * configure.in: Check for <gnu/libc-version.h>.
9563 * configure: Regenerate.
9564 * config.in: Regenerate.
9565 * linux-nat.h: Include "target.h". Add waitstatus field to
9567 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9568 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9570 (lin_lwp_handle_extended): New function. Handle clone events.
9571 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9573 (child_wait): Handle clone events.
9574 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9575 * linux-nat.c (linux_enable_event_reporting): Turn on
9576 PTRACE_O_TRACECLONE.
9577 (linux_handle_extended_wait): Handle clone events.
9578 * thread-db.c: Include <gnu/libc-version.h>.
9579 (struct private_thread_info): Add dying flag.
9580 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9582 (attach_thread): Update comments. Handle dying threads.
9583 (detach_thread): Set the dying flag.
9584 (check_event): Always call attach_thread.
9586 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9588 * mips-tdep.c (mips_pdr_data): New.
9589 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9590 (_initialize_mips_tdep): Initialize mips_pdr_data.
9592 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9594 * minsyms.c (install_minimal_symbols): Move dropping leading
9595 char from linkage name from here...
9596 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9597 test for "__gnu_compiled*" symbols.
9599 2004-03-28 Jim Blandy <jimb@redhat.com>
9601 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9602 registers to temp register r0 and byte stores as prologue
9605 2004-03-28 Andrew Cagney <cagney@redhat.com>
9607 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9610 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9612 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9613 and switch the layout to force a display of register window.
9615 2004-02-26 J. Brobecker <brobecker@gnat.com>
9617 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9618 of the INTEGER class.
9620 2004-03-26 Jim Blandy <jimb@redhat.com>
9622 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9623 bytes long on PPC GNU/Linux.
9625 2004-03-26 David Carlton <carlton@kealia.com>
9627 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9629 2004-03-25 Andrew Cagney <cagney@redhat.com>
9631 * PROBLEMS: Add general section titles, remove references to
9634 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9636 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9638 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9639 FP_REGISTER_VIRTUAL_SIZE.
9640 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9641 of DEPRECATED_REGISTER_RAW_SIZE.
9642 (arm_register_type): Add gdbarch argument.
9643 (arm_register_raw_size, arm_register_virtual_size): Delete.
9644 (arm_register_byte, arm_extract_return_value)
9645 (arm_store_return_value, arm_get_longjmp_target): Update references
9646 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9647 (arm_gdbarch_init): Likewise. Don't set
9648 deprecated_register_raw_size, deprecated_register_virtual_size,
9649 deprecated_max_register_raw_size,
9650 deprecated_max_register_virtual_size, or
9651 deprecated_max_register_virtual_type. Do set register_type.
9652 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9653 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9654 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9655 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9656 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9657 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9659 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9660 (remote_rdp_store_register): Likewise.
9662 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9664 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9665 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9666 to after osabi initialization.
9667 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9668 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9670 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9671 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9673 (mips_linux_init_abi): Append signal trampoline unwinders.
9675 2004-03-24 Andrew Cagney <cagney@redhat.com>
9677 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9678 * tramp-frame.c: Include "gdb_assert.h".
9679 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9681 (tramp_frame_append): Validate the tramp frame's instructions.
9682 * Makefile.in (tramp-frame.o): Update dependencies.
9684 2004-03-23 Andrew Cagney <cagney@redhat.com>
9686 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9688 2004-03-23 Andrew Cagney <cagney@redhat.com>
9690 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9691 Nasser as past testsuite/lib/ (and other) maintainers.
9693 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9695 * infcmd.c (attach_command): Reread symbols if we already have
9698 2004-03-23 Andrew Cagney <cagney@redhat.com>
9700 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9702 2004-03-23 Andrew Cagney <cagney@redhat.com>
9704 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9705 * gdbarch.h, gdbarch.c: Re-generate.
9706 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9707 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9708 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9709 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9710 (DEPRECATED_SIGTRAMP_START): Update.
9711 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9712 (DEPRECATED_SIGTRAMP_START): Update.
9713 * blockframe.c (find_pc_sect_partial_function): Update.
9714 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9716 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9718 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9721 2004-03-23 Andrew Cagney <cagney@redhat.com>
9723 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9724 predicate, deprecate.
9725 * gdbarch.h, gdbarch.c: Re-generate.
9726 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9727 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9728 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9729 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9730 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9731 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9732 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9733 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9734 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9735 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9736 * blockframe.c (find_pc_partial_function): Update.
9737 * breakpoint.c (bpstat_what): Update.
9738 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9739 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9740 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9741 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9742 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9743 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9744 * i386-nto-tdep.c (i386nto_init_abi): Update.
9745 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9746 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9747 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9748 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9749 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9750 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9751 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9752 * infrun.c (pc_in_sigtramp): Update.
9753 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9754 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9755 * mips-tdep.c (mips_gdbarch_init): Update.
9756 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9757 * ppc-linux-tdep.c: Update comment.
9758 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9759 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9760 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9761 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9762 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9763 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9764 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9765 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9766 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9767 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9769 2004-03-23 Andrew Cagney <cagney@redhat.com>
9771 * tramp-frame.h, tramp-frame.h: New files.
9772 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9773 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9775 * Makefile.in: Update all dependencies.
9777 2004-03-23 Andrew Cagney <cagney@redhat.com>
9779 * Makefile.in (trad_frame_h): Add $(frame_h).
9780 * trad-frame.h: Update copyright. Include "frame.h".
9781 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9782 (trad_frame_set_id, trad_frame_get_id): Declare.
9783 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9784 * trad-frame.c: Update copyright.
9785 (struct trad_frame_cache): Define.
9786 (trad_frame_cache_zalloc): New function.
9787 (trad_frame_set_id, trad_frame_get_id): New functions.
9788 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9790 2004-03-22 Andrew Cagney <cagney@redhat.com>
9792 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9793 s390_pltstub_unwind_cache.
9794 (s390_stub_frame_unwind_cache): Rename
9795 s390_pltstub_frame_unwind_cache.
9796 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9797 (s390_stub_frame_prev_register): Rename
9798 s390_pltstub_frame_prev_register.
9799 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9800 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9802 From Ulrich Weigand:
9803 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9804 pointer calls like PLT calls.
9806 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9808 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9809 PC rather than the partial function start address. Use the start
9810 address to sanity check the found PDR.
9812 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9814 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9815 linux_handle_extended_wait.
9817 2004-03-22 Andrew Cagney <cagney@redhat.com>
9819 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9822 * frame.h (generic_pop_current_frame): Delete declaration.
9823 (deprecate_pop_dummy_frame): Deprecate
9824 generic_pop_dummy_frame.
9825 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9826 (generic_pop_current_frame): Delete function.
9827 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9828 generic_pop_current_frame.
9829 * v850-tdep.c (v850_pop_frame): Update.
9830 * mcore-tdep.c (mcore_pop_frame): Update.
9831 * sh64-tdep.c (sh64_pop_frame): Update.
9832 * h8300-tdep.c (h8300_pop_frame): Update.
9834 2004-03-22 Andrew Cagney <cagney@redhat.com>
9836 * frame.h (deprecated_pc_in_call_dummy): Rename
9837 generic_pc_in_call_dummy.
9838 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9839 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9840 generic_pc_in_call_dummy.
9841 (pc_in_dummy_frame): Make static.
9842 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9843 * gdbarch.h, gdbarch.c: Re-generate.
9844 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9845 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9846 (legacy_get_prev_frame): Ditto.
9847 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9850 2004-03-21 Andrew Cagney <cagney@redhat.com>
9852 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9853 declaration and out-of-date comment.
9854 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9856 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9857 deprecated_pc_in_call_dummy.
9859 * infrun.c (handle_inferior_event): For non legacy frames, use the
9860 frame ID and frame type to identify a signal trampoline. Update
9863 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9865 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9866 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9868 2004-03-21 Andrew Cagney <cagney@redhat.com>
9870 * frame-unwind.h: Update copyright.
9871 (struct frame_data): Add opaque declaration.
9872 (frame_sniffer_ftype): Declare.
9873 (struct frame_unwind): Add "unwind_data" and "sniffer".
9874 (frame_unwind_register_unwinder): Declare.
9875 (frame_unwind_find_by_frame): Add parameter "this_cache".
9876 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9877 (legacy_get_prev_frame, legacy_get_prev_frame)
9878 (get_frame_type): Pass the prologue_cache to
9879 frame_unwind_find_by_frame.
9880 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9882 (frame_unwind_register_unwinder): New function.
9883 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9885 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9887 * bcache.c (print_percentage): Use floating point to avoid
9888 incorrect results when portion*100 overflows.
9890 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9892 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9893 (ppc_linux_init_extra_frame_info)
9894 (ppc_linux_frameless_function_invocation)
9895 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9896 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9897 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9898 (rs6000_frame_chain): Delete declarations.
9899 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9900 (ppc_linux_init_extra_frame_info)
9901 (ppc_linux_frameless_function_invocation)
9902 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9903 (ppc_linux_init_abi): Remove registration of above deleted functions.
9904 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9905 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9906 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9907 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9908 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9909 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9910 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9911 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9912 frame management for all OSABIs.
9914 2004-03-19 Andrew Cagney <cagney@redhat.com>
9916 Committed by Kevin Buettner <kevinb@redhat.com>.
9918 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9920 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9921 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9922 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9923 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9924 unwinders. #ifdef legacy frame code.
9925 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9927 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9928 (struct rs6000_frame_cache, rs6000_frame_cache)
9929 (rs6000_frame_this_id, rs6000_frame_prev_register)
9930 (rs6000_frame_sniffer, rs6000_frame_unwind)
9931 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9932 (rs6000_frame_base): Implement a traditional frame unwinder.
9933 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9936 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9938 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9939 breakpoint address for watchpoints or the catch eventpoints.
9940 Add new paramter ``bptype''. Adjust all callers.
9942 2004-03-19 Andrew Cagney <cagney@redhat.com>
9944 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9946 * PROBLEMS: Delete note that ARM does not use frame code, problem
9949 2004-03-18 Andrew Cagney <cagney@redhat.com>
9951 * stack.c (return_command): Delete code wrapped in #ifdef
9952 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9954 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9956 2004-03-18 Andrew Cagney <cagney@redhat.com>
9958 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9959 DEPRECATED_IN_SIGTRAMP.
9960 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9961 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9962 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9963 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9964 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9965 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9966 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9967 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9968 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9969 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9971 2004-03-18 Andrew Cagney <cagney@redhat.com>
9973 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9974 (struct frame_base_table_entry): Define.
9975 (struct frame_base_table): Re-implement as a linked list.
9976 (frame_base_init): Re-implement.
9977 (frame_base_table): Delete function.
9978 (append_predicate): Delete function.
9979 (frame_base_append_sniffer): Update.
9980 (frame_base_set_default): Update.
9981 (frame_base_find_by_frame): Update.
9982 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9983 * Makefile.in (frame-base.o): Update dependencies.
9985 2004-03-17 Andrew Cagney <cagney@redhat.com>
9987 * frame.c (legacy_get_prev_frame): Pass correct frame to
9988 frame_unwind_find_by_frame.
9990 2004-03-17 David Carlton <carlton@kealia.com>
9992 * NEWS: Mention C++ nested types and namespaces
9994 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9996 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9997 and "Regressions since gdb 5.3.". Add known regressions since
10000 2004-03-16 David Carlton <carlton@kealia.com>
10002 * dwarf2read.c (process_structure_scope): Process children even
10003 when we're a declaration.
10005 2004-03-16 Andrew Cagney <cagney@redhat.com>
10007 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10008 * blockframe.c (find_pc_partial_function)
10009 (find_pc_sect_partial_function): Merge into a single
10010 find_pc_partial_function.
10012 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10014 * i386bsd-nat.c: s/regno/regnum/g.
10015 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10017 (store_inferior_registers): Likewise.
10019 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10021 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10022 of i387_fill_fsave.
10023 (store_inferior_registers): Call i387_collect_fsave and
10024 i387_collect_fxsave instead of i387_fill_fsave and
10027 2004-03-15 Andrew Cagney <cagney@redhat.com>
10029 * Makefile.in (frame-unwind.o): Update dependencies.
10030 * frame-unwind.c: Include "gdb_obstack.h".
10031 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10033 (append_predicate): Delete function.
10034 (struct frame_unwind_table_entry): New structure.
10035 (struct frame_unwind_table): Replace "sniffer" with "head" and
10037 (frame_unwind_append_sniffer): Update.
10038 (frame_unwind_find_by_frame): Update.
10039 (_initialize_frame_unwind): Registe frame_unwind_init using
10040 gdbarch_data_register_pre_init.
10042 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10044 * i386bsd-nat.c: Update copyright year.
10045 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10046 define unconditionally.
10048 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10050 * i387-tdep.h (i387_collect_fsave): New prototype.
10051 * i387-tdep.c (i387_collect_fsave): New function containing most
10052 of the code from i387_fill_fsave.
10053 (i387_fill_fsave): Call i387_collect_fsave.
10055 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10057 * i386-linux-tdep.c: Update copyright year.
10058 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10059 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10060 svr4_ilp32_link_map_offsets instead of
10061 i386_linux_svr4_fetch_link_map_offsets.
10063 2004-03-15 David Carlton <carlton@kealia.com>
10065 Fix for PR c++/1553:
10066 * dwarf2read.c (read_structure_type): Determine type name by
10067 calling determine_class_name.
10068 (determine_class_name): New.
10069 (determine_prefix): Look at TYPE_TAG_NAME and call
10070 determine_class_name when appropriate.
10071 (determine_prefix_aux, class_name): Delete.
10072 (read_namespace): Set die->type.
10074 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10076 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10077 unused macro definition. The definition in target.h (or perhaps
10078 elsewhere) takes precedence.
10080 2004-03-15 Andrew Cagney <cagney@redhat.com>
10082 * ppc-tdep.h: Update copyright.
10083 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10084 function signatures to match "regsets.h".
10085 * ppc-linux-tdep.c: Include "regset.h".
10086 (ELF_GREGSET_SIZE): Delete.
10087 (right_supply_register): New function.
10088 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10089 using right_supply_register.
10090 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10092 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10093 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10094 (_initialize_ppc_linux_tdep): Do not register
10095 ppc_linux_regset_core_fns.
10096 (ppc_linux_regset_from_core_section): Replace
10097 fetch_core_registers.
10098 (ppc_linux_regset_core_fns): Delete.
10099 * ppc-linux-nat.c: (right_fill_reg): New function.
10100 (supply_gregset): Update call to ppc_linux_supply_gregset.
10101 (fill_gregset): Clear the register set, use right_fill_reg.
10102 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10103 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10105 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10108 2004-03-15 Andrew Cagney <cagney@redhat.com>
10110 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10111 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10112 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10113 and register_gdbarch_data.
10114 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10115 (struct gdbarch_data): Replace "init" by "pre_init" and
10117 * gdbarch.h, gdbarch.c: Re-generate.
10118 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10119 with"obstack", use OBSTACK_ZALLOC.
10120 (dwarf2_frame_ops): Delete.
10121 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10122 (dwarf2_frame_init_reg): Use gdbarch_data.
10123 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10124 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10125 (_initialize_svr4_solib): Update.
10126 * user-regs.c (_initialize_user_regs): Update.
10127 * reggroups.c (_initialize_reggroup): Update.
10128 * regcache.c (_initialize_regcache): Update.
10129 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10130 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10131 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10132 * frame-unwind.c (_initialize_frame_unwind): Update.
10133 * frame-base.c (_initialize_frame_base): Update.
10134 * user-regs.c (user_reg_add): Update.
10135 * reggroups.c (reggroup_add): Update.
10136 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10137 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10138 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10139 * frame-base.c (frame_base_table): Update.
10140 * remote.c (_initialize_remote): Update.
10141 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10143 2004-03-15 Andrew Cagney <cagney@redhat.com>
10145 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10147 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10149 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10150 * frv-linux-tdep.c: New file.
10151 * frv-tdep.c (struct gdbarch_tdep): Add new field
10152 ``sigcontext_reg_addr''.
10153 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10154 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10155 (frv_sigramp_frame_sniffer): New functions.
10156 (frv_sigtramp_frame_unwind): New static global.
10157 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10159 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10160 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10162 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10164 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10165 but not via a call to error(), when unable to read memory.
10167 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10169 * frv-tdep.c (frv_call_dummy_words): Delete.
10170 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10172 2004-03-15 Andrew Cagney <cagney@redhat.com>
10174 * infrun.c (handle_step_into_function, step_over_function): Only
10175 update and use STEP_FRAME_ID when the system is using legacy
10176 frames. Update comments.
10178 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10180 * amd64-linux-tdep.h: Remove file.
10181 * amd64-linux-tdep.c: Don't include "inferior.h" and
10182 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10183 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10184 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10185 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10186 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10188 (user_to_gdb_regmap): Remove variable.
10189 (amd64_linux_gregset_reg_offset): New variable.
10190 (amd64_core_fns): Remove variable.
10191 (fetch_core_registers): Remove function.
10192 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10194 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10195 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10196 * Makefile.in (amd64_linux_tdep_h): Remove.
10197 (amd64-linux-nat.o): Update dependencies.
10198 (amd64-linux-tdep.o): Update dependencies.
10200 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10201 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10203 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10205 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10206 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10208 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10210 * dwarf2read.c (read_structure_type): Rename from
10211 read_structure_scope. Don't create a symbol or call process_die.
10212 Return immediately if die->type is set. Call read_type_die before
10213 dwarf2_add_member_fn.
10214 (process_structure_scope): New function.
10215 (read_enumeration_type, process_enumeration_scope): New functions,
10216 broken out from read_enumeration. Don't create the enumeration
10217 type if it has already been created.
10218 (read_enumeration): Removed.
10219 (process_die): Call read_structure_type, process_structure_scope,
10220 read_enumeration_type, and process_enumeration_scope. Just call
10221 new_symbol for base and subrange types. Add a comment about other
10223 (read_type_die): Call read_enumeration_type.
10224 (add_partial_structure, new_symbol): Update comments.
10226 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10228 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10230 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10232 * tui/tui-win.h (tui_get_cmd_list): Declare.
10233 * tui/tui-win.c (tui_command): New function.
10234 (tui_get_cmd_list): New function.
10235 (_initialize_tui_win): Moved initialization of tui command in
10238 * tui/tui-data.c (init_content_element): Setup new data members.
10239 (init_win_info): Likewise.
10240 (free_content_elements): Free it.
10241 * tui/tui-data.h (struct tui_data_element): Store the register
10243 (struct tui_data_info): Keep the current register group.
10245 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10247 * tui/tui-regs.h (tui_show_registers): Update prototype.
10248 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10249 (tui_resize_all): No need to calculate anything for register window.
10250 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10251 (tui_set_register_element, tui_set_general_regs_content): Remove.
10252 (tui_set_special_regs_content): Remove.
10253 (tui_set_general_and_special_regs_content): Remove.
10254 (tui_set_float_regs_content): Remove.
10255 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10256 (tui_set_regs_content): Remove.
10257 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10258 (tui_v_show_registers_command_support): Remove.
10259 (tui_show_registers): Use a reggroup to specify the registers to show.
10260 (tui_show_register_group): New function.
10261 (tui_display_registers_from): Compute the layout of register window
10262 and refresh with new API; be sure to delete old register windows.
10263 (tui_check_register_values): Update to use tui_get_register and
10265 (tui_display_register): Just refresh the register window part.
10266 (tui_register_format): Format registers and save in tui_data_element.
10267 (tui_get_register): New to combine tui_reg_value_has_changed and
10268 tui_get_register_raw_value; fix to use the new gdb API.
10269 (tui_show_float_command): Renamed tui_reg_float_command.
10270 (tui_show_general_command): Renamed tui_reg_general_command.
10271 (tui_show_special_command): Renamed tui_reg_system_command.
10272 (_initialize_tui_regs): Remove unused commands.
10274 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10276 * NEWS (New native configurations): Mention OpenBSD/amd64.
10278 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10279 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10281 * config/i386/nm-fbsd64.h: Likewise.
10282 * config/i386/nm-obsd.h: Likewise.
10283 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10284 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10286 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10288 * frv-tdep.c (set_variant_scratch_registers): New function.
10289 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10292 From Richard Sandiford <rsandifo@redhat.com>:
10293 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10295 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10297 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10298 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10299 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10300 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10301 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10302 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10303 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10304 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10305 definitions from frv-tdep.c to frv-tdep.h.
10307 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10309 Add shared library support for FR-V FDPIC ABI:
10310 * Makefile.in (solib-frv.o): Add dependencies.
10311 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10313 (frv_push_dummy_call): Add support for FDPIC ABI.
10314 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10316 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10317 (frv_fdpic_find_canonical_descriptor): Declare.
10318 * solib-frv.c: New file.
10319 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10320 * config/frv/tm-frv.h (solib.h): Include.
10322 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10324 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10325 (frv-tdep.o): Update dependencies.
10326 * frv-tdep.h: New file.
10327 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10328 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10330 (struct gdbarch_tdep): Add new member ``frv_abi''.
10331 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10333 (new_variant): Set ``frv_abi'' field.
10334 (gdb_arch_init): Detect FDPIC executables.
10336 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10338 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10341 2004-03-11 Andrew Cagney <cagney@redhat.com>
10343 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10345 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10347 * solist.h (master_so_list): New function.
10348 * solib.c (master_so_list): Likewise.
10349 * solib-svr4.c (enable_break): Iterate over so_list entries
10350 obtained from master list instead of entries obtained directly
10351 via svr4_current_sos().
10353 2004-03-10 Ben Elliston <bje@gnu.org>
10355 * MAINTAINERS: Update my mail address.
10357 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10359 * remote-m32r-sdi.c: Support hardware watchpoint.
10361 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10363 * user-regs.c: Update copyright years.
10364 (struct user_regs): Rename to gdb_user_regs.
10365 (append_user_reg, builtin_user_regs, user_regs_init)
10366 (user_reg_add, user_reg_map_name_to_regnum)
10367 (usernum_to_user_reg): Update.
10369 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10371 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10372 (skip_children): New functions.
10373 (locate_pdi_sibling): Call skip_children.
10375 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10377 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10378 * gdbtypes.c (check_typedef): Update comments.
10380 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10382 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10383 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10384 pointer. Update comment about comp_unit_head.
10385 (struct abbrev_info): Shorten two int flags.
10386 (dwarf_alloc_abbrev): Take a CU argument.
10387 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10388 each time through the loop. Update cleanup argument.
10389 (psymtab_to_symtab_1): Update cleanup call.
10390 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10392 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10393 Just call obstack_free and clear the pointer.
10395 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10397 * infrun.c (handle_inferior_event): Remove short-circuit code for
10398 events in a different thread.
10400 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10402 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10403 print the whole transfer.
10404 (initialize_targets): Update description of "set debug target".
10406 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10408 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10410 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10412 * MAINTAINERS (write after approval): Add myself.
10414 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10416 * sh-tdep.c (sh_print_registers_info): Use for loop.
10417 Don't skip multiple registers when a float register is encountered.
10419 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10422 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10423 to official SH documentation.
10425 2004-03-07 Andrew Cagney <cagney@redhat.com>
10427 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10430 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10432 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10433 (arm_get_next_pc): Handle BX and BLX.
10435 2004-03-07 Andrew Cagney <cagney@redhat.com>
10437 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10438 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10440 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10441 (hppa_target_read_fp): Delete.
10442 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10443 register_virtual_size, max_register_raw_size,
10444 max_register_virtual_size, register_byte, register_size,
10445 target_read_fp, fp_regnum, and register_bytes. Set register_type
10446 instead of register_virtual_type.
10447 (hppa32_register_type, hppa64_register_type): Replace
10448 hppa32_register_virtual_type and hppa64_register_virtual_type.
10449 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10450 (HPPA_FP_REGNUM): Define.
10452 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10454 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10455 (pa_do_registers_info): Delete.
10456 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10457 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10458 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10460 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10461 GDB_TARGET_IS_HPPA code.
10462 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10463 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10464 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10465 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10466 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10467 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10468 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10469 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10470 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10471 (hppa_frameless_function_invocation, hppa64_store_return_value)
10472 (hppa_store_struct_return, hppa64_extract_return_value)
10473 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10474 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10475 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10476 (find_proc_framesize, deposit_21, restore_pc_queue)
10477 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10478 (rp_saved, pc_in_linker_stub): Delete.
10480 Unconditionally enable 64-bit frame and ABI code.
10481 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10482 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10483 push_dummy_frame, fix_call_dummy, push_arguments,
10484 call_dummy_location, extract_return_value, use_struct_convention,
10485 store_return_value, store_struct_return, saved_pc_after_call,
10486 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10487 frame_chain, frame_chain_valid, frameless_function_invocation,
10488 frame_saved_pc, and pop_frame.
10490 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10491 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10492 (hppa_gdbarch_init): Do not set PC_REGNUM.
10494 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10496 * config/alpha/tm-fbsd.h: Remove file.
10497 * config/alpha/fbsd.mt: Tweak comment.
10498 (TM_FILE): Set to tm-alpha.h.
10500 2004-03-05 Andrew Cagney <cagney@redhat.com>
10502 * infrun.c (step_over_function): When non-legacy code, and no
10503 step_frame_id, use the unwinder to get the caller's frame ID.
10505 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10507 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10508 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10509 bfd_arch_unknown. Adjust comment.
10511 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10512 * i386obsd-tdep.c: Correct spelling in comment.
10513 * i386nbsd-tdep.c: Correct spelling in comment.
10514 * sparc-tdep.c: Correct spelling in comments.
10516 2004-03-05 David Carlton <carlton@kealia.com>
10518 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10521 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10523 * sparc-tdep.c: Fix typo in comment.
10525 2004-03-04 J. Brobecker <brobecker@gnat.com>
10527 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10529 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10531 * dwarf2read.c: Add comment describing memory lifetimes.
10532 (struct dwarf2_pinfo): Update comment.
10533 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10534 (read_enumeration, new_symbol): Don't use obsavestring.
10536 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10538 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10539 instead of amd64_fill_fxsave.
10540 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10541 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10543 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10544 Reorganize code a bit.
10546 2004-03-04 Orjan Friberg <orjanf@axis.com>
10548 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10549 when the frame pointer is pushed. Don't set the frame pointer's
10550 address on the stack unless it's actually located there.
10551 Set the SRP's address on the stack correctly when the PC is still in
10553 (cris_return_value): New function.
10554 (cris_gdbarch_init): Clear deprecated store_return_value,
10555 extract_return_value.
10557 2004-03-02 Jim Blandy <jimb@redhat.com>
10559 * stabsread.c (reg_value_complaint): The maximum register number
10560 is one less than the number of registers.
10562 2004-03-02 Andrew Cagney <cagney@redhat.com>
10564 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10565 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10566 trailing comma and redundant assignment of I386_ST0_REGNUM.
10567 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10568 32-bit segment registers.
10570 2004-03-01 Andrew Cagney <cagney@redhat.com>
10572 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10573 use frame_relative_level and get_next_frame.
10575 2004-02-29 Andrew Cagney <cagney@redhat.com>
10577 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10578 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10579 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10582 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10584 * inflow.c (terminal_inferior): Don't give up the terminal if we
10585 previously couldn't get the inferior's terminal state.
10587 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10589 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10592 2004-02-28 Andrew Cagney <cagney@redhat.com>
10594 * NEWS: Refer to GDB 6.1.
10595 * README: Refer to GDB 6.1.
10596 * PROBLEMS: Refer to GDB 6.1.
10598 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10600 * thread-db.c (disable_thread_signals): Remove unused function.
10602 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10604 * amd64-nat.c: Include "gdb_string.h".
10605 (amd64_collect_native_gregset): Zero-extend the 32-bit
10606 general-purpose registers and %eip.
10608 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10609 * amd64-tdep.c (amd64_collect_fxsave): New function.
10610 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10612 * i387-tdep.h: Update copyright year.
10613 (i387_collect_fxsave): New prototype.
10614 * i387-tdep.c: Update copyright year.
10615 (i387_collect_fxsave): New function containing most of the code
10616 from i387_fill_fxsave.
10617 (i387_fill_fxsave): Call i387_collect_fxsave.
10619 2004-02-28 Andrew Cagney <cagney@redhat.com>
10621 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10622 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10624 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10626 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10628 2004-02-28 Andrew Cagney <cagney@redhat.com>
10630 * utils.c: Use "", instead of <>, to include readline.
10631 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10632 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10633 * source.c, solib.c, exec.c, event-top.c: Ditto.
10634 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10635 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10636 * Makefile.in: Update all dependencies.
10637 (readline_tilde_h, readline_history_h): Define.
10638 (readline_headers): Delete.
10640 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10642 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10643 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10644 "config/i386/tm-lx64.h".
10646 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10647 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10648 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10650 2004-02-28 Andrew Cagney <cagney@redhat.com>
10652 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10654 * breakpoint.c (_initialize_breakpoint): Use
10655 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10656 Add help to show command.
10658 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10660 * i386-nat.c: Reformat to be closer to coding standards.
10661 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10662 `retval'. Make variables `align' and `size' local to while-loop.
10663 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10664 (_initialize_i386_nat): New prototype.
10666 * tui/tui.c: Include <readline/readline.h> instead of
10667 "readline/readline.h". Include it after <term.h> and
10670 2004-02-27 Andrew Cagney <cagney@redhat.com>
10672 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10673 the new frame unwind code.
10674 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10675 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10678 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10679 "return_value" and "push_dummy_call".
10680 (hppa32_use_struct_convention): Delete unused function.
10681 (hppa32_store_return_value): Delete unused function.
10682 (hppa32_extract_return_value): Delete unused function.
10683 (hppa32_stack_align): Delete function.
10685 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10687 * coffread.c (enter_linenos): Don't let rawptr reference memory
10688 outside linetab[]'s limits.
10690 2004-02-27 Andrew Cagney <cagney@redhat.com>
10692 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10693 inferior stack space - the stack needs to grow upwards.
10694 (hppa32_frame_align): New function.
10695 (hppa64_frame_align): Replace hppa_frame_align.
10696 (hppa_gdbarch_init): Update.
10698 2004-02-26 Orjan Friberg <orjanf@axis.com>
10700 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10701 (dwarf2-frame.h): Include.
10702 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10703 Remove static variables related to ABI setting.
10704 (struct gdbarch_tdep): Remove cris_abi member.
10705 (struct frame_extra_info): Remove.
10706 (cris_unwind_cache, stack_item): New structs.
10707 (cris_frame_unwind, cris_frame_base): New variables.
10708 (push_stack_item, pop_stack_item)
10709 (cris_frame_unwind_cache, cris_frame_this_id)
10710 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10711 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10712 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10713 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10714 (cris_reg_struct_has_addr): New functions.
10715 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10716 (cris_frame_saved_pc, cris_saved_pc_after_call,
10717 (cris_store_struct_return, cris_frameless_function_invocation)
10718 (cris_pop_frame, cris_skip_prologue_main)
10719 (cris_abi_original_store_return_value)
10720 (cris_abi_v2_store_return_value)
10721 (cris_abi_original_extract_return_value)
10722 (cris_abi_v2_extract_return_value)
10723 (cris_abi_original_reg_struct_has_addr)
10724 (cris_abi_v2_reg_struct_has_addr)
10725 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10726 (cris_push_return_address, cris_abi_update): Remove.
10727 (_initialize_cris_tdep): Remove ABI command.
10728 (cris_dump_tdep): Ditto.
10729 (cris_gdbarch_init): Remove ABI command.
10730 Set store_return_value, extract_return_value, push_dummy_code,
10731 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10732 frame_unwind_append_sniffer, frame_base_set_default.
10733 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10734 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10735 sizeof_call_dummy_words, get_saved_register, push_return_address,
10736 pop_frame, store_struct_return, frame_init_saved_regs,
10737 init_extra_frame_info, frameless_function_invocation, frame_chain,
10738 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10741 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10743 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10744 * valprint.c (print_hex_chars): Change from static to external.
10745 (print_char_chars): New function.
10746 * printcmd.c (print_scalar_formatted): For integer and enum types
10747 that are longer than LONGEST, perform processing via appropriate
10748 print_*_chars routines.
10750 2004-02-26 Andrew Cagney <cagney@redhat.com>
10752 * Makefile.in: Update dependencies.
10753 Changes from Ulrich Weigand,
10754 * s390-tdep.c: Include "dwarf2-frame.h".
10755 (s390_dwarf2_frame_init_reg): New function.
10756 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10757 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10759 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10761 * breakpoint.c (pending_break_support): New setting variable.
10762 (break_command_1): Account for pending_break_support setting
10763 when creating pending breakpoints.
10764 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10765 (_initialize_breakpoint): Add "set breakpoint pending" and
10766 "show breakpoint pending" commands.
10768 2004-02-26 Andrew Cagney <cagney@redhat.com>
10771 * charset.c (backslashable, backslashed, represented): Remove 'e'
10772 from list of escaped characters, not part of ISO-C.
10774 2004-02-25 J. Brobecker <brobecker@gnat.com>
10776 From Peter Schauer <schauer@pdf.de>:
10777 * tui/tui.c: Move system header includes after local includes.
10778 Fixes a build failure on solaris systems.
10780 2004-02-25 J. Brobecker <brobecker@gnat.com>
10782 * configure.in: Refine the previous change.
10783 * configure: Regenerate.
10785 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10787 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10788 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10789 "amd64-tdep.h" instead of "x86-64-tdep.h".
10790 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10791 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10792 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10793 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10794 and "x86-64-tdep.c".
10795 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10796 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10797 and "x86-64-tdep.c".
10798 * amd64bsd-nat.c: Update copyright year.
10799 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10800 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10802 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10804 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10806 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10808 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10810 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10812 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10813 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10814 * Makefile.in (amd64_linux_tdep_h): Renamed from
10815 x86_64_linux_tdep_h.
10816 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10817 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10818 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10819 (amd64obsd-tdep.o): Update dependencies.
10820 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10822 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10824 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10825 amd64-linux-nat.c amd64-linux-tdep.c.
10826 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10827 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10828 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10829 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10830 amd64-tdep.o and amd64-linux-tdep.o.
10831 (TM_FILE): Set to tm-linux64.h.
10832 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10833 (NAT_FILE): Set to nm-linux64.h.
10834 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10835 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10837 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10839 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10842 2004-02-25 Roland McGrath <roland@redhat.com>
10844 * remote.c (remote_protocol_qPart_auxv): New variable.
10845 (init_all_packet_configs): Initialize it.
10846 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10847 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10848 (show_remote_cmd): Call it.
10849 (_initialize_remote): Initialize commands.
10850 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10851 service TARGET_OBJECT_AUXV requests.
10853 2004-02-25 J. Brobecker <brobecker@gnat.com>
10855 * configure.in: Make sure that the wborder function is available.
10856 Otherwise, search for it in the cur_colr library.
10857 * configure: Regenerate.
10859 2004-02-25 Andrew Cagney <cagney@redhat.com>
10861 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10863 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10865 * config/i386/tm-x86-64linux.h: Tweak comments.
10867 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10869 * MAINTAINERS: Add self to write-after-approval list.
10871 2004-02-25 Andrew Cagney <cagney@redhat.com>
10873 PR cli/1566. Problem found, and fix suggested by David Allan.
10874 * cli/cli-script.c (execute_control_command): Unconditionally
10875 install a cleanup. Default "ret" to "invalid_control". Use
10876 "break" instead of "return" to escape from the switch.
10878 2004-02-24 J. Brobecker <brobecker@gnat.com>
10880 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10881 with the lines macro defined in term.h on AiX.
10882 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10883 a collision with the label_width macro defined in term.h on AiX.
10885 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10887 Committed by Kevin Buettner <kevinb@redhat.com>.
10889 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10890 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10891 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10892 instead of ia64_write_pc().
10893 * ia64-linux-tdep.c (regcache.h): Include.
10894 (ia64_linux_write_pc): New function.
10896 2004-02-23 Roland McGrath <roland@redhat.com>
10898 * auxv.c (info_auxv_command): Fix typos in error messages.
10900 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10902 * x86-64-tdep.h: Tweak comment.
10903 (enum amd64_regnum): New.
10904 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10905 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10906 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10907 (X86_64_XMM1_REGNUM): Removed.
10908 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10909 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10910 prototypes for renamed functions.
10911 * x86-64-tdep.c: Fix typo.
10912 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10914 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10915 Use constants from `enum amd64_regnum' for register numbers.
10916 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10917 (amd64_analyze_prologue, amd64_frame_cache,
10918 amd64_sigtramp_frame_cache): Use constants from `enum
10919 amd64_regnum' for register numbers.
10920 (amd64_supply_fpregset): Adjust for renamed functions.
10921 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10922 `enum amd64_regnum' for register numbers.
10923 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10924 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10925 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10926 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10927 (amd64_linux_fill_gregset): Adjust for renamed macros.
10928 (fetch_core_registers): Adjust for renamed functions.
10929 (amd64_linux_init_abi): Adjust for renamed functions.
10930 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10932 * amd64-nat.c: Adjust for renamed macros.
10933 * amd64bsd-nat.c (fetch_inferior_registers)
10934 (store_inferior_registers): Use constants from `enum amd64_regnum'
10935 for register numbers. Adjust for renamed variables.
10936 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10938 (_initialize_amd64fbsd_nat): Use constants from `enum
10939 amd64_regnum' for register numbers.
10940 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10941 `enum amd64_regnum' for register numbers.
10942 (amd64fbsd_init_abi): Adjust for renamed functions.
10943 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10944 `enum amd64_regnum' for register numbers.
10945 (amd64nbsd_init_abi): Adjust for renamed functions.
10946 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10947 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10948 `enum amd64_regnum' for register numbers.
10949 (amd64obsd_init_abi): Adjust for renamed functions.
10950 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10952 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10954 * breakpoint.c (print_one_breakpoint): Do not output spaces
10955 after printing <PENDING> for a pending breakpoint.
10957 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10959 * printcmd.c (print_scalar_formatted): Initialize val_long
10960 to remove compiler warning message.
10962 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10964 * defs.h (nquery, yquery): New prototypes.
10965 * breakpoint.c (break_command_1): Use new nquery interface.
10966 * utils.c (defaulted_query, nquery, yquery): New functions.
10968 2004-02-23 Andrew Cagney <cagney@redhat.com>
10970 * hppa-tdep.c (hppa_frame_align): New function.
10971 (hppa32_push_dummy_call): New function.
10972 (hppa64_push_dummy_call): New function.
10973 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10976 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10977 FIX_CALL_DUMMY when push_dummy_call is available.
10978 (call_function_by_hand, push_dummy_code): Ditto.
10980 2004-02-22 Andrew Cagney <cagney@redhat.com>
10982 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10983 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10984 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10985 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10986 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10987 call_dummy_location to ON_STACK.
10989 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10991 * x86-64-linux-tdep.c: Tweak comment.
10992 (amd64_linux_supply_gregset): Renamed from
10993 x86_64_linux_supply_gresget.
10994 (amd64_linux_fill_gregset): Renamed from
10995 x86_64_linux_fill_gregset.
10996 (fetch_core_registers): Adjust for renamed functions.
10997 (amd64_core_fns): Renamed from x86_64_core_fns.
10998 (amd64_linux_sigtramp_start): Renamed from
10999 x86_64_linux_sigtramp_start.
11000 (amd64_linux_pc_in_sigtramp): Renamed from
11001 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11002 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11003 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11004 (amd64_linux_sigcontext_addr): Renamed from
11005 x86_64_linux_sigcontext_addr.
11006 (amd64_linux_sc_reg_offset): Renamed from
11007 x86_64_linux_sc_reg_offset.
11008 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11009 Adjust for renamed functions and variables.
11010 (_initialize_amd64_linux_tdep): Renamed from
11011 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11013 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11014 Adjust for renamed functions.
11016 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11017 from x86_64_linux_gregset64_reg_offset.
11018 (amd64_linux_gregset32_reg_offset): Rename from
11019 x86_64_linux_gregset64_reg_offset.
11020 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11021 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11022 (amd64_linux_dr_set_control): Renamed from
11023 x86_64_linux_dr_set_control. Adjust for renamed functions.
11024 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11025 Adjust for renamed functions.
11026 (amd64_linux_dr_reset_addr): Renamed from
11027 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11028 (amd64_linux_dr_get_status): Renamed from
11029 x86_64_linux_dr_get_status. Adjust for renamed functions.
11030 (_initialize_amd64_linux_nat): Renamed from
11031 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11033 * config/i386/nm-x86-64linux.h: Update copyright year.
11034 Adjust for renamed functions.
11036 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11037 amd64fbsd_sigtramp_start.
11038 (amd64fbsd_sigtramp_end_addr): Renamed from
11039 amd64fbsd_sigtramp_end.
11040 (amd64fbsd_init_abi): Adjust for renamed variables.
11041 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11043 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11044 amd64fbsd_sigtramp_start.
11045 (amd64fbsd_sigtramp_end_addr): Renamed from
11046 amd64fbsd_sigtramp_end.
11048 2004-02-22 Andrew Cagney <cagney@redhat.com>
11050 * hppa-tdep.c (hppa32_return_value): New function.
11051 (hppa64_return_value): New function.
11052 (hppa_gdbarch_init): Set return_value; keep disabled.
11054 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11055 struct-return and inferior function call methods.
11057 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11059 (struct hppa_frame_cache): Define.
11060 (hppa_frame_cache, hppa_frame_this_id): New functions.
11061 (hppa_frame_prev_register): New function.
11062 (hppa_frame_unwind, hppa_frame_base): New variables.
11063 (hppa_frame_unwind_sniffer): New function.
11064 (hppa_frame_base_address, hppa_unwind_pc): New function.
11065 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11066 sniffer, and frame base sniffer; keep disabled.
11067 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11068 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11070 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11071 to predicates for "seriously old code".
11073 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11076 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11078 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11080 * config/pa/tm-hppa.h: Update copyright.
11081 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11082 (deprecated_init_frame_pc_default): Delete declaration.
11083 (hppa_frame_init_saved_regs): Delete declaration.
11084 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11085 * hppa-tdep.c: Include "arch-utils.h".
11086 (hppa_gdbarch_init): Set deprecated init_frame_pc
11087 and deprecated frame_init_saved_regs.
11088 (hppa_frame_init_saved_regs): Make static.
11090 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11092 Remove old 386BSD support.
11093 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11094 * configure.host: Remove i[34567]86-*-bsd*.
11095 * configure.tgt: Remove i[34567]86-*-bsd*.
11096 * i386b-nat.c: Removed.
11097 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11098 (i386b-nat.o): Remove dependencies.
11100 * config/i386/i386bsd.mh: Removed.
11101 * config/i386/i386bsd.mt: Removed.
11102 * config/i386/nm-i386bsd.h: Removed.
11103 * config/i386/tm-i386bsd.h: Removed.
11104 * config/i386/xm-i386bsd.h: Removed.
11106 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11108 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11109 (amd64fbsd_init_abi): Set link map offsets.
11110 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11111 (amd64nbsd_init_abi): Set link map offsets.
11112 * amd64obsd-tdep.c: Include "solib-svr4.h".
11113 (amd64obsd_init_abi): Set link map offsets.
11114 * i386fbsd-tdep.c: Include "solib-svr4.h".
11115 (i386fbsd_init_abi): Set link map offsets.
11116 * i386nbsd-tdep.c: Include "solib-svr4.h".
11117 (i386nbsdelf_init_abi): Set link map offsets.
11118 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11119 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11120 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11121 solib-legacy.o and core-aout.o. Reformat.
11122 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11123 solib-svr4.o, solib-legacy.o. Reformat.
11124 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11125 * config/i386/nbsdelf.mh: Reformat.
11126 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11127 solib-svr4.o, solib-legacy.o and corelow.o.
11128 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11129 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11130 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11131 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11132 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11133 (TM_FILE): Set to tm-fbsd.h.
11134 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11135 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11137 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11139 (TM_FILE): Set to nm-nbsd.h.
11140 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11141 Simplify shared library support. Don't include "elf/common.h".
11142 (SVR4_SHARED_LIBS): Don't define.
11143 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11145 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11146 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11147 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11148 Don't include "i386/tm-i386.h". Include "solib.h".
11149 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11150 Don't include "i386/tm-i386.h".
11151 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11152 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11153 Include "i386/xm-i386.h".
11154 (HOST_LONG_DOUBLE_FORMAT): Remove.
11156 Fix OpenBSD/i386 sigtramp recognition.
11157 * i386-tdep.h: Update copyright year.
11158 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11159 (i386bsd_sigtramp_end): New prototypes.
11160 (i386fbsd_sigtramp_start_addr): Renamed from
11161 i386fbsd_sigtramp_start.
11162 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11163 (i386obsd_sigtramp_start_addr): Renamed from
11164 i386obsd_sigtramp_start.
11165 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11166 * i386bsd-tdep.c: Update copyright year.
11167 (i386bsd_pc_in_sigtramp): Make public.
11168 * i386fbsd-nat.c: Update copyright year.
11169 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11170 * i386fbsd-tdep.c: Update copyright year.
11171 (i386fbsd_sigtramp_start_addr): Renamed from
11172 i386fbsd_sigtramp_start.
11173 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11174 (i386fbsdaout_init_abi): Adjust for renamed variables.
11175 * i386obsd-nat.c: Update copyright year.
11176 (_initialize_i386obsd_nat): Adjust for renamed variables.
11177 * i386obsd-tdep.c: Include "target.h".
11178 (i386obsd_page_size): New variable.
11179 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11180 (i386obsd_sigtramp_end): New functions.
11181 (i386obsd_sigtramp_start_addr): Renamed from
11182 i386obsd_sigtramp_start.
11183 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11184 (i386obsd_init_abi): Adjust for renamed variables. Set
11185 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11186 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11188 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11189 trampoline change in OpenBSD kernel.
11191 * amd64-nat.c: Update copyright year.
11192 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11193 architecture from REGCACHE.
11195 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11196 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11198 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11200 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11201 i[34567]86-*-openbsd3.[0-3].
11202 * config/i386/obsdaout.mh: New file.
11204 * config/i386/obsd.mh (MH_FLAGS): Remove.
11207 * i386obsd-tdep.c: Update copyright years. Include
11209 (i386obsd_init_abi): Don't set regset_from_core_section here.
11210 (i386obsd_aout_init_abi): New function. Set
11211 regset_from_core_section here.
11212 (i386obsd_elf_init_abi): New function.
11213 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11214 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11215 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11216 (TM_FILE): Set to tm-nbsd.h.
11218 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11221 * solib-svr4.h: Update copyright year.
11222 (svr4_ilp32_fetch_link_map_offsets)
11223 (svr4_lp64_fetch_link_map_offsets): New prototype.
11224 * solib-svr4.c: Update copyright year.
11225 (svr4_ilp32_fetch_link_map_offsets)
11226 (svr4_lp64_fetch_link_map_offsets): New function.
11228 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11230 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11231 to the partial symbol table.
11233 2004-02-20 J. brobecker <brobecker@gnat.com>
11235 * PROBLEMS: Add description of problem documented under gdb/1560.
11237 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11239 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11241 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11243 (amd64obsd_init_abi): Reorder initializations. Use
11244 amd64obsd_r_reg_offset to initialize the general-purpose register
11245 set details. Set regset_from_core_section.
11246 (_initialize_amd64obsd_tdep): Rename from
11247 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11248 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11249 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11251 * NEWS (New native configurations): Mention OpenBSD/alpha.
11252 * configure.tgt: Add alpha*-*-openbsd*.
11253 * configure.host: Add alpha*-*-openbsd*.
11254 * alphanbsd-tdep.c: Update copyright year.
11255 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11257 2004-02-20 Andrew Cagney <cagney@redhat.com>
11260 * configure.tgt: Delete target "none-*-*".
11261 * configure.host: Delete host "none-*-*".
11262 * config/none/none.mh: Delete file.
11263 * config/none/none.mt: Delete file.
11264 * config/none/xm-none.h: Delete file.
11265 * config/none/tm-none.h: Delete file.
11266 * config/none/nm-none.h: Delete file.
11268 2004-02-19 Fred Fish <fnf@redhat.com>
11270 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11271 cache->uses_fp prior to setting it.
11273 2004-02-19 Fred Fish <fnf@redhat.com>
11275 Fix for PR breakpoint/1558.
11276 * sh-tdep.c (IS_JSR): New macro.
11277 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11279 2004-02-19 Jim Blandy <jimb@redhat.com>
11281 * findvar.c (value_from_register): Doc fix.
11283 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11285 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11286 type being greater than sizeof of host's LONGEST. Always use
11287 unpack_long() unless format 'f' chosen.
11289 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11291 Committed by Elena Zannoni <ezannoni@redhat.com>
11293 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11294 contains a symbol wich is the best, non-exact match for the given
11295 pc. Update comments.
11297 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11299 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11300 macro, which was part of the now removed Mach 3 port.
11301 * utils.c (request_quit): Ditto.
11303 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11305 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11306 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11308 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11310 Committed by Mark Kettenis <kettenis@gnu.org>.
11312 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11315 2004-02-18 Andrew Cagney <cagney@redhat.com>
11317 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11318 CONFIG_INSTALL and CONFIG_UNINSTALL.
11319 * configure: Re-generate.
11320 * interps.h (INTERP_TUI): Define.
11321 * Makefile.in: Update dependencies.
11323 (tui-main.o): Specify dependencies.
11324 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11325 * tui/tui-main.c: New file.
11327 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11329 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11330 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11332 * configure.host: Add x86_64-*-openbsd*.
11333 * configure.tgt: Add x86_64-*-openbsd*.
11334 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11336 * tui/tui.c: Don't include <malloc.h>.
11338 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11339 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11342 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11343 static. Remove extraneous whitespace.
11344 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11347 2004-02-17 Jim Blandy <jimb@redhat.com>
11349 * findvar.c (value_from_register): Doc fix.
11351 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11353 Committed by Jim Blandy <jimb@redhat.com>.
11355 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11356 CORE_ADDR as type for selectors. Correct types for GNU run time
11357 message lookup function to use double indirection.
11358 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11359 * objc-lang.h (lookup_child_selector): Adapt prototype.
11361 * s390-nat.c (SUBOFF): New macro.
11362 (supply_gregset, fill_gregset): Use it to handle debugging
11363 of 32-bit exectuables running under a 64-bit kernel.
11364 * s390-tdep.c: Include "solib-svr4.h".
11365 (s390_svr4_fetch_link_map_offset): New function.
11366 (s390x_svr_fetch_link_map_offset): Likewise.
11367 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11368 * Makefile.in (s390-tdep.o): Update dependencies.
11370 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11372 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11373 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11374 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11375 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11376 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11377 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11378 S390_SIGNAL_FRAMESIZE,
11379 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11380 (struct frame_extra_info): Remove.
11381 (s390_memset_extra_info): Remove.
11382 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11383 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11384 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11385 (is_rse): Renamed to ...
11386 (is_rsy): ... this. Support long displacements.
11387 (is_rxe): Renamed to ...
11388 (is_rxy): ... this. Support long displacements.
11389 (compute_x_addr): Support long displacements.
11390 (struct s390_prologue_data): New data type.
11391 (s390_on_stack): Change API to use struct s390_prologue_data.
11392 (s390_store): Reimplement.
11393 (s390_load): New function.
11394 (s390_get_signal_frame_info): Remove.
11395 (s390_get_frame_info): Remove, replace by ...
11396 (s390_analyze_prolog): ... this new function.
11397 (s390_check_function_end): Remove.
11398 (s390_function_start): Remove.
11399 (s390_frameless_function_invokation): Remove.
11400 (s390_is_sigreturn): Remove.
11401 (s390_init_frame_pc_first): Remove.
11402 (s390_init_frame_extra_info): Remove.
11403 (s390_frame_init_saved_regs): Remove.
11404 (s390_frame_saved_pc_nofix): Remove.
11405 (s390_frame_saved_pc): Remove.
11406 (s390_frame_chain): Remove.
11407 (s390_fp_regnum, s390_read_fp): Remove.
11408 (s390_pop_frame_regular, s390_pop_frame): Remove.
11409 (s390_saved_pc_after_call): Remove.
11410 (s390_skip_prologue): Reimplement.
11411 (s390_in_function_epilogue_p): Support long displacements.
11412 (struct s390_unwind_cache): New data structure.
11413 (s390_frame_unwind_cache): New function.
11414 (s390_prologue_frame_unwind_cache): Likewise.
11415 (s390_backchain_frame_unwind_cache): Likewise.
11416 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11417 (s390_frame_unwind): Define.
11418 (s390_frame_sniffer): New function.
11419 (struct s390_pltstub_unwind_cache): New data structure.
11420 (s390_pltstub_frame_unwind_cache): New function.
11421 (s390_pltstub_frame_this_id): Likewise.
11422 (s390_pltstub_frame_prev_register): Likewise.
11423 (s390_pltstub_frame_unwind): Define.
11424 (s390_pltstub_frame_sniffer): New function.
11425 (struct s390_sigtramp_unwind_cache): New data structure.
11426 (s390_sigtramp_frame_unwind_cache): New function.
11427 (s390_sigtramp_frame_this_id): Likewise.
11428 (s390_sigtramp_frame_prev_register): Likewise.
11429 (s390_sigtramp_frame_unwind): Define.
11430 (s390_sigtramp_frame_sniffer): New function.
11431 (s390_frame_base_address, s390_local_base_address): New functions.
11432 (s390_frame_base): Define.
11433 (s390_unwind_pc, s390_unwind_sp): New function.
11434 (s390_push_dummy_call): Use new frame base location.
11435 (s390_unwind_dummy_id): Likewise.
11436 (s390_gdbarch_init): Remove calls to:
11437 set_gdbarch_frameless_function_invocation,
11438 set_gdbarch_deprecated_init_frame_pc,
11439 set_gdbarch_deprecated_frame_chain,
11440 set_gdbarch_deprecated_frame_init_saved_regs,
11441 set_gdbarch_deprecated_pop_frame,
11442 set_gdbarch_deprecated_init_extra_frame_info,
11443 set_gdbarch_deprecated_init_frame_pc_first,
11444 set_gdbarch_deprecated_target_read_fp,
11445 set_gdbarch_deprecated_frame_saved_pc,
11446 set_gdbarch_deprecated_saved_pc_after_call,
11447 set_gdbarch_deprecated_fp_regnum.
11449 set_gdbarch_in_solib_call_trampoline,
11450 frame_unwind_append_sniffer,
11451 frame_base_set_default,
11452 set_gdbarch_unwind_pc,
11453 set_gdbarch_unwind_sp.
11454 * Makefile.in (s390-tdep.o): Update dependencies.
11456 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11457 (S390_STACK_FRAME_OVERHEAD): Remove.
11458 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11459 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11460 (s390_promote_integer_argument): Remove.
11461 (s390_cannot_extract_struct_value_address): Remove.
11462 (s390_use_struct_convention, s390_store_struct_return): Remove.
11463 (s390_extract_return_value, s390_store_return_value): Remove.
11464 (s390_return_value_convention, s390_return_value): New functions.
11465 (is_float_singleton): Handle typedefs.
11466 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11467 Remove, replace by ...
11468 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11469 s390_function_arg_integer): ... these new functions.
11470 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11471 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11472 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11475 set_gdbarch_deprecated_store_struct_return,
11476 set_gdbarch_deprecated_extract_return_value,
11477 set_gdbarch_deprecated_store_return_value,
11478 set_gdbarch_use_struct_convention,
11479 set_gdbarch_extract_struct_value_address,
11480 set_gdbarch_deprecated_pc_in_call_dummy,
11481 set_gdbarch_deprecated_push_arguments,
11482 set_gdbarch_deprecated_save_dummy_frame_tos,
11483 set_gdbarch_deprecated_push_return_address,
11484 set_gdbarch_deprecated_sizeof_call_dummy_words,
11485 set_gdbarch_deprecated_call_dummy_words,
11486 set_gdbarch_deprecated_dummy_write_sp.
11488 set_gdbarch_push_dummy_call,
11489 set_gdbarch_unwind_dummy_id,
11490 set_gdbarch_return_value.
11492 * config/s390/nm-linux.h: Update comments.
11493 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11494 (STOPPED_BY_WATCHPOINT): Redefine.
11495 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11496 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11497 (s390_stopped_by_watchpoint): Likewise.
11498 (watch_area_cnt): Remove.
11499 * s390-nat.c: Update comments.
11500 (watch_area): Remove typedef.
11501 Global replace watch_area by struct watch_area.
11502 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11503 (s390_stopped_by_watchpoint): Remove pid argument,
11504 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11505 (s390_fix_watch_points): Remove pid argument,
11506 use s390_inferior_tid. Recompute area spanned by watchpoints.
11507 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11508 argument. Reimplement.
11510 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11511 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11512 (FETCH_INFERIOR_REGISTERS): Define.
11513 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11515 * config/s390/s390x.mt: Remove.
11516 * config/s390/tm-s390.h: Remove.
11517 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11518 (TARGET_ELF64): Remove.
11519 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11520 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11521 s390*-*-* case; always set gdb_target to s390.
11522 * regformats/reg-s390.dat: Remove control registers.
11523 * regformats/reg-s390x.dat: Likewise.
11524 * s390-tdep.h: New file.
11525 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11526 Include "inferior.h" and "s390-tdep.h".
11527 Remove private definition of offsetof.
11528 (s390_register_u_addr): Remove.
11529 (regmap_gregset, regmap_fpregset): Define.
11530 (supply_gregset, fill_gregset): Reimplement.
11531 (supply_fpregset, fill_fpregset): Likewise.
11532 (s390_inferior_tid): New function.
11533 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11534 (fetch_inferior_registers, store_inferior_registers): Likewise.
11535 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11536 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11537 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11538 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11539 (struct gdbarch_tdep): Define.
11540 (struct s390_register_info): Define.
11541 (s390_register_info): New variable.
11542 (s390_register_name): Reimplement.
11543 (s390_register_type): New function.
11544 (s390_register_raw_size, s390x_register_raw_size): Remove.
11545 (s390_cannot_fetch_register): Remove.
11546 (s390_register_byte): Remove.
11547 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11548 (s390_dwarf_regmap): New variable.
11549 (s390_dwarf_reg_to_regnum): New function.
11550 (s390_stab_reg_to_regnum): Remove.
11551 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11552 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11553 (s390_convert_register_p): Likewise.
11554 (s390_register_to_value, s390_value_to_register): Likewise.
11555 (s390_register_reggroup_p): Likewise.
11556 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11557 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11558 (s390_supply_regset, s390_regset_from_core_section): New functions.
11559 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11560 (S390_FPR_SIZE): Likewise.
11561 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11562 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11563 (S390_NUM_GPRS): Move here from tm-s390.h.
11564 (S390_NUM_FPRS): Likewise.
11565 (s390_in_function_epilogue_p): New function.
11566 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11567 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11568 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11569 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11570 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11572 set_gdbarch_deprecated_max_register_raw_size,
11573 set_gdbarch_deprecated_max_register_virtual_size,
11574 set_gdbarch_deprecated_register_byte,
11575 set_gdbarch_cannot_fetch_register,
11576 set_gdbarch_cannot_store_register,
11577 set_gdbarch_deprecated_register_size,
11578 set_gdbarch_deprecated_register_raw_size,
11579 set_gdbarch_deprecated_register_virtual_size,
11580 set_gdbarch_deprecated_register_virtual_type,
11581 set_gdbarch_deprecated_register_bytes.
11583 set_gdbarch_num_pseudo_regs,
11584 set_gdbarch_register_type,
11585 set_gdbarch_convert_register_p,
11586 set_gdbarch_register_to_value,
11587 set_gdbarch_value_to_register,
11588 set_gdbarch_register_reggroup_p,
11589 set_gdbarch_regset_from_core_section,
11590 set_gdbarch_pseudo_register_read,
11591 set_gdbarch_pseudo_register_write,
11592 set_gdbarch_in_function_epilogue_p.
11593 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11594 (s390_tdep_h): New variable.
11596 2004-02-17 Jim Blandy <jimb@redhat.com>
11598 * findvar.c (value_from_register): If the type has no length, just
11599 return an acceptable value --- don't report an internal error.
11601 * stabsread.c (read_type): If we find any type numbers that are
11602 forward references, complain if the references aren't resolved by
11603 the time we're finished reading.
11604 (cleanup_undefined_types): Make error message more appropriate for
11607 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11609 * Makefile.in (defs_h): Remove dependency on progress_h.
11610 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11612 * main.c (captured_main): Delete use of START_PROGRESS and
11615 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11617 * objfiles.c (terminate_minimal_symbol_table): Add back
11618 initialization of MSYMBOL_TYPE.
11620 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11622 Committed by Andrew Cagney.
11623 * Makefile.in (ia64_tdep_h): New macro.
11624 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11625 (ia64-tdep.o): Likewise.
11626 * ia64-tdep.h: New file.
11627 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11628 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11629 (ia64_aix_sigcontext_register_address): Likewise.
11630 (ia64_linux_getunwind_table): Delete declaration.
11631 * ia64-linux-tdep.c: Likewise.
11633 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11635 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11636 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11637 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11639 2004-02-17 Andrew Cagney <cagney@redhat.com>
11641 * symtab.c (skip_prologue_using_sal): New function.
11642 * symtab.h (skip_prologue_using_sal): Declare.
11643 * frv-tdep.c: Include "symtab.h".
11644 (skip_prologue_using_sal): Delete function.
11645 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11646 * rs6000-tdep.c (refine_prologue_limit): Mention
11647 skip_prologue_using_sal.
11648 * ia64-tdep.c (refine_prologue_limit): Ditto.
11649 * Makefile.in: Update dependencies.
11651 2004-02-16 Andrew Cagney <cagney@redhat.com>
11653 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11654 START_INFERIOR_TRAPS_EXPECTED.
11655 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11656 START_INFERIOR_TRAPS_EXPECTED.
11657 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11659 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11660 macro, moved to "nm-osf.h". Update copyright.
11661 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11664 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11665 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11666 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11667 frameless_look_for_prologue.
11668 * frame.h (legacy_frameless_look_for_prologue): Rename
11669 frameless_look_for_prologue.
11670 * gdbarch.h, gdbarch.c: Re-generate.
11671 * sh64-tdep.c (sh64_gdbarch_init): Update.
11672 * sh-tdep.c (sh_gdbarch_init): Update.
11673 * s390-tdep.c (s390_gdbarch_init): Update.
11674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11675 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11676 * m68k-tdep.c (m68k_gdbarch_init): Update.
11677 (delta68_frame_args_address): Update.
11678 * m32r-tdep.c (m32r_gdbarch_init): Update.
11679 * hppa-tdep.c (hppa_gdbarch_init): Update.
11680 * h8300-tdep.c (h8300_gdbarch_init): Update.
11681 * frv-tdep.c (frv_gdbarch_init): Update.
11682 (frv_frameless_function_invocation): Update.
11683 * cris-tdep.c (cris_gdbarch_init): Update.
11684 (cris_frameless_function_invocation): Update.
11685 * avr-tdep.c (avr_gdbarch_init): Update.
11686 * arm-tdep.c (arm_gdbarch_init): Update.
11687 * stack.c (frame_info): Update, call predicate.
11688 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11689 * frame.c (legacy_get_prev_frame): Update, call predicate..
11690 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11691 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11692 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11694 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11695 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11696 * vax-tdep.c (vax_gdbarch_init): Ditto.
11698 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11701 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11703 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11706 2004-02-16 Andrew Cagney <cagney@redhat.com>
11708 * tui/tui-windata.c: Include "gdb_string.h".
11709 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11710 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11711 * Makefile.in: Update dependencies.
11713 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11715 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11716 * infrun.c: Include "gdb_assert.h".
11717 (singlestep_ptid, saved_singlestep_ptid)
11718 (stepping_past_singlestep_breakpoint): New variables.
11719 (resume): Set singlestep_ptid. Check for singlestep thread
11721 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11722 (handle_inferior_event): Handle singlestep thread hop.
11724 2004-02-16 Andrew Cagney <cagney@redhat.com>
11726 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11727 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11728 (dwarf2_frame_init_reg): Ditto.
11730 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11731 suggested by Joshua Neuheisel
11733 * configure.in: Always check for curses, including pdcurses.
11734 Warn, instead of error, when no curses are found. Enable TUI when
11735 curses is available.
11736 * configure: Re-generate.
11738 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11740 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11741 sh_sh4_register_convert_to_virtual.
11742 (sh_register_convert_to_raw): Rename from
11743 sh_sh4_register_convert_to_raw.
11744 (sh_pseudo_register_read): Accomodate above name change.
11745 (sh_pseudo_register_write): Ditto.
11747 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11749 * sh-tdep.c (sh_generic_register_name): Remove.
11750 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11752 2004-02-15 Andrew Cagney <cagney@redhat.com>
11754 * configure.in (build_warnings): Add -Wunused-function.
11755 * configure: Re-generate.
11757 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11758 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11760 * procfs.c (procfs_init_inferior): Assume that
11761 START_INFERIOR_TRAPS_EXPECTED is defined.
11762 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11763 * config/ns32k/tm-nbsd.h: Delete file,
11764 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11766 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11767 * config/vax/tm-vax.h: Delete file.
11769 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11770 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11771 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11772 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11773 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11774 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11775 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11777 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11779 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11780 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11781 (struct dwarf2_frame_ops): New.
11782 (dwarf2_frame_default_init_reg): New function, based on
11783 dwarf2_frame_init_reg.
11784 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11785 (dwarf2_frame_init_reg): Call architecture-specific function.
11786 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11787 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11788 instead of dwarf2_frame_data.
11789 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11790 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11792 2004-02-15 Andrew Cagney <cagney@redhat.com>
11794 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11795 register_gdbarch_swap.
11796 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11797 * f-lang.c (_initialize_f_language): Update, use
11798 DEPRECATED_REGISTER_GDBARCH_SWAP.
11799 * remote.c (_initialize_remote): Ditto.
11800 * regcache.c (_initialize_regcache): Ditto.
11801 * parse.c (_initialize_parse): Ditto.
11802 * infrun.c (_initialize_infrun): Ditto.
11803 * mi/mi-main.c (_initialize_mi_main): Ditto.
11804 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11806 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11807 poking .cacheable directly.
11808 * symfile.c (symfile_bfd_open): Ditto.
11810 * Makefile.in: Update all dependencies.
11812 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11813 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11814 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11815 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11816 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11818 2004-02-14 Andrew Cagney <cagney@redhat.com>
11820 * arch-utils.c (legacy_convert_register_p): Check
11821 DEPRECATED_REGISTER_CONVERTIBLE_P.
11822 * findvar.c (value_of_register): Ditto.
11824 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11825 * gdbarch.h, gdbarch.c: Re-generate.
11826 * arch-utils.c (deprecated_register_convertible_not): Delete.
11827 * arch-utils.h (deprecated_register_convertible_not): Delete.
11828 * mi/mi-main.c (get_register): Update. Update copyright.
11829 * infcmd.c (default_print_registers_info): Update.
11831 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11832 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11833 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11834 * gdbarch.h, gdbarch.c: Re-generate.
11835 * frame.c (deprecated_get_next_frame_hack): Delete function.
11836 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11837 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11839 * infcall.c (call_function_by_hand): Update.
11841 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11843 * symfile.c (init_entry_point_info, entry_point_address): Move
11845 * objfiles.c (init_entry_point_info, entry_point_address):..to
11847 * symfile.h (init_entry_point_info, entry_point_address): Remove
11849 * objfiles.h (init_entry_point_info, entry_point_address):Add
11851 * cris-tdep.c: Remove include of symfile.h. Add include of
11853 * infcall.c: Ditto.
11854 * mcore-tdep.c: Ditto.
11855 * mn10300-tdep.c: Ditto.
11856 * sh64-tdep.c: Ditto.
11857 * v850-tdep.c: Ditto.
11858 * arm-tdep.c: Remove include of symfile.h.
11859 * blockframe.c: Ditto.
11860 * coffread.c: Ditto.
11861 * dbxread.c: Ditto.
11862 * dwarf2read.c: Ditto.
11863 * dwarfread.c: Ditto.
11864 * frv-tdep.c: Ditto.
11865 * ia64-tdep.c: Ditto.
11866 * mdebugread.c: Ditto.
11867 * mipsread.c: Ditto.
11868 * rs6000-tdep.c: Ditto.
11869 * s390-tdep.c: Ditto.
11870 * sh-tdep.c: Ditto.
11871 * xstormy16-tdep.c: Ditto.
11872 * gdbarch.sh: Remove include of symfile.h.
11873 * gdbarch.c: Regenerate.
11874 * solib-irix.c (enable_break): Use entry_point_address().
11875 Add comment about include file.
11876 * xcoffread.c: Add comment about include file.
11877 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11878 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11879 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11880 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11881 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11883 2004-02-13 Andrew Cagney <cagney@redhat.com>
11885 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11886 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11888 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11890 2004-02-12 Fred Fish <fnf@redhat.com>
11892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11893 set_gdbarch_store_return_value.
11895 2004-02-12 Andrew Cagney <cagney@redhat.com>
11897 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11898 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11899 (interrupt_query): Ditto.
11900 (ofunc): Delete unused variable.
11901 * cris-tdep.c (cris_abi): Delete unused function.
11902 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11903 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11904 (cris_get_asr_quick_shift_steps): Ditto.
11905 (cris_skip_prologue_frameless_p): Ditto.
11906 * arm-tdep.c (arm_push_return_address): Delete unused function.
11907 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11908 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11909 * s390-tdep.c (s390_function_start): Delete unused function.
11911 2004-02-12 Andrew Cagney <cagney@redhat.com>
11913 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11914 gdbarch.h, gdbarch.c: Re-generate.
11915 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11916 to generic_prologue_frameless_p.
11917 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11918 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11920 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11922 * mips-linux-tdep.c: Include "frame.h".
11923 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11924 (mips_linux_skip_resolver): New functions.
11925 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11926 and set_gdbarch_in_solib_call_trampoline.
11927 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11928 to after set_gdbarch_in_solib_return_trampoline. Only set the
11929 solib hooks to mips16 functions if the OS ABI is unknown.
11930 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11931 including "config/tm-linux.h".
11932 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11933 * Makefile.in (mips-linux-tdep.o): Update.
11935 2004-02-11 David Carlton <carlton@kealia.com>
11937 * linespec.c (decode_compound): Only look for a class symbol when
11938 considering all but the rightmost component.
11940 2004-02-11 Andrew Cagney <cagney@redhat.com>
11942 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11943 abi code are are separatly grouped.
11945 2004-02-11 Andrew Cagney <cagney@redhat.com>
11947 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11948 * gdbarch.h, gdbarch.c: Re-generate.
11949 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11950 * v850-tdep.c (v850_gdbarch_init): Update.
11951 * sh64-tdep.c (sh64_gdbarch_init): Update.
11952 * sh-tdep.c (sh_gdbarch_init): Update.
11953 * s390-tdep.c (s390_gdbarch_init): Update.
11954 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11955 * mips-tdep.c (mips_gdbarch_init): Update.
11956 * mcore-tdep.c (mcore_gdbarch_init): Update.
11957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11958 * m32r-tdep.c (m32r_gdbarch_init): Update.
11959 * ia64-tdep.c (ia64_gdbarch_init): Update.
11960 * hppa-tdep.c (hppa_gdbarch_init): Update.
11961 * h8300-tdep.c (h8300_gdbarch_init): Update.
11962 * frv-tdep.c (frv_gdbarch_init): Update.
11963 * d10v-tdep.c (d10v_gdbarch_init): Update.
11964 * cris-tdep.c (cris_gdbarch_init): Update.
11965 * avr-tdep.c (avr_gdbarch_init): Update.
11966 * arm-tdep.c (arm_gdbarch_init): Update.
11967 * alpha-tdep.c (alpha_gdbarch_init): Update.
11969 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11971 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11973 (sh_sh4al_dsp_register_name): Ditto.
11975 2004-02-10 Andrew Cagney <cagney@redhat.com>
11977 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11978 (mips_init_frame_pc_first): Delete function.
11979 (mips_frame_saved_pc): Delete function.
11980 (mips_frame_chain): Delete function.
11981 (mips_init_extra_frame_info): Delete function.
11982 (mips_xfer_register): Delete unused variable "reg".
11983 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11984 (mips_n32n64_return_value): Delete unused variable "reg".
11985 (mips_n32n64_return_value): Delete unused variable "pos".
11986 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11987 (mips_o32_return_value): Delete unused variable "pos".
11988 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11989 (mips_print_fp_register): Delete unused variable "namelen"
11990 (mips_print_fp_register): Delete unused variable "flt2"
11991 (get_frame_pointer): Delete function.
11992 (cached_proc_desc): Delete static variable.
11993 (mips_pop_frame): Delete function.
11994 (mips_find_saved_regs): Delete function.
11995 (mips_get_saved_register): Delete function.
11996 (mips_saved_pc_after_call): Delete function.
11997 (SIGFRAME_BASE): Delete macro.
11998 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11999 (SIGFRAME_PC_OFF): Delete macro.
12000 (SIGFRAME_REGSAVE_OFF): Delete macro.
12001 (mips_dump_tdep): Do not print deleted macro definitions.
12003 2004-02-10 Andrew Cagney <cagney@redhat.com>
12005 * Makefile.in (SFILES): Remove explictly listed tui files.
12006 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12008 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12010 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12011 to use paddr functions to format ia64 addresses and long values.
12012 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12013 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12014 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12015 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12016 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12018 2004-02-10 Andrew Cagney <cagney@redhat.com>
12020 * defs.h: Do not include "tui.h".
12021 * gdb_curses.h: New file.
12022 * tui/tui-hooks.h: New file.
12023 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12024 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12025 (tui_initialize_io): Delete declaration.
12026 (tui_initialize_readline: Delete redundant declaration.
12027 (struct tui_point): Delete definition.
12028 * tui/tui-data.h (struct tui_point): Define.
12029 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12030 * utils.c: Include "tui/tui.h".
12031 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12032 * printcmd.c [TUI]: Include "tui/tui.h".
12033 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12034 * tui/tui-command.c: Include "gdb_curses.h".
12035 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12036 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12037 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12038 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12039 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12040 * Makefile.in: Update all dependencies.
12041 (tui_hooks_h, gdb_curses_h): Define.
12042 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12044 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12046 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12047 auxf2. Add comments about some other rarely used fields.
12049 2004-02-10 Andrew Cagney <cagney@redhat.com>
12051 * Makefile.in (init.c): Fix script removing duplicates. Problem
12052 reported by Peter Schauer.
12054 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12056 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12057 obstack_specify_allocation.
12058 * objfiles.c (allocate_objfile): Ditto.
12059 * solib-sunos.c (solib_add_common_symbols)
12060 (allocate_rt_common_objfile): Ditto.
12061 * symfile.c (reread_symbols): Ditto.
12062 * gdb_obstack.h: Add comment.
12064 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12066 * linespec.c (decode_line_1, locate_first_half)
12067 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12068 commented out code.
12070 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12072 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12075 2004-02-09 Andrew Cagney <cagney@redhat.com>
12077 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12078 fails, try find_pc_section. Fix PR c++/1267.
12079 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12080 instead of find_pc_mapped_section.
12081 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12082 not default to the section containing PC. Fix PR symtab/1519.
12084 2004-02-09 Andrew Cagney <cagney@redhat.com>
12086 * Makefile.in (mips-tdep.o): Update dependencies.
12087 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12089 (mips_unwind_pc): Return the pseudo PC register.
12090 (mips_unwind_dummy_id): New function.
12091 (mips16_fetch_instruction): New function.
12092 (mips32_fetch_instruction): New function.
12093 (struct mips_frame_cache): Define.
12094 (mips_mdebug_frame_cache): New function.
12095 (mips_mdebug_frame_this_id): New function.
12096 (mips_mdebug_frame_prev_register): New function.
12097 (mips_mdebug_frame_unwind): Define.
12098 (mips_mdebug_frame_sniffer): New function.
12099 (mips_mdebug_frame_base_address): New function.
12100 (mips_mdebug_frame_base): Define.
12101 (mips_mdebug_frame_base_sniffer): New function.
12102 (mips_gdbarch_init): Append unwind and base sniffers. Set
12105 2004-02-08 Andrew Cagney <cagney@redhat.com>
12107 * frame.c: Print both the register number and name.
12109 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12110 and a sed into a single sed. Make .c and .o patterns more robust.
12112 (INIT_FILES): Replace OBS with COMMON_OBS.
12113 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12115 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12117 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12118 the PT_WCOOKIE request.
12120 2004-02-08 Andrew Cagney <cagney@redhat.com>
12122 * mips-tdep.c (mips_unwind_pc): New function.
12123 (mips_gdbarch_init): Set mips_unwind_pc.
12125 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12126 (get_frame_id): Allow the UNKNOWN_FRAME.
12127 (frame_register_unwind, get_frame_type): Ditto.
12129 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12130 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12131 unwind_dummy_id indicates a legacy frame.
12133 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12134 * configure: Re-generate.
12136 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12139 2004-02-08 Andrew Cagney <cagney@redhat.com>
12141 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12143 * configure: Re-generate.
12144 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12145 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12146 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12147 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12148 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12149 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12150 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12151 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12152 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12153 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12155 2004-02-07 Andrew Cagney <cagney@redhat.com>
12157 * Makefile.in: Update all dependencies.
12159 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12160 * configure: Re-generate.
12161 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12162 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12163 (COMMON_OBS): Add "main.o" and "annotate.o".
12164 (ANNOTATE_OBS): Delete.
12165 (OBS): Remove ANNOTATE_OBS.
12166 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12168 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12169 against CONFIG_OBS and "main.o".
12170 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12171 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12173 * tui/tui-command.c: Include "gdb_string.h", delete register
12174 attribute, use ISO-C function signatures.
12175 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12176 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12177 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12178 * tui/tui.c: Ditto.
12180 * tui/tui-command.c: Change variable and function names to lower
12182 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12183 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12184 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12185 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12186 * tui/tui-winsource.c, tui/tui.c: Ditto.
12188 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12190 * buildsym.c (free_pending_blocks, finish_block)
12191 (record_pending_block, make_blockvector, end_symtab): Replace
12192 symbol_obstack with objfile_obstack.
12193 * coffread.c (process_coff_symbol, coff_read_struct_type)
12194 (coff_read_enum_type): Ditto.
12195 * cp-namespace.c (initialize_namespace_symtab)
12196 (check_one_possible_namespace_symbol): Ditto.
12197 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12198 (dwarf2_symbol_mark_computed): Ditto.
12199 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12200 * elfread.c (elf_symtab_read): Ditto.
12201 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12202 (hpread_read_enum_type, hpread_read_function_type)
12203 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12205 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12206 (java_link_class_type): Ditto.
12207 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12208 (new_symbol): Ditto.
12209 * minsyms.c (install_minimal_symbols): Ditto.
12210 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12211 (terminate_minimal_symbol_table): Replace symbol_obstack with
12213 (free_objfile): Remove freeing of symbol_obstack.
12214 * objfiles.h: Remove symbol_obstack field.
12215 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12217 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12219 (solib_add_common_symbols): Replace symbol_obstack with
12221 * somsolib.c (som_solib_add): Ditto.
12222 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12223 (common_block_start, common_block_end): Ditto.
12224 * symfile.c (reread_symbols): Remove freeing and init of
12226 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12227 * symfile.h: Update comment.
12228 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12230 * symtab.c (symbol_set_names): Replace symbol_obstack with
12232 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12234 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12235 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12238 2004-02-07 Andrew Cagney <cagney@redhat.com>
12240 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12241 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12242 fields and variables.
12243 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12244 (m_beInvisible): Delete macro.
12245 * tui/tui-data.h: Fix case case fields and variables.
12246 (m_genWinPtrIsNull): Delete macro.
12247 (tui_win_list): Rename winList.
12248 (TUI_SRC_WIN): Rename srcWin.
12249 (TUI_DISASM_WIN): Rename disassemWin.
12250 (TUI_DATA_WIN): Rename dataWin.
12251 (TUI_CMD_WIN): Rename cmdWin.
12252 (m_genWinPtrNotNull): Delete macro.
12253 (m_winPtrIsNull): Delete macro.
12254 (m_winPtrNotNull): Delete macro.
12255 (tui_win_is_source_type): Replace m_winIsSourceType
12256 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12257 (tui_win_has_locator): Replace m_hasLocator.
12258 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12259 m_setWinHighlightOff.
12260 * tui/tui-data.c: Update references.
12261 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12262 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12263 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12264 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12265 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12266 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12267 * tui/tui-winsource.c, tui/tui.c: Ditto.
12269 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12271 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12272 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12275 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12276 variable `i6' to `i7'.
12277 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12279 2004-02-07 Andrew Cagney <cagney@redhat.com>
12281 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12282 (TuiPoint, TuiPointPtr): Ditto.
12283 (TuiStatus, TuiStatusPtr): Ditto.
12284 (TuiWinType, TuiWinTypePtr): Ditto.
12285 (struct tui_point): Rename _TuiPoint.
12286 (tui_get_low_disassembly_address): Rename
12287 tuiGetLowDisassemblyAddress.
12288 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12289 (tuiFree): Delete declaration.
12290 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12291 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12292 * tui/tui.c (tuiFree): Delete function.
12293 * cli/cli-cmds.c (disassemble_command): Update references.
12294 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12295 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12296 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12297 * tui/tui-winsource.c: Ditto.
12299 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12301 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12302 coffstab_build_psymtabs, elfstab_build_psymtabs)
12303 (stabsect_build_psymtabs): Replace psymbol_obstack with
12305 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12306 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12308 * dwarfread.c (scan_compilation_units): Ditto.
12309 * elfread.c (elfstab_offset_sections): Ditto.
12310 * hppa-tdep.c (read_unwind_info): Ditto.
12311 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12312 (hpread_end_psymtab): Ditto.
12313 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12314 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12316 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12317 * objfiles.c (add_to_objfile_sections)
12318 (build_objfile_section_table): Ditto.
12319 (allocate_objfile): Remove init of psymbol_obstack.
12320 (free_objfile): Remove freeing of psymbol_obstack.
12321 * objfiles.h (struct objfile): Remove field
12322 psymbol_obstack. Update comments.
12323 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12324 psymbol_obstack with objfile_obstack.
12325 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12327 * somread.c (som_symfile_offsets, init_import_symbols)
12328 (init_export_symbols): Replace psymbol_obstack with
12330 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12331 * symfile.c (default_symfile_offsets, syms_from_objfile)
12332 (reread_symbols): Remove freeing and init of psymbol_obstack.
12333 (cashier_psymtab): Update comment.
12334 * symmisc.c (print_objfile_statistics): Don't report stats for
12336 * symtab.h (struct general_symbol_info, struct partial_symtab):
12338 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12339 (xcoff_symfile_offsets): Replace psymbol_obstack with
12342 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12344 * objfiles.h (struct objfile): Add objfile_obstack field.
12345 Remove type_obstack field.
12347 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12348 read_structure_scope read_enumeration, new_symbol): Replace
12349 type_obstack with objfile_obstack.
12350 * dwarfread.c (struct_type, enum_type): Ditto.
12351 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12352 (lookup_fundamental_type): Ditto.
12353 * gdbtypes.h (TYPE_ALLOC): Ditto.
12354 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12355 (hpread_read_doc_function_type, hpread_read_struct_type)
12356 (fix_static_member_physnames, hpread_read_array_type)
12357 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12358 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12359 (java_link_class_type): Ditto.
12360 * mdebugread.c (parse_type): Ditto.
12361 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12362 * solib-sunos.c (solib_add_common_symbols): Ditto.
12363 * stabsread.c (define_symbol, read_type, read_member_functions,
12364 read_cpp_abbrev, read_one_struct_field): Ditto.
12365 * symfile.c (reread_symbols): Ditto.
12366 * symmisc.c (print_objfile_statistics): Ditto.
12368 2004-02-07 Andrew Cagney <cagney@redhat.com>
12370 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12371 (tui_exec_info_content): Rename TuiExecInfoContent.
12372 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12373 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12374 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12375 (TuiList, TuiListPtr): Ditto.
12376 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12377 (TuiDataType, TuiDataTypePtr): Ditto.
12378 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12379 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12380 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12381 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12382 (TuiDataElement, TuiDataElementPtr): Ditto.
12383 (TuiWinElement, TuiWinElementPtr): Ditto.
12384 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12385 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12386 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12387 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12388 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12389 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12390 * tui/tui-command.c, tui/tui-data.c: Update references.
12391 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12392 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12393 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12394 * tui/tui-winsource.c, tui/tui.c: Ditto.
12396 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12398 * dwarf2-frame.h: Update copyright.
12399 (enum dwarf2_frame_reg_rule): New.
12400 (struct dwarf2_frame_state_reg): New.
12401 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12402 * dwarf2-frame.c: Update copyright.
12403 (enum dwarf2_reg_rule): Remove.
12404 (struct dwarf2_frame_state): Remove defenition of `struct
12405 dwarf2_frame_state_reg'.
12406 (read_reg): Call get_frame_arch to get the architecture instead of
12407 using CURRENT_GDBARCH.
12408 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12410 (dwarf2_frame_init_reg): New function.
12411 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12412 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12413 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12414 tags with DWARF2_FRAME_.
12415 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12416 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12417 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12419 2004-02-06 Andrew Cagney <cagney@redhat.com>
12421 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12422 (enum tui_data_type): Rename _TuiDataType.
12423 (struct tui_layout_def): Rename _TuiLayoutDef.
12424 (struct tui_source_element): Rename _TuiSourceElement.
12425 (struct tui_data_element): Rename _TuiDataElement.
12426 (struct tui_command_element): Rename _TuiCommandElement.
12427 (struct tui_locator_element): Rename _TuiLocatorElement.
12428 (union tui_which_element): Define.
12429 (struct tui_win_element): Rename _TuiWinElement.
12430 (struct tui_data_info): Rename _TuiDataInfo.
12431 (struct tui_source_info): Rename _TuiSourceInfo.
12432 (struct tui_command_info): Rename _TuiCommandInfo.
12433 (tui_initialize_static_data): Rename initializeStaticData.
12434 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12435 (tui_alloc_win_info): Rename allocWinInfo.
12436 (tui_init_generic_part): Rename initGenericPart.
12437 (tui_init_win_info): Rename initWinInfo.
12438 (tui_alloc_content): Rename allocContent.
12439 (tui_add_content_elements): Rename addContentElements.
12440 (tui_init_content_element): Rename initContentElement.
12441 (tui_free_window): Rename freeWindow.
12442 (tui_free_win_content): Rename freeWinContent.
12443 (tui_free_data_content): Rename freeDataContent.
12444 (tui_free_all_source_wins_content): Rename
12445 freeAllSourceWinsContent.
12446 (tui_del_window): Rename tuiDelWindow.
12447 (tui_del_data_windows): Rename tuiDelDataWindows.
12448 (tui_partial_win_by_name): Rename partialWinByName.
12449 (tui_win_name): Rename winName.
12450 (tui_current_layout): Rename currentLayout.
12451 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12452 (tui_term_height): Rename termHeight.
12453 (tui_set_term_height_to): Rename setTermHeightTo.
12454 (tui_term_width): Rename termWidth.
12455 (tui_set_term_width_to): Rename setTermWidthTo.
12456 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12457 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12458 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12459 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12460 (tui_source_windows): Rename sourceWindows.
12461 (tui_clear_source_windows): Rename clearSourceWindows.
12462 (tui_clear_source_windows_detail): Rename
12463 clearSourceWindowsDetail.
12464 (tui_clear_win_detail): Rename clearWinDetail.
12465 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12466 (tui_default_tab_len): Rename tuiDefaultTabLen.
12467 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12468 (tui_win_with_focus): Rename tuiWinWithFocus.
12469 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12470 (tui_layout_def): Rename tuiLayoutDef.
12471 (tui_win_resized): Rename tuiWinResized.
12472 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12473 (tui_next_win): Rename tuiNextWin.
12474 (tui_prev_win): Rename tuiPrevWin.
12475 (tui_add_to_source_windows): Rename addToSourceWindows.
12476 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12477 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12478 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12479 * tui/tui.c, tui/tui-data.c: Ditto.
12480 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12481 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12483 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12484 (struct symtab): Declare.
12485 (tui_set_source_content): Rename tuiSetSourceContent.
12486 (tui_show_symtab_source): Rename tuiShowSource.
12487 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12488 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12489 * tui/tui-source.c: Update copyright. Update references.
12490 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12491 * tui/tui-stack.c: Update references.
12493 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12494 (struct tui_win_info): Declare.
12495 (tui_scroll_forward): Rename tuiScrollForward.
12496 (tui_scroll_backward): Rename tuiScrollBackward.
12497 (tui_scroll_left): Rename tuiScrollLeft.
12498 (tui_scroll_right): Rename tuiScrollRight.
12499 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12500 (tui_resize_all): Rename tuiResizeAll.
12501 (tui_refresh_all_win): Rename tuiRefreshAll.
12502 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12503 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12504 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12505 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12507 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12508 (tui_erase_data_content): Rename tuiEraseDataContent.
12509 (tui_display_all_data): Rename tuiDisplayAllData.
12510 (tui_check_data_values): Rename tuiCheckDataValues.
12511 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12512 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12513 (tui_first_data_element_no_in_line): Rename
12514 tuiFirstDataElementNoInLine.
12515 (tui_delete_data_content_windows): Rename
12516 tuiDeleteDataContentWindows.
12517 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12518 (tui_display_data_from): Rename tuiDisplayDataFrom.
12519 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12520 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12521 * tui/tui-win.c, tui/tui-regs.c: Update references.
12522 * tui/tui-layout.c, tui/tui.c: Update references.
12524 * tui/tui-wingeneral.h: Update copyright.
12525 (m_allBeVisible): Delete macro.
12526 (m_allBeInvisible): Delete macro.
12527 (struct tui_gen_win_info): Declare.
12528 (struct tui_win_info): Declare.
12529 (tui_unhighlight_win): Rename unhighlightWin.
12530 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12531 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12532 (tui_make_window): Rename makeWindow.
12533 (tui_copy_win): Rename copyWin.
12534 (tui_box_win): Rename boxWin.
12535 (tui_highlight_win): Rename highlightWin.
12536 (tui_check_and_display_highlight_if_needed): Rename
12537 checkAndDisplayHighlightIfNeeded.
12538 (tui_refresh_all): Rename refreshAll.
12539 (tui_delete_win): Rename tuiDelwin.
12540 (tui_refresh_win): Rename tuiRefreshWin.
12541 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12542 (tui_make_visible, tui_make_invisible): New functions.
12543 (tui_make_all_visible, tui_make_all_invisible): New functions.
12544 (make_all_visible): Rename makeAllVisible.
12545 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12546 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12547 * tui/tui-windata.c, tui/tui-win.c: Update references.
12548 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12549 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12551 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12553 * proc-api.c (write_with_trace): Initialize local variable to
12554 silence compiler warning.
12556 2004-02-06 Andrew Cagney <cagney@redhat.com>
12558 * tui/tui-source.h: Do not include "defs.h".
12559 (struct tui_win_info): Declare.
12560 (tui_set_source_content_nil): Declare.
12561 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12562 (union tui_line_or_address): Rename _TuiLineOrAddress.
12563 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12564 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12565 (tui_update_source_window_as_is): Rename
12566 tuiUpdateSourceWindowAsIs.
12567 (tui_update_source_windows_with_addr): Rename
12568 tuiUpdateSourceWindowsWithAddr.
12569 (tui_update_source_windows_with_line): Rename
12570 tuiUpdateSourceWindowsWithLine.
12571 (tui_clear_source_content): Rename tuiClearSourceContent.
12572 (tui_erase_source_content): Rename tuiEraseSourceContent.
12573 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12574 (tui_show_source_content): Rename tuiShowSourceContent.
12575 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12576 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12577 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12578 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12579 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12580 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12581 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12582 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12583 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12584 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12585 (struct tui_win_info): Declare.
12586 * tui/tui-stack.c: Update references.
12587 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12588 * tui/tui-win.c, tui/tui-source.c: Ditto.
12589 * tui/tui.c, tui/tui-disasm.c: Ditto.
12591 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12593 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12594 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12596 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12598 * infrun.c (handle_inferior_event): Allow for breakpoint
12599 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12600 and SIGEMT. Update comments.
12601 * NEWS (Revised SPARC target): Mention support for non-executable
12604 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12606 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12607 * inftarg.c: Update copyright year.
12608 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12609 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12610 (sparc_xfer_wcookie): New function.
12611 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12612 * Makefile.in (sparc-nat.o): Update dependencies.
12613 * config/sparc/nm-nbsd.h: Include "target.h".
12614 (NATIVE_XFER_WCOOKIE): New define.
12615 (sparc_xfer_wcookie): New prototype.
12617 2004-02-04 Andrew Cagney <cagney@redhat.com>
12619 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12620 SYSCALL_TRAP function.
12621 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12623 2004-02-04 Andrew Cagney <cagney@redhat.com>
12624 Daniel Jacobowitz <drow@mvista.com>
12626 * objfiles.h: Delete comments refering to inside_entry_func and
12627 DEPRECATED_FRAME_CHAIN_VALID.
12628 * defs.h (inside_entry_func): Update prototype..
12629 * blockframe.c (inside_entry_func): Rename to
12630 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12631 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12633 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12635 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12636 outside of #ifdef SOLIB_ADD region.
12637 (do_restore_lang_radix_cleanup): Ditto.
12638 (resolve_pending_breakpoint): Ditto.
12640 2004-02-03 Andrew Cagney <cagney@redhat.com>
12642 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12643 (process_note_abi_tag_sections): Delete unused function.
12644 (ia64_read_fp): Delete unused function.
12645 (gdbarch_extract_struct_value_address): Delete declaration.
12647 2004-02-02 Andrew Cagney <cagney@redhat.com>
12649 * vax-tdep.c (vax_frame_chain): Delete call to
12650 deprecated_inside_entry_file.
12651 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12653 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12655 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12656 column that's "empty" or "same value" when eliminating REG_RA
12659 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12661 * NEWS: Add information about new pending breakpoint support.
12663 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12665 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12666 and pending fields for pending breakpoint support.
12667 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12668 (condition_command): Only parse condition if not a pending
12670 (print_one_breakpoint): Add support for pending breakpoints.
12671 (describe_other_breakpoints): Add checks to verify we are not
12672 dealing with pending breakpoints.
12673 (check_duplicates): Don't check pending breakpoints.
12674 (set_raw_breakpoint): Initialize pending flag.
12675 (do_restore_lang_radix_cleanup): New cleanup routine.
12676 (resolve_pending_breakpoint): New function.
12677 (re_enable_breakpoints_in_shlibs): Try and resolve any
12678 pending breakpoints via resolve_pending_breakpoint.
12679 (mention): Add pending breakpoint support.
12680 (parse_breakpoint_sals): Add new parameter to pass to
12681 decode_line_1 to indicate silent errors when files or functions
12682 are not found. Change all callers.
12683 (do_captured_parse_breakpoint): New function.
12684 (break_command_1): Change prototype to return an rc value and to
12685 take an optional pending breakpoint pointer. Support creating
12686 a pending breakpoint if a "not found" form of error occurs when
12687 parsing the breakpoint. Also support resolving an existing pending
12688 breakpoint and be silent if the resolution fails.
12689 (create_breakpoints): Change prototype to take pending breakpoint
12690 pointer. When resolving a pending breakpoint, use the new pointer
12691 to provide a conditional or commands added by the end-user.
12692 (delete_breakpoint): Add appropriate check for pending.
12693 (breakpoint_re_set_one): Ditto.
12694 (do_enable_breakpoint): Ditto.
12696 2004-02-02 David Carlton <carlton@kealia.com>
12698 * valops.c (enum oload_classification): New.
12699 (find_overload_match): Break implementation into separate
12700 functions; delete #if 0'd code; look for symbols within
12702 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12703 (find_oload_champ,oload_method_static,classify_oload_match): New.
12704 * cp-support.h: Add declaration for cp_func_name; update
12705 declaration for make_symbol_overload_list.
12706 * cp-support.c (cp_func_name): New.
12707 (overload_list_add_symbol): Fix comment, use
12708 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12709 (make_symbol_overload_list): Take a function name and a namespace
12710 instead of a symbol; change implementation.
12711 (make_symbol_overload_list_using): New.
12712 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12714 2004-02-02 Fred Fish <fnf@redhat.com>
12716 * main.c (gdb_stdtarg): Move definition to group with other
12717 gdb_stdtarg definitions and update copyright years.
12718 * remote-sim.c (gdb_os_write_stderr): Write output to
12719 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12720 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12721 gdb_stderr stream and update copyright years.
12723 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12725 * Makefile.in (mips-linux-nat.o): Update dependencies.
12726 * mips-linux-nat.c: Include mips-tdep.h.
12728 2004-02-01 Roland McGrath <roland@redhat.com>
12730 * sol-thread.c (sol_thread_xfer_partial): New function.
12731 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12732 (init_sol_core_ops): Likewise.
12734 * procfs.c (procfs_xfer_partial): New function.
12735 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12736 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12738 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12739 procfs_xfer_auxv function.
12741 * procfs.c (procfs_make_note_section): If we can read
12742 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12743 * linux-proc.c (linux_make_note_section): Likewise.
12745 * auxv.h: New file.
12746 * auxv.c: New file.
12747 * Makefile.in (auxv_h): New variable.
12748 (COMMON_OBS): Add auxv.o here.
12749 (auxv.o): New target.
12751 * corelow.c (core_xfer_partial): New function.
12752 (init_core_ops): Use it for core_ops.to_xfer_partial.
12754 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12755 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12756 macro if that is defined.
12758 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12760 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12761 and check the specified thread for each breakpoint.
12762 * breakpoint.h (bpstat_stop_status): Update prototype.
12763 * infrun.c (handle_inferior_event): Update calls to
12764 bpstat_stop_status.
12766 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12768 * Makefile.in (cli-cmds.o): Add $(readline_h).
12770 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12772 * cli/cli-cmds.c: Include readline.h.
12773 (complete_command): Pass the start of the last word to
12776 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12778 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12779 argument, and change first argument to a CORE_ADDR.
12780 * breakpoint.h (bpstat_stop_status): Update prototype.
12781 * infrun.c (adjust_pc_after_break): Add a new comment.
12782 (handle_inferior_event): Update calls to bpstat_stop_status.
12784 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12786 * breakpoint.h: Update copyright years.
12788 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12790 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12791 (bpstat_stop_status): Don't decrement PC.
12792 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12794 * infrun.c (adjust_pc_after_break): New function.
12795 (handle_inferior_event): Call it, early. Remove later references
12796 to DECR_PC_AFTER_BREAK.
12797 (normal_stop): Add commentary.
12799 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12801 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12802 2004-01-27 double-free fix.
12804 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12806 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12807 (sparc32_frame_prev_register): Handle StackGhost.
12808 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12810 2004-01-29 Roland McGrath <roland@redhat.com>
12812 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12813 * configure: Regenerated.
12815 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12816 * Makefile.in (procfs.o): Add dep.
12818 2004-01-28 Andrew Cagney <cagney@redhat.com>
12820 * tui/tui-stack.h: Update copyright.
12821 (struct frame_info): Add opaque declaration.
12822 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12823 (tui_show_locator_content): Rename tuiShowLocatorContent.
12824 (tui_show_frame_info): Rename tuiShowFrameInfo.
12825 * tui/tui-stack.c: Update copyright. Update references.
12826 * tui/tui-winsource.c: Update references.
12827 * tui/tui-win.c: Update references.
12828 * tui/tui-layout.c: Update references.
12829 * tui/tui-hooks.c: Update copyright, update references.
12830 * tui/tui.c: Update copyright, update references.
12831 * tui/tui-disasm.c: Update references.
12833 2004-01-28 David Carlton <carlton@kealia.com>
12835 * dwarf2read.c (add_partial_structure): Use demangled name if
12836 namespace equals "".
12838 2004-01-27 Jim Blandy <jimb@redhat.com>
12840 Clean up misapplied patch:
12841 * dwarf2read.c (determine_prefix): Change one of the two forward
12842 declarations for 'determine_prefix_aux' to a declaration for this.
12843 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12844 argument to 'die_specification'.
12846 * dwarf2read.c (read_func_scope): Re-indent comment.
12848 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12850 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12851 b->exp to NULL after freeing so that error during re-parsing or
12852 evaluation of expressions associated with breakpoint don't
12853 eventually lead to re-freeing of storage.
12854 Committed by Andrew Cagney.
12856 2004-01-27 Andrew Cagney <cagney@redhat.com>
12858 * source.c (ambiguous_line_spec): Delete undefined declaration.
12859 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12860 (m32r_set_server_address, m32r_set_download_path): Ditto.
12861 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12863 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12865 * dwarf2read.c: Update calls to changed and renamed functions, and
12866 references to moved variables.
12868 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12869 language, language_defn, list_in_scope, and ftypes members.
12870 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12871 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12872 (baseaddr): Remove globals.
12874 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12875 (set_cu_language, die_is_declaration, die_specification)
12876 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12877 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12878 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12879 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12881 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12882 cu.list_in_scope. Don't initialize cu_header_offset.
12883 (add_partial_symbol): Add local baseaddr.
12884 (psymtab_to_symtab_1): Add local baseaddr. Use
12885 objfile->section_offsets for consistency. Don't initialize
12886 cu_header_offset; do initialize cu.header.offset and
12888 (read_file_scope, read_func_scope, read_lexical_block_scope)
12889 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12891 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12893 * PROBLEMS: Add gdb/1516.
12895 2003-12-29 Robert Millan <robertmh@gnu.org>
12897 Patch committed by Andrw Cagney.
12898 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12899 * configure.tgt: Match knetbsd*-gnu.
12901 2004-01-26 Andrew Cagney <cagney@redhat.com>
12903 * breakpoint.c (catch_command_1): Delete #ifdef code.
12904 (catch_fork_command_1): Delete #ifdef wrapper.
12905 (catch_exec_command_1): Ditto.
12906 (catch_load_command_1): Ditto.
12907 (catch_unload_command_1): Ditto.
12909 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12910 (catch_breakpoint): Delete #if0ed function.
12911 (disable_catch_breakpoint): Ditto.
12912 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12913 (disable_catch, enable_catch, delete_catch): Ditto.
12915 2004-01-26 Andrew Cagney <cagney@redhat.com>
12917 * remote.c (echo_check, quit_flag): Delete variables.
12918 (cisco_kernel_mode): Delete variable.
12919 (minitelnet_return, tty_input, escape_count): Delete variables.
12920 (remote_cisco_mode): Delete variable.
12921 (remote_cisco_open, remote_cisco_close): Delete function.
12922 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12923 (init_remote_cisco_ops): Delete function.
12924 (_initialize_remote): Do not install "remote cisco" code.
12925 (read_frame): Delete cisco specific code.
12926 (remote_info_process): Delete function.
12927 (remote_wait): Delete cisco specific code.
12928 (remote_cisco_section_offsets): Delete function.
12929 (remote_cisco_objfile_relocate): Delete function.
12930 (remote_async_wait): Delete cisco specific code.
12931 (minitelnet, readtty, readsocket): Delete function.
12933 2004-01-26 Andrew Cagney <cagney@redhat.com>
12935 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12936 comments mentioning extract_returned_value_address.
12937 * infcmd.c (print_return_value): Update. Add comments on
12938 extract_returned_value_address.
12939 * stack.c (return_command): Add comments on
12940 extract_returned_value_address.
12941 * values.c: Update comment.
12942 * m32r-tdep.c: Update comment.
12943 * sparc-tdep.c: Update comment.
12944 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12946 * sh64-tdep.c (sh64_gdbarch_init): Update.
12947 * sh-tdep.c (sh_gdbarch_init): Update.
12948 * s390-tdep.c (s390_gdbarch_init): Update.
12949 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12950 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12951 * m68k-tdep.c (m68k_gdbarch_init): Update.
12952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12953 * m32r-tdep.c (m32r_gdbarch_init): Update.
12954 * ia64-tdep.c (ia64_gdbarch_init): Update.
12955 * h8300-tdep.c (h8300_gdbarch_init): Update.
12956 * frv-tdep.c (frv_gdbarch_init): Update.
12957 * arm-tdep.c (arm_gdbarch_init): Update.
12958 * alpha-tdep.c (alpha_gdbarch_init): Update.
12960 2004-01-26 Andrew Cagney <cagney@redhat.com>
12962 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12963 SYMBOL_LOCATION_FUNCS
12964 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12965 "struct symbol_ops".
12966 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12967 type to "struct symbol_ops".
12968 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12969 (struct symbol): Replace ".aux_value.loc.funcs" and
12970 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12971 (SYMBOL_OBJFILE): Delete macro.
12972 (SYMBOL_LOCATION_FUNCS): Delete macro.
12973 (SYMBOL_LOCATION_BATON): Update.
12974 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12975 intead of SYMBOL_LOCATION_FUNCS.
12976 * ax-gdb.c (gen_var_ref): Ditto.
12977 * printcmd.c (address_info): Ditto.
12978 * findvar.c (read_var_value): Ditto.
12979 (symbol_read_needs_frame): Ditto.
12981 2004-01-26 Andrew Cagney <cagney@redhat.com>
12983 * dwarf2read.c (read_func_scope): Document frame-base hack.
12985 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12987 * infcmd.c (print_return_value): Plug memory leak; delete
12988 ui_stream object. Rename argument `structure_return' to
12991 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12993 * infcmd.c (print_return_value): Wrap long lines.
12994 (finish_command_continuation, finish_command): Remove unused
12995 variable `funcaddr'. Fix some coding-standards problems.
12997 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12998 SECT_SIZE is large enough, not whether it's exactly the right size.
12999 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13000 TDEP->fpregset to zero.
13002 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13003 floating-point registers for traditional NetBSD core files.
13004 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13005 TDEP->sizeof_fpregset here.
13007 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13009 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13010 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13011 function with code split out from
13012 sparc32nbsd_sigcontext_frame_cache.
13013 (sparc32nbsd_sigcontext_frame_cache): Use
13014 sparc32nbsd_sigcontext_saved_regs.
13015 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13017 * sparcobsd-tdep.c: New file.
13018 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13019 (sparcobsd-tdep.o): New dependency.
13020 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13021 * config/sparc/obsd.mt: New file.
13023 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13024 TDEP->fpregset to be initialized to enable core file register
13027 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13029 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13030 Add opaque declarations.
13031 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13032 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13033 function with code split out from
13034 sparc64nbsd_sigcontext_frame_cache.
13035 (sparc64nbsd_sigcontext_frame_cache): Use
13036 sparc64nbsd_sigcontext_saved_regs.
13037 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13039 * sparc64obsd-tdep.c: New file.
13040 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13041 (sparc64obsd-tdep.o): New dependency.
13042 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13043 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13044 * config/sparc/obsd64.mt: New file.
13046 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13047 read the instruction at PC.
13049 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13050 value of GDB_OSABI_DEFAULT.
13051 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13052 instead of GDB_OSABI_NETBSD_AOUT.
13054 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13056 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13059 2004-01-23 Andrew Cagney <cagney@redhat.com>
13061 * printcmd.c (display_command): Replace tui_set_display call with
13062 tui_set_layout_for_display_command.
13063 * tui/tui.h (enum tui_win_type): Define.
13064 (tui_set_layout): Delete declaration.
13065 (tui_set_layout_for_display_command): Rename set_tui_layout.
13066 * tui/tui-data.h (enum tui_layout_type): Define.
13067 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13069 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13070 (tui_default_win_height): Rename tuiDefaultWinHeight.
13071 (tui_default_win_viewport_height): Rename
13072 tuiDefaultWinViewportHeight.
13073 (tui_set_layout): RenametuiSetLayout.
13074 * tui/tui-layout.c: Update references.
13075 * tui/tui.c: Update references.
13076 * tui/tui-disasm.c: Update references.
13078 2004-01-23 David Carlton <carlton@kealia.com>
13080 Partial workaround for PR c++/1511:
13081 * cp-namespace.c: Include frame.h.
13082 (cp_lookup_transparent_type): New
13083 (cp_lookup_transparent_type_loop): New.
13084 * cp-support.h: Declare cp_lookup_transparent_type.
13085 * symtab.c (basic_lookup_transparent_type): Renamed from
13086 lookup_transparent_type.
13087 (lookup_transparent_type): Replace old body by a call to
13088 current_language->la_lookup_transparent_type.
13089 * symtab.h: Update copyright. Declare
13090 basic_lookup_transparent_type.
13091 * language.h: Update copyright.
13092 (struct language_defn): Add la_lookup_transparent_type.
13093 * language.c: Update copyright.
13094 (unknown_language_defn): Add basic_lookup_transparent_type.
13095 (auto_language_defn): Add basic_lookup_transparent_type.
13096 (local_language_defn): Add basic_lookup_transparent_type.
13097 * ada-lang.c: Update copyright.
13098 (ada_language_defn): Add basic_lookup_transparent_type.
13099 * c-lang.c: Update copyright.
13100 (c_language_defn): Add basic_lookup_transparent_type.
13101 (cplus_language_defn): Add basic_lookup_transparent_type.
13102 (asm_language_defn): Add basic_lookup_transparent_type.
13103 (minimal_language_defn): Add basic_lookup_transparent_type.
13104 * f-lang.c: Update copyright.
13105 (f_language_defn): Add basic_lookup_transparent_type.
13106 * jv-lang.c: Update copyright.
13107 (java_language_defn): Add basic_lookup_transparent_type.
13108 * m2-lang.c: Update copyright.
13109 (m2_language_defn): Add basic_lookup_transparent_type.
13110 * objc-lang.c: Update copyright.
13111 (objc_language_defn): Add basic_lookup_transparent_type.
13112 * p-lang.c: Update copyright.
13113 (p_language_defn): Add basic_lookup_transparent_type.
13114 * scm-lang.c: Update copyright.
13115 (scm_language_defn): Add basic_lookup_transparent_type.
13116 * Makefile.in (cp-namespace.o): Depend on frame.h.
13118 2004-01-23 David Carlton <carlton@kealia.com>
13120 Patch for PR c++/1520:
13121 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13122 properly if we have a specification die.
13123 (determine_prefix_aux): Rename from determine_prefix.
13124 (determine_prefix): Like the old determine_prefix, but never
13127 2004-01-23 Theodore A. Roth <troth@openavr.org>
13129 * avr-tdep.c: Update copyright.
13130 (avr_iaddr_p): Delete unused function.
13131 (avr_saddr_p): Delete unused function.
13133 2004-01-23 David Carlton <carlton@kealia.com>
13135 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13136 Fix for PR symtab/1534.
13138 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13140 * NEWS (New native configurations): Mention OpenBSD/sparc and
13142 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13143 * configure.host: Likewise.
13144 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13145 handler for OpenBSD.
13146 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13148 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13150 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13151 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13153 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13154 * cli/cli-cmds.c (shell_escape): Likewise.
13156 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13157 OpenBSD .note.openbsd.ident sections.
13159 2004-01-22 David Carlton <carlton@kealia.com>
13161 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13162 get_scope_pc_bounds.
13163 (read_file_scope): Ditto.
13164 (get_scope_pc_bounds): New function, produced by extracting code
13165 from the above two functions, consolidating it, and adding support
13166 for DW_TAG_namespace.
13168 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13170 * osabi.c (MAX_NOTESZ): New define.
13171 (check_note): New function.
13172 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13175 2004-01-21 Roland McGrath <roland@redhat.com>
13177 * MAINTAINERS (write after approval): Add myself.
13179 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13181 * utils.c (init_page_info): Move declarations of `rows' and
13182 `cols' before the __GO32__-specific code. Move the closing brace
13183 outside the #ifdef __GO32__..#endif block.
13184 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13186 2004-01-21 Paul Brook <paul@codesourcery.com>
13188 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13189 BPSTAT_WHAT_CHECK_SHLIBS.
13191 2004-01-21 Paul Brook <paul@codesourcery.com>
13193 * MAINTAINERS: Add myself to write-after-approval.
13195 2004-01-20 Andrew Cagney <cagney@redhat.com>
13197 * ax-gdb.c (print_axs_value): Delete unused function.
13198 * jv-lang.c (java_lookup_type): Delete unused function.
13199 * cli/cli-dump.c (dump_filetype): Delete unused function.
13200 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13201 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13202 (mips_getstring): Delete unused function.
13203 (pmon_insert_breakpoint): Delete #if0ed function.
13204 (PMON_MAX_BP): Delete #if0ed MACRO.
13205 (mips_pmon_bp_info): Delete #if0ed variable.
13206 (pmon_remove_breakpoint): Delete #if0ed function.
13207 * monitor.c (monitor_write_even_block): Delete unused function.
13208 (monitor_write_memory_block): Delete #if0ed code.
13209 * dink32-rom.c (dink32_load): Delete unused function.
13210 (_initialize_dink32_rom): Delete #if0ed code.
13211 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13213 * tui/tui-command.c: Update references.
13214 * tui/tui-io.c: Update references.
13215 * tui/tui-command.h: Update copyright.
13216 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13218 * source.c (ambiguous_line_spec): Delete never-defined function.
13219 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13220 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13221 * cli/cli-cmds.c (validate_comname): Ditto.
13223 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13225 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13226 (tui_show_disassem): Rename tuiShowDisassem.
13227 (tui_show_disassem_and_update_source): Rename
13228 tuiVerticalDisassemScroll.
13229 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13230 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13231 * tui/tui.h: Update copyright.
13232 (enum tui_status): Define.
13233 * tui/tui-data.h (enum tui_scroll_direction): Define.
13234 * tui/tui-disasm.c: Update copyright. Update references.
13235 * tui/tui-winsource.c: Update copyright. Update references.
13236 * tui/tui-win.c: Update references.
13237 * tui/tui-layout.c: Update references.
13239 2004-01-20 Andrew Cagney <cagney@redhat.com>
13241 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13242 sym2 to start of block.
13244 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13246 * MAINTAINERS: Delete mmalloc.
13247 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13248 * NEWS: Mention removal of --with-malloc.
13249 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13250 * config.in: Regenerate.
13251 * configure: Regenerate.
13252 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13253 USE_MMALLOC, MMCHECK_FORCE.
13254 * gdbinit.in: Remove mmalloc.
13255 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13256 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13257 * config/i386/go32.mh: Likewise.
13258 * config/i386/interix.mh: Likewise.
13259 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13261 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13263 * linespec.c (decode_variable, symtab_from_filename): Call
13264 error_silent with error message instead of throwing an exception
13266 * defs.h (error_silent, error_output_message): Add prototypes.
13267 (catch_exceptions_with_msg): Ditto.
13268 * utils.c (error_silent, error_output_message): New functions.
13269 * top.c (catch_exceptions_with_msg): New function.
13271 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13273 * mi/mi-cmds.h (enum print_values): Add definition.
13275 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13276 type and value for simple data types and just the name and type
13277 for complex ones, if required.
13279 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13280 children, if required.
13282 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13284 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13285 unused declarations.
13287 2004-01-19 Andrew Cagney <cagney@redhat.com>
13289 * top.h (mapped_symbol_files): Delete declaration.
13290 * main.c (captured_main): Delete option "m" and "mapped".
13291 * objfiles.c (mapped_symbol_files): Delete variable.
13292 * symfile.c (symbol_file_command): Delete mmap code.
13293 (symbol_file_add_with_addrs_or_offsets): Ditto.
13294 (add_symbol_file_command, reread_separate_symbols): Ditto.
13295 * objfiles.h (OBJF_MAPPED): Delete.
13296 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13297 (free_objfile) [USE_MMALLOC]: Ditto.
13298 (open_existing_mapped_file): Delete function.
13299 (open_mapped_file): Delete function.
13300 (map_to_file): Delete function.
13302 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13304 * infrun.c (step_into_function): Account for possible breakpoint
13305 adjustment when computing ``stop_func_start''.
13307 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13309 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13310 the region size against the size of a pointer, not the size of
13311 a register as given by DEPRECATED_REGISTER_SIZE.
13313 2004-01-19 Andrew Cagney <cagney@redhat.com>
13315 * tui/tui-regs.h: Include "tui-data.h".
13316 (tuiFirstRegElementNoInLine): Delete declaration.
13317 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13318 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13319 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13320 (tui_calculate_regs_column_count): Rename
13321 tuiCalculateRegsColumnCount.
13322 (tui_check_register_values): Rename tuiCheckRegisterValues.
13323 (tui_show_registers): Rename tuiShowRegisters.
13324 (tui_display_registers_from_line): Rename
13325 tuiDisplayRegistersFromLine.
13326 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13327 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13328 (tui_first_reg_element_no_inline): Rename
13329 tuiFirstRegElementNoInLine.
13330 * tui/tui-data.h: Update copyright.
13331 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13332 * tui/tui-windata.c: Update copyright, update references.
13333 * tui/tui-regs.c: Update copyright, update references.
13334 * tui/tui-win.c: Update copyright, update references.
13335 * tui/tui-layout.c: Update copyright, update references.
13337 2004-01-18 Andrew Cagney <cagney@redhat.com>
13339 * tui/tui-io.c: Update copyright.
13340 (key_is_end_sequence, key_is_backspace): New functions.
13341 (key_is_command_char, key_is_start_sequence): New function.
13342 (tui_getc): Update references.
13343 * tui/tui-io.h: Update copyright.
13344 (m_tuiStartNewLine): Delete macro.
13345 (m_isBackspace, m_isDeleteChar): Delete macros.
13346 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13347 (m_isNextPage, m_isPrevPage): Delete macros.
13348 (m_isLeftArrow, m_isRightArrow): Delete macros.
13349 (m_isXdbStyleCommandChar): Delete macro.
13350 (key_is_start_sequence): Declare, replace m_isStartSequence.
13351 (key_is_end_sequence): Declare, replace m_isEndSequence.
13352 (key_is_backspace): Declare ,replace m_isBackspace.
13353 (key_is_command_char): Declare, replace m_isCommandChar.
13354 * tui/tui-command.c: Update copyright.
13355 (tuiDispatchCtrlChar): Update references.
13357 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13360 * tui/tui-command.c: Rename tui/tuiCommand.c.
13361 * tui/tui-command.h: Rename tui/tuiCommand.h.
13362 * tui/tui-data.c: Rename tui/tuiData.c.
13363 * tui/tui-data.h: Rename tui/tuiData.h.
13364 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13365 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13366 * tui/tui-io.c: Rename tui/tuiIO.c.
13367 * tui/tui-io.h: Rename tui/tuiIO.h.
13368 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13369 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13370 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13371 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13372 * tui/tui-source.c: Rename tui/tuiSource.c.
13373 * tui/tui-source.h: Rename tui/tuiSource.h.
13374 * tui/tui-stack.c: Rename tui/tuiStack.c.
13375 * tui/tui-stack.h: Rename tui/tuiStack.h.
13376 * tui/tui-win.c: Rename tui/tuiWin.c.
13377 * tui/tui-win.h: Rename tui/tuiWin.h.
13378 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13379 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13380 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13381 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13382 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13383 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13384 * tui/tui-file.c: Update includes.
13385 * tui/tui-hooks.c: Update includes.
13386 * tui/tui-interp.c: Update includes.
13387 * tui/tui.c: Update includes.
13388 * Makefile.in: Update all tui/ dependencies.
13389 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13391 * Makefile.in: Update copyright. Update dependencies.
13393 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13396 2004-01-18 Andrew Cagney <cagney@redhat.com>
13398 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13399 instead of register_gdbarch_init.
13401 * remote-sds.c (tohex): Delete unused function. Update copyright.
13402 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13403 * v850-tdep.c (v850_register_virtual_size): Ditto.
13404 * target.c (normal_target_post_startup_inferior): Ditto.
13405 * source.c (ambiguous_line_spec): Ditto.
13406 * remote.c (adapt_remote_get_threadinfo): Ditto.
13407 * mi/mi-out.c (out_field_fmt): Ditto.
13408 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13409 (output_control_change_notification): Ditto.
13410 * m68k-tdep.c (m68k_register_byte): Ditto.
13411 (m68k_remote_breakpoint_from_pc): Ditto.
13412 * ui-out.c (init_ui_out_state): Delete unused declaration.
13413 * stabsread.c (search_value): Ditto.
13414 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13415 * maint.c (print_section_table): Ditto.
13416 * infrun.c (set_follow_fork_mode_command): Ditto.
13418 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13420 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13421 DW_CFA_def_cfa_exporession. Add support for
13422 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13423 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13425 2004-01-18 Andrew Cagney <cagney@redhat.com>
13427 * ocd.c: Update copyright.
13428 (bdm_read_register_command): Delete unused function.
13429 (_initialize_remote_ocd): Delete commented out reference.
13430 (get_quoted_char, reset_packet): Delete #if0ed function.
13431 (output_packet, put_quoted_char): Delete #if0ed function.
13432 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13433 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13434 (BDM_BREAKPOINT): Delete #if0ed macro.
13435 (remote_timeout): Delete #if0ed variable.
13437 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13439 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13440 (core-sol2.o): Remove dependency.
13441 * core-sol2.c: Remove file.
13443 2004-01-17 Andrew Cagney <cagney@redhat.com>
13445 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13446 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13449 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13451 * remote.c: Update copyright years.
13453 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13455 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13457 2004-01-17 Andrew Cagney <cagney@redhat.com>
13459 * mdebugread.c: Update copyright.
13460 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13461 (parse_type, parse_procedure): Ditto.
13462 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13464 * cris-tdep.c (cris_store_struct_return): Put back accidently
13467 * gdbarch.sh: Update copyright year.
13468 * gdbarch.h, gdbarch.c: Re-generate.
13470 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13472 Suggested by George Anzinger.
13473 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13474 correct stack offset. Include unknown opcode numbers in the error
13477 2004-01-17 Andrew Cagney <cagney@redhat.com>
13479 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13480 extract_struct_value_address, i386 does not set it.
13481 * sparc64-tdep.c (sparc64_init_abi): Do not set
13482 extract_struct_value_address, never called.
13483 (sparc64_extract_struct_value_address): Delete function.
13484 * m68hc11-tdep.c: Update copyright.
13485 (m68hc11_gdbarch_init): Delete redundant assignment of
13486 extract_struct_value_address.
13487 * i386-tdep.c: Update copyright.
13488 (i386_gdbarch_init): Do not set extract_struct_value_address,
13490 (i386_extract_struct_value_address): Delete function.
13491 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13492 extract_struct_value_address, never called.
13493 (sparc32_extract_struct_value_address): #if 0 function. Add
13494 comments explaining its future.
13496 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13498 * arm-tdep.c (arm_write_pc): New function.
13499 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13501 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13503 * breakpoint.c (must_shift_inst_regs): Delete.
13504 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13505 and SHIFT_INST_REGS.
13506 * infcmd.c (step_1, step_1_continuation): Delete references to
13508 * infrun.c (keep_going): Likewise.
13509 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13510 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13512 2004-01-17 Andrew Cagney <cagney@redhat.com>
13514 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13515 * gdbarch.h, gdbarch.c: Re-generate.
13516 * infcmd.c (print_return_value): Delete reference to
13517 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13519 * cris-tdep.c (cris_gdbarch_init): Do not set
13520 deprecated_extract_struct_value_address.
13522 * xstormy16-tdep.c: Update copyright.
13523 (xstormy16_extract_struct_value_address): Update to current
13524 extract struct value address interface.
13525 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13526 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13527 current extract struct value address interface.
13528 (sh64_gdbarch_init): Set extract_struct_value_address.
13530 * cris-tdep.c: Update copyright.
13531 (cris_extract_struct_value_address): Delete function.
13532 (struct_return_address): Delete variable.
13533 (cris_store_struct_return): Do not set struct_return_address.
13535 * mcore-tdep.c: Update copyright.
13536 (mcore_extract_struct_value_address): Delete function. Update
13538 (mcore_gdbarch_init): Update.
13539 * mn10300-tdep.c: Update copyright.
13540 (mn10300_extract_struct_value_address): Delete function.
13541 (mn10300_gdbarch_init): Update.
13542 * v850-tdep.c: Update copyright.
13543 (v850_extract_struct_value_address): Delete.
13544 (v850_gdbarch_init): Update.
13545 * ns32k-tdep.c: Update copyright.
13546 (ns32k_extract_struct_value_address): Delete.
13547 (ns32k_gdbarch_init): Update.
13548 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13549 (hppa_gdbarch_init): Update.
13550 * vax-tdep.c: Update copyright.
13551 (vax_extract_struct_value_address): Delete.
13552 (vax_gdbarch_init): Update.
13554 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13555 * gdbarch.h, gdbarch.c: Re-generate.
13556 * procfs.c (procfs_fetch_registers): Delete reference to
13557 DEPRECATED_NPC_REGNUM.
13558 (procfs_store_registers): Ditto.
13559 * regcache.c (generic_target_write_pc): Simplify.
13560 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13562 * core-sol2.c (fetch_core_registers): Replace
13563 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13565 * hppa-tdep.c: Update copyright year.
13566 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13568 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13570 * mips-tdep.c (mips_write_pc): New function.
13571 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13572 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13573 (mips_find_saved_regs, mips_software_single_step: Ditto.
13574 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13575 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13577 2004-01-17 Andrew Cagney <cagney@redhat.com>
13579 * mips-tdep.c: Re-indent. Group functions by ABI.
13581 2004-01-17 Andrew Cagney <cagney@redhat.com>
13583 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13584 * gdbarch.c: Re-generate.
13585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13586 DECR_PC_AFTER_BREAK to zero.
13587 * vax-tdep.c (vax_gdbarch_init): Ditto.
13588 * v850-tdep.c (v850_gdbarch_init): Ditto.
13589 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13590 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13591 * sh-tdep.c (sh_gdbarch_init): Ditto.
13592 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13593 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13595 * mips-tdep.c (mips_gdbarch_init): Ditto.
13596 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13598 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13599 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13600 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13601 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13602 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13603 * frv-tdep.c (frv_gdbarch_init): Ditto.
13604 * cris-tdep.c (cris_gdbarch_init): Ditto.
13605 * avr-tdep.c (avr_gdbarch_init): Ditto.
13606 * arm-tdep.c (arm_gdbarch_init): Ditto.
13607 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13609 2004-01-17 J. Brobecker <brobecker@gnat.com>
13611 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13612 Delete, no longer used.
13613 (read_subrange_type): New function, mostly extracted from
13615 (read_array_type): Replace extracted code by call to
13616 read_subrange_type().
13617 (dwarf2_get_attr_constant_value): New function.
13618 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13619 (add_partial_symbol): Likewise.
13620 (process_die): Likewise.
13621 (new_symbol): Likewise.
13622 (read_type_die): Likewise.
13624 2004-01-16 Andrew Cagney <cagney@redhat.com>
13626 * symfile.c: Update copyright year.
13627 (compare_symbols): Delete unused function.
13628 * stabsread.c: Update copyright year.
13629 (lrs_general_complaint): Delete unused function.
13630 (ref_search_value): Ditto.
13631 (get_substring): Delete declaration.
13632 * sh64-tdep.c: Update copyright year.
13633 (sh64_get_gdb_regnum): Delete unused function.
13634 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13635 Delete unused function.
13637 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13639 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13640 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13642 2004-01-16 Andrew Cagney <cagney@redhat.com>
13644 Changes from Peter Schauer.
13645 * rs6000-tdep.c: Update copyright year.
13646 (rs6000_push_dummy_call): Update the stack pointer before
13647 accessing the corresponding stack region.
13648 * rs6000-nat.c: Update copyright year.
13649 (set_host_arch): Set "info.abfd" to "exec_bfd".
13651 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13653 * blockframe.c: Update copyright year.
13654 (inside_entry_func): Don't treat a zero PC specially.
13656 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13658 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13660 (gcore_create_callback): Ditto. Skip any memory segment that has
13661 no permissions set.
13663 2004-01-14 David Carlton <carlton@kealia.com>
13665 Change symbols for C++ nested types to contain the fully qualified
13666 name, if possible. (At least in the DWARF-2 case.) Partial fix
13667 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13669 * c-exp.y (qualified_type): Handle types nested within classes.
13670 * cp-namespace.c: Update comments.
13671 (cp_set_block_scope): Delete #if 0.
13672 (cp_lookup_nested_type): Handle types nested within classes.
13673 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13675 (add_partial_symbol): Add the name of the enclosing namespace to
13677 (pdi_needs_namespace): New.
13678 (add_partial_namespace): Tweak comment.
13679 (add_partial_structure): New.
13680 (psymtab_to_symtab_1): Initialize processing_current_prefix
13682 (process_die): instead of here.
13683 (read_structure_scope): Try to figure out the name of the class or
13684 namespace that the structure might be defined within.
13685 (read_enumeration): Generate fully-qualified names, if possible.
13686 (read_namespace): Don't set name to NULL.
13687 (die_specification): New.
13688 (new_symbol): Generate fully-qualified names for types.
13689 (read_type_die): Determine appropriate prefix.
13690 (determine_prefix): New.
13691 (typename_concat): New.
13693 * valops.c (value_aggregate_elt): Pass NOSIDE to
13694 value_struct_elt_for_reference.
13695 (value_struct_elt_for_reference): Make static, add NOSIDE
13696 parameter, call value_maybe_namespace_elt as a last resort.
13697 (value_namespace_elt): Break out code into
13698 value_maybe_namespace_elt.
13699 (value_maybe_namespace_elt): New.
13701 2004-01-12 Andrew Cagney <cagney@redhat.com>
13703 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13704 cooked floating-point registers.
13705 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13706 and value_to_register.
13708 2004-01-13 Andrew Cagney <cagney@redhat.com>
13710 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13711 * gdbarch.c: Re-generate.
13712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13713 FUNCTION_START_OFFSET.
13714 * v850-tdep.c (v850_gdbarch_init): Ditto.
13715 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13716 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13717 * sh-tdep.c (sh_gdbarch_init): Ditto.
13718 * s390-tdep.c (s390_gdbarch_init): Ditto.
13719 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13720 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13721 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13722 * mips-tdep.c (mips_gdbarch_init): Ditto.
13723 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13724 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13726 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13727 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13728 * i386-tdep.c (i386_gdbarch_init): Ditto.
13729 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13730 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13731 * frv-tdep.c (frv_gdbarch_init): Ditto.
13732 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13733 * cris-tdep.c (cris_gdbarch_init): Ditto.
13734 * avr-tdep.c (avr_gdbarch_init): Ditto.
13735 * arm-tdep.c (arm_gdbarch_init): Ditto.
13736 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13738 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13740 * infrun.c (follow_fork_mode_ask): Remove.
13741 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13742 (follow_fork): Simplify and remove internal error for
13743 follow_fork_mode_ask.
13744 (_initialize_infrun): Update "set follow-fork-mode" help text.
13746 2004-01-13 Andrew Cagney <cagney@redhat.com>
13748 * configure.in: Update copyright year.
13749 (build_warnings): Add -Wunused-label.
13750 * configure: Re-generate.
13752 2004-01-12 Andrew Cagney <cagney@redhat.com>
13754 * exec.h (exec_ops): Make "extern".
13756 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13757 the function is void.
13758 (mips_pseudo_register_write): Ditto.
13760 2004-01-12 Andrew Cagney <cagney@redhat.com>
13762 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13763 call. Never defined.
13764 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13765 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13766 (struct sparc_gregset, struct regcache): Ditto.
13767 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13769 2004-01-12 Andrew Cagney <cagney@redhat.com>
13771 * mi/ChangeLog: Delete file. Renamed to ...
13772 * mi/ChangeLog-1999-2003: New file.
13773 * tui/ChangeLog: Delete file. Renamed to ...
13774 * tui/ChangeLog-1998-2003: New file.
13776 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13778 * sparc64nbsd-tdep.c: Include "regset.h".
13779 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13781 (fetch_core_registers): Remove function.
13782 (sparc64nbsd_core_fns): Remove variable.
13783 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13785 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13786 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13787 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13789 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13790 sparc_extract_struct_value_address.
13791 (sparc32_gdbarch_init): Set extract_struct_value_address.
13792 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13794 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13795 return_value_on_stack.
13797 * NEWS: Mention that %cs and %ss have been added to the AMD64
13800 * frame.c: Update copyright year.
13801 (get_prev_frame): Improve comment.
13803 * sparc64fbsd-tdep.c: Include "regset.h".
13804 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13806 (fetch_core_registers): Remove function.
13807 (sparc64fbsd_core_fns): Remove variable.
13808 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13810 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13811 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13812 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13814 * sparcnbsd-tdep.c: Include "regset.h".
13815 (fetch_core_registers): Remove function.
13816 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13817 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13819 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13821 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13823 * sparc-tdep.h (struct regset): Provide opaque declaration.
13824 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13825 fpregset and sizeof_fpregset members.
13826 * sparc-tdep.c (struct regset): Provide opaque declaration.
13827 (sparc_regset_from_core_section): New function.
13828 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13829 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13830 Set regset_from_core_section when appropriate.
13832 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13834 * x86-64-tdep.c (amd64_non_pod_p): New function.
13835 (amd64_classify_aggregate): Return class memory for non-POD
13836 C++ structure types.
13838 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13839 argument. Use it to reserve a register if necessary.
13840 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13841 amd64_push_arguments.
13843 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13845 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13846 register numbers in comments.
13847 * x86-64-tdep.h: Update copyright year.
13848 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13849 Adjust for addition of %cs and %ss.
13850 * amd64fbsd-nat.c: Update copyright year.
13851 (reg_offset): Add register offsets for %cs and %ss.
13852 * amd64fbsd-tdep.c: Update copyright year.
13853 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13854 (amd64fbsd_sc_reg_offset): Likewise.
13855 * x86-64-linux-nat.c: Update copyright year.
13856 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13858 * amd64nbsd-nat.c: Update copyright year.
13859 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13860 * amd64nbsd-tdep.c: Update copyright year.
13861 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13862 * x86-64-linux-tdep.c: Update copyright year.
13863 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13864 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13865 * regformats/reg-x86-64.dat: Add %cs and %ss.
13867 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13868 variables to prevent long lines. Update comments to reflect
13871 2004-01-09 David Carlton <carlton@kealia.com>
13873 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13874 * dwarf2read.c (read_namespace): Pull out name-generating code
13875 into namespace_name. Rename previous_namespace to previous_prefix
13876 and processing_current_namespace to processing_current_prefix..
13877 (namespace_name): New function.
13878 (add_partial_symbol): Substitute uses of pdi->name with
13880 * cp-support.h: Rename processing_current_namespace to
13881 processing_current_prefix.
13882 Update copyright year.
13883 * cp-namespace.c: Rename processing_current_namespace to
13884 processing_current_prefix.
13885 Update copyright year.
13887 2004-01-09 Andrew Cagney <cagney@redhat.com>
13889 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13891 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13893 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13895 (process_one_symbol): Deal with N_PATCH stabs.
13897 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13899 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13901 Update copyright year.
13903 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13905 * config/pa/tm-hppa.h: Update extern declarations for
13906 hppa32_hpux_frame_saved_pc_in_sigtramp,
13907 hppa32_hpux_frame_base_before_sigtramp, and
13908 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13910 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13912 * config/pa/tm-hppah.h: Update copyright years.
13914 2004-01-08 Andrew Cagney <cagney@redhat.com>
13916 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13917 (mips_o32_reg_struct_has_addr): Delete function.
13918 (mips_gdbarch_init): Update.
13919 (mips_extract_struct_value_address): Delete function.
13921 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13923 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13926 2004-01-07 Andrew Cagney <cagney@redhat.com>
13928 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13929 architecture's elf flags (when available).
13931 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13932 FPU to the start, check the MIPS FPU when looking for an old
13934 (set_mipsfpu_single_command): Update the architecture.
13935 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13937 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13938 (mips_mask_address_p): Add "tdep" parameter.
13939 (show_mask_address, mips_addr_bits_remove): Update.
13940 (mips_dump_tdep): Update.
13941 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13942 (MIPS_STACK_ARGSIZE): Delete macro.
13943 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13944 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13945 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13946 (mips_dump_tdep): Update.
13947 (MIPS_SAVED_REGSIZE): Delete macro.
13948 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13949 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13950 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13951 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13952 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13953 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13954 (mips_pop_frame, return_value_location): Update.
13955 (mips_n32n64_return_value, mips_dump_tdep): Update.
13957 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13960 * mips-tdep.c: Update copyright.
13961 (mips_gdbarch_init): Merge two code blocks handling the register
13962 name and number layout.
13964 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13966 * tracepoint.c (validate_actionline): Fix segv at EOF
13968 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13970 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13971 properly for static fields.
13973 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13974 Jason Molenda <jmolenda@apple.com>
13976 * disasm.c: Update copyright to include 2004.
13977 (do_mixed_source_and_assembly): For uiout asm list
13978 and tuple cleanups, initialize to null_cleanup instead of
13979 NULL and do so prior to loop. Only reset when we close off
13980 the tuple/list. Move check for whether to close off the
13981 asm tuple/list to after dump_insns call where it will be run
13982 on each loop iteration.
13984 2004-01-05 Andrew Cagney <cagney@redhat.com>
13986 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13987 should be a switch case and not a label.
13988 * mips-tdep.c (mips32_next_pc): Delete unused labels
13989 "greater_equal_branch" and "less_zero_branch".
13990 * jv-valprint.c (java_print_value_fields): Delete unused label
13993 * target.c (unpush_target): Only close a target that is in the
13996 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13998 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13999 address from [sp + 64] instead of %o2.
14001 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14002 fixes PR backtrace/1476.
14004 2004-01-05 Andrew Cagney <cagney@redhat.com>
14006 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14007 move to start of file.
14008 * i386-tdep.h (struct regcache): Add opaque declaration.
14009 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14011 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14012 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14013 * win32-nat.c (fake_create_process): Use ISO C style definition.
14014 * stabsread.c (define_symbol): Delete #ifndef
14015 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14016 stabs_argument_has_addr call, macro never defined.
14018 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14020 * op50-rom.c: Delete.
14021 * w89k-rom.c: Delete.
14022 * Makefile.in: Remove references.
14024 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14026 * x86-64-tdep.c: Update copyright year.
14027 (struct amd64_register_info): Rename from x86_64_register_info.
14028 (amd64_register_info): Rename from x86_64_register_info.
14029 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14030 (amd64_register_name): Rename from x86_64_register_name.
14031 (amd64_register_type): Rename from x86_64_register_type.
14032 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14033 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14034 (amd64_dwarf_reg_to_regnum): Rename from
14035 x86_64_dwarf_reg_to_regnum.
14036 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14037 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14038 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14039 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14040 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14041 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14042 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14043 (amd64_frame_cache): Rename from x86_64_frame_cache.
14044 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14045 (amd64_frame_prev_register): Rename from
14046 x86_64_frame_prev_register.
14047 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14048 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14049 (amd64_sigtramp_frame_cache): Rename from
14050 x86_64_sigtramp_frame_cache.
14051 (amd64_sigtramp_frame_prev_register): Rename from
14052 x86_64_sigtramp_frame_prev_register.
14053 (amd64_sigtramp_frame_unwind): Rename from
14054 x86_64_sigtramp_frame_unwind.
14055 (amd64_sigtramp_frame_sniffer): Rename from
14056 x86_64_sigtramp_frame_sniffer.
14057 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14058 (amd64_frame_base): Rename from x86_64_frame_base.
14059 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14060 (amd64_frame_align): Rename from x86_64_frame_align.
14061 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14062 (amd64_regset_from_core_section): Rename from
14063 x86_64_regset_from_core_section.
14064 (x86_64_init_abi): Update comments.
14066 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14068 * MAINTAINERS (write after approval): Add myself.
14070 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14072 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14075 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14077 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14078 such that it mentions a specific version of GCC that exhibits this
14081 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14083 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14084 structure that has a single `float' member, store it in %f1 in
14087 * sparc-sol2-nat.c: Add missing '\'.
14089 * sparc-tdep.c (sparc32_return_value): New function.
14090 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14092 (sparc32_gdbarch_init): Set return_value, don't set
14093 extract_return_value, store_return_value, use_struct_convention
14094 and return_value_on_stack.
14096 * sparc-sol2-nat.c: Add missing ')'.
14098 2004-01-03 J. Brobecker <brobecker@gnat.com>
14100 * infrun.c (handle_step_into_function): New function.
14101 (handle_inferior_event): Extract out some code into the new
14104 2004-01-03 J. Brobecker <brobecker@gnat.com>
14106 * infrun.c (handle_inferior_event): Move the declaration of
14107 real_stop_pc inside the if blocks where it is used.
14109 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14111 * sparc64-tdep.c (sparc64_16_byte_align_p)
14112 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14113 Use check_typedef to get subtypes of structures and unions.
14114 (sparc64_store_return_value): Fix calculation of the appropriate
14115 offset into VALBUF when storing a structure or union.
14116 (sparc64_return_value): New function.
14117 (sparc64_use_struct_convention): Remove function.
14118 (sparc64_init_abi): Set return_value, don't set
14119 extract_return_value, store_return_value and
14120 use_struct_convention.
14122 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14124 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14125 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14126 gdb/config/alpha/xm-alphaosf.h,
14127 gdb/config/powerpc/tm-ppcle-eabi.h,
14128 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14129 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14130 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14131 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14132 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14133 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14134 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14135 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14136 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14137 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14138 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14139 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14140 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14141 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14142 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14143 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14144 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14145 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14146 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14147 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14148 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14149 Remove lines for .cvsignore files.
14151 2004-01-03 J. Brobecker <brobecker@gnat.com>
14153 * infrun.c: Back out the previous change.
14155 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14157 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14158 sparc-*-sunos4* to the list of REMOVED configurations.
14160 * configure.tgt: Add back sparc-*-vxworks*.
14161 * remote-vxsparc.c: Remove all includes except for "defs.h",
14162 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14163 Include "sparc-tdep.h".
14164 (SPARC_R_G1): New define.
14165 (vxsparc_gregset): New variable.
14166 (ext_format_sparc): Remove extern declaration.
14167 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14168 sparc32_supply_fpregset.
14169 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14170 sparc_collect_rwindow and sparc32_collect_fpregset.
14171 * config/sparc/tm-vxworks.h: New file, based on recently removed
14173 * config/sparc/vxworks.mt: New file, based on recently removed
14176 2004-01-03 J. Brobecker <brobecker@gnat.com>
14178 * infrun.c (handle_step_into_function): New function.
14179 (handle_inferior_event): Extract out some code into the new
14182 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14184 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14185 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14186 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14187 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14188 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14189 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14190 (sparc_nat_h): New variable.
14191 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14192 (tm-sun4os4.h): Remove dependency.
14193 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14194 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14195 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14196 sparc-tdep.o): Update dependencies.
14197 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14198 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14199 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14201 * configure.host: Remove existing sparc-*-lynxos*,
14202 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14203 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14204 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14205 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14207 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14208 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14209 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14210 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14211 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14212 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14213 sparc64-*-solaris2* and sparc64-*-* triplets.
14214 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14215 "symtab.h" and "objfiles.h".
14216 (BIAS): Remove define.
14217 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14218 (X_DISP19): Remove macros.
14219 (sparc_fetch_instruction): Remove function.
14220 (struct gdbarch_tdep): Remove definition.
14221 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14222 (sparc_breakpoint_from_pc): Remove function.
14223 (struct sparc64_frame_cache): Remove definition.
14224 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14225 sparc64_unwind_pc): Remove functions.
14226 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14227 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14228 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14229 (sparc64_frame_cache): Change return type to `struct
14230 sparc_frame_cache *'. Simply call sparc_frame_cache.
14231 (sparc64_frame_this_id, sparc64_frame_prev_register,
14232 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14233 instead of `struct sparc64_frame_cache.
14234 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14235 sparc_analyze_control_transfer, sparc_software_single_step,
14236 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14237 _initialize_sparc64_tdep): Remove functions.
14238 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14239 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14241 (sparc64_supply_gregset, sparc64_collect_gregset,
14242 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14243 (sparc64_init_abi): New function.
14244 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14245 inclusion guard. Include "sparc-tdep.h".
14247 (r_tstate_offset, r_fprs_offset): New defines.
14248 (enum sparc_regnum): Remove defenition.
14249 (enum sparc64_regnum): Reformat.
14250 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14251 (sparc64_init_abi, sparc64_supply_gregset,
14252 sparc64_collect_gregset, sparc64_supply_fpregset,
14253 sparc64_collect_fpregset): New prototypes.
14254 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14255 Add extern declarations.
14256 (sparc64_sol2_init_abi): New prototype.
14257 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14258 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14260 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14262 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14264 (_initialize_sparc64fbsd_nat): Remove initialization of
14265 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14266 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14267 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14268 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14269 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14270 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14271 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14272 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14273 (sparc64fbsd_r_y_offset): Remove variables.
14274 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14275 Make static and const.
14276 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14277 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14279 (sparc64fbsd_gregset): New variable.
14280 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14281 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14282 and sparc64_supply_fpregset.
14283 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14284 (sparc64fbsd_sigtramp_frame_this_id)
14285 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14286 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14287 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14288 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14289 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14290 * sparcnbsd-tdep.c: Update copyright year. Include
14291 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14292 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14293 "value.h" and "sparcnbsd-tdep.h".
14294 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14295 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14296 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14297 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14299 (sparcnbsd_gregset): New variable.
14300 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14301 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14302 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14303 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14304 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14306 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14307 (sparc32nbsd_sigcontext_frame_this_id)
14308 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14309 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14310 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14311 (sparcnbsd_get_longjmp_target_32,
14312 sparcnbsd_get_longjmp_target_64): Remove functions.
14313 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14314 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14315 sparcnbsd_init_elf): Remove.
14316 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14317 (sparcnbsd_elf_init_abi): New functions.
14318 (_initialize_sparcnbsd_tdep): New prototype.
14319 (_initialize_sparnbsd_tdep): Update.
14320 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14321 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14322 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14323 * config/sparc/linux.mh: Update comment.
14324 (XM_FILE, HOST_IPC): Remove variables.
14325 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14327 * config/sparc/linux.mt: Update comment.
14328 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14329 * config/sparc/nbsd.mt: Reformat.
14330 * config/sparc/nbsd64.mh: Update comment.
14331 (NATDEPFILES): Add sparc-nat.o.
14332 * config/sparc/nbsd64.mt: Update comment.
14333 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14334 (TM_FILE): Set to tm-nbsd.h.
14335 * config/sparc/nbsdelf.mh: Update comment.
14336 (NATDEPFILES): Add sparc-nat.o.
14338 * config/sparc/nbsdaout.mh: Update comment.
14339 (NATDEPFILES): Add sparc-nat.o
14341 * config/sparc/nm-linux.h: Update copyright year. Don't include
14342 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14344 (KERNEL_U_SIZE): Remove define.
14345 (kernel_u_size): Remove prototype.
14346 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14347 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14349 (CHILD_PREPARE_TO_STORE): Remove define.
14350 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14351 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14352 sparcnbsd-nat.c: Rewrite files.
14353 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14354 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14355 sparcnbsd-tdep.h: Remove files.
14356 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14357 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14358 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14359 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14360 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14361 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14362 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14363 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14364 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14365 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14366 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14367 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14368 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14369 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14370 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14371 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14372 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14373 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14374 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14376 2004-01-02 Andrew Cagney <cagney@redhat.com>
14378 From 2003-12-18 Kazuhiro Inaoka:
14379 * configure.host: Add m32r-linux target.
14381 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14383 * top.c (print_gdb_version): Update year to 2004.
14385 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14387 * MAINTAINERS: Add myself to the write-after-approval category.
14389 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14391 From Bernardo Innocenti <bernie@develer.com>:
14392 * configure.tgt: Add uClinux target.
14394 2004-01-02 Andrew Cagney <cagney@redhat.com>
14396 * utils.c (do_my_cleanups): Make static, add forward declaration.
14397 * defs.h (do_my_cleanups): Delete declaration.
14399 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14401 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14402 bfd/ChangeLog-0203.
14404 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14406 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14407 in <machine/reg.h>.
14408 * configure, config.in: Regenerate.
14410 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14411 tui/ChangeLog-1998-2003.
14417 version-control: never