1 2004-11-20 Eli Zaretskii <eliz@gnu.org>
3 * config/djgpp/fnchange.lst: Resolve file-name clash between
4 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
6 2004-11-20 Mark Kettenis <kettenis@gnu.org>
8 * hppa-hpux-nat.c: New file.
9 * config/pa/hpux.mh (NATDEPFILES): New file.
10 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
11 (hppa-hpux-nat.o): New dependency.
12 * configure.host: Remove hppa*-*-hpux10.20.
13 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
15 * inf-ptrace.c: Fix coding style.
17 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
18 * infptrace.c (call_ptrace): Simply call ptrace with four
21 * dbxread.c (process_one_symbol): Fix a few coding standard
22 issues. Improve code formatting.
24 * dbxread.c: Include "gdb_string.h".
25 (record_minimal_symbol, read_ofile_symtab): Replace
26 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
27 * Makefile.in (dbxread.o): Update dependencies.
29 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
30 of bytes read for aligned LEB128 encodings.
32 2004-11-19 Mark Kettenis <kettenis@gnu.org>
34 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
35 parse_and_eval_address to u_long before converting it to a pointer
37 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
38 ps_strings from int to u_long.
39 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
40 u_long instead of CORE_ADDR.
42 2004-11-18 Mark Kettenis <kettenis@gnu.org>
44 * dbxread.c (process_one_symbol): Do not adjust address of first
45 N_SLINE stab for a function for code generated by non-GCC
48 2004-11-18 Kevin Buettner <kevinb@redhat.com>
50 * solib-null.c: New file.
52 2004-11-17 Andrew Cagney <cagney@gnu.org>
54 * MAINTAINERS: Drop MIPS and remote.
56 2004-11-15 Andrew Cagney <cagney@gnu.org>
58 * findvar.c (value_of_register): Set the frame ID.
59 * value.c (value_primitive_field): Copy the frame ID.
60 * valops.c (value_assign): Simplify lval_register case, there's
63 2004-11-14 Daniel Jacobowitz <dan@debian.org>
65 * Makefile.in (mips-linux-tdep.o): Update dependencies.
66 * mips-linux-tdep.c: Include "regcache.h".
67 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
69 2004-11-14 Daniel Jacobowitz <dan@debian.org>
71 * Makefile.in (linux-thread-db.o): Fix typo in last change.
73 2004-11-14 Daniel Jacobowitz <dan@debian.org>
75 * linux-thread-db.c: New file, renamed from thread-db.c.
76 * thread-db.c: Remove.
77 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
78 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
80 * config/arm/linux.mh (NATDEPFILES): Likewise.
81 * config/i386/linux.mh (NATDEPFILES): Likewise.
82 * config/i386/linux64.mh (NATDEPFILES): Likewise.
83 * config/ia64/linux.mh (NATDEPFILES): Likewise.
84 * config/m32r/linux.mh (NATDEPFILES): Likewise.
85 * config/m68k/linux.mh (NATDEPFILES): Likewise.
86 * config/mips/linux.mh (NATDEPFILES): Likewise.
87 * config/pa/linux.mh (NATDEPFILES): Likewise.
88 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
89 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
90 * config/s390/s390.mh (NATDEPFILES): Likewise.
91 * config/sparc/linux.mh (NATDEPFILES): Likewise.
92 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
94 2004-11-13 Andrew Cagney <cagney@gnu.org>
96 * config/i386/i386lynx.mh: Delete file.
97 * config/i386/i386lynx.mt: Delete file.
98 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
99 * i386ly-tdep.c: Delete.
101 * config/tm-lynx.h: Delete, inline contents ...
102 * config/rs6000/tm-rs6000ly.h: ... here.
104 * config/tm-sysv4.h: Delete file, inlining contents.
105 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
106 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
107 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
109 * regcache.h (deprecated_register_valid): Delete.
110 (deprecated_registers): Delete.
111 * regcache.c (deprecated_register_valid): Delete.
112 (deprecated_registers): Delete.
113 (deprecated_read_register_byte, _initialize_regcache)
114 (deprecated_write_register_bytes, build_regcache): Update.
115 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
117 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
118 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
120 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
121 v850-*-* under removed.
122 * configure.host: Delete ns32k-*-netbsd*.
123 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
124 ns32k-*-netbsd*, and v850*-*-*.
125 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
127 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
128 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
129 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
130 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
131 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
132 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
133 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
134 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
135 * v850-tdep.c: Delete.
137 2004-11-13 Joel Brobecker <brobecker@gnat.com>
139 * irix5-nat.c (fetch_core_registers): Replace use of
140 deprecated_registers by equivalent code.
142 2004-11-13 Joel Brobecker <brobecker@gnat.com>
144 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
145 with equivalent code.
146 (fill_fpregset): Likewise.
148 2004-11-13 Andrew Cagney <cagney@gnu.org>
150 * MAINTAINERS: Do not list "Deleted" architectures.
152 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
153 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
155 * NEWS: Mention that vxworks was deleted.
156 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
157 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
158 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
159 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
160 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
161 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
162 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
163 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
164 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
165 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
166 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
167 * remote-vxmips.c, remote-vx.c: Delete.
168 * remote-vx68.c: Delete.
169 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
170 * config/m68k/os68k.mt, ada-lang.h: Ditto.
171 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
172 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
174 2004-11-13 Eli Zaretskii <eliz@gnu.org>
176 * config/i386/xm-go32.h: Don't include fopen-bin.h.
177 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
179 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
180 branch that doesn't define CRLF_SOURCE_FILES; always use
182 (print_source_lines_base, forward_search_command)
183 (reverse_search_command): Enable the code that accepts DOS-style
184 CRLF line endings on all platforms (this removes the need for
187 * defs.h: Fix wording of the comment before FOPEN_RB.
188 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
190 * config/djgpp/fnchange.lst: Group renames for opcode directory
193 * config/djgpp/djconfig.sh: Replace file names that don't exist
194 anymore with existing files, for checking the unpacked
197 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
198 Export pre-cooked values in configure-* targets that begin with
199 "@test -f stage_last".
201 2004-11-12 Andrew Cagney <cagney@gnu.org>
203 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
204 * value.h (struct value): Update comment.
205 * valops.c (value_assign): Fold lval_reg_fame_relative into
207 * findvar.c (value_from_register, locate_var_value): Ditto.
209 2004-11-12 Randolph Chung <tausq@debian.org>
211 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
212 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
213 (write_exp_msymbol): Remove conditional check for symbols starting
214 with $. Update comments.
216 2004-11-12 Randolph Chung <tausq@debian.org>
218 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
219 so_lib_thread_start_addr.
220 * pa64solib.h (so_list): Forward declare.
221 (pa64_solib_thread_start_addr): Prototype.
222 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
223 (no_shared_libraries): Remove.
224 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
225 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
226 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
227 the elf solib handler to find the start address.
229 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
230 files to the target makefile.
231 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
232 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
233 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
235 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
236 files for symbol reading and shared library handling here.
237 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
238 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
239 without bringing in 64-bit support.
241 2004-11-12 Andrew Cagney <cagney@gnu.org>
243 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
244 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
245 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
246 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
247 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
248 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
249 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
251 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
252 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
253 (VALUE_REGNUM): Define.
254 (struct value): Delete location.regnum, rename "regno" to
256 * value.c, valops.c, valarith.c, findvar.c: Update.
258 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
259 (VALUE_BITPOS): Delete.
260 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
261 * value.c (value_type, value_offset, value_bitpos)
262 (value_bitsize): New functions. Update references.
263 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
264 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
265 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
266 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
267 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
268 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
269 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
270 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
271 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
273 2004-11-12 Andrew Cagney <cagney@gnu.org>
275 * cris-tdep.c (cris_register_offset): Delete, never called.
276 (cris_spec_reg_applicable): Delete cris_ver_sim.
277 * MAINTAINERS: List d10v as OBSOLETE.
278 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
279 FOPEN_WB et.al., defined by "fopen-bin.h".
281 2004-11-12 Randolph Chung <tausq@debian.org>
283 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
284 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
285 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
286 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
288 2004-11-12 Mark Kettenis <kettenis@jive.nl>
290 * tui/tui-io.c: Don't include "terminal.h".
291 * Makefile.in (tui-io.o): Update dependencies.
293 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
295 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
296 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
297 set_gdbarch_regset_from_core_section for core file support.
298 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
301 2004-11-11 Randolph Chung <tausq@debian.org>
303 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
304 stop_after_branch parameter and use it to determine if we should look
305 at the delay slot of the first branch insn to find prologue insns.
306 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
307 (hppa_frame_cache): Likewise.
309 2004-11-11 Randolph Chung <tausq@debian.org>
311 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
312 register so that it can be unwound from anywhere in the prologue.
314 2004-11-10 msnyder <msnyder@redhat.com>
316 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
317 must invalidate lr_reg (so we don't try to save it again).
318 Ditto for cr_offset and cr_reg.
320 2004-11-05 Jon Beniston <jon@beniston.com>
322 Committed by Andrew Cagney.
323 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
324 when an unexpected packet is received, as the target stubs
325 continually retransmit the same packet until ACKed.
327 2004-11-10 Randolph Chung <tausq@debian.org>
329 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
332 2004-11-10 Randolph Chung <tausq@debian.org>
334 * blockframe.c (inside_entry_func): Move to .....
335 * frame.c (inside_entry_func): ... here, and make static.
336 (backtrace_past_entry): New flag.
337 (get_prev_frame): Stop backtrace at the entry function if enabled
338 by flag. Update comments.
339 (_initialize_frame): Add command to set backtrace_past_entry flag.
340 * defs.h (inside_entry_func): Remove prototype.
342 2004-11-10 Mark Kettenis <kettenis@gnu.org>
344 * dwarf2read.c: Fix formatting.
346 2004-11-10 Andrew Cagney <cagney@gnu.org>
348 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
349 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
350 macros with function declarations.
351 * value.c (coerce_ref, coerce_array, coerce_number)
352 (coerce_enum): New functions.
353 (value_as_long, value_as_address): Update.
354 * ada-lang.c (ada_coerce_ref, ada_value_binop)
355 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
356 * jv-lang.c (evaluate_subexp_java): Update.
357 * valarith.c (value_less, value_neg, value_complement)
358 (value_binop, value_add, value_subscript, value_x_binop)
359 (value_logical_not, value_sub): Update.
360 * valops.c (check_field, value_struct_elt, value_ind)
361 (value_find_oload_method_list, value_cast, value_assign): Update.
362 * eval.c (evaluate_subexp_standard): Update.
364 2004-11-10 Mark Kettenis <kettenis@gnu.org>
366 * mips-tdep.c (mips32_relative_offset): Change return type to
367 LONGEST, change argument type to ULONGEST. Fix sign-extension.
369 2004-11-10 Randolph Chung <tausq@debian.org>
371 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
372 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
373 (hppa_fetch_pointer_argument): Likewise.
374 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
375 deprecated_read_memory_nobpt.
376 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
377 add_set_cmd sequence with add_setshow_boolean_cmd.
379 2004-11-09 Andrew Cagney <cagney@gnu.org>
381 GDB 6.3 released from GDB 6.3 branch.
383 2004-11-09 Andrew Cagney <cagney@gnu.org>
385 * values.c: Rename to ...
386 * value.c: ..., new file.
387 * Makefile.in: Update.
389 2004-11-09 Daniel Jacobowitz <dan@debian.org>
391 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
394 2004-11-09 Andrew Cagney <cagney@gnu.org>
398 * value.h (struct value): Delete field bfd_section.
399 (VALUE_BFD_SECTION): Delete macro.
400 (COERCE_REF): Update.
401 (value_at, value_at_lazy): Delete asection parameter.
402 * printcmd.c (print_formatted, x_command): Update.
403 (do_examine): Delete asection parameter.
404 (next_section): Delete variable.
405 * valops.c (value_cast, value_at, value_at_lazy)
406 (value_coerce_function, value_addr, value_ind, value_string)
407 (find_rt_vbase_offset, value_full_object): Update.
408 * hpacc-abi.c (hpacc_virtual_fn_field)
409 (hpacc_value_rtti_type): Update.
410 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
411 (gnuv3_baseclass_offset): Update.
412 * f-valprint.c (f_val_print): Update.
413 * c-valprint.c (c_val_print): Update.
414 * p-valprint.c (pascal_val_print): Update.
415 * jv-valprint.c (java_value_print): Update.
416 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
417 * ada-lang.c (ada_value_primitive_packed_val)
418 (ada_evaluate_subexp): Update.
419 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
420 * expprint.c (print_subexp_standard): Update.
421 * infcall.c (call_function_by_hand): Update.
422 * valarith.c (value_add): Update.
423 * eval.c (evaluate_subexp_standard): Update.
424 * values.c (allocate_value, value_copy, value_static_field): Update.
425 * findvar.c (read_var_value, locate_var_value): Update.
427 2004-11-09 Andrew Cagney <cagney@gnu.org>
429 * i386-linux-tdep.c: Include "dwarf2-frame.h".
430 * Makefile.in: Update all dependencies.
432 2004-11-08 Andrew Cagney <cagney@gnu.org>
434 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
435 (sentinel_frame_unwinder): Add the prev_pc method.
436 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
437 available. Do not handle the sentinel-frame case.
438 * frame-unwind.h (frame_prev_register_ftype): Define.
439 (struct frame_unwind): Add prev_pc;
441 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
443 * configure.in: Check for ncurses/term.h.
444 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
445 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
446 * tui/tui.c: Don't include term.h.
447 * configure, config.in: Rebuilt.
449 2004-11-08 Mark Kettenis <kettenis@gnu.org>
451 * m68kbsd-nat.c: Include "inf-ptrace.h".
452 (_initialize_m68kbsd_nat): Fix pasto.
453 * Makefile.in (m68kbsd-nat.o): Update dependencies.
455 2004-11-08 Randolph Chung <tausq@debian.org>
457 * infrun.c (debug_infrun): New variable.
458 (resume, proceed, wait_for_inferior): Annotate with debug messages.
459 (handle_inferior_event, keep_going): Likewise.
460 (_initialize_infrun): Register "set debug infrun" command.
462 2004-11-08 Andreas Schwab <schwab@suse.de>
464 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
465 PTRACE_EVENT_VFORKDONE.
466 (child_follow_fork): Adjust.
468 2004-11-08 Andrew Cagney <cagney@gnu.org>
470 * README: Refer to 6.3, not 6.2, update directory listing droppng
471 references to intl/ and mmalloc/.
472 * PROBLEMS: Refer to 6.3 not 6.2.
474 * PROBLEMS: Delete no-longer applicable problems.
476 2004-11-07 Andrew Cagney <cagney@redhat.com>
477 Daniel Jacobowitz <dan@debian.org>
478 Roland McGrath <roland@redhat.com>
480 * Makefile.in (symfile-mem.o): Update dependencies.
481 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
482 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
483 * inf-ptrace.c (inf_ptrace_attach): Call
484 observer_notify_inferior_created.
485 * inftarg.c (child_attach): Likewise.
486 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
487 (symbol_file_add_from_memory): Take NAME argument. Use it for
488 the new BFD's filename.
489 (add_symbol_file_from_memory_command): Update call to
490 symbol_file_add_from_memory.
491 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
492 (symbol_file_add_from_memory_wrapper): New.
493 (_initialize_symfile_mem): Register add_vsyscall_page as an
494 inferior_created observer.
496 2004-11-07 Mark Kettenis <kettenis@gnu.org>
498 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
499 fetch_inferior_registers. Make static.
500 (m68kbsd_store_inferior_registers): Rename from
501 store_inferior_registers. Make static.
502 (_initialize_m68kbsd_nat): Construct and add target vector.
503 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
504 inftarg.o. Add inf-ptrace.o.
505 (NAT_FILE): Set to tm-solib.h.
506 (LOADLIBES): New variable.
507 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
508 inftarg.o. Add inf-ptrace.o.
509 (NAT_FILE): Delete variable.
510 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
511 inftarg.o. Add inf-ptrace.o.
512 (NAT_FILE): Set to tm-solib.h.
513 * config/m68k/nm-nbsdaout.h: Remove file.
515 2004-11-07 Daniel Jacobowitz <dan@debian.org>
517 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
518 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
519 (dwarf2_signal_frame_unwind): New.
520 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
521 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
523 2004-11-07 Mark Kettenis <kettenis@gnu.org>
525 * Makefile.in (mips64obsd-tdep.o): Fix typo.
527 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
528 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
529 to only include the structure members we actually need.
530 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
531 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
532 only include the structure members we actually need.
533 (mipsnbsd_init_abi): Update.
535 * mips64obsd-nat.c: Include "mips-tdep.h".
536 (MIPS64OBSD_NUM_REGS): Remove define.
537 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
538 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
539 floating-point registers correctly.
540 * Makefile.in (mips64obsd-nat.o): Update dependencies.
542 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
544 (mips64obsd_sigframe_init): New function.
545 (mips64obsd_sigframe): New variable.
546 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
548 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
550 2004-11-06 Joel Brobecker <brobecker@gnat.com>
552 * alpha-mdebug-tdep.c: #include mdebugread.h.
553 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
554 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
556 2004-11-05 Andrew Cagney <cagney@gnu.org>
558 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
559 CFI and the init_reg method leave the register unspecified.
560 Include the register name in the "Incomplete CFI data" complaint.
561 Supress leading zeros in the address.
563 2004-11-05 Mark Kettenis <kettenis@gnu.org>
565 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
566 skipping a personality routine in a CIE augmentation.
568 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
570 * defs.h (fatal, vfatal): New function prototypes.
571 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
573 (backtrace_command): Change to call backtrace_command_stub via
574 catch_errors instead of calling backtrace_command_1 directly.
575 (backtrace_full_command): Ditto.
576 * utils.c (error_stream_1): New static function.
577 (verror): Change to call error_stream_1 instead of error_stream.
578 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
579 (vfatal, fatal): New functions.
581 2004-11-05 Andrew Cagney <cagney@gnu.org>
583 * stack.c (parse_frame_specification_1): Clear selected_frame_p
584 when not using selected frame.
586 2004-11-05 Mark Kettenis <kettenis@jive.nl>
588 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
589 personality routine in a CIE augmentation.
591 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
593 * stack.c (set_current_sal_from_frame): New function.
594 (print_args_stub): Use it.
595 (print_frame_info): Don't set sal here.
597 2004-11-04 Mark Kettenis <kettenis@gnu.org>
599 * dwarf2-frame.c (read_encoded_value): Change type of third
600 argument to `unsigned char *'. Add support for LEB128 encodings.
602 2004-11-04 Jim Blandy <jimb@redhat.com>
604 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
605 prevent cross-objfile references.
606 (make_cv_type): Doc fix. Don't create cross-objfile references,
608 (replace_type): Add assertion to prevent cross-objfile references.
609 (check_typedef): Never resolve a stub type by copying over a type
612 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
614 * Makefile.in (m32r-tdep.o): Update dependencies.
615 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
616 ABI-specific overrides.
618 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
620 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
621 unnecessary parallel execution bit.
622 (m32r_memory_remove_breakpoint): Ditto.
623 (m32r_breakpoint_from_pc): Update.
625 2004-11-03 Randolph Chung <tausq@debian.org>
627 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
628 frame_func_unwind to locate the unwind entry.
629 (hppa_frame_this_id): Likewise.
631 2004-11-03 Andrew Cagney <cagney@gnu.org>
633 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
634 packet, obsolete configurations, end-of-life deprecated_registers.
636 2004-11-02 Mark Kettenis <kettenis@gnu.org>
638 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
639 encodings as well as unsigned encodings.
641 2004-11-02 Andrew Cagney <cagney@gnu.org>
643 * value.h (COERCE_VARYING_ARRAY): Delete.
644 * valops.c (value_cast, value_slice): Delete use.
645 * valarith.c (value_subscript, value_concat): Delete use.
647 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
649 * NEWS: GDB understands GNAT Ada.
651 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
653 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
654 (amd64-sol2-tdep.o): Add dependencies.
655 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
656 config/i386/sol2-64.mt: New files.
657 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
658 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
659 (supply_gregset): Correct order of arguments to
660 amd64_supply_native_gregset.
661 (fill_gregset): Correct order of arguments to
662 amd64_collect_native_gregset.
663 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
664 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
665 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
666 for definition of NEW_PROC_API.
667 * configure: Regenerate.
669 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
671 * MAINTAINERS (Write After Approval): Add myself.
673 2004-11-01 Andrew Cagney <cagney@gnu.org>
675 * configure.tgt: Mark d10v-*-* as obsolete.
676 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
678 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
680 * values.c (modify_field): Correct handling of bit-fields that
681 don't fit in 32 bits. Use unsigned operations throughout and
682 simplify the code a bit. Document preconditions.
684 2004-10-31 Andrew Cagney <cagney@gnu.org>
686 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
687 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
688 (in_plt_section): Delete.
690 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
691 (mips_gdbarch_init): Do not set same.
693 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
694 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
696 * gdbarch.sh (in_solib_call_trampoline): Delete.
697 * gdbarch.h, gdbarch.c: Re-generate.
699 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
700 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
701 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
702 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
703 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
705 2004-10-31 Mark Kettenis <kettenis@gnu.org>
707 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
708 (mipsnbsd_fetch_inferior_registers): Rename from
709 fetch_inferior_registers. Make static.
710 (mipsnbsd_store_inferior_registers): Rename from
711 store_inferior_registers. Make static.
712 (_initialize_mipsnbsd_nat): New function and prototype.
713 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
714 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
715 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
718 2004-10-31 Andrew Cagney <cagney@gnu.org>
720 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
721 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
722 delete corresponding unused function.
723 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
724 in_solib_call_trampoline.
725 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
726 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
727 * config/mips/tm-nbsd.h: Ditto.
728 * config/arm/tm-linux.h: Ditto.
729 * config/mips/tm-linux.h: Ditto.
731 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
732 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
733 in_solib_call_trampoline, delete corresponding unused function.
734 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
735 (vaxnbsd_aout_init_abi): Ditto.
736 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
737 (sparc32nbsd_aout_init_abi): Ditto.
738 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
739 (ppc_linux_init_abi): Ditto.
740 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
741 (ns32knbsd_init_abi_aout): Ditto.
742 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
743 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
744 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
745 (m68kbsd_aout_init_abi): Ditto.
746 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
747 (i386_cygwin_init_abi): Ditto.
748 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
749 (i386bsd_init_abi): Ditto.
751 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
752 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
753 isn't used by this architecture.
754 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
755 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
756 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
757 * s390-tdep.c (s390_gdbarch_init): Ditto.
758 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
759 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
760 * i386-tdep.c (i386_svr4_init_abi): Ditto.
761 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
762 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
763 * amd64-tdep.c (amd64_init_abi): Ditto.
765 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
766 in_solib_call_trampoline to its default value of
767 generic_in_solib_call_trampoline.
768 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
769 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
770 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
771 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
772 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
773 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
775 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
777 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
779 * config/mips/tm-mips.h: Delete file.
780 * remote-mips.c: Delete tm-mips.h from comment.
781 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
782 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
783 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
784 * config/mips/tm-linux.h: Don't include tm-mips.h.
785 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
786 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
787 * config/mips/tm-wince.h: Don't include.
789 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
790 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
791 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
792 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
794 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
795 * mdebugread.c (ecoff_relocate_efi): Delete function.
796 * objfiles.c (objfile_relocate): Delete #ifdef
797 MDEBUG_EFI_SYMBOL_NAME code.
799 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
800 Andrew Cagney <cagney@gnu.org>
802 * gdbarch.sh (single_step_through_delay): Add.
803 * gdbarch.h, gdbarch.c: Re-generate.
804 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
805 (mips_step_skips_delay): Delete.
806 * mips-tdep.c (mips_single_step_through_delay): Replace
807 mips_step_skips_delay.
808 (mips_gdbarch_init): Set single_step_through_delay.
809 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
811 2004-10-31 Mark Kettenis <kettenis@gnu.org>
813 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
814 from TRAMP_FRAME frame type.
816 2004-10-31 Andrew Cagney <cagney@gnu.org>
818 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
820 * mips-tdep.c (mips_ignore_helper): Delete.
821 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
822 * infrun.c (handle_inferior_event): Delete #ifdef
823 DEPRECATED_IGNORE_HELPER_CALL code.
825 * config/mips/tm-mips.h (RA_REGNUM): Delete.
827 2004-10-31 Mark Kettenis <kettenis@gnu.org>
829 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
830 (fill_fpregset): Do not compile for 64-bit systems.
831 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
832 * Makefile.in (i386-sol2-nat.o): Update dependencies.
833 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
835 2004-10-30 Andrew Cagney <cagney@gnu.org>
837 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
838 (struct mdebug_extra_func_info): Define.
839 * config/alpha/tm-alpha.h: Delete same.
840 * config/mips/tm-mips.h: Delete same.
841 * mdebugread.c: Delete same.
842 * Makefile.in: Update dependencies.
843 * mips-mdebug-tdep.c: Include "mdebugread.h".
845 * objfiles.c: Include "mdebugread.h".
846 * mdebugread.c: Include "mdebugread.h".
847 (ecoff_relocate_cfi): Delete.
848 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
849 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
850 * mdebugread.h (ecoff_relocate_efi): New file.
851 * Makefile.in: Update dependencies.
853 * mips-tdep.c (struct frame_extra_info): Delete.
854 (temp_proc_desc): Delete.
856 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
857 MIPS_EFI_SYMBOL_NAME.
858 (mips_extra_func_info_t, mips_extra_func_info): Delete.
859 (struct mdebug_extra_func_info): Replace struct
860 alpha_extra_func_info and alpha_extra_func_info_t.
861 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
862 MIPS_EFI_SYMBOL_NAME.
863 (struct mdebug_extra_func_info): Replace struct
864 alpha_extra_func_info and alpha_extra_func_info_t.
865 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
866 * mdebugread.c, alpha-mdebug-tdep.c:
868 Suggested by Mark Kettenis.
869 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
870 fields frame_adjust and high_addr.
871 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
872 (non_heuristic_proc_desc): Delete references.
874 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
875 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
876 * mips-tdep.c: Update.
878 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
879 (MIPS_LAST_EMBED_REGNUM): Add.
880 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
881 (LAST_EMBED_REGNUM): Delete.
882 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
884 * config/mips/tm-mips.h (PS_REGNUM): Delete.
885 * mips-tdep.h (MIPS_PS_REGNUM): Add.
886 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
887 * mips-linux-nat.c: Update.
889 * mips-tdep.h: Add comments on registers.
890 (MIPS_UNUSED_REGNUM): Define.
891 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
892 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
893 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
894 * mips-linux-nat.c, remote-mips.c: Update.
896 * config/mips/tm-mips.h (t_insn): Delete.
897 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
898 Replace t_insn with ULONGEST.
900 2004-10-30 Mark Kettenis <kettenis@gnu.org>
902 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
903 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
904 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
905 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
906 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
907 (mipsnbsd_core_osabi_sniffer): New function.
908 (mipsnbsd_init_abi): Set regset_from_core_section.
909 (_initialize_mipsnbsd_tdep): Remove calls to
910 deprecated_add_core_fns.
911 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
912 (mipsnbsd_regset_from_core_section): New functions.
913 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
914 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
916 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
917 Remove optimization for DEPRECATED_FP_REGNUM.
919 2004-10-30 Andrew Cagney <cagney@gnu.org>
921 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
922 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
923 (alpha_setup_arbitrary_frame): Delete.
924 * mips-tdep.c (setup_arbitrary_frame): Delete.
925 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
926 (setup_arbitrary_frame): Delete.
927 * stack.c (parse_frame_specification_1): When specified, call
928 create_new_frame with two parameters. Delete #ifdef
929 SETUP_ARBITRARY_FRAME.
931 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
932 (MIPS_INSTLEN): Delete.
933 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
934 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
935 * remote-mips.c, mips-tdep.c: Update.
937 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
938 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
939 * mips-tdep.c (mips_mdebug_frame_cache)
940 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
941 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
942 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
943 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
944 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
945 (mips_gdbarch_init): Do not append mdebug sniffers.
946 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
947 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
948 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
949 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
950 * Makefile.in: Update dependencies.
952 * mips-tdep.h (mips_abi_regsize): Declare.
953 * mips-tdep.c (mips_abi_regsize): Make non-static.
955 * mips-tdep.c (gdb_print_insn_mips): Simplify.
956 (make_mips16_addr): Delete.
958 2004-10-30 Mark Kettenis <kettenis@gnu.org>
960 * i386-sol2-nat.c: New file.
961 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
963 (i386-sol2-nat.o): Update dependencies.
964 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
967 2004-10-30 Andrew Cagney <cagney@gnu.org>
969 Total breakage identified by Joel Brobecker.
970 * mips-tdep.c (after_prologue): Delete.
971 (mips_skip_prologue): Use skip_prologue_using_sal.
972 (heuristic_proc_desc): Delete, unused.
974 2004-10-30 Mark Kettenis <kettenis@gnu.org>
976 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
977 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
978 Cleanup coding style.
980 2004-10-30 Andrew Cagney <cagney@gnu.org>
982 * mips-tdep.h (mips_pc_is_mips16): Declare.
983 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
984 non-static. Update calls.
986 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
987 * command.h (add_setshow_enum_cmd): Declare.
988 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
990 * mips-tdep.c (_initialize_mips_tdep): Use
991 add_setshow_zinteger_cmd.
993 * mips-tdep.c (mips_eabi_extract_return_value)
994 (mips_o64_extract_return_value, mips_o64_store_return_value)
995 (return_value_location, mips_eabi_reg_struct_has_addr)
996 (mips_eabi_use_struct_convention)
997 (mips_eabi_store_return_value): Delete.
998 (mips_eabi_store_return_value): New function.
999 (mips_eabi_return_value): New function.
1000 (mips_gdbarch_init): For O64 and EABI, delete
1001 extract_return_value, store_return_value, use_struct_convention
1002 and reg_struct_has_addr, add return_value.
1004 * mips-tdep.c (read_signed_register): Use
1005 regcache_cooked_read_signed.
1007 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1009 * mipsread.c: Cleanup coding style.
1010 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1011 (mipscoff_symfile_finish): Remove prototypes.
1013 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1015 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1016 (mips_mdebug_frame_cache, mips16_scan_prologue)
1017 (mips32_scan_prologue, mips_stub_frame_cache)
1018 (heuristic_proc_start, heuristic_proc_desc)
1019 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1020 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1021 (mips_o32_return_value, mips_o64_push_dummy_call)
1022 (mips_step_skips_delay, mips_skip_trampoline_code)
1023 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1024 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1025 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1026 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1027 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1028 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1029 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1030 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1031 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1032 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1034 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1035 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1037 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1039 * mipsnbsd-nat.c: Include "mips-tdep.h".
1040 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1041 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1043 2004-10-29 Andrew Cagney <cagney@gnu.org>
1045 * stack.c (parse_frame_specification_1): New function based on
1046 parse_frame_specification. Add message and selected_frame_p
1047 paramters. Truely always return non-NULL.
1048 (parse_frame_specification): Call parse_frame_specification_1.
1049 (frame_info): Update. Eliminate target_has_stack check.
1050 (select_frame_command): Update.
1052 2004-10-29 Andrew Cagney <cagney@gnu.org>
1054 * frame.h (get_selected_frame): Add message parameter.
1055 * frame.c (get_selected_frame): Add and use message parameter.
1056 * stack.c (current_frame_command, return_command, locals_info)
1057 (catch_info, args_info, up_silently_base, down_silently_base): Use
1058 get_selected_frame with an explicit message.
1059 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1060 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1061 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1062 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1063 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1064 * breakpoint.c: Update.
1066 2004-10-29 Andrew Cagney <cagney@gnu.org>
1068 * trad-frame.c (trad_frame_get_prev_register): Use
1069 frame_unwind_register instead of frame_register_unwind, do not
1070 recurse the register's location.
1071 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1072 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1073 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1074 * sh-tdep.c (sh_frame_prev_register): Ditto.
1075 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1076 * i386-tdep.c (i386_frame_prev_register): Ditto.
1077 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1078 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1080 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1082 * proc-events.c: Fix several coding-style issues. Consistently
1083 use #ifdef instead of #if defined().
1084 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1086 (_initialize_proc_events): New prototype.
1088 * proc-why.c: Fix several coding-style issues.
1089 (proc_prettyfprint_why): Use ARRAY_SIZE.
1091 2004-10-27 Jim Blandy <jimb@redhat.com>
1093 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1094 manner independent of the host byte order.
1096 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1098 * mips-tdep.c (id_delayed): Remove prototype.
1100 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1102 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1103 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1104 to enum with register numbers.
1105 (enum mips_insn_size): New enum.
1107 2004-10-26 Andrew Cagney <cagney@gnu.org>
1109 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1110 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1111 (mips_gdbarch_init): Update.
1112 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1114 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1115 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1116 IN_SOLIB_RETURN_TRAMPOLINE.
1117 * mips-tdep.c (mips_dump_tdep): Do not print
1118 IN_SOLIB_RETURN_TRAMPOLINE.
1119 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1120 (mips_gdbarch_init): Update.
1122 * mips-tdep.h (mips_software_single_step): Move to here ...
1123 * config/mips/tm-mips.h: ... from here.
1124 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1125 (SOFTWARE_SINGLE_STEP): Delete.
1126 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1128 2004-10-25 Andrew Cagney <cagney@gnu.org>
1130 * NEWS: Add Changes since GDB 6.3 section.
1132 2004-10-23 Andreas Schwab <schwab@suse.de>
1134 * ada-lang.c (grow_vect): Return the new array instead of
1135 expecting pointer to pointer to avoid violation of aliasing rules.
1136 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1138 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1140 * s390-tdep.c (enum pv_boolean): Remove.
1141 (pv_is_array_ref): Remove.
1142 (s390_on_stack): Remove.
1143 (S390_NUM_SPILL_SLOTS): Remove.
1144 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1145 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1146 (s390_store): Track all stores of orginal incoming registers to the
1147 stack constant offsets relative to the CFA, instead of only tracking
1148 stores into specific spill slots.
1149 (s390_load): Likewise.
1150 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1151 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1152 defined as call-saved by the ABI.
1153 (s390_push_dummy_call): Use bottom of dummy call argument save area
1154 as return value, not the top. Do not store to the called function's
1156 (s390_unwind_dummy_id): Adapt accordingly.
1158 2004-10-23 Andrew Cagney <cagney@gnu.org>
1160 * objfiles.h (struct objfile): Rename obj_private to
1161 deprecated_obj_private, sym_private to deprecated_sym_private, and
1162 sym_stab_info to deprecated_sym_stab_info.
1163 * gdb-stabs.h: Update.
1164 * elfread.c: Update.
1165 * dbxread.c: Update.
1166 * coffread.c: Update.
1167 * xcoffread.c: Update.
1168 * symfile.c: Update.
1169 * somread.c: Update.
1170 * nlmread.c: Update.
1171 * mdebugread.c: Update.
1173 * coffread.c: Update.
1175 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1177 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1178 * configure.host: Add mips64*-*-openbsd*.
1179 * configure.tgt: Add mips64*-*-openbsd*.
1180 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1182 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1183 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1185 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1187 * symtab.c (symbol_search_name): Minor reformatting.
1189 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1191 * symtab.h: Fix typo in comment.
1193 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1195 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1196 (dwarf_decode_line_header): Likewise.
1198 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1200 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1202 2004-10-19 Andrew Cagney <cagney@gnu.org>
1204 GDB 6.3 branch created.
1205 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1207 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1209 * dwarf2read.c (set_cu_language): Set language to Ada for
1210 DW_LANG_Ada83 and DW_LANG_Ada95.
1212 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1214 From Andreas Schwab <schwab@suse.de>:
1215 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1216 for xmalloc and xrealloc.
1218 2004-10-15 Andrew Cagney <cagney@gnu.org>
1220 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1221 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1222 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1223 Update dependencies.
1225 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1227 * ada-lang.c (ada_lookup_symbol): Correct comment.
1228 (ada_evaluate_subexp): Change error message for
1229 OP_FUNCALL case so as not to indicate an internal error.
1231 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1233 Committed by Paul Hilfinger.
1234 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1235 type sizes in XVE/XVU types, and emit a warning when that happens,
1236 instead of rounding up the size of the resulting type.
1237 Some minor reformatting.
1238 (ada_is_aligner_type): Do not consider a type as an aligner type
1239 if there is a corresponding XVS type as well.
1240 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1241 have several levels of pointer indirection to the array.
1243 2004-10-15 Jerome Guitton <guitton@gnat.com>
1245 Committed by Paul Hilfinger.
1246 * ada-lang.c (check_size): New function.
1247 (coerce_unspec_val_to_type): call check_size to make sure
1248 that the object size is reasonable.
1249 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1250 Implements the case when we get a reference when we evaluate
1251 the expression of one of the bounds of the slice.
1252 (ada_value_struct_elt): when a packed array field is
1253 a reference, use ada_coerce_ref to dereference it; use
1254 ada_value_ind only if it is a pointer.
1256 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1258 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1259 a bit to avoid the necessity of an advance declaration. Remove
1261 (set_reg_offset): Move implemenation up.
1262 (mips16_get_imm): Likewise.
1263 (mips16_scan_prologue): Likewise.
1264 (reset_saved_regs): Likewise.
1265 (mips32_scan_prologue): Likewise.
1267 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1269 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1270 Remove sp as a parameter, compute it internally instead. Move
1271 prologue scanning limit from heuristic_proc_desc to here.
1272 (mips16_scan_prologue): Likewise.
1273 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1274 by call to mips16_scan_prologue.
1275 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1276 by call to mips32_scan_prologue.
1277 (heuristic_proc_desc): Remove code that's no longer necessary.
1278 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1279 (mips_skip_prologue): Update calls to mips16_scan_prologue
1280 and mips32_scan_prologue.
1282 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1284 * mips-tdep.c (mips16_scan_prologue): Merge code from
1285 mips16_skip_prologue. Now return the address of the first
1286 instruction past the function prologue.
1287 (mips16_skip_prologue): Remove, no longer necessary.
1288 (mips_skip_prologue): Replace call to mips16_skip_prologue
1289 by call to mips16_scan_prologue.
1291 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1293 * mips-tdep.c (mips32_scan_prologue): Merge code from
1294 mips32_skip_prologue. Now return the address of the first
1295 instruction past the function prologue.
1296 (mips32_skip_prologue): Remove. No longer necessary.
1297 (mips16_skip_prologue): Add parameter end_pc instead of
1299 (mips_skip_prologue): Compute the upper limit for the
1300 prologue scanning. Update call to mips16_skip_prologue.
1301 Replace call to mips32_skip_prologue by call to
1302 mips32_scan_prologue.
1304 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1306 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1307 NetBSD system call stubs that store %rp in the ERP slot of the
1310 * source.c: Always define O_BINARY to 0 if not defined already.
1311 (openp): Unconditionally use O_BINARY.
1313 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1314 * event-top.c (gdb_readline2): Likewise.
1316 2004-10-14 Orjan Friberg <orjanf@axis.com>
1318 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1319 deprecated_add_core_fns which was removed by mistake.
1321 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1323 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1324 references to deprecated_registers[] with equivalent code.
1326 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1328 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1329 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1330 instead of explicit test and print statement.
1332 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1334 * sparc-nat.c: Include "inf-ptrace.h".
1335 (sparc_target): New function.
1336 * sparc-nat.h: Update copyright year.
1337 (sparc_target): New prototype.
1338 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1339 (_initialize_sparcnbsd_nat): Construct and add target vector.
1340 * sparc64nbsd-nat.c: Include "target.h".
1341 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1342 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1343 Update dependencies.
1344 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1345 inftarg.o, add inf-ptrace.o.
1346 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1347 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1348 (NAT_FILE): Set to nm-bsd.h.
1349 (LOADLIBES): New variable.
1350 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1351 infarg.o, add inf-ptrace.o.
1352 * config/sparc/nm-nbsdaout.h: Remove file.
1353 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1354 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1355 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1357 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1358 "fopen-same.h". Update comment.
1360 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1362 * i386gnu-nat.c: Include "gdb_string.h".
1363 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1364 registers when the floating-point state isn't initialized.
1365 * Makefile.in (i386gnu-nat.o): Update dependencies.
1367 2004-10-11 David Anderson <davea@sgi.com>
1369 * regcache.c (regcache_raw_read): Comment was missing "to".
1370 Extraneous ' removed.
1371 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1372 comment now describes use.
1374 2004-10-11 Orjan Friberg <orjanf@axis.com>
1376 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1377 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1378 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1379 (cris_sigtramp_frame_sniffer): New functions.
1380 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1381 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1382 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1383 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1384 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1386 (cris_version_update): Remove, replace with ...
1387 (set_cris_version): New function.
1388 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1389 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1390 (_initialize_cris_tdep): Remove CRIS mode command.
1391 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1392 cris-fpless-backtrace command.
1393 (cris_scan_prologue): Fix prologue scanning limit.
1394 (cris_register_type): Update to reflect actual registers.
1395 (cris_register_bytes_ok) Remove.
1396 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1397 Remove set_gdbarch_deprecated_register_size,
1398 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1400 2004-10-10 Andrew Cagney <cagney@gnu.org>
1402 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1405 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1407 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1409 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1411 * mips-tdep.c (mips16_scan_prologue): Renames
1412 mips16_heuristic_proc_desc. Update comment.
1413 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1414 (heuristic_proc_desc): Update calls to the 2 functions above.
1416 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1418 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1419 Update comments. Also immediately return empty cache when the start
1420 address of our function could not be found.
1421 (mips_insn32_frame_cache): Likewise.
1423 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1425 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1426 (mips_insn16_frame_cache): Pass frame cache in call to
1427 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1428 Remove code that became redundant as a consequence.
1429 (mips32_heuristic_proc_desc): No longer compute a fake
1430 procedure descriptor. Compute the full frame cache instead.
1431 Some minor comment reformatting.
1433 2004-10-10 Jim Blandy <jimb@redhat.com>
1435 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1436 reader, tracing bytecode stuff): Remove self.
1438 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1440 * sparc64-linux-tdep.c: Update copyright year. Don't include
1442 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1443 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1444 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1446 * sparc-linux-tdep.c: Update copyright year.
1447 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1448 to struct frame_info *. Use safe_frame_unwind_memory instead of
1449 deprecated_read_memory_nobpt.
1450 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1451 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1452 changed signature of sparc_linux_sigtramp_start.
1453 (sparc32_linux_pc_in_sigtramp): Remove function.
1454 (sparc32_linux_sigtramp_p): New function.
1455 (sparc32_linux_sigtramp_frame_sniffer): Use
1456 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1458 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1460 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1462 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1463 (decode_packed_array_type, value_subscript_packed)
1464 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1465 argument in call to lim_warning.
1467 * configure.in: Really disable the TUI if an enhanced curses
1468 library isn't found.
1469 * configure: Regenerate.
1471 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1473 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1474 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1475 * config/i386/nm-nbsdaout.h: Remove file.
1476 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1477 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1478 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1479 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1480 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1481 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1482 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1483 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1484 (ldd, ld_un, ld_2): Remove defines.
1485 * config/i386/nm-obsd.h: Likewise.
1487 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1489 * ada-lex.l: Remove useless rule whose right-context clause
1490 causes unreferenced static function warning for yyrealloc.
1491 (ada_flex_use): Remove the artificial reference to yyrealloc.
1493 2004-10-08 Andrew Cagney <cagney@gnu.org>
1495 * target.h (struct target_ops): Rename to_xfer_memory to
1496 deprecated_xfer_memory.
1498 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1500 * win32-nat.c: Update.
1501 * v850ice.c: Update.
1502 * uw-thread.c: Update.
1503 * thread-db.c: Update.
1504 * sol-thread.c: Update.
1506 * remote-vx.c: Update.
1507 * remote-st.c: Update.
1508 * remote-sim.c: Update.
1509 * remote-sds.c: Update.
1510 * remote-rdp.c: Update.
1511 * remote-rdi.c: Update.
1512 * remote-mips.c: Update.
1513 * remote-m32r-sdi.c: Update.
1514 * remote-e7000.c: Update.
1516 * ppc-bdm.c: Update.
1517 * nto-procfs.c: Update.
1518 * monitor.c: Update.
1519 * linux-nat.c: Update.
1520 * inftarg.c: Update.
1521 * hpux-thread.c: Update.
1522 * go32-nat.c: Update.
1523 * gnu-nat.c: Update.
1525 * corelow.c: Update.
1526 * bsd-kvm.c: Update.
1527 * aix-thread.c: Update.
1529 2004-10-08 Andrew Cagney <cagney@gnu.org>
1531 * target.c (debug_target): Move to near start of file.
1532 (target_stopped_data_address_p): Re-org logic, add casts.
1534 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1536 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1537 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1538 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1539 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1542 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1544 * target.h (to_stopped_data_address): Change prototype to
1545 take a CORE_ADDR pointer and return an int.
1546 * target.c (update_current_target): Change to_stopped_data_address
1547 to match new prototype.
1548 (debug_to_stopped_data_address): Change appropriately.
1549 * breakpoint.c (bpstat_stop_status): Change call to
1550 target_stopped_data_address to use new prototype.
1551 * frv-tdep.c (frv_have_stopped_data_address): New function.
1552 (frv_stopped_data_address): Change to new prototype and
1554 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1555 prototype and functionality.
1556 (ia64_stopped_by_watchpoint): New function.
1557 * i386-nat.c (i386_stopped_data_address): Change to new
1558 prototype and functionality.
1559 (i386_stopped_by_watchpoint): New function.
1560 * remote.c (remote_stopped_data_address): Change to new prototype
1562 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1563 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1564 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1565 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1566 new i386_stopped_by_watchpoint function.
1567 (i386_stopped_by_watchpoint): New prototype.
1568 (i386_stoppped_data_address): Change to new prototype.
1569 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1570 new ia64_stopped_by_watchpoint function.
1571 (ia64_stopped_by_watchpoint): New prototype.
1572 (ia64_stopped_data_address): Ditto.
1574 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1576 * ada-typeprint.c (ada_print_type): Use int_string for printing
1577 modulus of modular type.
1578 * ada-lang.h (ada_modulus): Change return type to unsigned.
1579 * ada-lang.c (ada_language_arch_info): Correct type of
1581 (ada_modulus): Return unsigned result.
1582 (ada_lookup_symbol): Remove user disambiguation and modify comment
1585 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1587 Committed by Paul Hilfinger.
1588 * ada-lang.c (decode_packed_array): On big-endian targets,
1589 left-justify the value if it comes with a modular type.
1591 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1593 Committed by Paul Hilfinger.
1594 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1595 (is_name_suffix): Add support for "___JM" suffixes.
1596 (ada_check_typedef): Renames ada_completed_type.
1597 Update all users of CHECK_TYPEDEF, check_typedef, and
1598 ada_complete_type to call ada_check_typedef.
1599 * ada-typeprint.c: Likewise.
1600 * ada-valprint.c: Likewise.
1602 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1604 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1606 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1608 * MAINTAINERS: Update e-mail address.
1610 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1612 From Maciej W. Rozycki <macro@mips.com>:
1613 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1614 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1616 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1618 * m32r-tdep.c (decode_prologue): Support functions written
1619 in assembler language. Recognize trap instructions as the
1621 (m32r_frame_unwind_cache): Ditto.
1622 (m32r_skip_prologue): Extend search limit. Quit analyzing
1623 prologue if pc's location is not readable.
1625 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1627 * Makefile.in (.l.c): Do conversions of names of alloc and free
1628 functions that are done for .y.c files, plus special one
1629 for yy_flex_realloc. Also, correct missing-file tests here.
1630 * ada-lex.l (malloc, free): Remove macros.
1631 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1633 (ada_flex_use): Dummy definition to remove warnings about unused
1635 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1636 to suppress warning.
1638 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1640 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1642 (sh_return_value_fpu): Ditto for CPUs with FPU.
1643 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1644 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1645 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1646 RETURN_VALUE functions.
1648 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1650 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1651 (sh_pseudo_register_write): Ditto.
1653 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1655 * sh-tdep.c (IS_MACL_STS): New define.
1657 (IS_MACL_LDS): Ditto.
1658 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1659 instructions in prologue.
1660 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1661 instructions in epilogue.
1663 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1665 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1666 (sh_sh_register_name): Add eight empty register names.
1667 (sh_sh3_register_name): Ditto.
1668 (sh_sh3e_register_name): Ditto.
1669 (sh_sh2e_register_name): Ditto.
1670 (sh_sh2a_register_name): New function, defining SH2A register set.
1671 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1673 (sh_sh_dsp_register_name): Add eight empty register names.
1674 (sh_sh3_dsp_register_name): Ditto.
1675 (sh_sh4_register_name): Ditto.
1676 (sh_sh4_nofpu_register_name): Ditto.
1677 (sh_sh4al_dsp_register_name): Ditto.
1678 (sh2a_show_regs): New function.
1679 (sh2a_nofpu_show_regs): New function.
1680 (sh_sh2a_register_type): New function.
1681 (do_bank_register_info): New function.
1682 (sh_print_pseudo_register): Call do_bank_register_info.
1683 Call sh_print_pseudo_register for valid "bank" register.
1684 (sh_sh2a_register_sim_regno): New function.
1685 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1686 Increment pseudo register count by one for all sh variants with
1687 pseudo registers to accomodate pseudo bank register.
1688 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1689 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1690 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1691 Increment pseudo register numbers.
1693 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1695 * dwarf2read.c (read_subroutine_type): Call make_function_type
1696 instead of lookup_function_type.
1698 2004-10-05 Jim Blandy <jimb@redhat.com>
1700 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1701 (Previous change missed some uses.)
1703 2004-10-05 Andrew Cagney <cagney@gnu.org>
1705 * target.h (deprecated_child_ops): Rename child_ops.
1706 * wince.c: Update copyright. Rename child_ops.
1707 * win32-nat.c: Rename child_ops.
1708 * target.c: Rename child_ops.
1709 * rs6000-nat.c: Rename child_ops.
1710 * linux-nat.c: Rename child_ops.
1711 * infttrace.c: Rename child_ops.
1712 * inftarg.c: Rename child_ops.
1713 * infptrace.c: Rename child_ops.
1714 * hppah-nat.c: Update copyright. Rename child_ops.
1715 * hpux-thread.c: Update copyright. Rename child_ops.
1717 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1719 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1721 2004-10-05 Andrew Cagney <cagney@gnu.org>
1723 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1725 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1727 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1728 (die_ref_table): Remove.
1729 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1730 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1731 the usage of this type.
1732 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1733 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1734 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1735 (dwarf2_create_include_psymtab): Update comment.
1736 (find_partial_die): Remove third argument. Remove unreachable call
1738 (dwarf2_find_containing_comp_unit): Update comments. Change one
1739 assertion to an error. Remove an unreachable error.
1740 (dwarf2_find_comp_unit): Update comments.
1741 (type_at_offset): Remove dead code.
1742 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1743 (store_in_ref_table): Add CU argument.
1744 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1745 inter-compilation-unit references.
1746 (load_full_comp_unit, process_full_comp_unit): New functions, based
1747 on psymtab_to_symtab_1.
1748 (psymtab_to_symtab_1): Use them.
1749 (dwarf2_add_dependence): New function.
1750 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1751 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1752 (partial_die_parent_scope, guess_structure_name): Update for changes
1753 to find_partial_die.
1754 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1755 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1756 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1757 (read_die_and_children): Update call to store_in_ref_table.
1758 (do_free_die_list_cleanup): Remove.
1759 (fixup_partial_die): Update for changes to find_partial_die.
1760 (read_full_die): Handle queueing absolute references.
1761 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1762 (dwarf2_attr, die_specification, die_type)
1763 (die_containing_type, dwarf2_extension): Update calls to
1765 (dump_die): Update DW_FORM_ref* handling.
1766 (dwarf2_get_ref_die_offset): Likewise.
1767 (free_one_comp_unit): Release the dies list.
1768 (dwarf2_mark_helper): New function.
1769 (dwarf2_mark): Use it.
1771 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1773 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1774 when writing to memory.
1776 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1778 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1779 (m32r_extract_struct_value_address): Delete function.
1780 (m32r_return_value): New function.
1781 (m32r_gdbarch_init): Instead of store_return_value,
1782 extract_return_value, deprecated_extract_struct_value_address
1783 and deprecated_use_struct_convention, set return_value.
1785 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1787 * dwarf2read.c (read_subrange_type): Add comment for variable
1790 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1792 * Makefile.in (.l.c): Modify rule for compatibility with recent
1793 versions of flex, and remove most command-line options.
1794 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1797 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1799 Turn on initial Ada support (mainly expression evaluation).
1801 * Makefile.in (SFILES): Remove ada-tasks.c.
1802 (HFILES_NO_SRCDIR): Add ada-lang.h.
1803 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1804 (YYOBJ): Add ada-exp.o.
1805 (rule .l.c): Generalize to not mention ada.
1806 * symtab.c: Include ada-lang.h.
1807 (symbol_natural_name, symbol_demangled_name)
1808 (symbol_search_name): Add Ada case.
1810 2004-10-01 Andrew Cagney <cagney@gnu.org>
1812 * Makefile.in (COMMON_OBS): Add inf-child.o.
1813 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1814 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1815 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1816 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1817 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1818 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1819 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1820 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1821 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1822 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1823 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1824 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1825 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1827 * target.c (xfer_using_stratum): Change return type to LONGEST.
1828 On each iteration offset, readbuf and writebuf.
1829 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1830 partial_length, and read/modify/write predicate, update comments.
1831 Pass buffer.word to ptrace write.
1833 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1835 * symfile.c (init_filename_language_table): Add extensions for
1837 * defs.h (enum language): Add language_ada.
1838 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1839 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1840 (add_symbols_from_enclosing_procs): Make a no-op for now.
1841 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1842 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1843 (find_line_in_linetable, find_next_line_in_linetable)
1844 (read_all_symtabs, is_plausible_func_for_line)
1845 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1846 (is_runtime_sym_defined, check_size): Remove declaration.
1847 (function_name_from_pc, ada_translate_error_message)
1848 (ada_lookup_minimal_symbol): Remove definition.
1849 (ada_add_block_symbols): Remove useless label.
1850 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1851 useless declaration.
1852 (ada_is_exception_sym): Likewise.
1854 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1856 Add m32r-linux support.
1857 * configure.tgt: Add m32r*-*-linux*.
1858 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1859 and m32r-linux-tdep.c.
1860 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1861 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1862 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1864 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1865 config/m32r/linux.mh, config/m32r/linux.mt,
1866 config/m32r/nm-linux.h: New files.
1868 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1870 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1871 (mips32_fetch_instruction): Remove, unused.
1873 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1875 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1876 conditions that will always be true.
1878 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1880 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1881 (vaxbsd_fetch_inferior_registers): Rename from
1882 fetch_inferior_registers. Make static.
1883 (vaxbsd_store_inferior_registers): Rename from
1884 store_inferior_registers. Make static.
1885 (_initialize_vaxbsd_nat): Construct and add target vector.
1886 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1887 inftarg.o. Add inf-child.o and inf-ptrace.o.
1888 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1889 inftarg.o. Add inf-child.o and inf-ptrace.o.
1891 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1892 inftarg.o. Add inf-child.o and inf-ptrace.o.
1894 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1896 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1897 (m88kbsd_fetch_inferior_registers): Rename from
1898 fetch_inferior_registers. Make static.
1899 (m88kbsd_store_inferior_registers): Rename from
1900 store_inferior_registers. Make static.
1901 (_initialize_m88kbsd_nat): New prototype and function.
1902 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1903 inftarg.o. Add inf-child.o and inf-ptrace.o.
1905 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1907 2004-09-30 Andrew Cagney <cagney@gnu.org>
1909 * target.c (target_xfer_partial): New function.
1910 (target_read_memory_partial, target_write_memory_partial)
1911 (default_xfer_partial, target_read_partial, target_write_partial)
1912 (xfer_using_stratum): Use.
1913 (debug_to_xfer_partial): Delete function.
1914 (setup_target_debug): Do not override to_xfer_partial.
1916 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1918 * fork-child.c: Update copyright year. Fix coding style.
1920 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1922 * defs.h (msavestring, mstrsave): Remove prototypes.
1923 * utils.c (msavestring, mstrsave): Remove functions.
1924 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1925 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1927 * source.c (find_and_open_source): Use xstrdup instead of
1930 2004-09-30 Andrew Cagney <cagney@gnu.org>
1932 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1933 (inf_ptrace_xfer_memory): Delete.
1934 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1935 (target_read_memory, target_write_memory): Use xfer_using_stratum
1936 when target_xfer_partial_p.
1937 (debug_target): Move to start of file.
1938 (target_read_memory_partial, target_write_memory_partial): Use
1939 to_xfer_partial when target_xfer_partial_p.
1941 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1942 inf_ptrace_xfer_memory with equivalent code.
1943 * inftarg.c (child_xfer_partial): When performing a write, pass
1944 writebuf to child_xfer_memory.
1946 * target.c (target_read_string): Use target_read_memory instead of
1949 2004-09-29 Andrew Cagney <cagney@gnu.org>
1951 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1952 the address of status.
1954 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1955 (kill_inferior): Inline ptrace_wait call.
1956 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1957 * inftarg.c (child_wait): Inline ptrace_wait call.
1959 * target.h (struct target_ops): Delete field to_post_wait.
1960 (target_post_wait): Delete macro.
1961 (child_post_wait): Delete declaration.
1962 * target.c (update_current_target, update_current_target)
1963 (debug_to_post_wait, setup_target_debug): Delete functions and
1965 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1966 * inftarg.c (child_post_wait): Delete.
1967 (init_child_ops): Do not set to_post_wait.
1968 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1969 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1970 * inf-child.c (inf_child_post_wait): Delete.
1971 (inf_child_target): Do not set to_post_wait.
1972 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1973 (inf_ptrace_target): Do not set to_post_wait.
1975 * wince.c (child_ops): Delete.
1976 * win32-nat.c (child_ops): Delete.
1978 * inftarg.c (inftarg_set_find_memory_regions)
1979 (inftarg_set_make_corefile_notes): Delete functions.
1980 (_initialize_linux_nat): Inline calls.
1982 * target.h (child_ops): Declare.
1983 * inftarg.c (child_ops): Move from here ...
1984 * target.c (child_ops): ... to here.
1985 * wince.c (child_ops): Delete extern declaration.
1986 * win32-nat.c (child_ops): Delete extern declaration.
1987 * linux-nat.c (child_ops): Delete extern declaration.
1988 * hpux-thread.c (child_ops): Delete extern declaration.
1990 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1992 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1994 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1996 * configure.in: Only set host_makefile_frag when building a native
1998 * configure: Regenerate.
2000 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2003 2004-09-28 Andrew Cagney <cagney@gnu.org>
2005 Problem identified by Paul Hilfinger.
2006 * Makefile.in (ada_lex_c): Define.
2007 (ada-lex.o): Delete rule.
2009 * linux-proc.c: Delete file.
2010 * Makefile.in: Update.
2011 * config/sparc/linux64.mh (NATDEPFILES):
2012 * config/sparc/linux.mh (NATDEPFILES): Update.
2013 * config/s390/s390.mh (NATDEPFILES): Update.
2014 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2015 * config/powerpc/linux.mh (NATDEPFILES): Update.
2016 * config/pa/linux.mh (NATDEPFILES): Update.
2017 * config/mips/linux.mh (NATDEPFILES): Update.
2018 * config/m68k/linux.mh (NATDEPFILES): Update.
2019 * config/ia64/linux.mh (NATDEPFILES): Update.
2020 * config/i386/linux64.mh (NATDEPFILES): Update.
2021 * config/i386/linux.mh (NATDEPFILES): Update.
2022 * config/arm/linux.mh (NATDEPFILES): Update.
2023 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2024 * linux-nat.c: Update copyright. Include <sys/param.h>,
2025 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2026 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2027 (O_LARGEFILE): Possibly define.
2028 (_initialize_linux_nat, linux_proc_pending_signals)
2029 (add_line_to_sigset, linux_proc_xfer_memory)
2030 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2031 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2032 (struct linux_corefile_thread_data)
2033 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2034 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2036 2004-09-16 Andrew Cagney <cagney@gnu.org>
2038 * lin-lwp.c: Delete file.
2039 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2040 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2041 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2042 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2043 (linux_nat_attach, detach_callback, linux_nat_detach)
2044 (resume_callback, resume_clear_callback, linux_nat_resume)
2045 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2046 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2047 (status_callback, running_callback, count_events_callback)
2048 (select_singlestep_lwp_callback, select_event_lwp_callback)
2049 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2050 (child_wait, stop_and_resume_callback, linux_nat_wait)
2051 (kill_callback, kill_wait_callback, linux_nat_kill)
2052 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2053 (linux_nat_xfer_memory, linux_nat_thread_alive)
2054 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2055 (_initialize_linux_nat): New functions.
2056 * Makefile.in: Update all dependencies.
2057 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2058 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2059 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2060 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2061 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2062 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2063 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2064 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2065 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2066 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2067 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2068 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2069 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2071 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2073 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2074 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2076 * configure.in: Don't comment out NATDEPFILES in the generated
2077 Makefile if NAT_FILE is unset.
2078 * configure: Regenerate.
2080 2004-09-27 Andrew Cagney <cagney@gnu.org>
2082 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2083 (insert_step_resume_breakpoint): Delete.
2084 (insert_step_resume_breakpoint_at_frame): New function.
2085 (insert_step_resume_breakpoint_at_sal): New function.
2086 (handle_inferior_event, step_into_function)
2087 (insert_step_resume_breakpoint): Simplify by using same.
2089 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2091 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2093 * fbsd-proc.c: Remove file.
2094 * Makefile.in (fbsd-proc.o): Remove dependency.
2096 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2099 * config/i386/nm-fbsd64.h: Remove file.
2100 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2102 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2104 * amd64-nat.h: Update copyright year.
2105 (amd64bsd_target): New prototype.
2106 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2107 (amd64bsd_target): New function.
2108 (amd64bsd_fetch_inferior_registers): Rename from
2109 fetch_inferior_registers. Make static.
2110 (amd64bsd_store_inferior_registers): Rename from
2111 store_inferior_registers. Make static.
2112 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2113 (_initialize_amd64fbsd_nat): Construct and add target vector.
2114 * amd64nbsd-nat.o: Include "target.h".
2115 (_initialize_amd64nbsd_nat): Construct and add target vector.
2116 * amd64obsd-nat.c: Include "target.h".
2117 (_initialize_amd64obsd_nat): Construct and add target vector.
2118 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2119 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2120 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2122 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2123 Remove infptrace.o and inftarg.o. Add inf-child.o and
2125 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2126 (amd64obsd-nat.o): Update dependencies.
2128 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2130 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2131 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2132 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2133 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2134 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2136 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2138 (inf_ptrace_detach): Inline detach call.
2140 * configure.in: Check for waddstr instead of mvwaddstr when
2141 searching for curses library. Check for wborder.
2142 * configure, config.in: Regenerate.
2143 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2146 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2148 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2150 Committed by Andrew Cagney.
2151 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2152 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2154 (fetch_register_using_p): Implement 'p' packet. Based on code by
2156 (remote_fetch_registers): Call fetch_register_using_p.
2157 (init_all_packet_configs, show_remote_cmd)
2158 (_initialize_remote): Add p-packet.
2160 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2162 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2163 instead of call_ptrace. Call wait directly instead of
2165 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2166 (inf_ptrace_wait): Inline ptrace_wait call.
2168 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2170 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2171 rolled back instead.
2173 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2175 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2176 the new argument order.
2178 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2180 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2181 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2182 (struct gdbarch_tdep): Remove.
2183 (struct xstormy16_frame_cache): New frame cache structure.
2184 (xstormy16_register_byte, xstormy16_register_raw_size)
2185 (xstormy16_reg_virtual_type, xstormy16_register_type)
2186 (xstormy16_push_arguments, xstormy16_push_return_address)
2187 (xstormy16_pop_frame, xstormy16_store_struct_return)
2188 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2189 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2190 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2191 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2192 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2193 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2194 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2195 (xstormy16_extract_return_value, xstormy16_store_return_value):
2196 Regcachify. Drop useless struct convention handling.
2197 (xstormy16_register_type, xstormy16_return_value)
2198 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2199 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2200 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2201 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2202 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2203 (xstormy16_unwind_dummy_id) : New functions.
2204 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2205 of xstormy16_scan_prologue.
2206 (xstormy16_frame_unwind): New frame_unwind structure.
2207 (xstormy16_frame_base): New frame_base structure.
2208 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2209 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2211 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2213 * language.c (language_gdbarch_post_init): Fix off-by one error.
2215 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2217 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2218 (struct dwarf2_offset_and_type): New.
2219 (set_die_type, reset_die_and_siblings_types, get_die_type)
2220 (offset_and_type_hash, offset_and_type_eq): New functions.
2221 (read_structure_type, read_enumeration_type, read_array_type)
2222 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2223 (read_tag_reference_type, read_tag_const_type)
2224 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2225 (read_typedef, read_base_type, read_subrange_type): Use
2228 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2230 * Makefile.in (dwarf2read.o): Update dependencies.
2231 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2232 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2234 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2235 mark, and has_form_ref_addr.
2236 (struct dwarf2_per_cu_data): New.
2237 (dwarf2_max_cache_age): New.
2238 (dwarf2_build_psymtabs_hard): Free cached compilation units
2239 after loading. Create and manage the list of compilation units.
2240 Remove unnecessary NULL initialization. Fix indentation.
2241 (psymtab_to_symtab_1): Initialize all of CU.
2242 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2243 (find_partial_die): Use dwarf2_find_containing_comp_unit
2245 (free_stack_comp_unit): Update comments. Clear the per-cu
2246 pointer. Handle aging.
2247 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2248 (age_cached_comp_units, free_one_cached_comp_unit)
2249 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2250 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2251 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2252 (show_dwarf2_cmd): New.
2253 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2254 and "maint show dwarf2 max-cache-age".
2255 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2257 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2260 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2262 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2263 and dwarf2_cu struct pointer as arguments. Change function to use
2264 obstack if provided and use dwarf2_cu to determine language-specific
2266 (partial_die_parent_scope): Change comment to include java. Use
2267 new version of typename_concat instead of obconcat.
2268 (partial_die_full_name): Use typename_concat.
2269 (read_namespace): Ditto.
2270 (read_enumeration_type): Use typename_concat instead of obconcat.
2271 (new_symbol): Ditto.
2272 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2273 (guess_structure_name): Ditto.
2274 (read_subroutine_type): Ditto.
2275 (read_structure_type): Ditto.
2276 (is_vtable_name): Add Java support.
2277 (determine_class_name): Switch to new typename_concat call.
2278 (determine_prefix): Switch to new typename_concat call.
2279 * jv-exp.y (FuncStart): New pattern.
2280 (MethodInvocation): Add support for simple function calls. Change
2281 warning message for other forms of inferior call currently not
2283 * valarith.c (value_subscript): Treat an array with upper-bound
2284 of -1 as unknown size.
2286 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2288 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2289 (lookup_partial_symtab): Use symtab_to_fullname.
2291 2004-09-19 Jim Blandy <jimb@redhat.com>
2293 * minsyms.c (lookup_minimal_symbol): Doc fix.
2295 2004-09-20 Andrew Cagney <cagney@gnu.org>
2297 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2299 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2300 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2302 * infptrace.c: Update.
2304 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2306 * symtab.c (output_source_filename): Mark first argument as const.
2307 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2308 for "info sources" output.
2310 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2312 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2313 <machine/vmparam.h>.
2314 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2315 (register_u_addr): Remove prototype.
2317 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2319 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2320 (i386bsd_fetch_inferior_registers): Rename from
2321 fetch_inferior_registers. Make static.
2322 (i386bsd_store_inferior_registers): Rename from
2323 store_inferior_registers. Make static.
2324 (i386bsd_target): New function.
2325 * i386bsd-nat.h: New file.
2326 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2328 (i386fbsd_resume): Rename from child_resume. Make static.
2329 (_initialize_i386fbsd_nat): Construct and add target vector.
2330 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2331 (_initialize_i386nbsd_nat): Construct and add target vector.
2332 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2334 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2335 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2336 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2337 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2338 (LOADLIBES): New variable.
2339 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2340 inf-ptrace.o. Remove inftarg.o.
2341 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2342 inf-ptrace.o. Remove inftarg.o.
2343 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2344 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2345 (LOADLIBES): New variable.
2346 * Makefile.in (i386bsd_nat_h): New variable.
2347 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2350 * sparc64nbsd-tdep.c: Include "objfiles.h".
2351 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2352 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2353 svr4_lp64_fetch_link_map_offsets.
2354 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2356 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2357 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2358 svr4_lp64_fetch_link_map_offsets.
2359 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2362 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2363 * fbsd-nat.h: New file.
2364 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2365 (fbsd_nat_h): New variable.
2366 (fbsd-nat.o): New dependency.
2368 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2369 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2371 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2374 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2376 * ada-exp.y (type_int): New function to add layer of abstraction
2377 around references to expression types.
2379 (type_long_long): Ditto.
2380 (type_float): Ditto.
2381 (type_double): Ditto.
2382 (type_long_double): Ditto.
2384 (type_system_address): Ditto.
2385 (simple_exp): Use type_* functions in place of builtin_*
2388 (write_var_from_name): Ditto.
2389 (write_object_renaming): Ditto.
2390 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2392 (build_ada_types): Remove, replacing with...
2393 (ada_language_arch_info): New function to initialize primitive
2394 type vector in language_arch_info.
2395 (ada_array_length): Remove use of builtin_type_ada_int.
2396 (value_pos_atr): Ditto.
2397 (ada_evaluate_subexp): Ditto.
2398 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2399 builtin_type_ada_long_long, builtin_type_ada_char,
2400 builtin_type_ada_float, builtin_type_ada_double,
2401 builtin_type_ada_long_double, builtin_type_ada_natural,
2402 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2403 (ada_builtin_types): Remove.
2404 (ada_language_defn): Remove entries for la_builtin_type_vector and
2405 string_char_type and use ada_language_arch_info.
2406 (_initialize_ada_language): Do type-vector initialization along
2407 the lines of c-lang.c.
2408 (ada_create_fundamental_type): Break up line.
2409 (ada_dump_symtab): Remove unused function.
2410 (enum ada_primitive_types): Define.
2411 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2412 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2413 builtin_type_ada_float, builtin_type_ada_double,
2414 builtin_type_ada_long_double, builtin_type_ada_natural,
2415 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2416 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2417 (processInt): Ditto.
2418 (processReal): Ditto.
2419 (name_lookup): Ditto.
2420 * ada-typeprint.c (print_range): Use builtin_type_int, not
2421 builtin_type_ada_int.
2423 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2425 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2427 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2428 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2429 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2430 * configure.in: Improve checks for curses library by checking for
2431 mvwaddstr instead of initscr. Drop HP curses in favour of
2432 standard curses on HP-UX.
2433 * configure: Regenerated.
2435 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2437 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2438 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2439 Minor formatting changes.
2440 (empty_array): Slight rewrite for formatting.
2441 (emit_char,parse,ada_language_defn,build_ada_types,
2442 ada_is_exception_sym, _initialize_ada_language): Move
2444 (ada_dump_symtab): Remove unused definition.
2445 (ada_maybe_exception_partial_symbol): Remove unused definition.
2447 2004-09-16 Andrew Cagney <cagney@gnu.org>
2449 * inf-child.c: Include "gdb_string.h".
2450 (inf_child_core_file_to_sym_file): Delete.
2451 (inf_child_target): Set to_fetch_registers and to_store_registers.
2452 * inf-ptrace.c: Include "gdb_string.h".
2453 * Makefile.in: Update all dependencies.
2455 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2458 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2460 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2461 call to heuristic_proc_desc. Remove code that became redundant
2463 (read_next_frame_reg): Remove special case for SP_REGNUM.
2464 (set_reg_offset): Fix small typo.
2465 (reset_saved_regs): New procedure.
2466 (mips32_heuristic_proc_desc): No longer compute a fake
2467 procedure descriptor. Compute the full frame cache instead.
2468 Some minor comment reformatting.
2470 2004-09-14 Andrew Cagney <cagney@gnu.org>
2472 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2475 * thread-db.c (thread_db_new_objfile): Assume that there is a
2478 2004-09-13 Jim Blandy <jimb@redhat.com>
2480 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2481 so that its storage isn't referenced after its lifetime ends.
2483 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2484 and never assigned to. Delete it, and the 'if (use_buffer)'
2485 clauses. Delete 'raw_buffer', since it is now unused.
2487 2004-09-13 Andrew Cagney <cagney@gnu.org>
2489 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2490 * configure: Re-generate.
2491 * nlm/Makefile.in (TAGS): Update.
2492 * Makefile.in (TAGS): Update.
2493 * config/vax/nbsd.mt (TM_FILE): Update.
2494 * config/sparc/vxworks.mt (TM_FILE): Update.
2495 * config/sparc/sol2.mt (TM_FILE): Update.
2496 * config/sparc/sol2-64.mt (TM_FILE): Update.
2497 * config/sparc/obsd64.mt (TM_FILE): Update.
2498 * config/sparc/obsd.mt (TM_FILE): Update.
2499 * config/sparc/nbsd64.mt (TM_FILE): Update.
2500 * config/sparc/nbsd.mt (TM_FILE): Update.
2501 * config/sparc/linux64.mt (TM_FILE): Update.
2502 * config/sparc/linux.mt (TM_FILE): Update.
2503 * config/sparc/fbsd.mt (TM_FILE): Update.
2504 * config/sh/wince.mt (TM_FILE): Update.
2505 * config/sh/nbsd.mt (TM_FILE): Update.
2506 * config/sh/linux.mt (TM_FILE): Update.
2507 * config/sh/embed.mt (TM_FILE): Update.
2508 * config/s390/s390.mt (TM_FILE): Update.
2509 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2510 * config/rs6000/rs6000.mt (TM_FILE): Update.
2511 * config/rs6000/aix4.mt (TM_FILE): Update.
2512 * config/powerpc/vxworks.mt (TM_FILE): Update.
2513 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2514 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2515 * config/powerpc/obsd.mt (TM_FILE): Update.
2516 * config/powerpc/nbsd.mt (TM_FILE): Update.
2517 * config/powerpc/linux.mt (TM_FILE): Update.
2518 * config/powerpc/aix.mt (TM_FILE): Update.
2519 * config/pa/obsd.mt (TM_FILE): Update.
2520 * config/pa/linux.mt (TM_FILE): Update.
2521 * config/pa/hppahpux.mt (TM_FILE): Update.
2522 * config/pa/hppa64.mt (TM_FILE): Update.
2523 * config/pa/hppa.mt (TM_FILE): Update.
2524 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2525 * config/mips/wince.mt (TM_FILE): Update.
2526 * config/mips/vxmips.mt (TM_FILE): Update.
2527 * config/mips/nbsd.mt (TM_FILE): Update.
2528 * config/mips/linux.mt (TM_FILE): Update.
2529 * config/mips/irix6.mt (TM_FILE): Update.
2530 * config/mips/irix5.mt (TM_FILE): Update.
2531 * config/mips/embed.mt (TM_FILE): Update.
2532 * config/m68k/vxworks68.mt (TM_FILE): Update.
2533 * config/m68k/st2000.mt (TM_FILE): Update.
2534 * config/m68k/os68k.mt (TM_FILE): Update.
2535 * config/m68k/obsd.mt (TM_FILE): Update.
2536 * config/m68k/nbsd.mt (TM_FILE): Update.
2537 * config/m68k/monitor.mt (TM_FILE): Update.
2538 * config/m68k/linux.mt (TM_FILE): Update.
2539 * config/m68k/cisco.mt (TM_FILE): Update.
2540 * config/ia64/linux.mt (TM_FILE): Update.
2541 * config/ia64/aix.mt (TM_FILE): Update.
2542 * config/ia64/ia64.mt (TM_FILE): Update.
2543 * config/i386/vxworks.mt (TM_FILE): Update.
2544 * config/i386/obsd64.mt (TM_FILE): Update.
2545 * config/i386/obsd.mt (TM_FILE): Update.
2546 * config/i386/nto.mt (TM_FILE): Update.
2547 * config/i386/nbsd64.mt (TM_FILE): Update.
2548 * config/i386/nbsd.mt (TM_FILE): Update.
2549 * config/i386/linux64.mt (TM_FILE): Update.
2550 * config/i386/linux.mt (TM_FILE): Update.
2551 * config/i386/i386sol2.mt (TM_FILE): Update.
2552 * config/i386/i386lynx.mt (TM_FILE): Update.
2553 * config/i386/fbsd64.mt (TM_FILE): Update.
2554 * config/i386/fbsd.mt (TM_FILE): Update.
2555 * config/i386/cygwin.mt (TM_FILE): Update.
2556 * config/h8300/h8300.mt (TM_FILE): Update.
2557 * config/frv/frv.mt (TM_FILE): Update.
2558 * config/cris/cris.mt (TM_FILE): Update.
2559 * config/arm/wince.mt (TM_FILE): Update.
2560 * config/arm/nbsd.mt (TM_FILE): Update.
2561 * config/arm/linux.mt (TM_FILE): Update.
2562 * config/arm/embed.mt (TM_FILE): Update.
2563 * config/alpha/nbsd.mt (TM_FILE): Update.
2564 * config/alpha/fbsd.mt (TM_FILE): Update.
2565 * config/alpha/alpha.mt (TM_FILE): Update.
2566 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2567 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2569 Eliminate event_loop_p, always has the value 1.
2570 * defs.h (event_loop_p): Delete macro.
2571 * breakpoint.c (until_break_command): Simplify.
2572 * utils.c (prompt_for_continue): Simplify.
2573 * tracepoint.c (read_actions): Simplify.
2574 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2575 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2576 (set_prompt, init_main): Simplify.
2577 (init_signals, disconnect): Delete, unused.
2578 * remote.c (remote_async_resume)
2579 (extended_remote_async_create_inferior): Simplify.
2580 * mi/mi-interp.c (mi_input): Delete, unused.
2581 (mi_interpreter_resume, mi_command_loop): Simplify.
2582 * interps.c (current_interp_command_loop): Simplify.
2583 * infrun.c (proceed): Simplify.
2584 * infcmd.c (run_command, continue_command, step_1, jump_command)
2585 (until_command, advance_command, finish_command)
2586 (interrupt_target_command): Simplify.
2587 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2589 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2590 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2591 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2592 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2593 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2594 * mips-tdep.c (mips_dump_tdep): Do not print same.
2596 2004-09-12 Andrew Cagney <cagney@gnu.org>
2598 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2600 * Makefile.in (valprint.o): Delete explict rule.
2602 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2603 reported by Dave Anderson.
2605 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2607 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2609 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2610 Andrew Cagney <cagney@gnu.org>
2612 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2613 (mi_cmd_data_list_register_values)
2614 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2615 the register number computation.
2617 2004-09-12 Andrew Cagney <cagney@gnu.org>
2619 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2620 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2621 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2622 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2624 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2625 inf-ptrace.o and inf-child.o.
2626 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2627 * Makefile.in: Update dependencies.
2629 2004-09-11 Andrew Cagney <cagney@gnu.org>
2631 * language.c (hex_string, hex_string_custom): Move from here ...
2632 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2633 (CELLSIZE): Increase to 50.
2634 * language.h (hex_string, hex_string_custom): Move from here ...
2635 * defs.h: ... to here.
2636 * Makefile.in: Update all dependencies.
2638 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2640 * language.c (local_hex_format_custom): Remove.
2641 (local_hex_string): Rename to hex_string, use C format, and move to
2643 (local_hex_string_custom): Rename to hex_string_custom and change
2644 interface. Now uses C format. Move to utils.c
2645 (local_octal_format_custom): Remove.
2646 (local_decimal_format_custom): Remove.
2647 (unknown_language_defn): Remove language-specific number
2649 (auto_language_defn): Ditto.
2650 (local_language_defn): Ditto.
2651 * language.h (struct language_format_info): Delete declaration.
2652 (struct language_defn): Remove language_format_info fields
2653 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2654 (local_binary_format): Remove macro.
2655 (local_binary_format_prefix): Remove macro.
2656 (local_binary_format_specifier): Remove macro.
2657 (local_binary_format_suffix): Remove macro.
2658 (local_octal_format): Remove macro.
2659 (local_octal_format_prefix): Remove macro.
2660 (local_octal_format_specifier): Remove macro.
2661 (local_octal_format_suffix): Remove macro.
2662 (local_decimal_format): Remove macro.
2663 (local_decimal_format_prefix): Remove macro.
2664 (local_decimal_format_specifier): Remove macro.
2665 (local_decimal_format_suffix): Remove macro.
2666 (local_hex_format): Remove macro.
2667 (local_hex_format_prefix): Remove macro.
2668 (local_hex_format_specifier): Remove macro.
2669 (local_hex_format_suffix): Remove macro.
2670 (local_decimal_format_custom): Remove.
2671 (local_octal_format_custom): Remove.
2672 (local_hex_format_custom): Remove.
2673 (local_hex_string): Rename to hex_string and move to defs.h.
2674 (local_hex_string_custom): Rename to hex_string_custom, change
2675 interface, and move to defs.h.
2676 * utils.c: (int_string): New function.
2677 (hex_string): New function (from language.c).
2678 (hex_string_custom): New function (from language.c).
2679 (octal2str): New function.
2680 (decimal2str): Add width parameter.
2681 (paddr_u): Use new decimal2str interface.
2683 * defs.h (hex_string): Declare.
2684 (hex_string_custom): Declare.
2685 (int_string): Declare.
2686 * printcmd.c (print_scalar_formatted): Remove localized binary
2688 * valprint.c (print_longest): Use int_string.
2689 (print_floating): Use C hex format.
2690 (print_hex_chars): Ditto.
2691 (print_binary_chars): Remove language-specific formatting.
2692 (print_octal_chars): Use C octal format.
2693 (print_decimal_chars): Delocalize format.
2694 (print_decimal): Remove.
2695 * ada-lang.c (ada_language_defn): Remove language-specific number
2697 * p-lang.c (pascal_language_defn): Ditto.
2698 * c-lang.c (c_language_defn): Ditto.
2699 (cplus_language_defn): Ditto.
2700 (asm_language_defn): Ditto.
2701 (minimal_language_defn): Ditto.
2702 * f-lang.c (f_language_defn): Ditto.
2703 * jv-lang.c (java_language_defn): Ditto.
2704 * m2-lang.c (m2_language_defn): Ditto.
2705 * scm-lang.c (scm_language_defn): Ditto.
2706 * objc-lang.c (objc_language_defn): Ditto.
2707 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2709 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2710 * ui-out.c (ui_out_field_core_addr): Ditto.
2711 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2712 * exec.c (print_section_info): Ditto.
2713 * i387-tdep.c (print_i387_status_word): Ditto.
2714 (print_i387_control_word): Ditto.
2715 (i387_print_float_info): Ditto.
2716 * maint.c (maint_print_section_info): Ditto.
2717 * solib.c (info_sharedlibrary_command): Ditto.
2718 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2719 * symtab.c (print_msymbol_info): Ditto.
2720 * tracepoint.c (tracepoints_info): Ditto.
2721 * solib-frv.c (lm_base): Ditto.
2722 (frv_current_sos): Ditto.
2723 (enable_break2): Ditto.
2724 (enable_break): Ditto.
2725 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2726 (process_one_symbol): Ditto.
2727 * infcmd.c (program_info): Ditto.
2728 * mdebugread.c (parse_partial_symbols): Ditto.
2729 * symfile.c (add_symbol_file_command): Ditto.
2730 * cli/cli-cmds.c (edit_command): Ditto.
2731 (list_command): Ditto.
2732 * infcall.c (call_function_by_hand): Ditto.
2733 * remote-vx.c (vx_run_files_info): Ditto.
2738 * aix-thread.c (pdc_symbol_addrs): Ditto.
2739 (pdc_read_regs): Ditto.
2740 (pdc_write_regs): Ditto.
2741 (pdc_read_data): Ditto.
2742 (pdc_write_data): Ditto.
2743 * d10v-tdep.c (display_trace): Ditto.
2744 * rs6000-nat.c (find_toc_address): Ditto.
2745 * aix-thread.c: Don't include language.h.
2746 * buildsym.c: Ditto.
2748 * mdebugread.c: Ditto.
2749 * rs6000-nat.c: Ditto.
2750 * buildsym.c (make_blockvector): Use renamed hex_string.
2752 2004-09-10 Jason Molenda (jmolenda@apple.com)
2754 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2755 chars after 'if' or 'while' commands in user-defined commands.
2757 2004-09-08 Jim Blandy <jimb@redhat.com>
2759 Fix bug reported and analyzed by Olivier Crete:
2760 * symfile.c (copy_section_addr_info): New function.
2761 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2762 original set of address arguments, instead of handwritten code
2763 that uses one length to allocate and a different length to
2764 initialize. Use make_cleanup_free_section_addr_info.
2765 * symfile.h (copy_section_addr_info): New declaration.
2766 * utils.c: #include "symfile.h".
2767 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2769 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2770 * Makefile.in (utils.o): Update dependencies.
2772 2004-09-08 Andrew Cagney <cagney@gnu.org>
2774 * thread-db.c (keep_thread_db): Delete.
2775 (thread_db_new_objfile, thread_db_create_inferior)
2776 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2778 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2780 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2781 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2782 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2783 (i386_frameless_signal_p): Remove prototype.
2784 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2785 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2787 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2788 instead of FP0_REGNUM.
2789 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2790 of FP0_REGNUM and FPC_REGNUM.
2792 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2793 (sunos_solib_create_inferior_hook): Don't call
2794 sunos_relocate_main_executable.
2796 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2797 solib_svr4_fetch_link_map_offsets to
2798 svr4_ilp32_fetch_link_map_offsets.
2799 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2800 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2801 svr4_ilp32_fetch_link_map_offsets.
2802 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2804 2004-09-07 Jim Blandy <jimb@redhat.com>
2806 * frame.h (frame_register): Doc fix.
2808 2004-09-07 Andrew Cagney <cagney@gnu.org>
2810 * vx-share/wait.h: Delete #ifdef USG.
2811 * utils.c (request_quit): Ditto.
2812 * tui/tui.c (tui_reset): Ditto.
2814 * remote-sds.c: Ditto.
2815 * remote-rdi.c: Ditto.
2816 * mdebugread.c: Ditto.
2817 * m68klinux-nat.c: Ditto.
2818 * infttrace.c: Ditto.
2819 * infptrace.c: Ditto.
2820 * i386v-nat.c: Ditto.
2823 * core-aout.c: Ditto.
2825 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2827 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2828 heuristic_proc_desc.
2829 (mips_insn32_frame_cache): Likewise.
2831 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2833 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2834 left behind by error.
2836 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2838 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2839 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2841 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2843 * config/rs6000/xm-aix4.h: Remove this file.
2844 * config/rs6000/aix4.mh (XM_FILE): Delete.
2846 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2848 * config/rs6000/xm-rs6000.h: Remove this file.
2849 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2851 2004-09-03 Andrew Cagney <cagney@gnu.org>
2853 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2854 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2857 * mips-tdep.c (temp_saved_regs): Delete.
2858 (set_reg_offset): Replace saved_regs parameter with this_cache.
2859 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2860 (mips32_heuristic_proc_desc): Add this_cache parameter.
2861 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2862 (after_prologue): Pass a NULL this_cache.
2864 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2865 non-kernel trap prologues.
2867 * mips-tdep.c (find_proc_desc): Delete function.
2868 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2870 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2871 mips_insn32_frame_cache.
2873 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2874 Simplify as NEXT_FRAME is NULL.
2875 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2877 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2879 (mips_skip_prologue): Update.
2881 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2882 "cur_frame" parameter.
2883 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2884 (mips_insn32_frame_cache, find_proc_desc): Update
2886 * config/vax/nm-obsd.h: Delete file.
2887 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2888 * config/vax/nm-nbsd.h: Delete file.
2889 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2890 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2891 * config/sh/nm-nbsd.h: Delete file.
2892 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2893 * config/rs6000/nm-rs6000ly.h: Delete file.
2894 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2895 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2896 * config/powerpc/nm-obsd.h: Delete file.
2897 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2898 * config/powerpc/nm-nbsd.h: Delete file.
2899 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2900 * config/pa/nm-obsd.h: Delete file.
2901 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2902 * config/mips/nm-nbsd.h: Delete file.
2903 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2904 * config/m88k/nm-obsd.h: Delete file.
2905 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2906 * config/m68k/nm-nbsd.h: Delete file.
2907 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2908 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2909 * config/i386/nm-nbsd.h: Delete file.
2910 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2911 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2912 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2913 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2914 * config/i386/nm-i386lynx.h: Delete file.
2915 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2916 * config/arm/nm-nbsd.h: Delete file.
2917 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2918 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2920 * config/i386/tm-fbsd.h: Delete file.
2921 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2922 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2924 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2925 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2926 * config/rs6000/aix4.mt (TM_FILE): Set to
2927 config/rs6000/tm-rs6000.h.
2928 * config/powerpc/tm-ppc-aix.h: Delete file.
2929 * config/powerpc/aix.mt (TM_FILE): Set to
2930 config/rs6000/tm-rs6000.h.
2931 * config/m68k/tm-linux.h: Delete file.
2932 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2933 * config/i386/tm-linux64.h: Delete file.
2934 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2935 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2937 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2938 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2939 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2940 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2941 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2942 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2943 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2944 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2945 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2947 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2950 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2952 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2953 Minor reformatting. Some code factoring.
2955 2004-09-02 Andrew Cagney <cagney@gnu.org>
2957 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2958 * config/vax/tm-nbsd.h: Delete file.
2959 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2960 * config/sparc/tm-vxworks.h: Delete file.
2961 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2962 * config/sparc/tm-nbsd.h: Delete file.
2963 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2964 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2965 * config/sparc/tm-linux.h: Delete file.
2966 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2967 * config/s390/tm-linux.h: Delete file.
2968 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2969 * config/pa/tm-bsd.h: Delete file.
2970 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2971 * config/m68k/tm-obsd.h: Delete file.
2972 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2973 * config/m68k/tm-nbsd.h: Delete file.
2974 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2975 * config/i386/tm-vxworks.h: Delete file.
2976 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2977 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2978 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2979 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2980 * config/i386/tm-nbsd.h: Delete file.
2981 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2982 * config/i386/tm-i386lynx.h: Delete file.
2983 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2984 * config/cris/tm-cris.h: Delete file.
2986 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2987 * configure: Re-generate.
2988 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2989 * config/arm/tm-nbsd.h: Delete file.
2991 * config/powerpc/tm-ppcle-sim.h: Delete.
2992 * config/powerpc/tm-ppcle-eabi.h: Delete.
2993 * config/powerpc/tm-nbsd.h: Delete.
2994 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2995 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2998 * config/i386/nto.mh (NAT_FILE): Delete.
2999 * config/i386/nm-nto.h: Delete.
3001 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3002 * config/m68k/tm-os68k.h: Ditto.
3003 * config/m68k/tm-monitor.h: Ditto.
3004 * config/m68k/tm-cisco.h: Ditto.
3005 * config/m68k/st2000.mt (TM_FILE): Delete.
3006 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3007 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3008 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3009 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3011 * config/m68k/tm-st2000.h: Delete.
3012 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3013 * config/sparc/fbsd.mt (TM_FILE): Delete.
3014 * config/sparc/tm-fbsd.h: Delete.
3016 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3017 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3018 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3020 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3021 GDB_TM_FILE and GDB_XM_FILE.
3022 * gdbarch.c: Re-generate.
3023 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3024 quotes in macro definition.
3025 * configure.in: Re-generate.
3027 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3028 validating architecture methods.
3029 * gdbarch.c: Re-generate.
3031 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3032 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3033 GDB_MULTI_ARCH_PARTIAL.
3034 * gdbarch.h: Re-generate.
3036 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3037 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3038 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3039 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3040 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3041 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3042 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3043 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3044 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3045 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3046 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3047 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3049 2004-09-01 Andrew Cagney <cagney@gnu.org>
3051 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3052 and main_func_highpc.
3053 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3054 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3055 * nlmread.c (nlm_symfile_read): Update.
3057 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3059 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3060 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3061 (find_proc_desc): Remove dead code.
3063 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3065 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3067 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3069 * observer.sh: Add struct so_list declaration.
3070 * Makefile.in: Add dependencies on observer.h for solib.c and
3072 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3074 (_initialize_breakpoint): Register
3075 disable_breakpoints_in_unloaded_shlib as an observer of the
3076 "solib unloaded" observation event.
3077 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3078 call decode_line_1 so unfound breakpoint errors are silent.
3079 * solib.c (update_solib_list): When a solib is discovered to have
3080 been unloaded by the program, notify all observers of the
3081 "solib unloaded" observation event.
3083 2004-09-01 Andrew Cagney <cagney@gnu.org>
3085 * frame.c: Include "objfiles.h".
3086 (inside_main_func): New function.
3087 (get_prev_frame): Use new inside_main_func.
3088 * Makefile.in (frame.o): Update dependencies.
3089 * defs.h (inside_main_func): Delete declaration.
3090 * blockframe.c (inside_main_func): Delete function.
3092 2004-08-31 Jim Blandy <jimb@redhat.com>
3094 * dwarf2read.c (is_vtable_name): New function, based on logic from
3095 read_structure_type, but passing the correct length to strncmp,
3096 and using 'sizeof' instead of 'strlen'.
3097 (read_structure_type): Call it.
3099 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3101 * config/powerpc/aix.mh: Add comment.
3103 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3105 * MAINTAINERS: Add self to Write-After-Approval.
3107 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3109 * MAINTAINERS: Add self to Write-After-Approval.
3111 2004-08-30 Andrew Cagney <cagney@gnu.org>
3113 Fix PR breakpoints/1757.
3114 * infrun.c (struct execution_control_state): Replace
3115 remove_breakpoints_on_following_step with
3116 step_after_step_resume_breakpoint.
3117 (init_execution_control_state): Update.
3118 (handle_inferior_event): For signals, when stepping off a
3119 breakpoint, set step_after_step_resume_breakpoint. When
3120 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3121 (keep_going): Delete code handling
3122 remove_breakpoints_on_following_step.
3124 2004-08-29 David Lecomber <david@streamline-computing.com>
3127 * language.h (enum array_ordering): New enum.
3128 * language.h (struct language_defn): New la_array_ordering
3130 * language.c (unknown_language_defn, auto_language_defn)
3131 (local_language_defn): Ditto.
3132 * ada-lang.c (ada_language_defn): Ditto.
3133 * c-lang.c (c_language_defn, cplus_language_defn)
3134 (asm_language_defn, minimal_language_defn): Ditto.
3135 * f-lang.c (f_language_defn): Ditto.
3136 * jv-lang.c (java_language_defn): Ditto.
3137 * m2-lang.c (f_language_defn): Ditto.
3138 * objc-lang.c (objc_language_defn): Ditto.
3139 * p-lang.c (pascal_language_defn): Ditto.
3140 * scm-lang.c (scm_language_defn): Ditto.
3141 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3142 oriented large to small in type structure.
3143 * dwarf2read.c (read_array_order): New function.
3144 (read_array_type): Use read_array_order to check row/column
3147 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3149 * target.c (target_resize_to_sections): Check
3150 current_target.to_sections for an old value when updating.
3152 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3154 * procfs.c (dbx_link_bpt_addr): New static global variable.
3155 (dbx_link_shadow_contents): New static global variable.
3156 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3157 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3159 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3160 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3162 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3163 after the inferior has been forked.
3164 (remove_dbx_link_breakpoint): New function.
3165 (dbx_link_addr): New function.
3166 (insert_dbx_link_bpt_in_file): New function.
3167 (insert_dbx_link_bpt_in_region): New function.
3168 (insert_dbx_link_breakpoint): New function.
3169 (proc_trace_syscalls_1): New function, extracted from
3170 proc_trace_syscalls.
3171 (proc_trace_syscalls): Replace extract code by call to
3172 proc_trace_syscalls_1.
3173 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3176 2004-08-25 Jim Blandy <jimb@redhat.com>
3178 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3180 2004-08-25 Andrew Cagney <cagney@gnu.org>
3182 * infrun.c (struct execution_control_state): Delete field
3183 "stepping_through_sigtramp".
3184 (init_execution_control_state): Do not set same.
3185 (context_switch): Do not pass same to save_infrun_state and
3187 * gdbthread.h (struct thread_info): Delete field
3188 stepping_through_sigtramp.
3189 (save_infrun_state, load_infrun_state): Delete parameter
3190 stepping_through_sigtramp.
3191 * thread.c (load_infrun_state, save_infrun_state): Update.
3193 * infrun.c: Re-indent. Move expression operators to the beginning
3194 of the line. Remove long disabled #if 0 code.
3196 2004-08-24 Andrew Cagney <cagney@gnu.org>
3198 * doublest.h (floatformat_ieee_quad): Rename
3199 floatformat_ia64_quad.
3200 * doublest.c (floatformat_ieee_quad): Rename
3201 floatformat_ia64_quad.
3202 (_initialize_doublest): Update.
3204 2004-08-24 Jim Blandy <jimb@redhat.com>
3206 * dwarf2expr.h (struct dwarf_expr_context): New members
3207 'num_pieces' and 'pieces', for returning the result of an
3208 expression that uses DW_OP_piece.
3209 (struct dwarf_expr_piece): New struct type.
3210 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3212 (free_dwarf_expr_context): Free pieces, if any.
3213 (add_piece): New function.
3214 (execute_stack_op): Implement DW_OP_piece.
3215 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3216 expression is a list of pieces, print an error message.
3217 (dwarf2_loc_desc_needs_frame): If the expression yields
3218 pieces, and any piece is in a register, then we need a frame.
3220 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3221 the stack until we've decided what sort of result the evaluation
3222 has produced. Use separate variables, with more specific names.
3224 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3226 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3227 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3228 (arm_netbsd_init_abi_common): Register them.
3230 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3232 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3234 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3235 safe_frame_unwind_memory instead of target_read_memory.
3237 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3239 (fetch_register, store_register): Remove prototypes.
3240 (child_resume): Reorganize code and comments such that it is
3241 grouped a bit more logically.
3242 (attach): Explicitly compare errno against 0.
3243 (detach): Likewise. Use perror_with_name instead of
3245 * Makefile.in (infptrace.o): Update dependencies.
3247 * ia64-linux-nat.c: Update copyright year.
3248 (fetch_debug_register, store_debug_register)
3249 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3251 * config/ia64/nm-linux.h: Update copyright year.
3252 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3254 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3255 from CORE_ADDR to struct frame_info *. Use
3256 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3257 (amd64_linux_sigtramp_p): Adjust for changed signature of
3258 and64_linux_sigtramp_start
3260 * gdb_ptrace.h: GNU/Linux.
3262 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3265 * infptrace.c: Include "gdb_assert.h".
3266 (PTRACE_XFER_TYPE): Remove define.
3267 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3268 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3270 (fetch_inferior_registers, store_inferior_registers): Remove
3271 redundant culry braces. Tweak comment. s/regno/regnum.
3272 * Makefile.in (infptrace.o): Update dependencies.
3274 * configure.in: Change test for return type of ptrace to default
3275 to `long' instead of `int'.
3276 * configure: Regenerate.
3278 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3280 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3282 * configure.in: Check for ttrace function.
3283 * configure, config.in: Regenerate.
3285 * gdb_ptrace.h: New file.
3286 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3288 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3289 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3290 (attach): Don't define PT_ATTACH.
3291 (detach): Don't define PT_DETACH.
3292 * Makefile.in (gdb_ptrace_h): New variable.
3293 (infptrace.o): Update dependencies.
3295 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3297 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3298 instead of `int' if not already defined.
3299 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3301 * infptrace.c (call_ptrace): Revert change that replaced
3302 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3304 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3306 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3309 * linux-nat.c (kill_inferior): Add missing third and fourth
3310 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3312 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3315 * proc-why.c (proc_prettyfprint_why): Fix format string.
3317 * solib-osf.c (osf_current_sos): Remove unsused label.
3319 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3321 * configure, config.in: Regenerate.
3322 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3323 <ncurses/ncurses.h>.
3325 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3326 * config/nm-nbsd.h: Update copyright year.
3327 (PTRACE_ARG3_TYPE): Remove define.
3329 * sparc-nat.c (fetch_inferior_registers)
3330 (store_inferior_registers, sparc_xfer_wcookie):
3331 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3333 * alphabsd-nat.c (fetch_inferior_registers):
3334 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3336 * amd64bsd-nat.c (fetch_inferior_registers)
3337 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3339 * armnbsd-nat.c: Update copyright year.
3340 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3341 (store_register, store_regs, store_fp_register, store_fp_regs):
3342 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3343 * hppabsd-nat.c (fetch_inferior_registers)
3344 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3346 * i386bsd-nat.c (fetch_inferior_registers)
3347 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3348 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3349 * m68kbsd-nat.c (fetch_inferior_registers)
3350 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3352 * m88kbsd-nat.c (fetch_inferior_registers)
3353 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3355 * mipsnbsd-nat.c: Update copyright year.
3356 (fetch_inferior_registers, store_inferior_registers):
3357 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3358 * ns32knbsd-nat.c: Update copyright year.
3359 (fetch_inferior_registers, store_inferior_registers):
3360 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3361 * ppcnbsd-nat.c (fetch_inferior_registers):
3362 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3364 * ppcobsd-nat.c (fetch_inferior_registers):
3365 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3367 * shnbsd-nat.c: Update copyright year.
3368 (fetch_inferior_registers, store_inferior_registers):
3369 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3370 * vaxbsd-nat.c (fetch_inferior_registers)
3371 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3374 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3376 * infptrace.c (call_ptrace, child_resume, attach, detach)
3377 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3378 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3379 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3382 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3384 * defs.h: Remove out-of-date comment.
3385 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3386 [!GETENV_PROVIDED] (getenv): Remove prototype.
3388 * standalone.c: Remove file.
3389 * Makefile.in (standalone.o): Remove dependency.
3391 * i386-linux-nat.c (dummy_sse_values): Remove function and
3393 (i386_linux_dr_get): Fix typo in comment.
3394 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3396 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3398 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3400 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3403 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3405 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3406 parenthesis in definition.
3407 * configure: Regenerated.
3409 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3411 * PROBLEMS: Mention build/1411.
3413 2004-08-09 Robert Millan <robertmh@gnu.org>
3415 Committed by Nathanael Nerode.
3416 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3417 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3419 2004-08-12 Andrew Cagney <cagney@gnu.org>
3421 * NEWS: Mention fixes in GDB 6.2.1.
3422 * PROBLEMS: Remove mention of mips-irix.
3424 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3426 * config/powerpc/xm-aix.h: Delete.
3427 * config/powerpc/aix.mh (MH_FILE): Remove.
3428 * config/powerpc/aix432.mh (MH_FILE): Remove.
3430 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3432 * config/powerpc/aix.mh: Remove obsolete comment.
3433 * config/powerpc/aix432.mh: Likewise.
3435 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3437 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3439 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3441 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3442 this file is now empty.
3443 * config/xm-aix4.h: Remove, this file is no longer included
3446 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3448 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3449 that file is now empty.
3450 (termdef): Remove prototype, function no longer used.
3452 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3454 * doc/gdbint.texinfo (Host Definition): Remove documentation
3455 for USE_O_NOCTTY, no longer used.
3456 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3457 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3459 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3461 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3462 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3463 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3465 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3467 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3468 instead of FIVE_ARG_PTRACE.
3470 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3471 (new_tty): Use O_NOCTTY unconditionally.
3473 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3475 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3476 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3479 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3481 * xcoff_symfile_finish: Replace last call to xmfree by call
3484 2004-08-10 Andrew Cagney <cagney@gnu.org>
3486 * main.c (captured_main): Delete call to init_malloc.
3487 * defs.h (init_malloc): Delete declaration.
3488 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3489 (init_malloc): Delete functions.
3491 * defs.h (xmfree): Delete.
3492 * utils.c (xmfree): Delete function.
3493 (xfree): Inline calls to xmfree and mfree.
3494 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3495 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3496 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3497 * somread.c (som_symfile_finish): Ditto.
3498 * objfiles.c (allocate_objfile, free_objfile):
3499 * nlmread.c (nlm_symfile_finish): Ditto.
3500 * hpread.c (hpread_symfile_finish): Ditto.
3501 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3502 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3503 * coffread.c (coff_symfile_finish): Ditto.
3505 * defs.h (xmcalloc): Delete declaration.
3506 * utils.c (xmcalloc): Delete.
3507 (xcalloc): Inline calls to xmcalloc and mcalloc.
3508 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3510 * symtab.c (create_demangled_names_hash): Ditto.
3512 * defs.h (xmrealloc): Delete.
3513 * utils.c (xmrealloc): Delete.
3514 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3515 * symmisc.c (extend_psymbol_list): Use xrealloc.
3516 * source.c (find_source_lines): Ditto.
3517 * hpread.c (hpread_lookup_type): Ditto.
3518 * dbxread.c (add_bincl_to_list): Ditto.
3520 * utils.c (xmmalloc): Delete.
3521 (xmalloc): Inline xmmalloc and mmalloc calls.
3522 (msavestring): Use xmalloc.
3523 * defs.h (xmmalloc): Delete declaration.
3524 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3526 * symmisc.c (extend_psymbol_list): Ditto.
3527 * symfile.c (init_psymbol_list): Ditto.
3528 * source.c (find_source_lines): Ditto.
3529 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3530 * elfread.c (elf_symtab_read): Ditto.
3531 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3532 * coffread.c (coff_symfile_init): Ditto.
3534 2004-08-10 David Carlton <carlton@bactrian.org>
3536 * MAINTAINERS: Remove David Carlton from c++ testsuite
3539 2004-08-10 Jerome Guitton <guitton@gnat.com>
3541 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3542 print a line feed before the prompt.
3544 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3546 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3548 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3550 General cleanup of the AIX xm include file:
3551 * config/xm-aix4.h (fd_set): Remove undefine.
3552 Remove include of <sys/select.h>.
3553 (HAVE_TERMIO): Remove define.
3555 (NULL): Remove redefine.
3556 (alloca): Remove #pragma.
3557 (vfork): Remove define.
3559 (SIGWINCH_HANDLER): Remove.
3560 (SIGWINCH_HANDLER_BODY): Remove.
3562 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3564 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3565 GDB_OSABI_OPENBSD_ELF.
3567 2004-08-07 Robert Millan <robertmh@gnu.org>
3569 * bsd-kvm.c: Check for nlist.h before including it.
3571 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3573 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3574 sigcontext' offset consistency checks for ancient BSD.
3576 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3578 * configure.in: Check for <sys/types.h>. Check return and
3579 argument types of ptrace.
3580 * configure, config.in: Regenerate.
3582 2004-08-09 Jim Blandy <jimb@redhat.com>
3584 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3585 rs6000_register_sim_regno): Doc fixes.
3587 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3589 * mips-tdep.c: Include "floatformat.h".
3590 (n32n64_floatformat_always_valid): New function.
3591 (floatformat_n32n64_long_double_big): New constant.
3592 (mips_gdbarch_init): Set size and format of long double
3593 for N32 and N64 ABIs.
3594 * Makefile.in (mips-tdep.o): Update dependencies.
3596 2004-08-08 Andrew Cagney <cagney@gnu.org>
3598 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3599 print. Improve script's error messages.
3600 * gdbarch.h: Re-generate.
3602 * gdbarch.sh (pformat): New function.
3603 (float_format, double_format, long_double_format): List with bit
3604 members. Use pformat when printing.
3605 * gdbarch.c, gdbarch.h: Re-generate.
3607 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3609 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3610 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3611 (ppcnbsd_supply_pcb): New function.
3612 (_initialize_ppcnbsd_nat): New prototype and function.
3613 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3614 (LOADLIBES): New variable.
3615 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3617 2004-08-08 Andrew Cagney <cagney@gnu.org>
3619 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3620 (builtin_type_ieee_double, builtin_type_ia64_quad)
3621 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3622 BE/LE floating-point types.
3623 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3624 (builtin_type_ieee_double, builtin_type_ia64_quad)
3625 (builtin_type_ia64_spill): Declare.
3626 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3627 (floatformat_ieee_double, floatformat_arm_ext)
3628 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3629 of LE/BE floatformats.
3630 * doublest.h: (struct floatformat, floatformat_ieee_single)
3631 (floatformat_ieee_double, floatformat_arm_ext)
3632 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3634 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3636 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3638 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3639 instead of regcache_raw_supply when storing the registers.
3641 * i386gnu-nat.c: Update copyright year.
3642 (gnu_store_registers): Don't use deprecated_registers and
3643 deprecated_registers_valid. Use regcache_valid_p and
3644 regcache_raw_supply instead.
3646 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3649 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3650 variables. Incapitalized "process".
3652 * configure.in: Add cursesX to the list of possible curses libs.
3653 Add cursesX.h to the list of possible curses headers.
3654 * configure, config.in: Regenerate.
3656 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3658 * configure.in: Test for struct lwp in <sys/lwp.h>.
3659 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3660 the offset of l_addr in struct lwp.
3662 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3664 * bsd-kvm.c: Include "gdbcore.h"
3665 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3667 2004-08-07 Andrew Cagney <cagney@gnu.org>
3669 * gdbtypes.c (build_flt, build_complex): New functions.
3670 (gdbtypes_post_init): Use.
3672 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3674 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3675 through to builtin_type_uint128.
3677 * c-exp.y: Use builtin_type function to obtain builtin types.
3679 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3681 * gdbtypes.c (gdbtypes_post_init): Update.
3682 (build_gdbtypes): Move initialization of builtin_type_int0
3683 through to builtin_type_uint128 from here ...
3684 (_initialize_gdbtypes): ... to here.
3685 * d10v-tdep.c (d10v_register_type): Update.
3687 * doublest.c: Update copyright.
3688 (floatformat_from_length): Call error when floatformat is NULL.
3689 (extract_floating_by_length): Remove NULL fmt check.
3690 (store_floating_by_length): Ditto.
3692 2004-08-07 Andrew Cagney <cagney@gnu.org>
3694 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3695 that the register is valid.
3697 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3699 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3700 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3701 struct frame_info *. Use safe_frame_unwind_memory instead of
3702 deprecated_read_memory_nobpt.
3703 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3704 changed signature of i386_linux_sigtramp_start and
3705 i386_linux_rt_sigtramp_start.
3707 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3708 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3709 instead of deprecated_read_memory_nobpt.
3710 (i386nbsd_sigtramp_p): Adjust for changed signature of
3711 i386nbsd_sigtramp_offset.
3713 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3714 safe_frame_unwind_memory instead of target_read_memory.
3716 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3718 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3719 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3720 (_initialize_kernel_u_addr): Remove prototype and function.
3721 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3723 * xcoffread.c: Likewise.
3725 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3727 * vax-nat.c: New file.
3728 * vaxbsd-nat.c: Tweak comment.
3729 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3731 (vax-nat.o): New dependency.
3732 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3733 (vax-*-ultrix2*): Remove.
3734 * config/vax/vax.mh: New file.
3735 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3736 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3737 (vax_register_u_addr): New prototype.
3738 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3739 * config/vax/vaxult2.mh: Remove file.
3740 * config/vax/vaxult.mh: Remove file.
3741 * config/vax/vaxbsd.mh: Remove file.
3742 * config/vax/vax.mt (TM_FILE): Remove.
3743 * config/vax/tm-vaxbsd.h: Remove file.
3745 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3747 * aix-thread.c (get_signaled_thread): New function.
3748 (iter_trap): Delete, no longer used.
3749 (iter_tid): New function.
3750 (pd_update): Find the thread that received the SIGTRAP signal
3751 by first locating the kernel thread, and then finding its
3754 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3756 * lin-lwp.c (child_wait): Continue inferior after processing
3757 PTRACE_EVENT_CLONE event.
3759 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3761 * MAINTAINERS: Add self to Write-After-Approval.
3763 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3765 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3766 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3768 2004-08-05 Andrew Cagney <cagney@gnu.org>
3770 * config/xm-sysv4.h: Delete file.
3771 * config/mips/xm-irix5.h: Delete file.
3772 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3773 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3774 * config/ia64/xm-aix.h: Delete file.
3775 * config/ia64/aix.mh (XM_FILE): Delete.
3776 * config/pa/xm-hppah.h: Delete file.
3777 * config/pa/hpux11w.mh (XM_FILE): Delete.
3778 * config/pa/hpux11.mh (XM_FILE): Delete.
3779 * config/pa/hpux1020.mh (XM_FILE): Delete.
3780 * config/pa/hppahpux.mh (XM_FILE): Delete.
3782 * config/alpha/xm-alphalinux.h: Delete file.
3783 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3784 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3785 * config/alpha/xm-alphaosf.h: Delete file.
3786 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3787 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3788 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3789 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3791 * config/i386/xm-i386v.h: Delete file.
3792 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3793 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3794 * config/i386/xm-i386sco.h: Delete file.
3795 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3796 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3797 * config/i386/xm-i386v4.h: Delete file.
3798 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3799 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3800 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3801 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3803 * config/vax/xm-vax.h: Delete file.
3804 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3805 * config/vax/xm-vaxult2.h: Delete file.
3806 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3807 * config/vax/vaxult2.mh (XM_FILE): Delete.
3808 * config/vax/xm-vaxult.h: Delete file.
3809 * config/vax/vaxult.mh (XM_FILE): Delete.
3810 * config/vax/xm-vaxbsd.h: Delete file.
3811 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3813 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3814 * gdbarch.h, gdbarch.c: Re-generate.
3815 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3816 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3817 * frame.h: Delete deprecated_read_fp from comments.
3818 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3819 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3821 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3823 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3824 trampoline in OpenBSD 3.5-current.
3826 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3829 * Makefile.in: Remove embedded page breaks.
3831 2004-08-04 Jim Blandy <jimb@redhat.com>
3833 * regcache.c (regcache_raw_read): Assert that, after calling
3834 target_fetch_registers, the register we're reading is cached.
3836 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3837 a call to 'internal_error', with a more helpful error message.
3838 * rs6000-tdep.c (e500_pseudo_register_read,
3839 e500_pseudo_register_write, rs6000_store_return_value): Same.
3841 2004-08-04 Andrew Cagney <cagney@gnu.org>
3843 * Makefile.in: Update dependencies.
3845 2004-08-04 Jim Blandy <jimb@redhat.com>
3847 Change the layout of the PowerPC E500 raw register cache to allow
3848 the lower 32-bit halves of the GPRS to be their own raw registers,
3849 not pseudoregisters.
3850 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3851 add ppc_ev0_upper_regnum flag.
3852 * rs6000-tdep.c: #include "reggroups.h".
3853 (spe_register_p): Recognize the ev upper half registers as SPE
3855 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3857 (e500_move_ev_register): New function.
3858 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3859 vector registers are the pseudo-registers now, formed by splicing
3860 together the gprs and the upper-half registers.
3861 (e500_register_reggroup_p): New function.
3863 (P8, A4): New macro.
3864 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3865 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3867 (registers_e500): Rearrange register set so that the raw register
3868 set contains 32-bit GPRs and upper-half registers, and the SPE
3869 vector registers become pseudo-registers.
3870 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3871 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3872 register numbers are now the same for the E500 as they are for
3873 other PowerPC variants. Register e500_register_reggroup_p as the
3874 register group function for the E500.
3875 * Makefile.in (rs6000-tdep.o): Update dependencies.
3877 Adapt PPC E500 native support to the new raw regcache layout.
3878 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3879 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3880 (fetch_spe_register, store_spe_register): Handle fetching/storing
3881 all the SPE registers at once, if regno == -1. These now take
3882 over the job of fetch_spe_registers and store_spe_registers.
3883 (fetch_spe_registers, store_spe_registers): Deleted.
3884 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3885 unconditionally; they're always raw. Fetch/store SPE upper half
3886 registers, if present, instead of ev registers.
3887 (fetch_register, store_register): Remove sanity checks: gprs are
3888 never pseudo-registers now, so we never need to even mention any
3889 registers that are ever pseudoregisters.
3891 Use a fixed register numbering when communicating with the PowerPC
3893 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3894 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3895 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3897 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3898 init_sim_regno_table.
3899 * Makefile.in (gdb_sim_ppc_h): New variable.
3900 (rs6000-tdep.o): Update dependencies.
3902 2004-08-02 Andrew Cagney <cagney@gnu.org>
3904 * cris-tdep.c (cris_register_size): Restore function, still used
3907 * gdbarch.sh (deprecated_target_read_fp)
3908 (deprecated_frame_locals_address, deprecated_frame_args_address)
3909 (deprecated_frame_chain_valid, deprecated_frame_chain)
3910 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3911 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3912 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3913 * gdbarch.h, gdbarch.c: Re-generate.
3914 * regcache.c (deprecated_read_fp): Do not call
3915 DEPRECATED_TARGET_READ_FP_P.
3916 * infcmd.c (default_print_registers_info): Do not call
3917 DEPRECATED_DO_REGISTERS_INFO.
3918 * frame-base.c (default_frame_locals_address): Do not call
3919 DEPRECATED_FRAME_LOCALS_ADDRESS.
3920 (default_frame_args_address): Do not call
3921 DEPRECATED_FRAME_ARGS_ADDRESS.
3923 * gdbarch.sh (deprecated_register_raw_size)
3924 (deprecated_register_virtual_size:int): Delete.
3925 * gdbarch.h, gdbarch.c: Re-generate.
3926 * cris-tdep.c (cris_register_size): Delete.
3927 (cris_gdbarch_init): Update.
3928 * alpha-tdep.c (alpha_register_raw_size)
3929 (alpha_register_virtual_size): Delete.
3930 (alpha_gdbarch_init): Update.
3932 * gdbarch.sh (deprecated_register_virtual_type)
3933 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3934 (deprecated_dummy_write_sp): Delete.
3935 * gdbarch.h, gdbarch.c: Re-generate.
3937 * gdbarch.sh (deprecated_register_bytes): Delete.
3938 * gdbarch.h, gdbarch.c: Re-generate.
3939 * regcache.c (deprecated_register_bytes): New function.
3940 * regcache.h (deprecated_register_bytes): Declare.
3941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3942 * v850-tdep.c (v850_gdbarch_init): Update.
3943 * sh64-tdep.c (sh64_gdbarch_init): Update.
3944 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3945 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3946 * mcore-tdep.c (mcore_gdbarch_init): Update.
3947 * cris-tdep.c (cris_gdbarch_init): Update.
3948 * arm-tdep.c (arm_gdbarch_init): Update.
3949 * remote.c (init_remote_state): Update.
3950 * remote-vx.c (vx_prepare_to_store): Update.
3951 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3952 * irix5-nat.c (fetch_core_registers): Update.
3953 * cris-tdep.c (cris_register_bytes_ok): Update.
3954 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3956 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3957 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3958 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3959 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3960 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3961 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3962 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3963 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3964 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3965 with mips_insn16 and mips_insn32.
3967 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3968 * rs6000-tdep.c (rs6000_push_dummy_call)
3969 (rs6000_extract_return_value): Use register_size.
3970 * xstormy16-tdep.c (xstormy16_get_saved_register)
3971 (xstormy16_extract_return_value): Ditto.
3972 * valops.c (value_assign): Ditto.
3973 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3974 * v850-tdep.c (v850_extract_return_value): Ditto.
3975 * tracepoint.c (collect_symbol): Ditto.
3976 * target.c (debug_print_register): Ditto.
3977 * stack.c (frame_info): Ditto.
3978 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3979 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3980 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3981 (store_register_using_P): Ditto.
3982 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3983 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3984 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3985 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3986 * regcache.c (deprecated_read_register_bytes)
3987 (deprecated_write_register_bytes, read_register)
3988 (write_register): Ditto.
3989 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3990 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3991 * monitor.c (monitor_supply_register, monitor_fetch_register)
3992 (monitor_store_register): Ditto.
3993 * mn10300-tdep.c (mn10300_pop_frame_regular)
3994 (mn10300_print_register): Ditto.
3995 * mipsv4-nat.c (fill_fpregset): Ditto.
3996 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3997 (mips64_fill_fpregset): Ditto.
3998 * mi/mi-main.c (register_changed_p, get_register)
3999 (mi_cmd_data_write_register_values): Ditto.
4000 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4001 * irix5-nat.c (fill_gregset, fetch_core_registers):
4002 * infrun.c (write_inferior_status_register): Ditto.
4003 * infptrace.c (fetch_register, store_register): Ditto.
4004 * infcmd.c (default_print_registers_info): Ditto.
4005 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4006 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4007 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4008 * hpux-thread.c (hpux_thread_fetch_registers)
4009 (hpux_thread_store_registers): Ditto.
4010 * hppah-nat.c (store_inferior_registers, fetch_register):
4011 * findvar.c (value_from_register): Ditto.
4012 * dve3900-rom.c (fetch_bitmapped_register):
4013 * cris-tdep.c (cris_gdbarch_init): Ditto.
4014 * alpha-tdep.h: Ditto.
4015 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4017 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4018 DEPRECATED_REGISTER_RAW_SIZE from comments.
4019 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4020 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4021 DEPRECATED_REGISTER_RAW_SIZE.
4022 * findvar.c (value_of_register): Simplify by assuming that the
4023 registers raw and virtual sizes are identical.
4024 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4026 * arch-utils.c (generic_register_size): Simplify by assuming
4029 * regcache.c (legacy_read_register_gen, real_register)
4030 (legacy_write_register_gen): Delete, not used.
4032 * regcache.c (struct regcache_descr): Delete legacy_p.
4033 (init_legacy_regcache_descr): Delete function.
4034 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4035 Do not use deprecated register functions.
4036 (regcache_raw_read, deprecated_write_register_gen):
4037 (deprecated_read_register_gen, regcache_raw_write): Delete code
4038 predicated on legacy_p.
4039 (register_size): Delete check against register raw size.
4041 * cris-tdep.c (cris_register_type): Replace
4042 cris_register_virtual_type.
4043 (cris_gdbarch_init): Update, set register_type.
4045 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4046 * gdbarch.h, gdbarch.c: Re-generate.
4047 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4048 (arm_gdbarch_init) Do not set frameless function invocation.
4049 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4050 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4051 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4052 (frv_gdbarch_init): Do not set frameless function invocation.
4053 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4054 * sh-tdep.c (sh_gdbarch_init): Ditto.
4055 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4056 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4057 * avr-tdep.c (avr_gdbarch_init): Ditto.
4059 * blockframe.c (legacy_frame_chain_valid): Delete function.
4061 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4062 and pc. Update comments.
4063 (pc_in_dummy_frame): Delete function.
4064 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4066 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4067 call_hi, top and pc, use the id.
4068 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4070 * dummy-frame.c: Include "gdb_string.h".
4071 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4072 (generic_save_dummy_frame_tos): Delete.
4073 (dummy_frame_push): New function, replaces above.
4074 * dummy-frame.h: Update copyright.
4075 (dummy_frame_push): Declare.
4076 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4077 (generic_save_call_dummy_addr): Delete declarations.
4078 * infcall.c: Include "dummy-frame.h".
4079 (call_function_by_hand): Add locals caller_regcache,
4080 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4081 with call to frame_save_as_regcache plus cleanup. Delete calls to
4082 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4083 Move clear_proceed_status to just before the resume, add call to
4084 dummy_frame_push (discard cleanup).
4085 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4086 (dummy-frame.o): Add $(gdb_string_h).
4088 2004-08-01 Andrew Cagney <cagney@gnu.org>
4090 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4091 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4092 * dummy-frame.c (find_dummy_frame): Delete.
4093 (struct dummy_frame_cache, dummy_frame_sniffer)
4094 (dummy_frame_prev_register, dummy_frame_this_id)
4095 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4096 frame unwinder using a dummy_frame_cache.
4098 2004-08-01 Andrew Cagney <cagney@gnu.org>
4100 * frame.h (frame_save_as_regcache): Declare.
4101 * frame.c (frame_save_as_regcache): New function.
4102 (do_frame_read_register): Replace do_frame_unwind_register.
4103 (frame_pop): Use frame_save_as_regcache.
4104 * dummy-frame.c (generic_push_dummy_frame): Use
4105 frame_save_as_regcache.
4107 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4109 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4110 file as included until we record the first line in the linetable.
4112 2004-08-01 Andrew Cagney <cagney@gnu.org>
4114 * frame.h (deprecated_pop_dummy_frame)
4115 (deprecated_read_register_dummy)
4116 (deprecated_generic_find_dummy_frame): Delete.
4117 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4118 (deprecated_read_register_dummy)
4119 (deprecated_find_dummy_frame_regcache)
4120 (discard_innermost_dummy)
4121 (deprecated_pop_dummy_frame): Delete.
4122 (dummy_frame_this_id): Simplify.
4123 (struct dummy_frame): Delete "fp" and "sp".
4124 (find_dummy_frame): Simplify.
4125 (generic_push_dummy_frame): Do not set "fp" or "sp".
4126 (fprint_dummy_frames): Do not print "fp" and "sp"
4128 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4130 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4131 (struct i386_insn): New structure.
4132 (i386_match_insn): New function.
4133 (i386_frame_setup_skip_insns): New variable.
4134 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4135 array i386_frame_setup_insns of instructions that should be
4136 skipped inside the frame setup sequence.
4138 2004-08-01 Andrew Cagney <cagney@gnu.org>
4140 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4141 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4142 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4143 * stack.c (frame_info): Delete references to
4144 DEPRECATED_FRAME_INIT_SAVED_REGS and
4145 deprecated_get_frame_saved_regs.
4146 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4147 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4148 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4149 (frame_unwind_register_signed)
4150 (frame_unwind_register_unsigned)
4151 (frame_unwind_unsigned_register): Use register_size.
4152 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4153 (deprecated_frame_xmalloc_with_cleanup)
4154 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4155 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4157 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4158 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4159 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4160 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4162 * infcall.c (call_function_by_hand): Do not use
4163 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4164 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4165 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4166 DEPRECATED_STACK_ALIGN.
4168 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4170 Committed by Andrew Cagney.
4171 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4173 2004-08-01 Andrew Cagney <cagney@gnu.org>
4175 * mips-tdep.c (mips16_frame_cache)
4176 (mips16_frame_this_id, mips16_frame_prev_register)
4177 (mips16_frame_unwind, mips16_frame_sniffer)
4178 (mips16_frame_base_address, mips16_frame_base)
4179 (mips16_frame_base_sniffer, mips32_frame_cache)
4180 (mips32_frame_this_id, mips32_frame_prev_register)
4181 (mips32_frame_unwind, mips32_frame_sniffer)
4182 (mips32_frame_base_address, mips32_frame_base)
4183 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4184 separate heuristic mips16 and mips32 unwinders.
4185 (mips_stub_frame_cache, mips_stub_frame_this_id)
4186 (mips_stub_frame_prev_register)
4187 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4188 (mips_stub_frame_base_address, mips_stub_frame_base)
4189 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4190 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4191 match true mdebug frames.
4192 (non_heuristic_proc_desc): Add forward declaration.
4194 2004-08-01 Andrew Cagney <cagney@gnu.org>
4196 * config/mips/tm-irix6.h: Delete file.
4197 * config/mips/tm-irix5.h: Delete file.
4198 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4199 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4201 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4202 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4203 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4204 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4205 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4206 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4207 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4208 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4209 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4210 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4211 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4212 (TARGET_SIGNAL_RAW_VALUES): Delete.
4213 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4215 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4216 (TARGET_HW_WATCH_LIMIT): Delete.
4217 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4218 * minimon.h: Delete file.
4220 * trad-frame.c (trad_frame_get_this_base)
4221 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4223 * trad-frame.h (trad_frame_set_this_base)
4224 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4226 2004-07-31 Andrew Cagney <cagney@gnu.org>
4228 * trad-frame.c (trad_frame_get_prev_register): Rename
4229 trad_frame_get_prev_register.
4230 * vax-tdep.c (vax_frame_prev_register): Update.
4231 * trad-frame.h: Update.
4232 * trad-frame.c (trad_frame_get_register): Update.
4233 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4234 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4236 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4237 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4239 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4241 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4243 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4245 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4247 * s390-tdep.c (s390_frame_prev_register)
4248 (s390_stub_frame_prev_register)
4249 (s390_sigtramp_frame_prev_register): Update.
4250 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4251 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4252 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4253 * m88k-tdep.c (m88k_frame_prev_register)
4254 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4255 * m32r-tdep.c (m32r_frame_prev_register): Update.
4256 * hppa-tdep.c (hppa_frame_prev_register_helper)
4257 * frv-tdep.c (frv_frame_prev_register): Update.
4258 * d10v-tdep.c (d10v_frame_prev_register): Update.
4259 * cris-tdep.c (cris_frame_prev_register): Update.
4260 * avr-tdep.c (avr_frame_prev_register): Update.
4261 * arm-tdep.c (arm_prologue_prev_register)
4262 (arm_sigtramp_prev_register): Update.
4264 2004-07-31 Andrew Cagney <cagney@gnu.org>
4266 * frame.h (legacy_saved_regs_unwind)
4267 (legacy_frame_chain_valid, legacy_frame_p)
4268 (enum frame_type): Delete UNKNOWN_FRAME.
4269 * dummy-frame.c (dummy_frame_this_id): Simplify.
4270 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4271 * frame.c (struct frame_info): Delete the field "type".
4272 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4273 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4274 (legacy_saved_regs_unwind, legacy_frame_p)
4275 (frame_type_from_pc): Delete.
4276 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4277 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4279 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4281 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4284 * mips-nat.c: Remove file.
4285 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4286 (mips-nat.o): Remove dependency.
4288 * infptrace.c: Update copyright year.
4289 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4290 explicitly setting the buffer to all zeroes.
4292 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4293 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4295 2004-07-30 Andrew Cagney <cagney@gnu.org>
4297 * GDB 6.2 released from gdb_6_2-branch.
4299 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4301 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4303 * exec.c (exec_file_attach):
4304 * nto-tdep.c (nto_find_and_open_solib):
4305 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4306 * solib.c (solib_open):
4307 * somsolib.c (som_solib_sizeof_symbol_table):
4308 * source.c (is_regular_file, openp, open_source_file):
4309 * symfile.c (symfile_bfd_open):
4310 * wince.c (upload_to_device): Differentiate between the search for
4311 binary and source files.
4313 2004-07-30 Andrew Cagney <cagney@gnu.org>
4315 * complaints.c (_initialize_complaints): Pass NULL to
4316 add_setshow_zinteger_cmd for help_doc.
4317 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4319 2004-07-30 Andrew Cagney <cagney@gnu.org>
4322 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4323 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4324 $(PACKAGE).pot and update-po.
4325 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4326 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4327 (update-po): New rules.
4328 (localedir): Define using autoconf.
4329 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4330 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4331 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4332 * configure.in: Generate CATALOGS and LINGUAS from contents of
4333 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4334 * configure: Re-generate.
4335 * po/gdbtext: New file
4337 2004-07-30 Jerome Guitton <guitton@gnat.com>
4339 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4342 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4344 * dwarf2read.c (read_file_scope): Set producer if attribute
4346 (struct dwarf2_cu): Added new member producer.
4348 2004-07-30 Jerome Guitton <guitton@gnat.com>
4350 * inflow.c (kill_command): release file handles in BFD.
4351 * exec.c (exec_file_attach): Ditto.
4352 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4354 2004-07-29 Andrew Cagney <cagney@gnu.org>
4356 * PROBLEMS (mips-irix): Note that it is broken.
4358 2004-07-29 Andrew Cagney <cagney@gnu.org>
4360 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4361 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4363 * config/xm-nbsd.h: Delete file.
4364 * config/arm/xm-nbsd.h: Delete file.
4365 * config/i386/xm-nbsd.h: Delete file.
4366 * config/ns32k/xm-nbsd.h: Delete file.
4367 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4368 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4369 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4370 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4371 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4373 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4374 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4375 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4376 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4377 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4378 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4380 * config/powerpc/xm-linux.h: Delete empty file.
4381 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4382 * config/powerpc/linux.mh (XM_FILE): Delete.
4383 * config/m68k/xm-linux.h: Delete empty file.
4384 * config/m68k/linux.mh (XM_FILE): Delete.
4385 * config/ia64/xm-linux.h: Delete empty file.
4386 * config/ia64/linux.mh (XM_FILE): Delete.
4387 * config/arm/xm-linux.h: Delete empty file.
4388 * config/arm/linux.mh (XM_FILE): Delete.
4390 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4391 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4392 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4393 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4394 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4395 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4396 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4397 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4399 * config/m68k/xm-m68k.h: Delete file.
4400 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4402 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4403 * config/pa/xm-linux.h: Delete empty file.
4404 * config/pa/linux.mh (XM_FILE): Delete.
4405 * config/i386/xm-i386.h: Delete empty file.
4406 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4408 * config/i386/obsdaout.mh (XM_FILE): Delete.
4409 * config/i386/obsd64.mh (XM_FILE): Delete.
4410 * config/i386/fbsd64.mh (XM_FILE): Delete.
4411 * config/i386/nto.mh (XM_FILE): Delete.
4412 * config/i386/obsd.mh (XM_FILE): Delete.
4413 * config/i386/linux64.mh (XM_FILE): Delete.
4414 * config/i386/linux.mh (XM_FILE): Delete.
4415 * config/i386/i386sol2.mh (XM_FILE): Delete.
4416 * config/i386/i386gnu.mh (XM_FILE): Delete.
4417 * config/i386/fbsd.mh (XM_FILE): Delete.
4418 * config/i386/nbsd64.mh (XM_FILE): Delete.
4420 2004-07-29 Andrew Cagney <cagney@gnu.org>
4422 * config/pa/xm-linux.h: Do not include "floatformat.h".
4423 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4424 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4425 * config/i386/xm-i386.h: Do not include "floatformat.h".
4426 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4427 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4428 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4429 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4430 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4431 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4432 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4433 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4434 * configure, config.in: Regenerate.
4435 * configure.host (gdb_host_float_format, gdb_host_double_format)
4436 (gdb_host_long_double_format): Set according to the host.
4438 2004-07-29 Andrew Cagney <cagney@gnu.org>
4440 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4442 2004-07-28 Andrew Cagney <cagney@gnu.org>
4444 * PROBLEMS: Mention threads/1650.
4445 * NEWS: Mention the NPTL fix.
4447 2004-07-28 Andrew Cagney <cagney@gnu.org>
4449 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4450 (add_setshow_cmd_full): Make static.
4451 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4452 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4453 * cli/cli-decode.c (add_setshow_filename_cmd)
4454 (add_setshow_string_cmd): New functions.
4455 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4456 * mips-tdep.c (_initialize_mips_tdep): Update.
4457 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4458 * cli/cli-logging.c (_initialize_cli_logging): Update.
4459 * complaints.c (_initialize_complaints): Update.
4460 * remote.c (_initialize_remote): Update.
4462 2004-07-28 Andrew Cagney <cagney@gnu.org>
4464 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4465 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4466 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4467 print parameters. Make string parameters constant.
4468 * command.h: Update. Update copyright.
4469 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4470 * observer.c (_initialize_observer): Ditto.
4471 * frame.c (_initialize_frame): Ditto.
4472 * complaints.c (_initialize_complaints): Ditto.
4473 * maint.c (_initialize_maint_cmds): Ditto.
4474 * target.c (initialize_targets): Ditto.
4475 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4476 * infcall.c (_initialize_infcall): Ditto.
4477 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4478 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4479 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4480 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4481 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4483 2004-07-28 Andrew Cagney <cagney@gnu.org>
4485 * gdbtypes.c (lookup_primitive_typename): Delete function.
4486 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4487 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4488 * gdbtypes.c (lookup_typename): Ditto.
4489 * f-exp.y (yylex): Ditto.
4490 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4492 * scm-lang.c (c_builtin_types): Delete extern declaration.
4493 (scm_language_defn): Replace
4494 string_char_type and primitive_type_vector with
4495 la_language_arch_info.
4496 * jv-lang.c (java_language_defn): Replace
4497 string_char_type and primitive_type_vector with
4498 la_language_arch_info.
4499 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4500 c_builtin_types in comment.
4501 * c-lang.h (struct language_arch_info): Declare opaque.
4502 (c_language_arch_info): Declare.
4503 (c_builtin_types): Delete declaration.
4504 * c-lang.c (c_language_arch_info): Set string_char_type to
4505 builtin_char, not builtin_true_char. Make global.
4506 (c_builtin_types): Delete array.
4507 (asm_language_defn, minimal_language_defn): Replace
4508 string_char_type and primitive_type_vector with
4509 la_language_arch_info.
4511 2004-07-28 Andrew Cagney <cagney@gnu.org>
4513 * gdbtypes.h (struct builtin_type): Rename true_char to
4515 * gdbtypes.c (gdbtypes_post_init): Update.
4516 * c-lang.c (arch_info): New function.
4517 (enum c_primitive_types): New enum.
4518 (c_language_defn): Instead of string_char_type and
4519 primitive_type_vector set la_language_arch_info.
4521 2004-07-28 Andrew Cagney <cagney@gnu.org>
4523 * language.h (struct language_arch_info): Fix typo
4524 s/primative/primitive/.
4525 * gdbtypes.c (lookup_primitive_typename): Ditto.
4526 * language.c (language_lookup_primitive_type_by_name)
4527 (unknown_language_arch_info): Ditto.
4529 2004-07-27 Andrew Cagney <cagney@gnu.org>
4531 * defs.h (enum language): Add nr_languages.
4532 * language.h (struct language_arch_info): Define.
4533 (struct language_defn): Add la_language_arch_info.
4534 (language_lookup_primative_type_by_name): Declare.
4535 (language_string_char_type): Declare.
4536 * language.c (_initialize_language, language_gdbarch_post_init)
4537 (struct language_gdbarch, language_gdbarch_data): Implement
4538 per-architecture language information.
4539 (unknown_language_arch_info, language_string_char_type)
4540 (language_lookup_primative_type_by_name): New functions.
4541 (unknown_language_defn, auto_language_defn)
4542 (local_language_defn): Set la_language_arch_info to
4543 unknown_language_arch_info.
4544 (unknown_builtin_types): Delete.
4545 * gdbtypes.c (lookup_primitive_typename): Use
4546 language_lookup_primative_type_by_name.
4547 (create_string_type): Use language_string_char_type.
4548 * values.c (value_from_string): Use language_string_char_type.
4549 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4550 * p-lang.c (pascal_language_defn): Ditto.
4551 * m2-lang.c (m2_language_defn): Ditto.
4552 * jv-lang.c (java_language_defn): Ditto.
4553 * objc-lang.c (objc_language_defn): Ditto.
4554 * f-lang.c (f_language_defn): Ditto.
4555 * c-lang.c (c_language_defn, cplus_language_defn)
4556 (asm_language_defn, minimal_language_defn): Ditto.
4558 2004-07-27 Andrew Cagney <cagney@gnu.org>
4560 * gdbtypes.h (struct builtin_type): Declare.
4561 (builtin_type): Declare.
4562 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4563 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4564 (gdbtypes_post_init): New function.
4565 (builtin_type): New function.
4567 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4569 * remote-m32r-sdi.c: Fix breakpoint bug.
4570 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4571 recv_char_data, recv_long_data): New functions to replace communication
4574 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4576 Document PR threads/1650.
4577 * PROBLEMS (Threads): Document problem with many threads
4579 2004-07-26 Andrew Cagney <cagney@gnu.org>
4581 * gdb-mi.el: Move from here ...
4582 * mi/gdb-mi.el: ... to here.
4584 2004-07-26 Andrew Cagney <cagney@gnu.org>
4586 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4587 * main.c (captured_main): When in batch mode always detach.
4589 2004-07-26 Andrew Cagney <cagney@gnu.org>
4591 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4592 and h8300 as broken.
4593 * NEWS: END-OF-LIFE frame compatibility module.
4594 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4597 2004-07-26 Andrew Cagney <cagney@gnu.org>
4599 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4600 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4601 * wince.c (_initialize_wince): Update.
4602 * win32-nat.c (_initialize_win32_nat): Update.
4603 * varobj.c (_initialize_varobj): Update.
4604 * valops.c (_initialize_valops): Update.
4605 * utils.c (initialize_utils, initialize_utils): Update.
4606 * tui/tui-win.c (_initialize_tui_win): Update.
4607 * top.c (init_main): Update.
4608 * symfile.c (_initialize_symfile): Update.
4609 * source.c (_initialize_source): Update.
4610 * somsolib.c (_initialize_som_solib): Update.
4611 * solib.c (_initialize_solib): Update.
4612 * solib-frv.c (_initialize_frv_solib): Update.
4613 * serial.c (_initialize_serial): Update.
4614 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4615 * remote.c (_initialize_remote, _initialize_remote): Update.
4616 * remote-vx.c (_initialize_vx): Update.
4617 * remote-utils.c (_initialize_sr_support): Update.
4618 * remote-sds.c (_initialize_remote_sds): Update.
4619 * remote-mips.c (_initialize_remote_mips): Update.
4620 * remote-e7000.c (_initialize_remote_e7000): Update.
4621 * proc-api.c (_initialize_proc_api): Update.
4622 * printcmd.c: Update.
4623 * parse.c (_initialize_parse): Update.
4624 * pa64solib.c (_initialize_pa64_solib): Update.
4625 * p-valprint.c (_initialize_pascal_valprint): Update.
4626 * monitor.c (_initialize_remote_monitors): Update.
4627 * mips-tdep.c (_initialize_mips_tdep): Update.
4628 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4629 * maint.c (_initialize_maint_cmds): Update.
4630 * lin-lwp.c (_initialize_lin_lwp): Update.
4631 * language.c (_initialize_language): Update.
4632 * kod.c (_initialize_kod): Update.
4633 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4634 * i386-tdep.c (_initialize_i386_tdep): Update.
4635 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4636 * gdbarch.sh: Update.
4637 * gdbarch.c: Re-generate.
4638 * gdb-events.sh: Update.
4639 * gdb-events.c: Re-generate.
4640 * frame.c (_initialize_frame): Update.
4642 * demangle.c (_initialize_demangler): Update.
4643 * dcache.c (_initialize_dcache): Update.
4644 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4645 * cp-valprint.c (_initialize_cp_valprint): Update.
4646 * corefile.c (_initialize_core): Update.
4647 * command.h: Update.
4648 * cli/cli-decode.h: Update.
4649 * cli/cli-cmds.c (init_cli_cmds): Update.
4650 * charset.c (_initialize_charset): Update.
4651 * breakpoint.c (_initialize_breakpoint): Update.
4652 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4653 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4654 * aix-thread.c (_initialize_aix_thread): Update.
4656 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4658 Partial fix for PR backtrace/1718.
4659 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4660 that GCC migrates into the prolugue. Don't handle any
4661 instructions that clobber %ebx.
4663 2004-07-23 Andrew Cagney <cagney@gnu.org>
4665 Use regcache_raw_collect instead of regcache_collect.
4666 * regcache.h (regcache_collect): Delete declaration.
4667 * regcache.c (regcache_colect): Delete function.
4668 * win32-nat.c (do_child_store_inferior_registers): Update.
4669 * sol-thread.c (sol_thread_store_registers): Update.
4670 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4671 * rs6000-nat.c (store_register): Update.
4672 * remote.c (store_register_using_P, remote_store_registers): Update.
4673 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4674 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4675 (fill_vrregset, store_spe_registers, fill_gregset)
4676 (fill_gregset): Update.
4677 * nto-procfs.c (procfs_store_registers): Update.
4678 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4679 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4680 * m68klinux-nat.c (store_register, fill_gregset): Update.
4681 * m68k-tdep.c (fill_gregset): Update.
4682 * infptrace.c (store_register): Update.
4683 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4684 * i386-linux-nat.c (store_register, fill_gregset): Update.
4685 * hppa-linux-nat.c (fill_gregset): Update.
4686 * go32-nat.c (store_register): Update.
4687 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4688 (store_fp_regs): Update.
4689 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4690 (store_nwfpe_extended, store_fpregister, store_fpregs)
4691 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4692 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4693 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4694 (store_regs_user_thread, store_regs_kernel_thread): Update.
4696 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4698 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4699 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4701 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4702 member of `struct comp_unit'.
4704 2004-07-23 Andrew Cagney <cagney@gnu.org>
4706 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4707 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4709 2004-07-23 Martin Hunt <hunt@redhat.com>
4710 Kevin Buettner <kevinb@redhat.com>
4712 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4713 alignment was being added to the offset instead of multiplied.
4715 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4717 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4718 changed signal trampoline in OpenBSD 3.5-current.
4720 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4721 <machine/pcb.h> and "bsd-kvm.h".
4722 (sparc64nbsd_supply_pcb): New function.
4723 (_initialize_sparc64nbsd_nat): Renamed from
4724 _initialize_sparcnbsd_nat. Enable libkvm interface.
4725 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4726 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4727 (LOADLIBES): New variable.
4729 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4731 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4733 2004-07-21 Andrew Cagney <cagney@gnu.org>
4735 Use regcache_raw_supply instead of supply_register.
4736 * regcache.h (supply_register): Delete declaration.
4737 * regcache.c (supply_register): Delete function.
4738 * wince.c (do_child_fetch_inferior_registers): Update.
4739 * win32-nat.c (do_child_fetch_inferior_registers)
4740 (fetch_elf_core_registers): Update.
4741 * v850ice.c (v850ice_fetch_registers): Update.
4742 * thread-db.c (thread_db_store_registers): Update.
4743 * sol-thread.c (sol_thread_store_registers): Update.
4744 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4745 * rs6000-nat.c (fetch_register): Update.
4746 * rom68k-rom.c (rom68k_supply_one_register): Update.
4747 * remote.c (remote_wait, remote_async_wait): Update.
4748 * remote-st.c (get_hex_regs): Update.
4749 * remote-sim.c (gdbsim_fetch_register): Update.
4750 * remote-sds.c (sds_fetch_registers): Update.
4751 * remote-rdp.c (remote_rdp_fetch_register): Update.
4752 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4753 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4754 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4755 * remote-hms.c (init_hms_cmds): Update.
4756 * remote-est.c (init_est_cmds): Update.
4757 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4758 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4759 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4760 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4761 (fetch_register, supply_vrregset, supply_vrregset)
4762 (fetch_spe_registers): Update.
4763 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4764 * monitor.c (monitor_supply_register): Update.
4765 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4766 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4767 (mipsnbsd_supply_fpreg): Update.
4768 * mips-nat.c (fetch_inferior_registers)
4769 (fetch_core_registers): Update.
4770 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4771 (supply_fpregset, mips64_supply_gregset)
4772 (mips64_supply_fpregset): Update.
4773 * m68klinux-nat.c (fetch_register, supply_gregset)
4774 (supply_fpregset): Update.
4775 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4776 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4777 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4778 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4779 * infptrace.c (fetch_register): Update.
4780 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4781 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4782 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4783 (gnu_fetch_registers, gnu_store_registers): Update.
4784 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4785 * i386-linux-nat.c (fetch_register, supply_gregset)
4786 (dummy_sse_values): Update.
4787 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4788 * hppah-nat.c (fetch_register): Update.
4789 * hppa-linux-nat.c (fetch_register, supply_gregset)
4790 (supply_fpregset): Update.
4791 * go32-nat.c (fetch_register): Update.
4792 * dve3900-rom.c (fetch_bitmapped_register)
4793 (_initialize_r3900_rom): Update.
4794 * cris-tdep.c (supply_gregset): Update.
4795 * abug-rom.c (init_abug_cmds): Update.
4796 * core-aout.c (fetch_core_registers): Update.
4797 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4798 (fetch_register, fetch_fp_register): Update.
4799 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4800 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4801 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4802 * alphanbsd-tdep.c (fetch_core_registers): Update.
4803 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4804 * alpha-nat.c (fetch_osf_core_registers)
4805 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4806 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4807 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4809 2004-07-21 Andrew Cagney <cagney@gnu.org>
4811 * PROBLEMS: Mention breakpoints/1702.
4812 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4813 that is known to work.
4815 2004-07-21 Andrew Cagney <cagney@gnu.org>
4817 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4818 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4819 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4820 (handle_inferior_event): Wrap call to deprecated
4821 IGNORE_HELPER_CALL in #ifdef.
4822 * config/mips/tm-nbsd.h: Update.
4824 2004-07-20 Jim Blandy <jimb@redhat.com>
4826 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4827 bfd_mach_ppc has no segment registers.
4829 Include PowerPC SPR numbers for special-purpose registers.
4830 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4831 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4832 new member in initializer.
4833 (S, S4, SN4, S64): New macros for defining special-purpose
4835 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4836 registers_403, registers_403GC, registers_505, registers_860,
4837 registers_601, registers_602, registers_603, registers_604,
4838 registers_750, registers_e500): Use them.
4840 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4841 replace references with expression used to initialize variable.
4843 2004-07-20 Andrew Cagney <cagney@gnu.org>
4845 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4847 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4848 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4849 (s390_sigtramp_frame_sniffer): Update.
4850 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4851 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4852 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4853 (mips32_fetch_instruction): Update.
4854 * mcore-tdep.c (get_insn): Update.
4855 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4856 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4857 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4858 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4859 (i386_linux_rt_sigtramp_start): Update.
4860 * i386-linux-nat.c (child_resume): Update.
4861 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4862 * hppa-linux-tdep.c (insns_match_pattern): Update.
4863 * gdbcore.h: Update.
4864 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4865 * frame.c (safe_frame_unwind_memory): Update.
4866 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4867 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4868 * alpha-tdep.c (alpha_read_insn): Update.
4870 2004-07-20 Andrew Cagney <cagney@gnu.org>
4872 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4873 containing both bytes and mask. Add "frame_type".
4874 * tramp-frame.c (tramp_frame_start): Update.
4875 (tramp_frame_prepend_unwinder): Update.
4876 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4877 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4878 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4879 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4881 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4883 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4884 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4885 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4886 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4888 2004-07-17 Andrew Cagney <cagney@gnu.org>
4890 * NEWS, PROBLEMS: Update for 6.2.
4892 * README: Update to 6.2.
4894 * utils.c (xvasprintf): Call xstrvprintf.
4896 * parse.c: Update copyright.
4897 (null_post_parser): Eliminate ARGSUSED.
4899 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4900 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4901 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4903 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4904 * ppc-linux-nat.c: Use "Linux kernel".
4905 * hppa-linux-tdep.c: Use GNU/Linux.
4906 * hppa-linux-nat.c: Use GNU/Linux.
4907 * dwarfread.c: Add [sic] to use of Linux.
4909 * hppa-linux-nat.c: Do not include <string.h>.
4910 (supply_fpregset): Remove "register" attribute.
4912 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4914 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4916 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4917 * configure, config.in: Regenerated.
4919 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4921 (vaxbsd_supply_pcb): New function.
4922 (_initialize_vaxbsd_nat): New prototype and function.
4923 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4925 (LOADLIBES): New variable.
4926 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4927 (LOADLIBES): New variable.
4928 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4929 (LOADLIBES): New variable.
4930 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4932 2004-07-16 Andrew Cagney <cagney@gnu.org>
4934 * defs.h (event_loop_p): Replace variable declaration with macro,
4936 * main.c (captured_main): Delete options "-async" and "-noasync".
4937 (event_loop_p): Delete variable.
4938 * NEWS: Mention that "-async" and "-noasync" were removed.
4940 2004-07-16 Andrew Cagney <cagney@gnu.org>
4942 * remote-m32r-sdi.c: Re-indent.
4944 2004-07-16 Jim Blandy <jimb@redhat.com>
4946 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4947 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4948 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4949 missing MPC823 SPRs.
4950 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4951 incorrect. (This was corrected in GDB's register name tables on
4954 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4955 should be "esasrr" ("ESA Save and Restore Register").
4957 2004-07-16 Andrew Cagney <cagney@gnu.org>
4959 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4960 calls, no longer applicable. Update comments and rename parameter
4961 "step_frame" to "return_frame".
4963 2004-07-16 Andrew Cagney <cagney@gnu.org>
4965 * frame.c (fprint_field): New function.
4966 (fprint_frame_id): Use fprint_field.
4968 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4970 * ada-lang.c (ada_language_defn): Remove commented out code.
4972 2004-07-15 Jim Blandy <jimb@redhat.com>
4974 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4975 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4977 2004-07-14 Jim Blandy <jimb@redhat.com>
4979 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4981 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4983 * ppc-tdep.h (ppc_num_srs): New enum constant.
4985 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4986 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4987 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4988 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4989 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4990 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4991 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4992 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4993 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4994 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4995 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4996 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4997 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4998 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4999 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5000 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5001 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5002 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5003 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5004 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5005 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5006 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5007 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5008 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5009 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5010 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5011 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5012 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5013 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5014 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5015 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5016 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5017 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5018 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5019 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5020 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5021 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5022 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5023 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5024 special-purpose register numbers.
5026 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5027 manual mentions 'md_twb', but many mention 'm_twb', and at that
5028 point in the register list.)
5030 2004-07-14 Andrew Cagney <cagney@gnu.org>
5032 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5033 instead of "internal-error".
5035 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5037 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5038 that was inserted inside a comment.
5040 2004-07-10 Randolph Chung <tausq@debian.org>
5042 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5044 (hppa_hpux_push_dummy_code): New function.
5045 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5046 Set find_global_pointer method.
5048 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5050 * NEWS: Mention BSD libkvm interface.
5052 2004-07-10 Michael Snyder <msnyder@redhat.com>
5054 * symfile.c (generic_load): Comment typo.
5055 * stack.c (get_selected_block): Ditto.
5056 * regcache.c (regcache_cooked_read): Ditto.
5057 * monitor.c (monitor_debug): Ditto.
5058 * mips-tdep.c (mips_read_pc): Ditto.
5059 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5060 * gdb_mbuild.sh: Ditto.
5061 * gdbarch.sh: Ditto.
5064 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5066 * ada-tasks.c: Remove file.
5068 Remove ARI problems:
5070 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5073 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5075 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5076 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5077 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5078 (UMIN_OF_SIZE): Remove.
5079 (max_of_type): New function to replace orphan macro in gdbtypes.h
5080 (min_of_type): Ditto.
5081 (discrete_type_high_bound): Use max_of_type.
5082 (discrete_type_low_bound): Use min_of_type.
5083 (possible_user_operator_p): Move operator to beginning of line.
5084 (ada_is_variant_part): Ditto.
5085 (ensure_lval): Rewrite to avoid deprecated operations.
5086 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5087 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5088 (ada_enum_name): Remove assignments in 'if' statements.
5089 (build_ada_types): Add gdbarch parameter.
5090 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5091 with gdbarch_data_register_post_init.
5092 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5095 * ada-valprint.c (inspect_it): Remove declaration.
5096 (repeat_count_threshold): Remove declaration.
5097 (ada_print_floating): Remove assignments in 'if' statements.
5098 (print_str): Move operator to beginning of line.
5100 2004-07-08 Jim Blandy <jimb@redhat.com>
5102 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5104 2004-07-08 Bob Rossi <bob@brasko.net>
5106 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5108 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5110 * language.h (struct_language_defn): Add new function pointer:
5111 la_class_name_from_physname. Also add new prototype for
5112 language_class_name_from_physname.
5113 * language.c (language_class_name_from_physname): New function.
5114 (unk_lang_class_name): Ditto.
5115 (unknown_language_defn, auto_language_defn): Change
5116 to add unk_lang_class_name function pointer for
5117 la_class_name_from_physname.
5118 (local_language_defn): Ditto.
5119 * dwarf2read.c (guess_structure_name): Change to call
5120 language_class_name_from_physname.
5121 (determine_class_name): Ditto.
5122 * cp-support.c (class_name_from_physname): Renamed.
5123 (cp_class_name_from_physname): New name of function.
5124 * cp-support.h: Ditto.
5125 * c-lang.c (c_language_defn): Change to add NULL
5126 for class_name_from_physname function pointer.
5127 (cplus_language_defn): Change to add cp_class_name_from_physname.
5128 * jv-lang.c (java_class_name_physname): New function.
5129 (java_find_last_component): New static routine.
5130 (java_language_defn): Add java_class_name_from_physname pointer.
5131 * ada-lang.c (ada_language_defn): Change to add NULL
5132 for class_name_from_physname function pointer.
5133 * f-lang.c (f_language_defn): Ditto.
5134 * m2-lang.c (m2_language_defn): Ditto.
5135 * objc-lang.c (objc_language_defn): Ditto.
5136 * p-lang.c (pascal_language_defn): Ditto.
5137 * scm-lang.c (scm_language_defn): Ditto.
5139 2004-07-06 Andrew Cagney <cagney@gnu.org>
5141 Patch from Bart Robinson.
5142 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5143 (O_LARGEFILE): Define to 0, if not defined.
5145 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5147 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5148 <machine/pcb.h> and "bsd-kvm.h".
5149 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5150 (m68kbsd_supply_pcb): New function.
5151 (_initialize_m68kbsd_nat): New prototype and function.
5152 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5153 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5154 (LOADLIBES): New variable.
5155 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5156 (LOADLIBES): New variable.
5158 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5160 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5162 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5164 (bsd_kvm_cmdlist): New variable.
5165 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5166 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5167 command and "kvm proc" command.
5168 * Makefile.in (bsd-kvm.o): Update dependencies.
5170 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5172 * osabi.c: Update copyright year.
5173 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5174 notes if EI_OSABI is set to ELFOSABI_HPUX.
5176 2004-07-01 Michael Snyder <msnyder@redhat.com>
5178 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5179 that seems to have gotten whacked out of line.
5181 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5183 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5186 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5188 * ada-lang.c (decode_packed_array): Minor change to comment.
5189 (ada_value_slice_ptr): New function.
5190 (ada_value_slice): New function.
5191 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5192 test. Don't know why it is there.
5193 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5194 to avoid dereferencing huge arrays from which one is slicing.
5195 (empty_array): Correct to return an array rather than
5197 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5198 on empty arrays (let'em use 'FIRST instead).
5200 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5202 Address complaints from gdb_ari.sh:
5204 * ada-exp.y: Include gdb_string.h rather than string.h.
5205 (convert_char_literal): Reformat declaration.
5206 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5207 * ada-lex.l: Change use of free to xfree (the macro would do so
5208 anyway, but this is harmless).
5209 Include gdb_string.h rather than string.h.
5210 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5212 * ada-lang.c (parse): Remove K&Rism in parameter list.
5213 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5215 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5217 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5220 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5222 * alphabsd-nat.c: Update copyright year.
5223 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5225 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5227 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5228 (i386_cygwin_in_solib_call_trampoline): New function.
5229 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5230 and skip_trampoline_code gdbarch methods.
5232 2004-06-29 Jim Blandy <jimb@redhat.com>
5234 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5235 name actually used in the dependency lists.
5237 2004-06-29 Randolph Chung <tausq@debian.org>
5239 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5241 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5243 * win32-nat.c (child_pid_to_exec_file): New function.
5244 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5247 2004-06-28 Andrew Cagney <cagney@gnu.org>
5249 * defs.h (xstrvprintf): Declare.
5250 * utils.c (xstrvprintf): New function.
5251 (internal_vproblem, xstrprintf, xasprintf)
5252 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5253 * serial.c (serial_printf): Ditto.
5254 * complaints.c (vcomplaint): Ditto.
5256 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5258 * infcmd.c (attach_command): Move call to target_terminal_inferior
5259 behind loading symbol table.
5261 2004-06-28 Andrew Cagney <cagney@gnu.org>
5263 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5264 change - add back extern deprecated_ui_loop_hook declaration.
5266 2004-06-28 Andrew Cagney <cagney@gnu.org>
5268 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5270 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5271 (c_value_of_variable): Ditto.
5272 * utils.c (internal_vproblem): Ditto.
5273 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5274 * remote.c (add_packet_config_cmd): Ditto.
5275 * remote-rdp.c (rdp_set_command_line): Ditto.
5276 * regcache.c (regcache_dump): Ditto.
5277 * frv-tdep.c (new_variant, new_variant): Ditto.
5278 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5279 (fbsd_find_memory_regions): Ditto.
5280 * breakpoint.c (create_thread_event_breakpoint)
5281 (create_breakpoints): Ditto.
5282 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5283 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5285 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5287 * ada-lang.c: Re-indent file, with some massaging to help indent
5288 a bit when the result is otherwise really too ugly.
5290 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5292 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5293 code_addr_p and special_addr_p to 'unsigned int'.
5295 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5297 * i386v4-nat.c: Update copyright year and tweak comment.
5298 (regmap): Remove trailing comma.
5299 (supply_gregset): Rename local variable i to regnum. Call
5300 regcache_raw_supply instead of supply_register.
5301 (fill_gregset): Rename argument regno to regnum. Call
5302 regcache_raw_collect instead of regcache_collect.
5304 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5306 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5308 (frame_id_build, frame_id_build_special): Update comments.
5309 (frame_id_build_wild): New prototype.
5310 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5311 struct frame_id fields.
5312 (frame_id_build_wild): New function.
5313 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5315 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5317 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5320 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5322 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5324 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5326 * ada-lang.c: Re-indent file.
5328 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5330 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5331 (no_symtab_msg): Likewise.
5333 2004-06-27 Andreas Schwab <schwab@suse.de>
5335 * source.c: Fix whitespace.
5337 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5339 * configure.in: Include <sys/param.h> for td_pcb test.
5340 * configure: Regenerated.
5342 * i386nbsd-nat.c: New file.
5343 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5344 i386obsd-nat.c and i386obsd-tdep.c.
5345 (i386nbsd-nat.o): New dependency.
5346 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5348 (LOADLIBES): New variable.
5349 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5351 (LOADLIBES): New variable.
5353 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5354 (LOADLIBES): New variable.
5356 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5357 fetching from BSD_KVM_PADDR. Correctly lookup address for
5360 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5362 (amd64fbsd_supply_pcb): New funcion.
5363 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5365 2004-06-27 <david@streamline-computing.com>
5367 Partial fix for PR cli/1056.
5368 * valarith.c: Check for zero in division and remainder
5371 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5373 * i387-tdep.c: Remove excessive whitespace.
5375 2004-06-26 Andrew Cagney <cagney@gnu.org>
5377 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5378 * gdb-events.h, gdb-events.c: Re-generate.
5379 * tui/tui-hooks.c (tui_install_hooks): Update.
5380 (tui_remove_hooks): Update.
5381 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5383 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5385 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5386 (gregset_t, fpregset_t): Remove typedefs.
5387 (REG_OFFSET): Rename argument.
5388 (amd64bsd_r_reg_offset): Rename from reg_offset.
5389 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5391 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5393 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5395 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5397 * vax-tdep.c: Tweak comment.
5399 Add OpenBSD/hppa support.
5400 * NEWS (New native configurations): Mention OpenBSD/hppa.
5401 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5402 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5404 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5405 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5406 * configure.host: Add hppa*-*-openbsd*.
5407 * configure.tgt: Add hppa*-*-openbsd*.
5409 2004-06-25 Andrew Cagney <cagney@gnu.org>
5411 * defs.h (deprecated_ui_loop_hook): Deprecated.
5412 * wince.c (child_wait): Update.
5413 * win32-nat.c (child_wait): Update.
5414 * v850ice.c (v850ice_wait): Update.
5415 * top.c (deprecated_ui_loop_hook): Update.
5417 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5418 (do_unix_readchar): Update.
5419 * ser-tcp.c (net_open): Update.
5420 * remote-sim.c (gdb_os_poll_quit): Update.
5421 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5423 2004-06-24 Andrew Cagney <cagney@gnu.org>
5425 * defs.h (deprecated_pre_add_symbol_hook)
5426 (deprecated_post_add_symbol_hook): Deprecated.
5427 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5428 (symbol_file_add_with_addrs_or_offsets): Update references.
5430 2004-06-24 Andrew Cagney <cagney@gnu.org>
5432 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5433 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5434 * wince.c (ui_loop_hook): Delete extern declaration.
5435 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5436 * v850ice.c (ui_loop_hook): Delete extern declaration..
5437 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5438 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5439 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5440 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5441 ui_loop_hook declaration.
5443 2004-06-24 Andrew Cagney <cagney@gnu.org>
5445 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5446 entry_func_highpc fields.
5447 * objfiles.c (init_entry_point_info): Do not clear
5448 entry_func_lowpc and entry_func_highpc.
5449 (objfile_relocate): Do not relocate entry_func_lowpc and
5451 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5453 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5455 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5456 entry_func_lowpc and entry_func_highpc with call to
5459 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5461 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5462 quad-precision floating point arguments in registers.
5464 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5466 From Michael Mueller <m.mueller99@kay-mueller.de>:
5467 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5470 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5472 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5474 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5475 untriggered watchpoints to a separate if clause. Update function
5476 comment regarding STOPPED_BY_WATCHPOINT argument.
5478 2004-06-22 Jim Blandy <jimb@redhat.com>
5480 * gdbarch.sh: Doc fix.
5482 2004-06-21 Martin Hunt <hunt@redhat.com>
5483 Kevin Buettner <kevinb@redhat.com>
5485 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5486 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5487 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5488 to set_gdbarch_sp_regnum(). Use cooked register number.
5489 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5491 2004-06-21 Andrew Cagney <cagney@gnu.org>
5493 * gdbarch.sh: When the macro field is empty, do not generate a
5494 macro definition. When the macro field is "=", generate the macro
5495 name from the upper-case function name.
5496 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5497 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5498 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5499 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5500 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5501 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5502 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5503 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5504 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5505 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5506 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5507 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5508 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5509 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5510 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5511 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5512 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5513 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5514 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5515 (DEPRECATED_USE_STRUCT_CONVENTION)
5516 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5517 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5518 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5519 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5520 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5521 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5522 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5523 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5524 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5525 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5526 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5527 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5528 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5529 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5530 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5531 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5532 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5533 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5535 2004-06-21 Andrew Cagney <cagney@gnu.org>
5537 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5538 macro name, and the function rather than macro value. Only wrap
5539 macro print statements in #ifdef. Move format logic to where it
5541 * gdbarch.c: Re-generate.
5543 * gdbarch.sh (read): Delete "print_p" and "description", add
5544 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5545 Delete references to print_p.
5546 (TARGET_ARCHITECTURE): Delete print predicate.
5547 * gdbarch.c: Re-generate.
5549 * gdbarch.sh: Check that multi-arch methods do not provide a
5551 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5552 (print_registers_info, print_float_info, print_vector_info)
5553 (adjust_breakpoint_address, remote_translate_xfer_address)
5554 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5555 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5556 name from the multi-arch definition.
5558 2004-06-20 Andrew Cagney <cagney@gnu.org>
5560 * gdbarch.sh: Sort by the function, instead of macro name.
5561 * gdbarch.c: Re-generate.
5563 2004-06-20 Andrew Cagney <cagney@gnu.org>
5565 * gdbarch.sh: Use the function, instead of macro name in
5566 errors and the log file.
5567 (return_value): Remove stray ":" in spec.
5569 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5570 * gdbarch.h, gdbarch.c: Re-generate.
5571 * Makefile.in (arch-utils.o): Update dependencies.
5572 * values.c (using_struct_return): Move code calling
5573 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5574 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5575 to legacy_return_value, simplify.
5576 * infcmd.c (print_return_value): Move code calling
5577 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5578 to legacy_return_value, simplify.
5579 * infcall.c (call_function_by_hand): Move code calling
5580 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5581 * arch-utils.c: Update copyright. Include "gdbcore.h".
5582 (legacy_return_value): New function.
5583 * arch-utils.h: Update copyright.
5584 (legacy_return_value): Declare.
5586 2004-06-20 Andrew Cagney <cagney@gnu.org>
5588 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5589 * gdbarch.h, gdbarch.c: Re-generate.
5590 * values.c (using_struct_return): Update call.
5591 * mcore-tdep.c: Update comment.
5592 * infcall.c (call_function_by_hand): Update comment.
5593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5594 * arch-utils.h (always_use_struct_convention): Update.
5595 * v850-tdep.c (v850_gdbarch_init): Update.
5596 * sh64-tdep.c (sh64_gdbarch_init): Update.
5597 * sh-tdep.c (sh_gdbarch_init): Update.
5598 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5599 * mips-tdep.c (mips_gdbarch_init): Update.
5600 * mcore-tdep.c (mcore_gdbarch_init): Update.
5601 * m32r-tdep.c (m32r_gdbarch_init): Update.
5602 * ia64-tdep.c (ia64_gdbarch_init): Update.
5603 * h8300-tdep.c (h8300_gdbarch_init): Update.
5604 * frv-tdep.c (frv_gdbarch_init): Update.
5605 * cris-tdep.c (cris_gdbarch_init): Update.
5606 * arm-tdep.c (arm_gdbarch_init): Update.
5607 * alpha-tdep.c (alpha_gdbarch_init): Update.
5609 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5611 * PROBLEMS: Add more specific information, and a work-around,
5614 2004-06-18 Andrew Cagney <cagney@gnu.org>
5616 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5617 * gdbarch.h, gdbarch.c: Re-generate.
5618 * ada-lang.c (ada_finish_decode_line_1): Update.
5619 * infrun.c (handle_inferior_event): Update.
5620 * infcall.c (find_function_addr): Update.
5621 * linespec.c (minsym_found): Update.
5622 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5624 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5625 * cli/cli-cmds.c (disassemble_command): Update.
5626 * vax-tdep.c (vax_gdbarch_init): Update.
5628 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5630 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5632 2004-06-17 Andrew Cagney <cagney@gnu.org>
5634 GDB 6.1.1 released from the GDB 6.1 branch.
5635 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5638 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5641 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5642 operation as a uleb128. Found by Michael Coulter.
5644 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5646 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5648 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5649 to ada-lang.h; this is needed to be able to implement the kill command
5652 (task_entry): Ditto.
5654 (ada_build_task_list): Ditto.
5656 * ada-lang.c: Conditionalize routines and data structures related
5657 to breakpoints, exceptions, completion, and symbol caching on
5658 GNAT_GDB, since these are not yet used in the submitted public sources.
5659 (ada_main_name): Editorial: Move definition out of exception-related
5662 2004-06-15 Andrew Cagney <cagney@gnu.org>
5664 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5665 deprecated_pc_in_call_dummy.
5667 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5669 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5670 bfd_get_section_size_before_reloc or _raw_size.
5671 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5672 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5673 (dwarf2_read_section): Likewise.
5674 * elfread.c (elf_locate_sections): Likewise.
5675 * gcore.c (derive_heap_segment): Likewise.
5676 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5677 * remote-e7000.c (e7000_load): Likewise.
5678 * remote-m32r-sdi.c (m32r_load): Likewise.
5679 * remote-mips.c (mips_load_srec): Likewise.
5680 (pmon_load_fast): Likewise.
5681 * remote.c (compare_sections_command): Likewise.
5682 * symfile.c (add_section_size_callback): Likewise.
5683 (load_section_callback): Likewise.
5684 (pc_in_unmapped_range): Likewise.
5685 (pc_in_mapped_range): Likewise.
5686 (sections_overlap): Likewise.
5687 (list_overlays_command): Likewise.
5688 (simple_overlay_update_1): Likewise.
5689 (simple_overlay_update): Likewise.
5690 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5691 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5693 2004-06-14 Randolph Chung <tausq@debian.org>
5695 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5696 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5698 (hppa_hpux_inferior_created): New function.
5699 (hppa_hpux_init_abi): Register observer.
5700 * symfile.c (hp_cxx_exception_support_initialized)
5701 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5702 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5704 2004-06-14 Randolph Chung <tausq@debian.org>
5706 * MAINTAINERS (Write After Approval): Alphabetize my entry
5709 2004-06-14 Andrew Cagney <cagney@gnu.org>
5711 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5712 testsuite maintainer.
5714 2004-06-13 Andrew Cagney <cagney@gnu.org>
5716 * infcmd.c (print_return_value): Fix logic, allow
5717 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5719 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5720 defining any macros.
5721 * gdbarch.h: Re-generate.
5723 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5724 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5725 * gdbarch.h: Re-generate.
5727 * values.c (generic_use_struct_convention): Don't check gcc_p.
5729 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5730 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5731 * gdbarch.h, gdbarch.c: Regenerate.
5732 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5733 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5734 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5735 deprecated_max_register_raw_size and
5736 deprecated_max_register_virtual_size.
5737 * v850-tdep.c (v850_gdbarch_init): Ditto.
5738 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5739 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5740 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5741 * cris-tdep.c (cris_gdbarch_init): Ditto.
5743 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5744 * gdbarch.h, gdbarch.c: Re-generate.
5745 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5746 (m68hc11_use_struct_convention): Delete function.
5747 (m68hc11_extract_struct_value_address): Delete function.
5748 (m68hc11_return_value): New function.
5749 (m68hc11_gdbarch_init): Instead of store_return_value,
5750 extract_return_value, return_value_on_stack,
5751 deprecated_extract_struct_value_address and use_struct_convention,
5753 * values.c (using_struct_return): Do not call
5754 RETURN_VALUE_ON_STACK.
5755 * arch-utils.h (generic_return_value_on_stack_not): Delete
5757 * arch-utils.c (generic_return_value_on_stack_not): Delete
5760 2004-06-12 Andrew Cagney <cagney@gnu.org>
5762 * values.c (register_value_being_returned): Delete function.
5763 * infcmd.c (legacy_return_value): Delete function.
5764 * infcall.c (call_function_by_hand): Inline
5765 "register_value_being_returned", simplify.
5766 * values.c (using_struct_return): Update comment, refer to
5767 print_return_value instead of register_value_being_returned.
5768 * infcmd.c (print_return_value): Inline calls to
5769 register_value_being_returned and legacy_return_value. Simplify.
5771 2004-06-11 Randolph Chung <tausq@debian.org>
5773 * somread.c (som_symtab_read): Exclude gcc local symbols.
5775 2004-06-11 Randolph Chung <tausq@debian.org>
5777 * infrun.c (handle_inferior_event): Handle the case when a
5778 trampoline ends up in the runtime resolver, and if the trampoline
5779 has no name. Rearrange the code so that all the trampoline
5780 processing happens before other step-out-of-range handling.
5782 2004-06-11 Martin Hunt <hunt@redhat.com>
5784 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5787 2004-06-10 Andrew Cagney <cagney@gnu.org>
5789 * blockframe.c (legacy_inside_entry_func): Delete.
5790 (legacy_frame_chain_valid): Inline call to
5791 legacy_inside_entry_func, simplify.
5793 2004-06-10 Bob Rossi <bob@brasko.net>
5795 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5796 * dwarf2read.c (partial_die_info): Add dirname field.
5797 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5798 (read_partial_die): Save away DW_AT_comp_dir.
5799 * defs.h (symtab_to_filename): Removed.
5800 * source.c (find_and_open_source): Added.
5801 (open_source_file): Just calls find_and_open_source.
5802 (symtab_to_filename): Removed.
5803 (symtab_to_fullname, psymtab_to_fullname): Added.
5804 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5805 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5807 * symtab.h (partial_symtab): Add dirname field.
5808 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5809 (mi_cmd_file_list_exec_source_file): Call new function
5810 symtab_to_fullname to find fullname.
5811 (mi_cmd_file_list_exec_source_files): Added.
5812 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5813 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5815 2004-06-10 Andrew Cagney <cagney@gnu.org>
5817 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5818 to generic_use_struct_convention, the default value.
5820 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5823 * ns32k-tdep.c (ns32k_push_arguments): New function.
5824 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5825 * infcall.c (call_function_by_hand): Call error instead of
5826 legacy_push_arguments.
5827 * value.h (legacy_push_arguments): Delete declaration.
5828 * valops.c (legacy_push_arguments): Delete function.
5829 (value_push): Delete function.
5831 2004-06-10 Brian Ford <ford@vss.fsi.com>
5833 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5834 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5836 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5838 2004-06-10 Andrew Cagney <cagney@gnu.org>
5840 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5841 * gdbarch.h, gdbarch.c: Re-generate.
5842 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5844 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5845 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5846 deprecated_pc_in_call_dummy instead of
5847 DEPRECATED_PC_IN_CALL_DUMMY.
5848 (arm_skip_prologue): Ditto.
5849 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5850 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5851 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5852 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5854 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5855 (sh64_init_extra_frame_info, sh64_get_saved_register)
5856 (sh64_pop_frame): Ditto.
5857 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5858 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5859 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5860 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5861 (h8300_pop_frame): Ditto.
5862 * blockframe.c (legacy_inside_entry_func)
5863 (legacy_frame_chain_valid): Ditto.
5864 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5865 to deprecated_pc_in_call_dummy.
5867 2004-06-09 Andrew Cagney <cagney@gnu.org>
5869 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5870 provide a default value.
5871 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5872 * gdbarch.h, gdbarch.c: Re-generate.
5873 * arch-utils.c (generic_convert_register_p): Rename
5874 legacy_convert_register_p
5875 (legacy_register_to_value, legacy_value_to_register): Delete
5877 * arch-utils.h (generic_convert_register_p): Rename
5878 legacy_convert_register_p.
5879 (legacy_register_to_value, legacy_value_to_register): Delete
5882 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5883 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5884 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5885 * gdbarch.h, gdbarch.c: Re-generate.
5886 * infcmd.c (default_print_registers_info): Simplify.
5887 * findvar.c (value_of_register): Simplify.
5888 * mi/mi-main.c (get_register): Simplify.
5889 * arch-utils.c (legacy_convert_register_p): Always return 0.
5890 (legacy_register_to_value, legacy_value_to_register): Always call
5893 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5894 #ifdef CLEAR_INSN_CACHE code.
5895 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5896 Delete #ifdef CLEAR_DEFERRED_STORES code.
5898 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5900 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5902 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5904 * config/mips/mipsv4.mh: Delete file.
5906 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5908 (hpread_adjust_stack_address): Delete declaration.
5910 2004-06-08 Andrew Cagney <cagney@gnu.org>
5912 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5913 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5914 PTRACE_ATTACH / PTRACE_DETACH available call error.
5915 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5916 * infttrace.c (update_thread_state_after_attach, attach, detach):
5917 Remove #ifdef wrappers.
5918 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5919 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5920 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5921 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5922 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5923 * config/nm-linux.h (ATTACH_DETACH): Delete.
5924 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5925 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5926 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5927 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5928 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5930 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5932 * configure.in: Set $configdir to the right OS specific value.
5933 Use value when setting $tcldir and $tkdir.
5934 * configure: Regenerate.
5936 2004-06-06 Paul Brook <paul@codesourcery.com>
5938 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5941 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5943 * ada-lang.c (lookup_symbol_in_language): New function to allow
5944 re-use of another language's symbol lookup code. (Placed here
5945 temporarily while Ada support is being integrated into the public
5947 (restore_language): New auxiliary function for
5948 lookup_symbol_in_language.
5949 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5950 temporarily while Ada support is being integrated into the public
5953 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5955 * Makefile.in (check//%): New.
5957 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5958 (mn10300_store_return_value): Rewrite.
5959 (mn10300_type_align): New.
5960 (mn10300_use_struct_convention): Rewrite.
5961 (mn10300_return_value): New, using all of the above.
5962 (mn10300_pop_frame_regular): Add saved_regs_size.
5963 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5965 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5966 regs if PC is on movm.
5968 2004-06-07 Jim Blandy <jimb@redhat.com>
5970 Add native Linux support for the PowerPC E500.
5971 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5972 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5973 all architectures except the E500.
5974 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5976 (struct gdb_evrregset_t): New type.
5977 (have_ptrace_getsetevrregs): New variable.
5978 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5979 fetch_spe_registers): New functions.
5980 (fetch_register): Call fetch_spe_register as appropriate.
5981 Assert that we're only passed raw register numbers.
5982 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5983 Don't fetch gprs if they're pseudoregisters.
5984 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5985 store_spe_registers): New functions.
5986 (store_register): Call store_spe_register as appropriate.
5987 Assert that we're only passed raw register numbers.
5988 (store_ppc_registers): Call store_spe_registers as appropriate.
5989 Don't store gprs if they're pseudoregisters.
5991 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5993 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5994 struct if one exists, even if we are dealing with a zombie thread.
5996 2004-06-07 Andrew Cagney <cagney@gnu.org>
5998 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5999 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6000 Rename PC_REQUIRES_RUN_BEFORE_USE.
6001 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6004 2004-06-07 Randolph Chung <tausq@debian.org>
6006 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6007 unwinding after sp has been saved to the stack but before the end
6008 of the prologue, and after the fp has been modified but before it has
6009 been saved to the stack.
6010 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6011 Remove superfluous definitions.
6012 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6014 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6016 Committed by Randolph Chung.
6017 * hppa-linux-nat.c: Include the correct version of the header file
6018 depending on the kernel version.
6020 2004-06-06 Randolph Chung <tausq@debian.org>
6022 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6023 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6025 2004-06-06 Randolph Chung <tausq@debian.org>
6027 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6028 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6029 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6030 * hppa-tdep.c (hppa_symbol_address): New function definition.
6031 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6033 2004-06-06 Randolph Chung <tausq@debian.org>
6035 * hppa-tdep.h (struct value): Forward declaration.
6036 (gdbarch_tdep): Define tdep find_global_pointer method.
6037 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6038 associated with the function we are trying to call, and write it
6040 (hppa32_convert_from_funct_ptr_addr): New function.
6041 (hppa_find_global_pointer): New function.
6042 (hppa_gdbarch_init): Set default find_global_pointer method; set
6043 convert_from_func_ptr_addr method.
6044 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6045 (hppa_linux_init_abi): Set find_global_pointer method.
6046 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6048 2004-06-06 Randolph Chung <tausq@debian.org>
6050 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6051 to struct value *function.
6052 * gdbarch.c: Regenerate.
6053 * gdbarch.h: Likewise.
6054 * infcall.c (call_function_by_hand): Pass entire function value
6057 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6058 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6059 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6060 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6061 * arm-tdep.c (arm_push_dummy_call): Likewise.
6062 * avr-tdep.c (avr_push_dummy_call): Likewise.
6063 * cris-tdep.c (cris_push_dummy_call): Likewise.
6064 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6065 * frv-tdep.c (frv_push_dummy_call): Likewise.
6066 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6067 * hppa-tdep.c (hppa32_push_dummy_call)
6068 (hppa64_push_dummy_call): Likewise.
6069 * i386-tdep.c (i386_push_dummy_call): Likewise.
6070 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6071 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6072 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6073 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6074 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6075 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6076 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6077 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6078 (ppc64_sysv_abi_push_dummy_call): Likewise.
6079 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6080 (ppc64_sysv_abi_push_dummy_call): Likewise.
6081 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6082 * s390-tdep.c (s390_push_dummy_call): Likewise.
6083 * sh-tdep.c (sh_push_dummy_call_fpu)
6084 (sh_push_dummy_call_nofpu): Likewise.
6085 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6086 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6087 * vax-tdep.c (vax_push_dummy_call): Likewise.
6089 2004-06-04 Jim Blandy <jimb@redhat.com>
6091 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6092 gdbarch argument to register_size.
6094 * rs6000-tdep.c (rs6000_store_return_value): Use
6095 regcache_cooked_write_part instead of
6096 deprecated_write_register_bytes.
6097 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6098 not gdbarch_deprecated_store_return_value.
6100 * ppc-linux-nat.c (store_register, fetch_register): Remove
6101 incorrect assertions. Simplify and generalize handling of
6102 transfers whose sizes are not multiples of, or less than, sizeof
6105 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6107 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6108 as a new thread event.
6109 * thread-db.c (thread_get_info_callback): If the thread is a
6110 zombie, return TD_THR_ZOMBIE.
6111 (thread_from_lwp): If thread_get_info_callback returns
6112 TD_THR_ZOMBIE, check if the thread is still on the thread list
6113 and return a -1 ptid if not found.
6114 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6115 change the status to TARGET_WAITKIND_SPURIOUS.
6117 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6119 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6120 double values in little endian mode.
6122 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6124 Committed by Andrew Cagney.
6125 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6126 after last enum constant to avoid error from IBM C
6129 2004-06-02 Jim Blandy <jimb@redhat.com>
6131 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6132 to 'message', and make it local to the lone block that uses it.
6134 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6136 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6138 * ada-exp.y: Update copyright notice.
6141 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6142 SPECIAL_VARIABLE and unify the treatment of these cases.
6144 (write_attribute_call0): Remove.
6145 (write_attribute_call1): Remove.
6146 (write_attribute_calln): Remove.
6147 (save_qualifier): Add missing semicolon.
6149 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6150 temporarily disabled to allow compilation with FSF head version.
6152 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6153 use individual operators (OP_*) for all attributes.
6154 (exp syntax): Use write_int.
6155 Handle STRING literals with OP_STRING.
6156 (variable syntax): Add limit parameter to calls to
6157 write_object_renaming.
6159 (temp_parse_space): New definition to hold entities that need
6160 only live until the next call to ada_parse.
6161 (string_to_operator): Rename fields of ada_opname_table entries.
6163 (write_var_from_sym): Record block.
6164 (write_var_from_name): Minor reformatting.
6165 Make sure saved name is properly encoded in the case of multiple
6166 matches, and set its language to Ada.
6168 Modify to indicate unresolved name as symbol in the UNRESOLVED
6169 namespace, allocated in temp_parse_space.
6170 (write_int): New function.
6172 (write_object_renaming): Add max_depth parameter to limit
6173 chains of object renamings.
6174 Handle case where root of renaming expression is itself a renaming.
6175 Use temp_parse_space for temporary name buffer.
6176 Handle renamings to dereferenced pointers (___XEXA suffices).
6178 (ada_parse, yyerror, string_to_operator,
6179 write_var_from_sym, write_var_from_name, write_attribute_call0,
6180 write_attribute_call1, write_attribute_calln,
6181 write_object_renaming): Protoize.
6183 (_initialize_ada_exp): New function.
6185 * ada-lang.c: Update copyright notice.
6186 General terminology change to conform to GNAT compiler usage:
6187 mangle => encode, demangle => decode
6188 Include gdb_obstack.h.
6197 (ADA_RETAIN_DOTS): Make sure this is defined.
6198 (TRUNCATION_TOWARDS_ZERO): Define.
6199 (struct string_vector): Define.
6200 (unresolved_names): Remove definition.
6201 (xnew_string_vector): New function.
6202 (string_vector_append): New function.
6203 (extract_string): Make static.
6204 (ada_unqualified_name): New function.
6205 (add_angle_brackets): New function.
6206 (function_name_from_pc): New function.
6207 (place_on_stack): Rename to ensure_lval.
6209 (ensure_lval): Renamed from place_on_stack.
6210 Make identity on lvals.
6212 (is_nonfunction): New interface.
6213 Only symbols in LOC_CONST class can be enumerals.
6214 (fill_in_ada_prototype): Remove; now independent of language.
6215 (add_defn_to_vec): Add obstack and symtab arguments.
6216 Use obstack to hold collected definitions.
6217 (num_defns_collected): New function.
6218 (defns_collected): New function.
6219 (ada_resolve_subexp): Rename to resolve_subexp.
6220 (resolve_subexp): Renamed from ada_resolve_subexp.
6221 (ada_op_name): Return non-const result.
6222 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6225 (to_fixed_array_type): Add declaration.
6226 (coerce_unspec_val_to_type): Remove offset parameter.
6227 (find_sal_from_funcs_and_line): New interface.
6228 (find_line_in_linetable): Ditto.
6230 (all_sals_for_line): Rename to ada_sals_for_line and make
6232 Add new parameter. When set, do not ask the user to choose the
6233 instance, but use the first one found instead.
6234 Use given line number in returned sals.
6236 Skip the prologue if funfirstline is set.
6237 Correct for memory leak when 0 lines found.
6239 (value_pos_atr): Use pos_atr.
6240 (pos_atr): New function.
6241 (standard_lookup): Add block parameter.
6243 (makeTimeStart): Remove declaration and uses.
6244 (makeTimeStop): Remove declaration and uses.
6246 (ada_completer_word_break_characters): Allow for VMS.
6247 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6248 (raise_sym_name): New constant.
6249 (raise_unhandled_sym_name): New constant.
6250 (raise_assert_sym_name): New constant.
6251 (process_raise_exception_name): New constant.
6252 (longest_exception_template): New constant.
6253 (warning_limit): New variable to limit warnings during expression
6255 (warnings_issued): New variable to keep track of warnings issued.
6256 (known_runtime_file_name_patterns): New constant.
6257 (known_auxiliary_function_name_patterns): New constant.
6258 (symbol_list_obstack): New variable.
6260 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6261 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6262 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6263 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6264 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6265 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6266 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6267 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6270 (ada_get_field_index): New function.
6271 (lim_warning): New function.
6272 (ada_translate_error_message): New function.
6273 (MAX_OF_SIZE): New function.
6274 (MIN_OF_SIZE): New function.
6275 (UMAX_OF_SIZE): New function.
6276 (UMIN_OF_SIZE): New function.
6277 (discrete_type_high_bound): New function.
6278 (discrete_type_low_bound): New function.
6279 (base_type): New function.
6280 (do_command): Remove.
6282 (ada_update_initial_language): Use language_ada, not language_unknown.
6283 (ada_encode): Renamed from ada_mangle.
6284 Obey ADA_RETAIN_DOTS.
6285 (ada_decode): Renamed from ada_demangle.
6286 Update coding conventions.
6287 (decoded_names_store): New hash table.
6288 (ada_decode_symbol): New function.
6289 (ada_la_decode): New function.
6291 (modify_general_field): Correct computations of offset and bit
6293 (desc_base_type): Handle ref types, too.
6294 (ada_is_direct_array_type): New function.
6296 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6297 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6298 (ada_is_bogus_array_descriptor,ada_type_of_array,
6299 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6300 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6301 ada_is_array_descriptor_type.
6303 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6304 (ada_is_packed_array_type): Handle pointers or
6305 references to packed arrays as well.
6306 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6307 (decode_packed_array_type): Search for the packed array type
6308 symbol in the currently selected block and associated
6310 Use lookup_symbol again.
6312 (decode_packed_array): Handle pointers and references.
6313 Update call to coerce_unspec_val_to_type.
6314 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6315 (ada_value_primitive_packed_val): Improve comment.
6317 (ada_index_type): Substitute int type for "undefined".
6318 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6319 ada_array_langth, ada_is_string_type): Use renamed
6320 ada_is_simple_array_type.
6321 (empty_array): New function.
6323 (ada_resolve): Rename to resolve.
6324 (resolve): Make static.
6325 Call renamed resolve_subexp.
6327 (ada_resolve_subexp): Rename to resolve_subexp.
6328 (resolve_subexp): Update comment.
6329 Decomment disabled code.
6330 Add LOC_COMPUTED* cases.
6331 Modify to use temporary struct symbols (marked as being in
6332 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6333 OP_UNRESOLVED_VALUE.
6334 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6337 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6338 Use new ada_lookup_symbol_list interface.
6339 Use new ada_resolve_function interface.
6340 Remove OP_TYPE case.
6342 (ada_args_match): Idiot proof against null actuals.
6343 Use intermediate variables to clarify.
6344 (ada_resolve_function): Update comment and interface.
6345 (mangled_ordered_before): Rename to encoded_ordered_before and
6347 (sort_choices): Update comment and interface.
6348 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6349 (user_select_syms): New interface.
6350 Use new sort_choices interface.
6351 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6352 (possible_user_operator_p): Idiot-proof against null values.
6353 (ada_simple_renamed_entity): Don't make cleanup; rely on
6354 caller to free result string.
6355 Remove const from return type.
6356 (make_array_descriptor): Rename uses of place_on_stack to
6358 Make sure that arrays are on stack.
6360 (HASH_SIZE): Define.
6361 (struct cache_entry): Define.
6362 (cache_space): Define.
6364 (clear_ada_sym_cache): New function.
6365 (find_entry): New function.
6366 (lookup_cached_symbol): New function.
6367 (defn_vector_size): Define.
6368 (cache_symbol): New function.
6369 (defn_symbols): Remove.
6371 (standard_lookup): Use lookup_symbol_in_language to get effect of
6375 (symbol_completion_match): New function.
6376 (symbol_completion_add): New function.
6377 (ada_make_symbol_completion_list): New function.
6379 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6380 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6381 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6382 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6384 (ada_lookup_simple_minsym): New function.
6385 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6387 (add_symbols_from_enclosing_procs): New interface.
6388 Conditionalize more helpfully.
6389 Don't bother if program isn't running.
6390 Use new interface to get_frame_block.
6391 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6393 (remove_extra_symbols): New interface.
6394 (xget_renaming_scope): New function.
6395 (is_package_name): New function.
6396 (renaming_is_visible): New function.
6397 (remove_out_of_scope_renamings): New function.
6399 (ada_lookup_symbol_list): New interface.
6400 Properly reinitialize the symbol list obstack.
6401 Don't call add_symbols_from_enclosing_procs if we start from a
6402 static or global block.
6403 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6404 add_symbols_from_enclosing_procs.
6405 Add symtab data to cached entries.
6406 Handle symbols prefixed with
6407 "standard__" specially; strip prefix and don't look in local symbols.
6408 Do not include out of scope renaming symbols in list of
6410 Add const to block parameter.
6411 Move check for non-local, non-global symbols earlier.
6412 Remove timing stuff.
6413 (ada_lookup_symbol): New interface.
6414 Find symtab as well.
6415 (ada_lookup_symbol_nonlocal): New function.
6417 (is_name_suffix): Enhance suffix detection to recognize
6418 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6419 (is_dot_digits_suffix): New function.
6420 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6422 (ada_add_block_symbols): New interface. Use obstack to return results
6423 in a vector of struct ada_symbol_infos. Add symtab argument.
6424 Use new interface to add_defn_to_vec.
6425 Remove calls to fill_in_ada_prototype.
6426 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6428 (ada_finish_decode_line_1): Add const qualification to local to fix
6430 Start looking in static block for functions to avoid attempts
6431 to search frame chain for up-level variables.
6432 Adapt to new ada_sals_for_line interface.
6433 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6434 Handle quoting of the function name inside the spec string.
6435 Skip prologue when funfirstline is set and update the
6436 function documentation to that effect.
6438 (debug_print_lines, debug_print_block, debug_print_blocks,
6439 debug_print_symtab): Remove.
6441 (ada_main_name): New function.
6442 (ada_exception_breakpoint_type): New function.
6443 (is_known_support_routine): New function.
6444 (ada_find_printable_frame): Renamed from find_printable_frame and made
6446 Remove level parameter.
6447 Use new interface to select_frame.
6449 (begin_command): Remove.
6450 (ada_adjust_exception_stop): New function.
6451 (ada_print_exception_stop): New function.
6452 (exception_name_from_cond): New function.
6453 (ada_report_exception_break): Replace disabled code with
6454 conditionalization on GNAT_GDB.
6455 Get the exception name from the condition string.
6456 Remove and move functionality into new functions
6457 ada_print_exception_breakpoint_task and
6458 ada_print_exception_breakpoint_nontask.
6459 (error_breakpoint_runtime_sym_not_found): New function.
6460 (is_runtime_sym_defined): New function.
6461 (ada_breakpoint_rewrite): Uncomment suppressed code.
6462 Use symbolic error-message and runtime-symbol names.
6463 Surround runtime symbol names in quotes.
6464 Allow non-specific breakpoints on exceptions and assertions before
6467 (ada_is_tagged_type): Add parameter.
6468 (ada_is_tag_type): New function.
6469 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6470 (ada_variant_discrim_type): Ditto.
6471 (value_tag_from_contents_and_address): New function.
6472 (type_from_tag): New function.
6473 (struct tag_args): New structure used to communicate with
6475 (ada_tag_name_1): New function.
6476 (ada_tag_name): New function.
6478 (ada_scan_number): Update comment.
6479 (find_struct_field): New function.
6480 (ada_search_struct_field): Make static.
6481 (ada_value_struct_elt): New version that returns references when
6482 given pointers or references to structs.
6483 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6484 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6486 (ada_value_ind): Use new ada_to_fixed_value interface.
6487 (ada_coerce_ref): Ditto.
6488 (field_offset): Remove.
6490 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6491 (ada_find_renaming_symbol): New function.
6492 (ada_prefer_type): Prefer named types over unnamed ones.
6493 (variant_field_index): New function.
6494 (contains_variant_part): Removed: subsumed by variant_field_index.
6495 (ada_template_to_fixed_record_type): New function, mostly from
6496 template_to_fixed_record_type.
6497 (template_to_fixed_record_type):
6498 Do not scan the type fields beyond the last one; prevents a
6500 Handle case where variant field is listed BEFORE discriminant it
6502 Fix calculation of record length when bit length is
6503 not evenly divisible by char length.
6504 Move code to ada_template_to_fixed_record_type and call it.
6506 (template_to_static_fixed_type): Revise comment.
6507 Modify to work on ordinary record types as well as templates,
6508 so as to handle fields that use ___XVE or ___XVU encodings.
6509 (to_record_with_fixed_variant_part): Fill out comment.
6510 Initialize C++ stuff in right type.
6511 Allow case where DVAL is null.
6512 Handle case where variant field is not last.
6513 Fix typo concerning record length.
6514 (to_fixed_record_type): Decomment disabled code.
6515 (to_fixed_record_type): Use variant_field_index instead of
6516 contains_variant_part.
6517 (to_fixed_variant_branch_type): Ditto.
6518 (to_fixed_array_type): Decomment disabled code.
6519 (ada_to_fixed_type): Convert tagged types to the specific type.
6520 Deactivate the size-check for array types in order to avoid
6521 some false size alarms.
6522 (to_static_fixed_type): Decomment disabled code.
6523 Modify to call template_to_static_fixed_type
6524 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6525 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6526 Remove valaddr argument, as it is never really used.
6527 (ada_to_fixed_value): Change interface to act on single struct value*
6529 (adjust_pc_past_prologue): New function.
6530 (ada_attribute_name): Modify to take enum exp_opcode argument.
6532 (ada_enum_name): Recognize new homonym-distinguishing convention.
6533 Adjust local variable's type to remove compiler warning.
6534 Fix a small problem in the part that unqualifies the enumeration name.
6535 (ada_value_binop): New function.
6536 (ada_value_equal): New function.
6538 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6539 Don't give error message when not doing normal evaluation
6540 and a tagged type doesn't seem to contain a structure member.
6541 Give error message for packed arrays.
6542 For indexing arrays, handle pointers to packed arrays correctly.
6543 Handle case of 'first and 'last attributes of bare integral type
6544 without encoded subtype info.
6545 Remove some unnecessary casts.
6546 Fix uninitialized value of type in computing 'first, 'last, or 'length
6548 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6549 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6551 Attributes are now exp_opcode values.
6552 Correct treatment of 'modulus.
6553 Better error message for taking 'length of wrong kind of type;
6555 Change EVAL_NORMAL to noside for consistency.
6556 Use ada_value_binop for DIV, MOD, REM.
6557 Make special case out of array of length 0, since an argument
6558 of 0 upsets some platforms' malloc.
6559 Use OP_STRING instead of OP_ARRAY.
6560 For slice, add check that we have an array type before extracting
6561 a slice out of it. Avoids a SEGV.
6562 When evaluating an array slice, if the array type is a reference to
6563 an aligner type, then replace the aligner type by the actual type.
6564 Decomment disabled code.
6565 Remove some dead code.
6566 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6567 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6568 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6569 and UNOP_MBR to UNOP_IN_RANGE.
6570 If an array type has a parallel ___XVE type, then use it.
6571 Turn arrays into pointers for lvalue arrays.
6572 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6573 bounds error and handle 0-length slices.
6575 When selecting fields, apply ada_to_fixed_value (because the fields
6576 might have ___XVU or ___XVE encodings even if not dynamic.)
6577 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6578 (ada_is_system_address_type): New function.
6580 (get_var_value): Use new interface to ada_lookup_symbol_list.
6581 (get_int_var_value): New interface.
6582 (to_fixed_range_type): Allow unknown bound, with warning.
6583 (ada_is_modular_type): Decomment disabled code.
6584 (ADA_OPERATORS): New definition.
6585 (ada_operator_length): New function.
6586 (ada_expr_op_name): New function.
6587 (ada_forward_operator_length): New function.
6588 (ada_dump_subexp_body): New function.
6589 (ada_print_subexp): New function.
6590 (ada_exp_descriptor): New constant.
6591 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6592 (ada_language_defn): Add ada_exp_descriptor entry.
6593 Change ada_parse => parse.
6594 Add post-parser entry.
6595 Use ada-specific non-local symbol lookup.
6596 Don't use C-style arrays.
6597 String lower-bound is 1.
6598 Decomment disabled code.
6599 (parse): New function.
6600 New fields ada_translate_error_message, ada_lookup_symbol,
6601 ada_lookup_minimal_symbol.
6603 * ada-lang.h: Update copyright dates.
6604 Replace the mangle/demangle terminology throughout by the
6605 more appropriate encode/decode one.
6606 Include breakpoint.h.
6607 Forward declare struct partial_symbol, struct block.
6608 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6609 (EXTRACT_ADDRESS): Remove.
6610 (EXTRACT_INT): Remove.
6611 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6612 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6613 (MAX_RENAMING_CHAIN_LENGTH): Define.
6614 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6616 (enum task_states): Remove.
6617 ada_task_states: Remove.
6618 (fat_string): Remove.
6619 (struct entry_call): Remove.
6620 (struct task_fields): Remove.
6621 (struct task_entry): Remove.
6623 (struct ada_symbol_info): Define.
6624 (enum ada_attribute): Remove.
6625 (enum ada_operator): Define.
6627 (ada_get_field_index): Declare.
6628 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6629 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6630 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6631 (ada_lookup_symbol_list): New interface.
6632 (ada_decode_symbol): Declare.
6633 (ada_decode): Declare.
6634 (ada_lookup_symbol): New interface.
6635 (ada_update_initial_language): Declare.
6636 (ada_lookup_simple_minsym): Declare.
6637 (user_select_syms): New interface.
6638 (ada_sals_for_line): Declare.
6639 (ada_is_tagged_type): New interface.
6640 (ada_tag_name): Declare.
6641 (ada_lookup_struct_elt_type): Remove declaration.
6642 (ada_search_struct_field): Remove declaration.
6643 (ada_attribute_name): New interface.
6644 (ada_is_system_address_type): Declare.
6645 (ada_to_fixed_value): Remove declaration.
6646 (ada_template_to_fixed_record_type_1): Declare.
6647 (get_int_var_value): New interface.
6648 (ada_find_any_symbol): Declare.
6649 (ada_find_renaming_symbol): Declare.
6650 (ada_mangle): Rename to ada_encode.
6651 (ada_simple_renamed_entity): Remove const.
6652 (ada_main_name): Declare.
6653 (get_current_task): Rename to ada_get_current_task.
6654 (get_entry_number): Remove declaration.
6655 (ada_report_exception_break): Remove declaration.
6656 (ada_print_exception_breakpoint_nontask): Declare.
6657 (ada_print_exception_breakpoint_task): Declare.
6658 (ada_find_printable_frame): Declare.
6660 * ada-lex.l: Update copyright notices.
6661 Use xmalloc and xfree instead of malloc and free.
6662 Use new interface to name_lookup.
6663 Use new interface to
6664 ada_mangle=>ada_encode.
6665 Redo handling of '$...' variable to parallel current treatment
6667 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6668 digit_to_int, strtoulst, processInt, processReal, processId,
6669 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6672 (processInt): Use cast to remove harmless warning.
6673 (processReal): Modify to get rid of compiler warning on scan formats.
6675 (processId): Replace xmalloc with obstack_alloc for name and remove
6676 call to ada_name_string_cleanup.
6677 Remove obsolete disabled code.
6678 (name_lookup): Ditto.
6680 Use obsavestring on temp_parse_space instead of savestring
6681 on name, and remove call to ada_name_string_cleanup.
6682 Free string returned from ada_simple_renamed_entity.
6683 Use new interface to ada_lookup_symbol_list.
6684 Decomment disabled code.
6685 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6687 When a type name lookup succeeds as a result of
6688 lookup_primitive_typename, check for regular type entry that has not
6690 Limit length of chain of renamed symbols we are willing to follow.
6691 Do not break names beginning with "standard__" into segments.
6692 (block_lookup): Use new interface to ada_lookup_symbol_list.
6694 * ada-typeprint.c: Update copyright notice.
6695 (demangled_type_name): Rename to decoded_type_name.
6696 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6697 (print_range_bound): Correct handling of negative
6698 bounds that make the index type looked unsigned under STABS.
6699 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6700 (print_range_type_named): Use the builtin int type if no type
6701 corresponding to the given type name could be found.
6702 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6703 Add some bullet-proofing.
6704 (print_variant_clauses): Allow for variant branches with ___XVU
6705 encodings that are not dynamic fields.
6706 Use new interface to ada_is_tagged_type.
6707 (print_record_type): Allow for fields with ___XVE encodings that
6708 are not dynamic fields.
6709 Use new interface to ada_is_tagged_type.
6710 (ada_print_type): ada_is_array_descriptor =>
6711 ada_is_array_descriptor_type.
6713 * ada-valprint.c: Update copyright notice.
6714 Include gdb_string.h
6716 (ui_memcpy): New function.
6717 (ada_print_floating): New function.
6718 (ada_print_str): Order arguments correctly.
6719 Correct handling of empty arrays and arrays of 0-length items.
6720 ada_is_array_descriptor => ada_is_array_descriptor_type
6721 Print values of type System.Address in hexadecimal format.
6722 Use ada_print_floating to print floating-point numbers in Ada format.
6723 Print class tag values with type names.
6724 No longer print the address of reference values. Avoids
6725 a potential confusion.
6726 (ada_value_print): Stop printing the object type for reference
6727 values, but preserve that behavior for access types. Avoids
6728 a potential confusion.
6729 Simplify one conditional expression, as the first part is now
6731 ada_is_array_descriptor => ada_is_array_descriptor_type
6732 Add check for arrays for null records, and print them by hand.
6734 2004-06-01 Jim Blandy <jimb@redhat.com>
6736 * ppc-tdep.h: Delete unused 'regoff' member.
6737 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6739 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6742 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6743 (hpread_read_struct_type): Likewise.
6745 2004-06-01 Andrew Cagney <cagney@gnu.org>
6747 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6748 instead of xasprintf.
6749 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6750 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6751 (mi_cmd_data_list_register_names)
6752 (mi_cmd_data_list_changed_registers)
6753 (mi_cmd_data_list_register_values)
6754 (get_register, mi_cmd_data_write_register_values)
6755 (mi_cmd_data_write_register_values)
6756 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6757 (mi_cmd_target_download, mi_cmd_target_select)
6758 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6759 (mi_execute_cli_command, mi_execute_async_cli_command)
6760 (mi_execute_async_cli_command): Ditto.
6761 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6762 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6764 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6765 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6766 error_last_message instead of mi_error_last_message.
6767 * mi/mi-main.c (mi_error_last_message): Delete function.
6769 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6770 "invalid number of columns" error. Delete redundant "out of
6773 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6775 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6776 (gregset_t, fpregset_t): Remove typedefs.
6777 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6778 (REG_OFFSET): Rename argument.
6779 (i386bsd_r_reg_offset): Rename from reg_offset.
6780 (REG_ADDR): Remove macro.
6781 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6783 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6784 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6785 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6786 instead of supply_gregset.
6787 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6788 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6789 instead of fill_gregset.
6790 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6792 * i386bsd-nat.c: Don't include "gregset.h".
6793 (supply_gregset, fill_gregset): Make static.
6794 (supply_fpregset, fill_fpregset): Remove.
6795 * Makefile.in (i386bsd-nat.o): Update dependencies.
6797 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6799 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6800 "gdb_assert.h". Con't include "gregset.h".
6801 (fbsd_make_corefile_notes): Use regset-based core file support
6802 instead off fill_gregset and fill_fpregset.
6803 * Makefile.in (fbsd-proc.o): Update dependencies.
6805 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6807 (m88k_frame_prev_register): Simplify code a bit.
6809 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6810 (amd64_collect_fpregset): New function.
6811 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6813 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6815 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6816 (i386_collect_gregset): New function.
6817 (i386_supply_fpregset): Adjust comment.
6818 (i386_collect_fpregset): New function.
6819 (i386_regset_from_core_section): Use i386_collect_gregset and
6820 i386_collect_fpregset.
6822 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6823 handle VALUEP being null.
6825 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6827 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6829 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6831 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6832 assembler in OpenBSD 3.5-current.
6833 (amd64obsd_sigcontext_addr): Likewise.
6835 2004-05-28 Jim Blandy <jimb@redhat.com>
6837 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6838 register set, so our regcache isn't declared "legacy" and our E500
6839 pseudoregister read and write functions aren't ignored.
6840 (rs6000_register_byte, rs6000_register_raw_size,
6841 rs6000_register_virtual_type, rs6000_register_convertible,
6842 rs6000_register_convert_to_virtual,
6843 rs6000_register_convert_to_raw): Deleted.
6844 (rs6000_register_type, rs6000_convert_register_p,
6845 rs6000_register_to_value, rs6000_value_to_register): New
6847 (rs6000_gdbarch_init): Don't register
6848 gdbarch_deprecated_register_size,
6849 gdbarch_deprecated_register_bytes,
6850 gdbarch_deprecated_register_byte,
6851 gdbarch_deprecated_register_raw_size,
6852 gdbarch_deprecated_register_virtual_type,
6853 gdbarch_deprecated_register_convertible,
6854 gdbarch_deprecated_register_convert_to_virtual, or
6855 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6856 register gdbarch_register_type, gdbarch_convert_register_p,
6857 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6859 2004-05-26 Jim Blandy <jimb@redhat.com>
6861 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6862 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6863 functions, updated to match the register numberings used in GCC.
6864 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6865 rs6000_dwarf2_reg_to_regnum as register number conversions
6866 functions for STABS and Dwarf2.
6868 2004-05-26 Randolph Chung <tausq@debian.org>
6870 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6873 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6875 * NEWS: Document new "start" command.
6877 2004-05-25 Randolph Chung <tausq@debian.org>
6879 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6882 2004-05-25 Randolph Chung <tausq@debian.org>
6884 * hppa-hpux-tdep.c (offsetof): Define.
6885 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6886 (hppa32_hpux_frame_base_before_sigtramp)
6887 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6888 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6889 (hppa64_hpux_frame_base_before_sigtramp)
6890 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6892 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6893 (hppa_hpux_sigtramp_frame_unwind_cache)
6894 (hppa_hpux_sigtramp_frame_this_id)
6895 (hppa_hpux_sigtramp_frame_prev_register)
6896 (hppa_hpux_sigtramp_frame_unwind)
6897 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6898 (hppa_hpux_init_abi): Register sigtramp unwinder.
6899 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6901 2004-05-25 Randolph Chung <tausq@debian.org>
6903 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6904 and multiple stack unwinds.
6905 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6907 2004-05-25 Andrew Cagney <cagney@gnu.org>
6909 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6910 * symfile-mem.h: Delete file.
6911 * symfile-mem.c: Do not include "symfile-mem.h".
6912 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6913 "struct bfd_section". When an error do not bother returning NULL.
6914 (add_symbol_file_from_memory_command): Use "struct bfd" and
6915 "struct bfd_section".
6916 * Makefile.in (symfile_mem_h): Delete.
6917 (symfile-mem.o): Update dependencies.
6919 2004-05-25 Nick Roberts <nickrob@gnu.org>
6921 * gdb-mi.el: New file.
6923 2004-05-25 Andrew Cagney <cagney@gnu.org>
6925 * inftarg.c: Include "observer.h".
6926 (child_attach, child_create_inferior): Notify inferior_created.
6927 * corelow.c: Include "observer.h".
6928 (core_open): Notify inferior_created.
6929 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6931 2004-05-25 Andrew Cagney <cagney@gnu.org>
6933 * target.h (struct target_ops): Add from_tty to
6935 (target_create_inferior, find_default_create_inferior): Update.
6936 * infcmd.c (run_command): Update.
6937 * wince.c (child_create_inferior): Update.
6938 * win32-nat.c (child_create_inferior): Update.
6939 * uw-thread.c (uw_thread_create_inferior): Update.
6940 * thread-db.c (thread_db_create_inferior): Update.
6941 * target.c (debug_to_create_inferior)
6942 (find_default_create_inferior): Update.
6943 (maybe_kill_then_create_inferior): Update.
6944 * sol-thread.c (sol_thread_create_inferior): Update.
6945 * remote.c (extended_remote_async_create_inferior)
6946 (extended_remote_create_inferior): Update.
6947 * remote-vx.c (vx_create_inferior): Update.
6948 * remote-st.c (st2000_create_inferior): Update.
6949 * remote-sim.c (gdbsim_create_inferior): Update.
6950 * remote-sds.c (sds_create_inferior): Update.
6951 * remote-rdp.c (remote_rdp_create_inferior): Update.
6952 * remote-rdi.c (arm_rdi_create_inferior): Update.
6953 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6954 * remote-e7000.c (e7000_create_inferior): Update.
6955 * procfs.c (procfs_create_inferior): Update.
6956 * ocd.c (ocd_create_inferior): Update.
6957 * ocd.h (ocd_create_inferior): Update.
6958 * nto-procfs.c (procfs_create_inferior): Update.
6959 * monitor.c (monitor_create_inferior): Update.
6960 * lin-lwp.c (lin_lwp_create_inferior): Update.
6961 * inftarg.c (child_create_inferior): Update.
6962 * hpux-thread.c (hpux_thread_create_inferior): Update.
6963 * gnu-nat.c (gnu_create_inferior): Update.
6965 2004-05-25 Andrew Cagney <cagney@gnu.com>
6967 * MAINTAINERS: Update e-mail address.
6969 2004-05-24 Randolph Chung <tausq@debian.org>
6971 * thread.c (info_threads_command, thread_apply_all_command)
6972 (thread_apply_command, thread_command, do_captured_thread_select):
6973 Remove HPUXHPPA-specific code.
6975 2004-05-24 Randolph Chung <tausq@debian.org>
6977 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6979 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6982 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6984 * infcmd.c (kill_if_already_running): New function, extracted
6986 (run_command): Replace extracted code by call to
6987 kill_if_already_running().
6988 (start_command): New function.
6989 (_initialize_infcmd): Add "start" command.
6991 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6993 Add OpenBSD/m88k support.
6994 * NEWS (New native configurations): Mention OpenBSD/m88k.
6995 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6996 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6997 * Makefile.in (m88k_tdep_h): New variable.
6998 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6999 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7000 * configure.host: Add m88*-*-openbsd*.
7001 * configure.tgt: Add m88*-*-openbsd*.
7003 2004-05-24 Jim Blandy <jimb@redhat.com>
7005 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7008 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7010 * symtab.c (fixup_section): Search section table when lookup by
7013 2004-05-24 Randolph Chung <tausq@debian.org>
7015 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7018 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7020 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7021 register number in regcache_raw_collect call.
7022 (m68kbsd_collect_fpregset): Likewise.
7023 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7025 * regset.h (struct regset): Add back `regset' member.
7027 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7029 * configure.in: Check for td_pcb in `struct thread'.
7030 * configure, config.in: Regenerated.
7032 * dpx2-nat.c: Remove file.
7033 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7034 (dpx2-nat.o): Remove dependencies.
7036 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7037 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7038 (amd64obsd_supply_pcb): New function.
7039 (_initialize_amd64obsd_nat): Enable libkvm interface.
7040 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7041 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7042 (LOADLIBES): New variable.
7044 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7045 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7046 (sparc32nbsd_supply_pcb): New function.
7047 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7048 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7049 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7050 (LOADLIBES): New variable.
7052 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7054 * bsd-kvm.c, bsd-kvm.h: New files.
7055 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7057 (i386fbsd_supply_pcb): New function.
7058 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7059 (i386fbsd-nat.o): Update dependencies.
7060 (bsd_kvm_h): New variable.
7061 (bsd-kvm.o): New dependency.
7062 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7063 (LOADLIBES): New variable.
7065 * regset.c: Tweak comment.
7066 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7068 * regset.h: Update copyright year.
7069 (struct regset): Remove `descr' member, add `gdbarch' member.
7070 (regset_alloc): Adjust prototype and comment.
7071 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7072 (i386_supply_fpregset): Likewise.
7073 (i386_regset_from_core_section): Update call to regset_alloc.
7074 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7076 (i386obsd_aout_regset_from_core_section): Update call to
7078 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7080 (i386nbsd_aout_regset_from_core_section): Update call to
7082 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7084 (amd64_regset_from_core_section): Update call to regset_alloc.
7085 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7087 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7088 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7089 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7090 (sparc32nbsd_init_abi): Update call to regset_alloc.
7091 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7092 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7093 (sparc64obsd_init_abi): Update call to regset_alloc.
7094 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7095 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7096 (sparc64nbsd_init_abi): Update call to regset_alloc.
7097 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7098 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7099 (sparc64fbsd_init_abi): Update call to regset_alloc.
7101 2004-05-22 Jim Blandy <jimb@redhat.com>
7103 * ppc-tdep.h (spe_register_p): New declaration.
7104 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7106 * rs6000-tdep.c (spe_register_p): New function.
7107 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7109 (rs6000_gdbarch_init): Initialize the new members of the tdep
7112 2004-05-21 Jim Blandy <jimb@redhat.com>
7114 * ppc-linux-nat.c (fetch_register): Move code back to be next
7115 to the comment that describes it. (Moved code, instead of
7116 comment, for symmetry with store_register.)
7118 Allocate regset structures in the gdbarch's obstack, not using
7120 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7121 Add 'arch' argument. Allocate the regset on arch's obstack, not
7123 * regset.h (regset_alloc): Update declaration.
7124 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7126 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7127 * i386-tdep.c (i386_regset_from_core_section): Same.
7128 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7129 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7130 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7131 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7132 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7133 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7135 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7137 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7139 2004-05-21 Jim Blandy <jimb@redhat.com>
7141 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7142 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7144 2004-05-20 Jim Blandy <jimb@redhat.com>
7146 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7148 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7150 * regset.h: Make prototype const-correct.
7151 * regset.c (regset_xmalloc): Make const-correct.
7153 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7155 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7156 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7157 (symbol_search_name): Declare.
7159 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7160 (iter_name_next_hashed): Ditto.
7161 (iter_name_next_linear): Ditto.
7162 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7164 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7165 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7166 (symbol_search_name): New function.
7168 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7170 * minsyms.c (build_minimal_symbol_hash_tables): Change
7171 test for adding to demangled hash table to check for difference
7172 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7174 2004-05-19 Jim Blandy <jimb@redhat.com>
7176 Use a constructor function to create regset structures.
7177 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7178 (struct regset): Use supply_regset_ftype. Add new
7179 'collect_regset' member.
7180 (regset_xmalloc): New declaration.
7181 * regset.c: New file.
7182 * am64-tdep.c (amd64_regset_from_core_section): Use
7183 regset_xmalloc to construct regset structures.
7184 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7185 * i386-tdep.c (i386_regset_from_core_section): Same.
7186 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7187 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7188 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7189 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7190 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7191 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7192 * Makefile.in (COMMON_OBS): Add regset.o.
7193 (regset.o): New rule.
7195 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7197 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7198 and pthread_cond_wait.c.
7200 2004-05-18 Jim Blandy <jimb@redhat.com>
7202 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7203 before the mach-specific switch, and then let the individual cases
7204 override the defaults, rather than leaving them uninitialized
7205 until the switch and then setting them in each case.
7207 2004-05-18 Randolph Chung <tausq@debian.org>
7209 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7210 millicode functions.
7212 2004-05-18 Randolph Chung <tausq@debian.org>
7214 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7215 references to dld_flags_buffer consistent.
7217 2004-05-18 Randolph Chung <tausq@debian.org>
7219 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7220 it for unwinding the stack.
7222 2004-05-18 Randolph Chung <tausq@debian.org>
7224 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7225 Undefine these so we can overide them using gdbarch.
7227 2004-05-18 Randolph Chung <tausq@debian.org>
7229 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7230 handling for 64-bit HPUX (elf).
7232 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7234 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7236 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7237 * ia64-tdep.c (examine_prologue): Likewise.
7238 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7239 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7241 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7243 * vax-tdep.c (vax_return_value): Implement
7244 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7246 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7248 * vax-tdep.c (vax_return_value): Fix typo.
7250 2004-05-17 Andrew Cagney <cagney@redhat.com>
7252 * MAINTAINERS: Mark Salter was also responsible for
7255 * NEWS: Mention signal fixes.
7257 2004-05-17 Randolph Chung <tausq@debian.org>
7259 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7260 check to see if we are unwinding an export stub. Export stubs clobber
7261 the %rp in the call path and stores the original rp in a stack slot.
7263 2004-05-17 Jim Blandy <jimb@redhat.com>
7265 * MAINTAINERS: Update address for J.T. Conklin.
7267 2004-05-17 Randolph Chung <tausq@debian.org>
7269 * hppa-tdep.c: Remove superfluous #include's.
7270 * Makefile.in (hppa-tdep.o): Update dependencies.
7272 2004-05-17 Randolph Chung <tausq@debian.org>
7274 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7275 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7276 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7277 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7278 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7279 Remove static function declarations.
7281 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7283 * alphabsd-nat.c: Update copyright year.
7284 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7286 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7289 * m68k-tdep.c (m68k_svr4_return_value): Implement
7290 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7292 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7294 * sol-thread.c Update copyright year. Fix various coding
7295 standards violations. Tweak a few comments.
7296 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7299 2004-05-15 Randolph Chung <tausq@debian.org>
7301 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7302 as pointer instead of array reference since HPUX compiler does
7303 not accept unsized array arguments.
7304 * somsolib.c (dld_flags_buffer): Use constant array size.
7306 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7308 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7309 offset with decimal offset.
7310 (amd64obsd_sigcontext_addr): Return correct address for entire
7313 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7314 instead of get_frame_base.
7316 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7317 (fill_gregset): Use regcache_raw_collect.
7319 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7322 * config/sparc/tm-nbsd64.h: Remove file.
7323 * config/tm-sunos.h: Remove file.
7325 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7327 * rs6000-tdep.c (store_param_on_stack_p): New function,
7328 an improved version of some code extracted from skip_prologue().
7329 (skip_prologue): Use store_param_on_stack_p() to detect
7330 instructions saving a parameter on the stack. Detect when r0
7331 is used to save a parameter.
7332 Do not mark "li rx, SIMM" instructions as part of the prologue,
7333 unless the following instruction is also part of the prologue.
7335 2004-05-14 Andrew Cagney <cagney@redhat.com>
7337 * infrun.c (handle_inferior_event): Simplify
7338 STEP_OVER_UNDEBUGGABLE.
7340 * infrun.c (handle_step_into_function): Delete function.
7341 (handle_inferior_event): Inline calls to
7342 handle_step_into_function.
7344 2004-05-14 Jerome Guitton <guitton@gnat.com>
7346 * rs6000-nat.c: Fix a comment.
7348 2004-05-12 David Anderson <davea@sgi.com>
7350 Committed by Jim Blandy <jimb@redhat.com>:
7351 * regcache.c (struct regcache_descr): fix comment spelling.
7353 2004-05-13 J. Brobecker <brobecker@gnat.com>
7355 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7356 Fixes a link link failure.
7358 2004-05-13 J. Brobecker <brobecker@gnat.com>
7360 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7361 error that was causing the build to fail.
7363 2004-05-13 J. Brobecker <brobecker@gnat.com>
7365 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7366 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7368 2004-05-13 Andrew Cagney <cagney@redhat.com>
7370 * infrun.c (handle_inferior_event): Check for
7371 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7372 calls. Update comments.
7374 2004-05-13 Jim Blandy <jimb@redhat.com>
7376 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7377 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7378 (store_regs_user_thread, store_regs_kernel_thread): Use
7379 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7380 * ppc-linux-nat.c (fill_gregset): Same.
7381 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7382 (ppc_linux_sigtramp_cache): Same.
7383 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7384 (ppcnbsd_sigtramp_cache_init): Same.
7385 * rs6000-nat.c (fetch_core_registers): Same.
7386 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7387 (rs6000_frame_cache): Same.
7389 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7390 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7391 of assuming that the gprs are numbered starting with zero.
7392 * ppc-linux-nat.c (fill_gregset): Same.
7393 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7394 * ppcnbsd-nat.c (getregs_supplies): Same.
7395 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7396 * rs6000-nat.c (fetch_core_registers): Same.
7397 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7399 2004-05-07 Michael Snyder <msnyder@redhat.com>
7401 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7402 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7404 2004-05-13 Andrew Cagney <cagney@redhat.com>
7406 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7408 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7410 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7411 base_address for shared libraries.
7413 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7415 * MAINTAINERS (write after approval): Add myself.
7417 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7419 * breakpoint.c (bpstat_stop_status): Add new argument
7420 STOPPED_BY_WATCHPOINT. Use it instead of testing
7421 target_stopped_data_address agaist 0 to check whether
7422 or not we stopped due to a hardware watchpoint.
7423 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7424 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7427 2004-05-12 Jim Blandy <jimb@redhat.com>
7429 * configure.in: When checking whether we should use the -bbigtoc
7430 option, don't forget to restore the original value of LDFLAGS.
7431 * configure: Regenerated.
7433 2004-05-12 Andrew Cagney <cagney@redhat.com>
7435 * thread.c (load_infrun_state): Delete step_sp.
7436 * infrun.c (context_switch): Ditto.
7437 * inferior.h (step_sp): Ditto.
7438 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7439 * gdbthread.h (struct thread_info, save_infrun_state)
7440 (restore_infrun_state): Ditto.
7442 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7444 * MAINTAINERS (write after approval): Add myself.
7446 2004-05-12 Andrew Cagney <cagney@redhat.com>
7448 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7449 eliminate reference to step_sp.
7450 (struct execution_control_state, init_execution_control_state)
7451 (handle_inferior_event, keep_going): Delete update_step_sp and
7453 * infcmd.c (step_sp): Note that variable is unused.
7455 2004-05-11 Andrew Cagney <cagney@redhat.com>
7457 * infrun.c (step_over_function): Delete function.
7458 (handle_step_into_function): Use insert_step_resume_breakpoint.
7459 (insert_step_resume_breakpoint): Fix assertion.
7461 2004-05-11 Nick Roberts <nickrob@gnu.org>
7463 * utils.c (defaulted_query): Just use the normal query input type
7464 when printing the annotations.
7466 2004-05-11 Andrew Cagney <cagney@redhat.com>
7468 * infrun.c (handle_inferior_event): Simplify code handling
7469 step-into or return-from a signal trampoline.
7471 2004-05-11 Andrew Cagney <cagney@redhat.com>
7473 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7474 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7476 2004-05-10 Jim Blandy <jimb@redhat.com>
7478 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7479 with a call to internal_error.
7481 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7482 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7483 processor variant lacks those registers.
7484 (ppc_floating_point_unit_p): Change description to make it clear
7485 that this returns info about the ISA, not the ABI.
7486 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7487 return true or false by checking tdep->ppc_fp0_regnum and
7488 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7489 arch/mach switching done in rs6000_gdbarch_init; it's better to
7490 keep that logic there, and just check the results here.
7491 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7492 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7493 floating-point registers.
7494 (ppc_supply_fpregset, ppc_collect_fpregset)
7495 (rs6000_push_dummy_call, rs6000_extract_return_value)
7496 (rs6000_store_return_value): Assert that we have floating-point
7498 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7499 (rs6000_frame_cache): Don't note the locations at which
7500 floating-point registers were saved if we have no fprs.
7501 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7503 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7504 (store_regs_user_thread, store_regs_kernel_thread): Only call
7505 supply_fprs / fill_fprs if we actually have floating-point
7507 (special_register_p): Check ppc_fpscr_regnum before matching
7509 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7510 supply / collect fpscr if we don't have it.
7511 * ppc-bdm.c: #include "gdb_assert.h".
7512 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7513 have floating-point registers, since I can't test this code on
7514 FP-free systems to adapt it.
7515 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7516 fpscr and floating point register numbers if they don't exist.
7517 (fetch_register): Assert that we have floating-point registers
7518 before we reach the code that handles them.
7519 (store_register): Same. And use tdep instead of calling
7521 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7523 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7524 fprs and fpscr if we don't have them.
7525 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7527 * ppcnbsd-nat.c: #include "gdb_assert.h".
7528 (getfpregs_supplies): Assert that we have floating-point registers.
7529 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7530 * ppcobsd-tdep.c: #include "gdb_assert.h".
7531 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7532 have floating-point registers.
7533 * rs6000-nat.c (regmap): Don't match against the fpscr and
7534 floating point register numbers if they don't exist.
7535 (fetch_inferior_registers, store_inferior_registers,
7536 fetch_core_registers): Only fetch / store / supply the
7537 floating-point registers and the fpscr if we have them.
7538 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7539 (ppcobsd-tdep.o): Update dependencies.
7541 2004-05-10 Andrew Cagney <cagney@redhat.com>
7543 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7544 (context_switch): Do not switch through_sigtramp_breakpoint.
7545 * gdbthread.h (save_infrun_state, load_infrun_state)
7546 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7547 and structure member.
7548 * thread.c (load_infrun_state, save_infrun_state): Update.
7550 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7552 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7554 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7556 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7558 * aclocal.m4: Regenerate.
7560 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7562 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7564 2004-05-10 Andrew Cagney <cagney@redhat.com>
7566 * infrun.c (check_sigtramp2): Delete function.
7567 (handle_inferior_event): When single stepping, and taking a
7568 signal, set a breakpoint at the signal return address. Delete
7569 redundant calls to check_sigtramp2.
7570 (insert_step_resume_breakpoint): New function.
7571 (through_sigtramp_breakpoint, handle_inferior_event)
7572 (follow_exec, wait_for_inferior, fetch_inferior_event)
7573 (currently_stepping, keep_going): Delete most uses of
7574 through_sigtramp_breakpoint, not that it should be deleted.
7575 (delete_breakpoint_current_contents): Delete function.
7577 2004-05-10 Randolph Chung <tausq@debian.org>
7579 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7581 * config/pa/tm-linux.h: New file.
7583 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7585 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7586 of prefixes. Don't print the prefix twice in the CLI.
7588 2004-05-10 Jim Blandy <jimb@redhat.com>
7590 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7591 collect all the gprs.
7593 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7594 loop collecting gprs.
7596 2004-05-09 Andrew Cagney <cagney@redhat.com>
7598 * remote-vx.c (net_step): Delete step-range code.
7599 * remote.c (remote_resume, init_all_packet_configs)
7600 (set_remote_protocol_E_packet_cmd)
7601 (show_remote_protocol_E_packet_cmd)
7602 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7603 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7604 (show_remote_protocol_e_packet_cmd): Ditto.
7606 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7608 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7610 * hppa-tdep.h: Update copyright year.
7611 (struct trad_frame_saved_reg): Add opaque declaration.
7613 * amd64-tdep.c (amd64_return_value): Implement
7614 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7616 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7617 (m68k_value_to_register): New functions.
7618 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7621 * defs.h (enum return_value_convention): Add
7622 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7623 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7624 * infcmd.c (legacy_return_value): New function.
7625 (print_return_value): Rwerite to implement
7626 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7627 * values.c (using_struct_return): Check for inequality to
7628 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7629 RETURN_VALUE_STRUCT_CONVENTION.
7630 * i386-tdep.c (i386_return_value): Implement
7631 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7633 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7634 include "symtab.h", "opcode/vax.h" and "inferior.h".
7635 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7636 to read_memory_unsigned_integer.
7637 (vax_gdbarch_init): Reorder.
7638 (_initialize_vax_tdep): Spell out prototype.
7639 * Makefile.in (vax-tdep.o): Update dependencies.
7641 2004-05-08 Andrew Cagney <cagney@redhat.com>
7643 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7644 * target.c (target_detach, target_disconnect): Ditto.
7646 * infcall.c (call_function_by_hand): When no
7647 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7648 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7649 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7650 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7651 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7653 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7654 * gdbarch.h, gdbarch.c: Re-generate.
7655 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7656 deprecated_fix_call_dummy.
7657 * v850-tdep.c (v850_gdbarch_init): Ditto.
7658 * infcall.c (call_function_by_hand): Do not call
7659 DEPRECATED_FIX_CALL_DUMMY.
7661 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7662 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7663 * gdbarch.h, gdbarch.c: Re-generate.
7664 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7665 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7666 deprecated_sizeof_call_dummy_words.
7667 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7668 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7669 * v850-tdep.c (v850_gdbarch_init): Ditto.
7670 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7671 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7672 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7673 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7674 * arch-utils.h (legacy_call_dummy_words)
7675 (legacy_sizeof_call_dummy_words): Delete declarations.
7676 * arch-utils.c (legacy_call_dummy_words)
7677 (legacy_sizeof_call_dummy_words): Delete variables.
7679 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7680 * gdbarch.h, gdbarch.c: Re-generate.
7681 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7682 * infcall.c (call_function_by_hand): Eliminate call to
7683 DEPRECATED_PUSH_DUMMY_FRAME.
7684 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7686 (ns32k_push_dummy_frame): Delete function.
7688 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7689 deprecated_call_dummy_breakpoint_offset or
7690 deprecated_call_dummy_start_offset.
7691 * dummy-frame.c, arm-tdep.c: Update comments.
7692 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7693 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7694 * gdbarch.h, gdbarch.c: Re-generate.
7696 * infcall.c (legacy_push_dummy_code): Delete function.
7697 (push_dummy_code): Delete call.
7699 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7700 * gdbarch.h, gdbarch.c: Re-generate.
7701 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7702 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7703 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7704 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7706 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7707 (struct frame_info): Delete opaque declaration.
7708 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7709 * frame.c (get_frame_type): Delete call.
7711 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7713 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7714 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7716 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7718 * alphanbsd-tdep.c: Include "gdb_string.h".
7719 * armnbsd-tdep.c: Update copyright year.
7720 Include "gdb_string.h".
7721 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7724 * delta68-nat.c: Remove file.
7725 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7726 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7727 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7728 (delta68-nat.o): Remove dependency.
7730 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7732 (m68k_gdbarch_init): Don't set
7733 deprecated_frameless_function_invocation.
7735 2004-05-07 Randolph Chung <tausq@debian.org>
7737 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7738 read_memory_nobpt for code reading when doing frame unwinding.
7739 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7741 2004-05-07 Randolph Chung <tausq@debian.org>
7743 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7744 instead of sp, handle sigaltstack case.
7745 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7746 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7747 signal handler and not that of the caller.
7748 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7749 hppa_linux_sigtramp_find_sigcontext.
7751 2004-05-07 Randolph Chung <tausq@debian.org>
7753 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7755 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7756 * hppa-linux-nat.c (fetch_register, store_register): Define.
7757 (fetch_inferior_registers, store_inferior_registers): Define.
7758 (supply_gregset): Add comment and clean up some unneeded code.
7759 (fill_gregset): Add comment and fix so that it saves registers in
7760 the right place in the gregset.
7761 (fill_fpregset): Fix buffer overrun problem.
7762 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7764 2004-05-07 Randolph Chung <tausq@debian.org>
7766 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7767 do common handling of the pcoqt register.
7768 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7769 to use helper function.
7770 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7771 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7772 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7773 generic fallback unwinder when all else fails.
7774 (hppa_gdbarch_init): Add fallback sniffer.
7775 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7776 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7777 to use helper function.
7779 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7781 * config/djgpp/fnchange.lst: Add translation rules for
7782 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7784 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7786 * frame.c (get_prev_frame_1): Work around GCC bug.
7787 * frame.h: Add comment about GCC bug.
7789 2004-05-07 Andrew Cagney <cagney@redhat.com>
7791 * observer.c: Include "commands.h" and "gdbcmd.h".
7792 (observer_debug, _initialize_observer): Add the
7793 command "set/show debug observer".
7794 * observer.sh: When observer debugging, log notify calls.
7795 * Makefile.in (observer.o): Update dependencies.
7797 2004-05-07 Jason Molenda (jmolenda@apple.com)
7799 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7801 2004-05-07 Jim Blandy <jimb@redhat.com>
7803 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7804 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7805 to recognize gpr regnums, instead of assuming that
7806 tdep->ppc_fp0_regnum marks the end of the general-purpose
7809 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7810 the given architecture has floating-point registers.
7812 2004-05-07 Andrew Cagney <cagney@redhat.com>
7814 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7816 * gdbarch.h, gdbarch.c: Re-generate.
7817 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7818 deprecated_use_generic_dummy_frames.
7820 2004-05-07 Brian Ford <ford@vss.fsi.com>
7822 * NEWS: Mention Cygwin DWARF 2 support.
7824 2004-05-07 Andrew Cagney <cagney@redhat.com>
7826 * objfiles.h (struct entry_info): Delete unused fields
7827 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7828 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7829 * mipsread.c (mipscoff_symfile_read): Update.
7830 * mdebugread.c (parse_partial_symbols): Update.
7831 * dwarfread.c (read_file_scope): Update.
7832 * dwarf2read.c (read_file_scope): Update.
7833 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7834 * coffread.c (complete_symtab): Update.
7836 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7838 * infcall.c (_initialize_infcall): Fix typo.
7840 2004-05-07 Andrew Cagney <cagney@redhat.com>
7842 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7843 * command.h (add_setshow_zinteger_cmd): Declare.
7845 2004-05-06 Randolph Chung <tausq@debian.org>
7847 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7848 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7849 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7850 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7851 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7852 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7853 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7855 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7856 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7857 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7858 (hppa64_hpux_frame_find_saved_regs_in_sig)
7859 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7860 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7861 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7862 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7863 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7864 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7865 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7866 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7867 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7868 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7869 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7870 (hppa32_register_type, hppa_cannot_store_register)
7871 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7872 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7873 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7874 * pa64solib.c (pa64_solib_have_load_event)
7875 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7876 (pa64_solib_unloaded_library_pathname): Likewise.
7877 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7878 (som_solib_library_pathname): Likewise.
7880 2004-05-05 Jim Ingham <jingham@apple.com>
7882 * breakpoint.c (create_breakpoints): Copy the ignore count and
7883 thread id over from the pended breakpoint to the actual
7886 2004-05-05 Andrew Cagney <cagney@redhat.com>
7888 * gdbarch.sh (PARM_BOUNDARY): Delete.
7889 gdbarch.h, gdbarch.c: Re-generate.
7890 * valops.c (PARM_BOUNDARY): Delete macro.
7891 (value_push): Delete PARM_BOUNDARY code.
7892 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7894 2004-05-04 Jim Blandy <jimb@redhat.com>
7896 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7897 Don't assume that the gprs, fprs, and UISA sprs are
7898 contiguous, start at register number zero, and end with fpscr.
7899 Instead, use the numbers from the tdep structure.
7901 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7902 should no longer be used in code specific to the RS6000 and its
7904 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7905 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7906 tdep->ppc_fp0_regnum.
7907 (ppc_supply_fpregset, ppc_collect_fpregset)
7908 (rs6000_push_dummy_call, rs6000_extract_return_value)
7909 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7910 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7912 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7913 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7915 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7916 bdm_ppc_store_registers): Same.
7917 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7918 (store_register, fill_fpregset): Same.
7919 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7920 (ppc_linux_supply_fpregset): Same.
7921 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7922 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7924 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7925 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7926 ppc64_sysv_abi_return_value): Same.
7927 * rs6000-nat.c (regmap, fetch_inferior_registers)
7928 (store_inferior_registers, fetch_core_registers): Same.
7930 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7932 * m68knbsd-nat.c: Remove file.
7933 * m68knbsd-tdep.c: Remove file.
7934 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7936 * configure.host: Add m68k-*-netbsdelf*.
7937 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7938 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7939 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7941 * config/m68k/nbsdelf.mh: New file.
7942 * config/m68k/nbsd.mt: New file.
7943 * config/m68k/nbsdaout.mt: Remove file.
7944 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7945 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7946 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7947 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7948 (use_struct_convention): Remove prototype.
7949 (USE_STRUCT_CONVENTION): Remove define.
7950 * config/m68k/xm-nbsd.h: Remove file.
7952 2004-05-04 Michael Snyder <msnyder@redhat.com>
7954 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7955 reg_struct_return method (as gcc usually does for cross targets).
7957 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7959 Committed by Andrew Cagney.
7960 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7961 alignment padding when accessing ucontext struct members.
7963 2004-05-04 Jim Blandy <jimb@redhat.com>
7965 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7966 'ppc_gplast_regnum' member.
7967 (ppc_num_gprs): New enum constant.
7968 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7969 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7970 * rs6000-nat.c (regmap, fetch_inferior_registers,
7971 store_inferior_registers): Same.
7972 * rs6000-tdep.c (e500_pseudo_register_read)
7973 (e500_pseudo_register_write): Same.
7974 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7976 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7977 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7978 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7979 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7981 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7983 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7984 * rs6000-nat.c (regmap, fetch_inferior_registers)
7985 (store_inferior_registers): Same.
7987 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7990 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7992 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7993 failure detected by recent versions of GCC.
7994 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7995 to be consistent with the usage in dwarf2_create_include_psymtab.
7997 2004-05-03 Michael Snyder <msnyder@redhat.com>
7999 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8000 (heuristic_proc_start): Whitespace cleanup.
8002 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8004 * sun3-nat.c: Remove file.
8005 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8007 (ALLDEPFILES): Remove sun3-nat.c.
8008 (sun3-nat.o): Remove dependencies.
8010 * i386-interix-nat.c, i386-interix-tdep.c,
8011 config/i386/nm-interix.h, config/i386/interix.mh,
8012 config/i386/interix.mt: Remove files.
8013 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8016 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8018 * m68k-tdep.h (struct gdbarch_tdep): Add member
8019 struct_value_regnum.
8020 (m68k_svr4_init_abi): New prototype.
8021 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8022 different calling conventions.
8023 (m68k_extract_return_value): Remove code dealing with single-field
8025 (m68k_store_return_value): Remove code dealing with single-field
8026 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8027 (m68k_extract_struct_value_address): Remove function.
8028 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8029 (m68k_reg_struct_return_p, m68k_return_value)
8030 (m68k_svr4_return_value): New functions.
8031 (m68k_use_struct_convention): Remove function.
8032 (m68k_push_dummy_call): Use new struct_value_regnum member of
8033 `struct gdbarch_tdep' instead of hardcoded register number to
8035 (m68k_svr4_init_abi): New function.
8036 (m68k_gdbarch_init): Don't set extract_return_value,
8037 store_return_values, deprecated_extract_struct_value_address and
8038 use_struct_convention. Set return_value instead. Initialize new
8039 struct_value_regnum member of `struct gdbarch_tdep'.
8040 * m68klinux-tdep.c: Update copyright year.
8041 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8042 (m68k_linux_extract_struct_value_address): Remove function.
8043 (m68k_linux_init_abi): Don't set extract_return_value,
8044 store_return_values, deprecated_extract_struct_value_address and
8045 use_struct_convention. Call m68k_svr4_init_abi but override the
8046 new struct_value_regnum member of `struct gdbarch_tdep'.
8047 * Makefile.in (m68k-tdep.o): Update dependencies.
8049 2004-05-03 J. Brobecker <brobecker@gnat.com>
8051 * dwarf2read.c (line_header): Add new included_p field in
8053 (partial_die_info): New field has_stmt_list. New field line_offset.
8054 (dwarf2_create_include_psymtab): New function.
8055 (dwarf2_build_include_psymtabs): New function.
8056 (add_file_name): Add forward declaration. Initialize new field.
8057 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8058 to be able to determine the list of files included by the
8059 given unit, and build their associated psymtabs.
8060 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8062 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8063 (read_file_scope): Update call to dwarf_decode_lines.
8064 (read_partial_die): Handle DW_AT_stmt_list attributes.
8066 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8069 * configure.in: Revert special case for osf5.*.
8070 * configure: Regenerate.
8072 2004-05-02 Jim Blandy <jimb@redhat.com>
8074 Move the symbol-file-from-memory functions into their own file.
8075 * symfile-mem.c, symfile-mem.h: New files.
8076 * symfile.c (symbol_file_add_from_bfd): New function.
8077 (symbol_file_add): Call symbol_file_add_from_bfd.
8078 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8079 Moved to symfile-mem.c.
8080 (_initialize_symfile): Move definition of
8081 add-symbol-file-from-memory command to symfile-mem.c.
8082 * symfile.h (symbol_file_add_from_bfd): New declaration.
8083 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8084 * config/powerpc/linux.mt (TDEPFILES): Same.
8085 * Makefile.in (SFILES): Add symfile-mem.c.
8086 (symfile_mem_h): New variable.
8087 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8088 (symfile-mem.o): New rule.
8090 2004-05-01 Andrew Cagney <cagney@redhat.com>
8092 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8093 frame_find_by_id instead of frame_relative_level.
8094 (do_enable_breakpoint): Ditto.
8095 * thread.c: Update copyright.
8096 (info_threads_command): Ditto, simplify.
8098 * frame.c (deprecated_generic_get_saved_register): Delete
8099 function, moved to "xstormy16-tdep.c".
8100 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8101 deprecated_generic_get_saved_register from "frame.c".
8102 (xstormy16_frame_saved_register): Call
8103 xstormy16_get_saved_register.
8104 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8106 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8107 * frame.h (deprecated_generic_get_saved_register): Delete.
8109 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8111 * dwarfread.c: Update documentation on the state of dwarf-1.
8113 2004-05-01 Andrew Cagney <cagney@redhat.com>
8115 * stack.c (select_frame_command): Delete call to
8116 frame_relative_level.
8117 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8119 (frame_info): Do not print FRAMELESS.
8120 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8121 (catch_info): Delete #if0 code.
8123 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8124 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8125 of frame_relative_level.
8126 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8128 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8129 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8130 frame_relative_level.
8132 * frame.h (deprecated_set_frame_type): Delete declaration.
8133 * frame.c (deprecated_set_frame_type): Delete function, update
8136 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8137 * gdbarch.h, gdbarch.c: Re-generate.
8138 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8139 (shnbsd_pc_in_sigtramp): Delete.
8140 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8142 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8144 * frame.h: Update comments.
8145 * ppc-linux-tdep.c: Update comments.
8146 * breakpoint.c (bpstat_what): Update comments.
8148 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8149 m68klinux-tdep.o's dependencies, were previously added to
8152 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8153 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8154 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8155 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8156 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8158 * Makefile.in (m68klinux-nat.o): Update dependencies.
8159 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8160 (m68k_linux_sigtramp_frame_cache)
8161 (m68k_linux_sigtramp_frame_this_id)
8162 (m68k_linux_sigtramp_frame_prev_register)
8163 (m68k_linux_sigtramp_frame_unwind)
8164 (m68k_linux_sigtramp_frame_sniffer)
8165 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8166 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8167 names, use trad-frame.h.
8168 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8169 (struct m68k_sigtramp_info): Delete.
8170 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8171 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8172 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8173 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8176 * infrun.c (check_sigtramp2): Delete check for
8177 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8179 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8181 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8183 2004-05-01 Andrew Cagney <cagney@redhat.com>
8185 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8186 (frv_linux_sigtramp_frame_cache)
8187 (frv_linux_sigtramp_frame_this_id)
8188 (frv_linux_sigtramp_frame_prev_register)
8189 (frv_linux_sigtramp_frame_unwind)
8190 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8191 include "linux" in function and variable names, directly call
8192 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8193 the latest trad-frame code.
8194 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8195 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8196 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8197 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8198 * frv-tdep.c (frv_sigtramp_frame_cache)
8199 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8200 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8202 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8203 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8204 (frv_set_sigcontext_reg_addr): Delete function.
8206 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8207 (DEPRECATED_SIGTRAMP_END): Delete.
8208 * gdbarch.h, gdbarch.c: Re-generate.
8209 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8210 * config/vax/tm-vaxbsd.h: Update copyright.
8211 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8212 (DEPRECATED_IN_SIGTRAMP): Define.
8213 * config/m68k/tm-nbsd.h: Update copyright.
8214 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8215 (DEPRECATED_IN_SIGTRAMP): Define.
8217 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8219 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8220 encondings. Fixes PR gdb/1628.
8222 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8223 DW_CFA_restore state without a matching DW_CFA_remember_state
8224 instead of aborting. Fixes PR backtrace/1589.
8226 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8228 * MAINTAINERS: Add self as AIX maintainer.
8229 Update my e-mail address in write-after-approval section.
8231 2004-04-30 Andrew Cagney <cagney@redhat.com>
8233 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8234 (legacy_get_prev_frame): Ditto.
8236 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8237 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8238 * mipsread.c (sigtramp_address): Delete extern variable.
8239 (mipscoff_new_init): Delete reference.
8240 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8241 (fixup_sigtramp): Delete function.
8242 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8243 (fixup_sigtramp): Delete declarations.
8245 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8246 deprecated_pc_in_sigtramp.
8247 (ppcnbsd_pc_in_sigtramp): Delete function.
8249 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8251 * config/m68k/nm-nbsd.h: Tweak comments.
8252 * config/m68k/nm-nbsdaout.h: Likewise.
8254 2004-04-30 Andrew Cagney <cagney@redhat.com>
8256 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8257 legacy_pc_in_sigtramp.
8258 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8260 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8262 Add OpenBSD/m68k support.
8263 * NEWS (New native configurations): Mention OpenBSD/m68k.
8264 * m68kbsd-tdep.c: New file.
8265 * m68kbsd-nat.c: New file.
8266 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8267 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8268 * configure.host: Add m68k-*-openbsd.
8269 * configure.tgt: Add m68k-*-openbsd.
8270 * config/m68k/tm-obsd.h: New file.
8271 * config/m68k/obsd.mt: New file.
8272 * config/m68k/obsd.mh: New file.
8273 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8276 2004-04-30 Andrew Cagney <cagney@redhat.com>
8278 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8279 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8281 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8283 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8284 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8286 2004-04-30 Brian Ford <ford@vss.fsi.com>
8288 Revert 2004-04-16 change.
8289 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8290 (i386_coff_init_abi): Remove.
8291 * i386-tdep.h (i386_coff_init_abi): Remove.
8292 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8294 2004-04-30 Andrew Cagney <cagney@redhat.com>
8296 * blockframe.c (find_pc_partial_function): Delete use of
8297 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8298 DEPRECATED_SIGTRAMP_END.
8300 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8301 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8302 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8303 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8304 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8306 * defs.h (deprecated_inside_entry_file): Delete declaration.
8307 * blockframe.c (deprecated_inside_entry_file): Delete function.
8308 (legacy_frame_chain_valid): Delete call.
8309 * sh64-tdep.c (sh64_frame_chain): Delete call.
8310 * objfiles.h: Update comments.
8311 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8313 * frame.c (get_prev_frame): Delete call, update comments.
8315 2004-04-30 Brian Ford <ford@vss.fsi.com>
8317 * MAINTAINERS (Write After Approval): Add myself.
8319 2004-04-30 Andrew Cagney <cagney@redhat.com>
8321 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8322 * gdbarch.h, gdbarch.c: Re-generate.
8323 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8326 2004-04-30 Andrew Cagney <cagney@redhat.com>
8328 * gdb-events.sh (selected_thread_changed)
8329 (selected_frame_level_changed, target_changed): Delete.
8330 * gdb-events.h, gdb-events.c: Re-generate.
8331 * valops.c (value_assign): Update.
8332 * stack.c (select_frame_command, up_silently_base)
8333 (down_silently_base): Update.
8335 2004-04-29 Andrew Cagney <cagney@redhat.com>
8337 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8338 registers correctly.
8339 (print_gp_register_row, mips32_heuristic_proc_desc)
8340 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8341 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8342 references to mips_isa_regsize.
8344 2004-04-29 Andrew Cagney <cagney@redhat.com>
8346 * mips-tdep.c (struct gdbarch_tdep): Delete
8347 mips_fp_register_double.
8348 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8350 (mips_gdbarch_init): Do not set mips_fp_register_double.
8351 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8353 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8355 Committed by Andrew Cagney.
8356 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8359 2004-04-29 Andrew Cagney <cagney@redhat.com>
8361 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8362 gdbarch, use mips_abi, update callers.
8363 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8364 mips_abi_regsize, update callers.
8365 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8366 mips_default_abi_regsize.
8367 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8368 mips_default_abi_regsize.
8370 2004-04-29 Andrew Cagney <cagney@redhat.com>
8372 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8373 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8374 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8375 mips_default_abi_regsize.
8376 (mips_isa_regsize): Rename mips_regisze.
8377 * mipsnbsd-tdep.c: Update.
8378 * mips-linux-tdep.c: Update.
8379 * irix5-nat.c: Update.
8380 * mips-tdep.h (mips_isa_regsize): Update.
8382 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8383 Delete all disabled code.
8384 * gdb-events.h, gdb-events.c: Re-generate.
8386 2004-04-19 Jerome Guitton <guitton@gnat.com>
8387 Mark Kettenis <kettenis@gnu.org>
8389 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8390 the function begins with a branch instruction.
8392 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8394 * i386-tdep.c: Fix spelling mistakes.
8396 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8397 Andrew Cagney <cagney@redhat.com>
8399 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8401 * acconfig.h: Provide default _KMEMUSER value.
8402 * config.in, configure: Re-generate.
8403 * NEWS: Mention fix.
8405 2004-04-24 Randolph Chung <tausq@debian.org>
8407 * configure.host (hppa*-*-linux*): New target.
8408 * configure.tgt (hppa*-*-linux*): Likewise.
8409 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8410 gdbarch_init_osabi() call earlier so that osabi-specific frame
8411 unwinders can be registered first.
8412 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8414 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8415 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8416 * config/pa/linux.mh: New file.
8417 * config/pa/linux.mt: New file.
8418 * config/pa/nm-linux.h: New file.
8419 * config/pa/xm-linux.h: New file.
8420 * hppa-linux-nat.c: New file.
8421 * hppa-linux-tdep.c: New file.
8423 2004-04-28 Randolph Chung <tausq@debian.org>
8425 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8427 (hppa32_push_dummy_call): Fix small struct and floating point argument
8428 passing, and make sure the stack frame is properly aligned.
8430 2004-04-28 Andrew Cagney <cagney@redhat.com>
8432 * stack.c (print_stack_frame): Fix description.
8434 * NEWS: Mention gdb/gdbserver/configure execute permission
8435 changed. PR server/519.
8437 2004-04-28 Andrew Cagney <cagney@redhat.com>
8439 * stack.c (print_stack_frame_stub): Delete declaration.
8440 (struct print_stack_frame_args, print_stack_frame)
8441 (print_frame_info, print_frame): Replace "source" with print what.
8442 Replace "print" with "print_level". Replace "args" with
8444 * frame.h (show_and_print_stack_frame, print_stack_frame)
8445 (print_frame_info): Update declarations.
8446 * stack.c (select_and_print_frame, frame_command)
8447 (current_frame_command, up_command, down_command): Update calls -
8448 use get_selected_frame, pass "enum print_what" for source, do not
8449 call frame_relative_level.
8450 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8451 * remote-rdp.c (remote_rdp_open): Ditto.
8452 * remote-mips.c (common_open): Ditto.
8453 * remote-e7000.c (e7000_start_remote): Ditto.
8454 * ocd.c (ocd_start_remote): Ditto.
8455 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8456 * infrun.c (normal_stop): Ditto.
8457 * inflow.c (kill_command): Ditto.
8458 * infcmd.c (finish_command): Ditto.
8459 * corelow.c (core_open): Ditto.
8460 * tracepoint.c (finish_tfind_command): Ditto.
8461 * thread.c (info_threads_command, info_threads_command)
8462 (restore_current_thread, do_captured_thread_select): Ditto.
8463 * ada-tasks.c (task_command): Ditto.
8465 2004-04-26 Orjan Friberg <orjanf@axis.com>
8467 * frame.c: Include "observer.h".
8468 (frame_observer_target_changed): New function.
8469 (_initialize_frame): Attach target_changed observer.
8470 * regcache.c: Include "observer.h".
8471 (regcache_observer_target_changed): New function.
8472 (_initialize_regcache): Attach target_changed observer.
8473 * valops.c: Include "observer.h".
8474 (value_assign): Notify target_changed event when modifying register.
8475 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8477 2004-04-26 Orjan Friberg <orjanf@axis.com>
8479 From Paul Koning <pkoning@equallogic.com>:
8480 * breakpoint.c (free_valchain): New function.
8481 (insert_bp_location, delete_breakpoint): Use free_valchain.
8482 (remove_breakpoint): Do not remove the valchain.
8483 (bpstat_stop_status): If not stopped by watchpoint, skip
8484 watchpoints when generating stop status list.
8485 * infrun.c (handle_inferior_event): Make
8486 stepped_after_stopped_by_watchpoint a global variable.
8487 * remote.c (remote_stopped_data_address): Return watch data
8488 address rather than zero if stepped_after_stopped_by_watchpoint is
8491 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8494 * configure.in: Check for curses after termcap.
8495 On osf5.*, do not check for ncurses.
8496 * configure: Regenerate.
8498 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8500 * ppcobsd-nat.c: Include "ppc-tdep.h".
8501 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8503 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8504 Fixes PR tdep/1623 and PR tdep/1624.
8506 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8508 * xmodem.h, xmodem.c: Remove files.
8509 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8511 2004-04-23 Randolph Chung <tausq@debian.org>
8513 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8514 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8515 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8516 for handling stackless frames.
8517 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8519 2004-04-23 Randolph Chung <tausq@debian.org>
8521 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8522 starts at a pc before the frame is created.
8524 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8526 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8528 2004-04-23 Jerome Guitton <guitton@gnat.com>
8530 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8531 use convert_typed_floating to get the appropriate format.
8533 2004-04-22 Randolph Chung <tausq@debian.org>
8535 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8536 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8537 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8538 (hppa_sign_extend): Add prototype.
8539 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8540 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8541 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8542 hppa targets will also use these functions.
8543 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8544 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8545 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8546 (hppa_gdbarch_init): Remove gdbarch setting of
8547 skip_trampoline_code, in_solib_call_trampoline and
8548 in_solib_return_trampoline.
8549 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8550 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8551 hppa_in_solib_call_trampoline.
8552 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8553 Moved from hppa-tdep.c.
8554 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8555 in_solib_call_trampoline and in_solib_return_trampoline.
8557 2004-04-22 Randolph Chung <tausq@debian.org>
8559 * hppa-tdep.c (hppa_debug): New variable.
8560 (find_unwind_entry, hppa_frame_cache): Add debug output.
8561 (_initialize_hppa_tdep): Add command to set debug flag.
8563 2004-04-22 Andrew Cagney <cagney@redhat.com>
8565 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8567 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8568 signal trampoline unwinder.
8569 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8571 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8573 Add OpenBSD/powerpc support.
8574 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8575 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8576 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8577 (ppc_collect_fpregset): New prototypes.
8578 * ppcobsd-nat.c: New file.
8579 * ppcobsd-tdep.c: New file.
8580 * ppcobsd-tdep.h: New file.
8581 * rs6000-tdep.c: Include "regset.h".
8582 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8583 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8585 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8586 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8587 (rs6000-tdep.o): Update dependencies.
8588 * configure.host: Add powerpc-*-openbsd.
8589 * configure.tgt: Add powerpc-*-openbsd.
8590 * config/powerpc/obsd.mh: New file.
8591 * config/powerpc/nm-obsd.h: New file.
8592 * config/powerpc/obsd.mt: New file.
8594 2004-04-22 Andrew Cagney <cagney@redhat.com>
8596 * frame.h (show_frame_info): Delete declaration.
8598 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8599 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8600 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8601 * frv-tdep.c (frv_frame_this_id): Ditto.
8602 * avr-tdep.c (avr_frame_this_id): Ditto.
8604 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8606 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8608 2004-04-22 Jim Blandy <jimb@redhat.com>
8610 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8611 register number zero.
8613 2004-04-21 Michael Snyder <msnyder@redhat.com>
8615 * mips-tdep.c (heuristic_proc_start):
8616 Warning() already prefixes "Warning: ".
8618 2004-04-21 Andrew Cagney <cagney@redhat.com>
8620 * annotate.h (deprecated_annotate_starting_hook)
8621 (deprecated_annotate_stopped_hook)
8622 (deprecated_annotate_exited_hook)
8623 (deprecated_annotate_signal_hook)
8624 (deprecated_annotate_signalled_hook): Deprecate.
8625 * tracepoint.h (deprecated_create_tracepoint_hook)
8626 (deprecated_delete_tracepoint_hook)
8627 (deprecated_modify_tracepoint_hook)
8628 (deprecated_trace_find_hook)
8629 (deprecated_trace_start_stop_hook): Deprecate.
8630 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8631 * remote.h (deprecated_target_resume_hook)
8632 (deprecated_target_wait_loop_hook): Deprecate.
8633 * gdbcore.h (deprecated_exec_file_display_hook)
8634 (deprecated_file_changed_hook): Deprecate.
8635 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8636 * defs.h (deprecated_modify_breakpoint_hook)
8637 (deprecated_command_loop_hook, deprecated_show_load_progress)
8638 (deprecated_print_frame_info_listing_hook)
8639 (deprecated_query_hook, deprecated_warning_hook)
8640 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8641 (deprecated_delete_breakpoint_hook)
8642 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8643 (deprecated_readline_begin_hook, deprecated_readline_hook)
8644 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8645 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8646 (deprecated_context_hook, deprecated_target_wait_hook)
8647 (deprecated_attach_hook, deprecated_detach_hook)
8648 (deprecated_call_command_hook, deprecated_set_hook)
8649 (deprecated_error_hook, deprecated_error_begin_hook)
8650 (deprecated_ui_load_progress_hook): Deprecate.
8651 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8652 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8653 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8654 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8655 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8656 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8657 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8658 * annotate.c, aix-thread.c: Update.
8660 2004-04-21 Andrew Cagney <cagney@redhat.com>
8662 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8663 * vaxnbsd-tdep.c: Include "gdb_string.h".
8665 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8666 (add_symbol_file_from_memory_command): #if 0 function body, call
8669 2004-04-21 Andrew Cagney <cagney@redhat.com>
8671 * gdbcore.h: Update copyright.
8672 (deprecated_add_core_fns): Rename add_core_fns.
8673 * win32-nat.c (_initialize_core_win32): Update.
8674 * sun3-nat.c (_initialize_core_sun3): Update.
8675 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8676 * rs6000-nat.c (_initialize_core_rs6000): Update.
8677 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8678 * nto-tdep.c (_initialize_nto_tdep): Update.
8679 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8680 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8681 * mips-nat.c (_initialize_core_mips): Update.
8682 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8683 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8684 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8685 * lynx-nat.c (_initialize_core_lynx): Update.
8686 * irix5-nat.c (_initialize_core_irix5): Update.
8687 * i386-interix-nat.c (_initialize_core_interix): Update.
8688 * cris-tdep.c (_initialize_cris_tdep): Update.
8689 * corelow.c (deprecated_add_core_fns): Update.
8690 * core-regset.c (_initialize_core_regset): Update.
8691 * core-aout.c (_initialize_core_aout): Update.
8692 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8693 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8694 * alpha-nat.c (_initialize_core_alpha): Update.
8696 2004-04-21 Jim Blandy <jimb@redhat.com>
8698 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8700 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8702 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8704 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8705 (read_attribute_value): Update calls to dwarf_alloc_block.
8706 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8708 (psymtab_to_symtab_1): Likewise. Clean up using
8709 free_stack_comp_unit.
8710 (add_to_cu_func_list): Use the comp_unit_obstack.
8712 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8714 * dwarf2read.c (dwarf2_flag_true_p): New function.
8715 (die_is_declaration): Use the function above. Add some comments.
8717 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8719 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8720 architecture when registering sparcnbsd_core_osabi_sniffer.
8723 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8725 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8728 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8729 * i386-tdep.c: Correct register numbering scheme comments
8731 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8732 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8733 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8734 (i386_gdb_arch_init): Likewise.
8736 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8737 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8740 * m68k-tdep.h: Tweak comments.
8741 * m68k-tdep.c: Tweak comment.
8743 2004-04-17 Randolph Chung <tausq@debian.org>
8745 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8746 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8747 (hppa_hpux_som_init_abi): Set is_elf to 0.
8748 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8749 * hppa-tdep.c (low_text_segment_address): Remove global.
8750 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8751 section offset to calculate segment address.
8752 (internalize_unwinds): Define low_text_segment_address as local and
8753 pass to record_text_segment_lowaddr for ELF targets.
8754 (hppa_gdbarch_init): Zero fill tdep structure.
8755 (hppa_dump_tdep): Print tdep structure.
8756 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8758 2004-04-17 Randolph Chung <tausq@debian.org>
8760 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8761 (hppa_gdbarch_init): Set pseudo_register_read.
8762 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8763 * regcache.c (supply_register): Remove check for
8764 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8766 2004-04-17 Randolph Chung <tausq@debian.org>
8768 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8769 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8770 (hpread_adjust_stack_address): Move to hpread.c.
8771 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8772 obj_private_struct): Move from tm-hppa.h.
8773 * hpread.c (hppa-tdep.h): Include.
8774 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8775 (hpread_read_function_type, hpread_read_doc_function_type)
8776 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8778 * pa64solib.c (hppa-tdep.h): Include.
8779 * somsolib.c (hppa-tdep.h): Include.
8780 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8781 inferior_status): Remove unused forward declarations.
8782 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8783 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8784 obj_private_struct): Move to hppa-tdep.h.
8785 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8787 2004-04-17 Randolph Chung <tausq@debian.org>
8789 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8790 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8791 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8792 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8793 Remove forward declaration and make static.
8794 (hppa_reg_struct_has_addr): Remove.
8796 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8798 * observer.sh: Move comments in sed command to first column.
8800 2004-04-16 Jason Molenda (jmolenda@apple.com)
8802 * frame.c: Minor typeo corrections in comments.
8804 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8806 * observer.c (observer_test_first_notification_function): Update
8808 (observer_test_second_notification_function): Likewise.
8809 (observer_test_third_notification_function): Likewise.
8811 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8813 From Brian Ford <ford@vss.fsi.com>:
8814 * i386-tdep.c (i386_coff_init_abi): New function.
8815 * i386-tdep.h (i386_coff_init_abi): New prototype.
8816 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8817 register number translation functions for DWARF and DWARF 2.
8819 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8821 * dwarf2read.c: Back out my previous change, it was incorrect.
8823 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8825 * dwarf2read.c: Include "hashtab.h".
8826 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8828 (struct partial_die_info): Add comments. Use bitfields to reduce
8829 memory footprint. Add scope, scope_set, has_specification,
8830 spec_offset, die_parent, die_child, and die_sibling.
8831 (peek_die_abbrev): Add prototype.
8832 (partial_read_comp_unit_head): New function, broken out from
8833 dwarf2_build_psymtabs_hard.
8834 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8835 Use partial_read_comp_unit_head. Initialize the CU and
8836 comp_unit_obstack. Update calls to read_partial_die and
8837 scan_partial_symbols. Use free_stack_comp_unit and
8839 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8840 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8841 Update calls to helper functions. Remove NAMESPACE argument.
8843 (partial_die_parent_scope, partial_die_full_name): New functions.
8844 (add_partial_symbol): Remove namespace argument. Update call to
8845 pdi_needs_namespace. Use partial_die_full_name. Handle
8846 DW_TAG_namespace. Check has_namespace_info flag.
8847 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8848 tag. Handle namespaces.
8849 (add_partial_namespace, add_partial_enumeration): Simplify.
8850 (guess_structure_name): New function, derived from
8851 add_partial_structure.
8852 (add_partial_structure): Remove.
8853 (determine_class_name): Update comment.
8854 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8855 (is_type_tag_for_partial, load_partial_dies): New functions.
8856 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8857 Record specifications instead of following them immediately.
8858 (find_partial_die_in_comp_unit, find_partial_die)
8859 (fixup_partial_die, free_stack_comp_unit)
8860 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8861 (partial_die_hash, partial_die_eq): New functions.
8862 * Makefile.in (hashtab_h): Define.
8863 (dwarf2read.o): Update dependencies.
8864 (observer_inc, observer_h): Move to the correct section.
8866 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8868 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8869 (die_is_declaration): Use the function above. Add comment.
8871 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8873 * dwarf2read.c (read_structure_scope): Identify stub types
8874 using die_is_declaration() only.
8876 2004-04-15 Roland McGrath <roland@redhat.com>
8878 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8879 argument instead of NAME.
8880 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8881 in call to symbol_file_add_with_addrs_or_offsets.
8882 (build_addr_info): New function, helper for ...
8883 (symbol_file_add_from_memory): New function.
8884 (add_symbol_file_from_memory_command): New function using that.
8885 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8886 (pre_add_symbol_hook): Add const to argument type.
8887 * symfile.h (symbol_file_add_from_memory): Declare it.
8889 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8891 * NEWS (New native configurations): Mention OpenBSD/vax.
8892 * configure.host: Add vax-*-openbsd*.
8893 * config/vax/obsd.mh: New file.
8894 * config/vax/nm-obsd.h: New file.
8896 * vax-tdep.c: Include "regset.h".
8897 (vax_supply_gregset): New function.
8898 (vax_gregset): New variable.
8899 (vax_regset_from_core_section): New function.
8900 (vax_gdbarch_init): Set regset_from_core_section.
8901 * Makefile.in (vax-tdep.o): Update dependencies.
8903 2004-04-15 Andrew Cagney <cagney@redhat.com>
8905 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8906 (observer_normal_stop_notification_stub)
8907 (observer_attach_normal_stop, observer_detach_normal_stop):
8908 Delete, replaced by #include "observer.inc".
8909 * infrun.c (normal_stop): Pass "stop_bpstat" to
8910 observer_notify_normal_stop.
8911 * Makefile.in (observer_inc): Define.
8912 (observer.o): Update dependencies.
8913 (observer.h, observer.inc): New rules.
8914 * observer.h: Delete file.
8915 * observer.sh: New file.
8917 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8919 * vax-tdep.c (vax_frame_cache): Fix typo.
8921 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8923 * NEWS (New native configurations): Mention NetBSD/vax.
8924 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8925 * config/vax/nbsdelf.mh: New file.
8926 * config/vax/nbsdaout.mh: New file.
8927 * config/vax/nm-nbsd.h: New file.
8928 * config/vax/nm-nbsdaout.h: New file.
8930 * vaxnbsd-tdep.c: New file.
8931 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8932 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8933 * config/vax/nbsd.mt: New file.
8934 * config/vax/tm-nbsd.h: New file.
8936 * Makefile.in (vaxbsd-nat.o): New dependency.
8938 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8939 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8940 struct_addr arguments. Don't push return value address.
8941 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8942 arguments to vax_store_arguments. Store return value address in
8944 (vax_store_struct_return, vax_extract_return_value)
8945 (vax_store_return_value): Remove functions.
8946 (vax_return_value): New function.
8947 (vax_gdbarch_init): Set return value. Don't set
8948 deprecated_store_struct_return, deprecated_extract_struct_return
8949 and deprecated_store_return_value.
8951 2004-04-14 Andreas Schwab <schwab@suse.de>
8953 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8955 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8957 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8959 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8960 (vax_unwind_dummy_id): New functions.
8961 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8962 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8964 (vax_fix_call_dummy): Remove function.
8965 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8966 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8967 call_dummy_location, deprecated_call_dummy_words,
8968 deprecated_sizeof_call_dummy_words,
8969 deprecated_call_dummy_breakpoint_offset,
8970 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8971 and deprecated_dummy_write_sp.
8973 2004-04-13 David Carlton <carlton@kealia.com>
8975 * MAINTAINERS: Move myself to "paper trail" section.
8977 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8979 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8981 (vax_frame_init_saved_regs): Remove function.
8982 (vax_sigtramp_saved_pc): Remove function.
8983 (vax_frame_saved_pc): Remove function.
8984 (vax_frame_args_address): Remove function.
8985 (vax_frame_num_args): Rewrite.
8986 (vax_frame_chain): Remove function.
8987 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8989 (vax_pop_frame): Likewise.
8990 (vax_saved_pc_after_call): Remove function.
8991 (struct vax_frame_cache): New structure.
8992 (vax_frame_cache): New function.
8993 (vax_frame_this_id): New function.
8994 (vax_frame_prev_register): New function.
8995 (vax_frame_unwind): New variable.
8996 (vax_frame_sniffer): New function.
8997 (vax_frame_base_address): New function.
8998 (vax_frame_args_address): New function.
8999 (vax_frame_base): New variable.
9000 (vax_unwind_pc): New function.
9001 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9002 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9003 deprecated_frame_chain, deprecated_frame_saved_pc,
9004 deprecated_frame_args_address and
9005 deprecated_frame_init_saved_regs.
9006 * Makefile.in (vax-tdep.o): Update dependencies.
9008 * vaxbsd-nat.c: New file.
9010 * vax-tdep.h: Update copyright year. Adjust comments.
9011 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9012 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9013 (vax_regnum): New enum. Replacing...
9014 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9015 (VAX_PS_REGNUM): ... these removed macros.
9016 * vax-tdep.c (vax_register_name): Remove prototype.
9017 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9018 (vax_register_byte, vax_register_raw_size,
9019 vax_register_virtual_size, vax_register_virtual_type): Remove
9021 (vax_register_type): New function.
9022 (vax_breakpoint_from_pc): Reorganize.
9023 (vax_gdbarch_init): Set register_type. Don't set
9024 deprecated_register_size, deprecated_register_bytes,
9025 deprecated_register_byte, deprecated_register_raw_size,
9026 deprecated_max_register_raw_size,
9027 deprecated_register_virtual_size,
9028 deprecated_max_register_virtual_size and
9029 deprecated_register_virtual_type. Add comment on stack direction.
9031 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9033 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9034 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9035 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9037 2004-04-10 Randolph Chung <tausq@debian.org>
9039 * MAINTAINERS (write after approval): Add myself.
9041 2004-04-07 Randolph Chung <tausq@debian.org>
9043 * hppa-tdep.c (hppa_inner_than): Remove.
9044 (is_pa_2): Remove unused static variable.
9045 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9047 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9049 * language.h (language_defn): Add new la_post_parser field.
9050 * parser-defs.h (null_post_parser): New declaration (default for
9053 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9054 insert call to that function.
9055 (parse_exp_in_context): New function, including code formerly in
9056 parse_exp_1. Calls language-dependent post-parser after
9058 (parse_expression_in_context): New exported function.
9059 (null_post_parser): New definition.
9060 * expression.h (parse_expression_in_context): Add declaration.
9062 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9063 * c-lang.c (c_language_defn): Ditto.
9064 (cplus_language_defn): Ditto.
9065 (asm_language_defn): Ditto.
9066 (minimal_language_defn): Ditto.
9067 * f-lang.c (f_language_defn): Ditto.
9068 * jv-lang.c (java_language_defn): Ditto.
9069 * language.c (unknown_language_defn): Ditto.
9070 (auto_language_defn): Ditto.
9071 (local_language_defn): Ditto.
9072 * m2-lang.c (m2_language_defn): Ditto.
9073 * scm-lang.c (scm_language_defn): Ditto.
9074 * obj-lang.c (objc_language_defn): Ditto.
9076 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9078 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9079 (amd64nbsd_mcontext_addr): New function.
9080 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9081 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9082 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9084 * corelow.c (core_xfer_partial): Fix coding standards violation.
9085 Add support for TARGET_OBJECT_WCOOKIE.
9087 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9088 deprecated_pc_in_sigtramp.
9089 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9090 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9091 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9092 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9093 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9094 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9095 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9097 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9098 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9101 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9102 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9103 (amd64_collect_fxsave): Likewise.
9105 * i386-sol2-tdep.c: Include "gdb_string.h".
9106 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9108 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9110 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9112 * i386-sol2-tdep.c: Include "solib-svr4.h".
9113 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9114 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9115 * config/i386/tm-i386sol2.h: Include :solib.h".
9116 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9117 solib-svr4.o and solib-legacy.o.
9118 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9121 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9123 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9124 whether a register is supplied by PTRACE_GETFPREGS.
9125 (store_inferior_registers): Likewise.
9126 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9127 whether a register is supplied by PT_GETFPREGS.
9128 (store_inferior_registers): Likewise.
9130 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9131 * config/i386/linux64.mt (TDEPFILES): Likewise.
9133 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9135 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9136 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9137 the program counter is in the range specified by `struct
9139 * amd64-linux-tdep.c: Include "symtab.h".
9140 (amd64_linux_pc_in_sigtramp): Remove function.
9141 (amd64_linux_sigtramp_p): New function.
9142 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9143 deprecated_pc_in_sigtramp.
9144 * amd64nbsd-tdep.c: Include "symtab.h".
9145 (amd64nbsd_sigtramp_p): New function.
9146 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9147 deprecated_pc_in_sigtramp.
9148 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9150 (amd64obsd_pc_in_sigtramp): Remove function.
9151 (amd64obsd_sigtramp_p): New function.
9152 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9153 deprecated_pc_in_sigtramp.
9154 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9155 (i386bsd_pc_ins_sigtramp): Remove prototype.
9156 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9157 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9158 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9159 the program counter is in the range specified by `struct
9161 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9162 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9163 (i386_go32_pc_in_sigtramp): Remove function.
9164 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9165 Initialize TDEP->sigtramp_p.
9166 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9167 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9168 deprecated_pc_in_sigtramp.
9169 * i386-linux-tdep.c: Adjust comments.
9170 (i386_linux_pc_in_sigtramp): Remove function.
9171 (i386_linux_sigtramp_p): New function.
9172 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9173 deprecated_pc_in_sigtramp.
9174 * i386-nto-tdep.c: Update copyright year.
9175 (i386nto_pc_in_sigtramp): Remove function.
9176 (i386nto_sigtramp_p): New function.
9177 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9179 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9180 deprecated_pc_in_sigtramp.
9181 * i386-sol2-tdep.c: Update copyright year.
9182 (i386_sol2_pc_in_sigtramp): Remove function.
9183 (i386_sol2_sigtramp_p): New function.
9184 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9185 deprecated_pc_in_sigtramp.
9186 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9187 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9188 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9189 deprecated_sigtramp_start and deprecated_sigtramp_end.
9190 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9191 (i386nbsd_pc_in_sigtramp): Remove function.
9192 (i386nbsd_sigtramp_p): New function.
9193 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9194 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9195 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9196 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9197 (i386obsd_pc_in_sigtramp): Remove function.
9198 (i386obsd_sigtramp_p): New function.
9199 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9201 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9202 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9204 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9205 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9208 * config/i386/i386aout.mt: Remove file.
9210 * configure.tgt: Remove i[34567]86-*-go32*,
9211 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9212 and i[34567]86-*-isc*. Set gdb_target to i386 for
9213 i[34567]86-*-netware* and i[34567]86-*-*.
9214 * config/i386/i386.mt: New file.
9215 * config/i386/embed.mt: Remove file.
9216 * config/i386/go32.mt: Remove file.
9217 * config/i386/i386nw.mt: Remove file.
9218 * config/i386/i386v.mt: Remove file.
9219 * config/i386/tm-go32.h: Remove file.
9221 * tui/tui-hooks.c: Include "readline/readline.h" after
9222 "gdb_curses.h" instead of before.
9223 * tui/tui-io.c: Likewise.
9225 * tui/tui.c: Fix typo in comment.
9227 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9229 2004-04-08 Andrew Cagney <cagney@redhat.com>
9231 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9232 (deprecated_exception_support_initialized): Declare.
9233 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9234 (initialize_hp_cxx_exception_support)
9235 (child_enable_exception_callback): Update.
9236 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9237 (deprecated_exception_support_initialized): Rename
9238 deprecated_exception_catchpoints_are_fragile and
9239 deprecated_exception_support_initialized.
9240 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9242 * symtab.c (deprecated_hp_som_som_object_present): Rename
9243 hp_som_som_object_present.
9244 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9245 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9246 Update. Delete extern declaration.
9247 * valops.c (hp_som_som_object_present): Ditto.
9248 * parse.c (deprecated_hp_som_som_object_present)
9249 (parse_nested_classes_for_hpacc): Ditto.
9250 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9251 * hppa-hpux-tdep.c (hp_som_som_object_present)
9252 (initialize_hp_cxx_exception_support): Ditto.
9253 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9254 * cp-valprint.c (hp_som_som_object_present)
9255 (cp_print_class_method): Ditto.
9256 * c-typeprint.c (hp_som_som_object_present):
9257 (c_type_print_base): Ditto.
9258 * c-exp.y (hp_som_som_object_present): Ditto.
9260 2004-04-08 Andrew Cagney <cagney@redhat.com>
9262 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9263 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9264 (frame_unwind_find_by_frame): Re-implement the unwind code so
9265 that it can both prepend and append sniffers. Replace
9266 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9267 * tramp-frame.c (tramp_frame_append): Use
9268 frame_unwind_prepend_unwinder.
9269 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9270 frame_unwind_register_unwinder.
9271 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9273 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9274 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9275 (mips_linux_init_abi): Update.
9277 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9279 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9280 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9283 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9285 * ia64-tdep.c (elf.h): Don't include.
9286 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9288 2004-04-07 Jason Molenda (jmolenda@apple.com)
9290 * frame.h: Typeo corrections in comments.
9292 2004-04-07 Jim Blandy <jimb@redhat.com>
9294 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9297 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9299 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9300 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9301 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9302 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9304 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9306 * config/sparc/tm-sol2.h: Update copyright year. Include
9309 * sparc-sol2-tdep.c: Update copyright year. Include
9311 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9312 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9313 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9314 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9317 2004-04-06 Andrew Cagney <cagney@redhat.com>
9319 * infttrace.c: Include "infttrace.h".
9320 * infttrace.h: Include "target.h".
9321 * Makefile.in (infttrace_h): Update.
9322 (infttrace.o): Update.
9324 2004-04-06 Andrew Cagney <cagney@redhat.com>
9326 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9327 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9328 move extern declarations from here ...
9329 * infttrace.h: ... to here.
9330 * Makefile.in (hppah-nat.o): Update dependencies.
9332 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9333 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9334 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9335 (hppa_breakpoint_from_pc): Delete.
9337 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9339 2004-04-05 Andrew Cagney <cagney@redhat.com>
9341 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9342 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9345 2004-04-06 Randolph Chung <tausq@debian.org>
9347 Committed by Andrew Cagney (mechanical change).
9348 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9349 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9350 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9351 child_enable_exception_callback, current_ex_event,
9352 null_symtab_and_line, child_get_current_exception_event,
9353 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9354 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9355 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9356 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9357 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9358 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9359 Move hpux-specific definitions ...
9360 * hppa-hpux-tdep.c: ... to here.
9362 2004-04-05 Andrew Cagney <cagney@redhat.com>
9364 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9365 skip_prologue_using_sal.
9367 2004-04-05 Andrew Cagney <cagney@redhat.com>
9369 * config/i386/tm-i386.h: Delete file.
9370 * config/i386/tm-vxworks.h: Update copyright, do not include
9372 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9373 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9374 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9375 * config/i386/ncr3000.mt (TM_FILE): Delete.
9376 * config/i386/interix.mt (TM_FILE): Delete.
9377 * config/i386/i386v.mt (TM_FILE): Delete.
9378 * config/i386/i386nw.mt (TM_FILE): Delete.
9379 * config/i386/i386gnu.mt (TM_FILE): Delete.
9380 * config/i386/i386aout.mt (TM_FILE): Delete.
9381 * config/i386/embed.mt (TM_FILE): Delete.
9383 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9385 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9386 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9387 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9388 (accg7_regnum): New constants.
9389 (last_spr_regnum, last_pseudo_regnum): Update.
9390 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9391 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9392 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9394 (frv_register_sim_regno): Update spr_map[].
9396 2004-04-04 Andrew Cagney <cagney@redhat.com>
9398 * config/mips/xm-riscos.h: Delete.
9399 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9400 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9401 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9402 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9403 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9404 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9405 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9406 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9407 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9408 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9409 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9410 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9411 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9412 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9413 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9414 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9415 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9416 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9417 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9418 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9419 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9420 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9421 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9422 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9423 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9424 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9426 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9427 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9428 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9429 * configure.host: Remove m680[01]0-sun-sunos3*,
9430 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9431 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9432 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9433 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9435 * NEWS: Mention removed systems.
9437 2004-04-04 Andrew Cagney <cagney@redhat.com>
9439 GDB 6.1 release created from 6.1 branch.
9441 2004-04-04 Andrew Cagney <cagney@redhat.com>
9443 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9444 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9445 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9447 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9448 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9449 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9451 2004-04-03 Jim Blandy <jimb@redhat.com>
9453 * MAINTAINERS: Chris Faylor has changed employers; add him to
9454 "paper trail" section, and update his E-mail address.
9456 2004-04-03 Andrew Cagney <cagney@redhat.com>
9458 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9459 generic dummy frames.
9460 * dummy-frame.c: Update copyright.
9461 (dummy_frame_sniffer): Delete check for generic dummy frames.
9463 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9464 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9465 (REG_PARM_STACK_SPACE): Delete.
9466 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9467 Inline reference to REG_PARM_STACK_SPACE.
9469 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9470 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9471 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9472 (FRAME_BASE_BEFORE_SIGTRAMP)
9473 (hppa32_hpux_frame_base_before_sigtramp)
9474 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9475 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9476 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9477 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9478 (FRAME_BASE_BEFORE_SIGTRAMP)
9479 (hppa64_hpux_frame_base_before_sigtramp)
9480 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9482 2004-04-03 Andrew Cagney <cagney@redhat.com>
9484 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9486 2004-04-02 Andrew Cagney <cagney@redhat.com>
9488 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9489 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9490 * dummy-frame.h: Delete out-of-date comments.
9491 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9492 * gdbarch.h, gdbarch.c: Re-generate.
9494 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9496 Committed by Andrew Cagney <cagney@redhat.com>.
9497 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9498 into account an instruction saving a register if we have already
9499 seen an earlier instruction saving that same register.
9501 2004-04-02 Andrew Cagney <cagney@redhat.com>
9503 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9504 * gdbarch.h, gdbarch.c: Re-generate.
9505 * frame.c (legacy_get_prev_frame): Delete references to
9506 DEPRECATED_INIT_FRAME_PC_FIRST.
9508 * infrun.c (pc_in_sigtramp): Delete function.
9509 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9512 2004-04-02 Andrew Cagney <cagney@redhat.com>
9514 * infrun.c (handle_step_into_function): Delete code conditional on
9516 (handle_inferior_event, step_over_function): Ditto.
9518 2004-04-02 Andrew Cagney <cagney@redhat.com>
9520 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9521 "previous frame inner to this frame" test.
9523 2004-04-02 Andrew Cagney <cagney@redhat.com>
9525 * frame.c (safe_frame_unwind_memory): New function.
9526 * frame.h (safe_frame_unwind_memory): Declare. Update description
9528 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9529 "next_frame". Use safe_frame_unwind_memory.
9530 (tramp_frame_sniffer): Update call to tramp_frame_start.
9532 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9534 * dwarf2read.c (dwarf2_objfile_data_key): New.
9535 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9536 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9537 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9538 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9539 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9540 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9541 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9543 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9544 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9545 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9546 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9547 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9548 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9550 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9552 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9553 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9554 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9555 (read_partial_die, read_full_die, read_indirect_string)
9556 (dwarf_decode_line_header, dwarf_decode_macros)
9557 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9558 Update uses of removed variables.
9559 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9561 (_initialize_dwarf2_read): New function.
9562 * symfile.h (dwarf2_has_info): Update prototype.
9563 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9564 * elfread.c (elf_symfile_read): Likewise.
9566 2004-04-01 Jim Blandy <jimb@redhat.com>
9568 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9569 function for register numbers on all the rs6000-derived targets.
9570 (rs6000_gdbarch_init): Don't register a separate
9571 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9572 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9575 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9578 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9580 * valarith.c: Update copyright notice.
9581 (value_add): Handle range types.
9583 (value_equal): Ditto.
9584 (value_less): Ditto.
9586 (value_complement): Ditto.
9587 (value_binop): Simplify slightly by using is_integral_type and
9588 eliminiating unnecessary COERCE_ENUMs.
9590 2004-03-31 Andrew Cagney <cagney@redhat.com>
9592 * frame.h (frame_unwind_id): Declare.
9593 * frame.c (frame_unwind_id): New function.
9594 (get_prev_frame_1): New function.
9595 (frame_debug_got_null_frame): New function.
9596 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9597 code proper to prev_frame, update description.
9598 * infrun.c (step_over_function): Use frame_unwind_id.
9600 2004-04-31 J. Brobecker <brobecker@gnat.com>
9602 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9603 (hppa64_push_dummy_call): Likewise.
9605 2004-03-30 Jim Blandy <jimb@redhat.com>
9607 From Ulrich Weigand:
9608 * utils.c (query): Do not use a va_list variable multiple times.
9610 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9612 * Makefile.in (linux_nat_h): Update dependencies.
9613 * configure.in: Check for <gnu/libc-version.h>.
9614 * configure: Regenerate.
9615 * config.in: Regenerate.
9616 * linux-nat.h: Include "target.h". Add waitstatus field to
9618 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9619 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9621 (lin_lwp_handle_extended): New function. Handle clone events.
9622 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9624 (child_wait): Handle clone events.
9625 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9626 * linux-nat.c (linux_enable_event_reporting): Turn on
9627 PTRACE_O_TRACECLONE.
9628 (linux_handle_extended_wait): Handle clone events.
9629 * thread-db.c: Include <gnu/libc-version.h>.
9630 (struct private_thread_info): Add dying flag.
9631 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9633 (attach_thread): Update comments. Handle dying threads.
9634 (detach_thread): Set the dying flag.
9635 (check_event): Always call attach_thread.
9637 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9639 * mips-tdep.c (mips_pdr_data): New.
9640 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9641 (_initialize_mips_tdep): Initialize mips_pdr_data.
9643 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9645 * minsyms.c (install_minimal_symbols): Move dropping leading
9646 char from linkage name from here...
9647 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9648 test for "__gnu_compiled*" symbols.
9650 2004-03-28 Jim Blandy <jimb@redhat.com>
9652 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9653 registers to temp register r0 and byte stores as prologue
9656 2004-03-28 Andrew Cagney <cagney@redhat.com>
9658 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9661 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9663 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9664 and switch the layout to force a display of register window.
9666 2004-02-26 J. Brobecker <brobecker@gnat.com>
9668 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9669 of the INTEGER class.
9671 2004-03-26 Jim Blandy <jimb@redhat.com>
9673 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9674 bytes long on PPC GNU/Linux.
9676 2004-03-26 David Carlton <carlton@kealia.com>
9678 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9680 2004-03-25 Andrew Cagney <cagney@redhat.com>
9682 * PROBLEMS: Add general section titles, remove references to
9685 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9687 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9689 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9690 FP_REGISTER_VIRTUAL_SIZE.
9691 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9692 of DEPRECATED_REGISTER_RAW_SIZE.
9693 (arm_register_type): Add gdbarch argument.
9694 (arm_register_raw_size, arm_register_virtual_size): Delete.
9695 (arm_register_byte, arm_extract_return_value)
9696 (arm_store_return_value, arm_get_longjmp_target): Update references
9697 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9698 (arm_gdbarch_init): Likewise. Don't set
9699 deprecated_register_raw_size, deprecated_register_virtual_size,
9700 deprecated_max_register_raw_size,
9701 deprecated_max_register_virtual_size, or
9702 deprecated_max_register_virtual_type. Do set register_type.
9703 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9704 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9705 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9706 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9707 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9708 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9710 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9711 (remote_rdp_store_register): Likewise.
9713 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9715 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9716 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9717 to after osabi initialization.
9718 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9719 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9721 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9722 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9724 (mips_linux_init_abi): Append signal trampoline unwinders.
9726 2004-03-24 Andrew Cagney <cagney@redhat.com>
9728 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9729 * tramp-frame.c: Include "gdb_assert.h".
9730 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9732 (tramp_frame_append): Validate the tramp frame's instructions.
9733 * Makefile.in (tramp-frame.o): Update dependencies.
9735 2004-03-23 Andrew Cagney <cagney@redhat.com>
9737 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9739 2004-03-23 Andrew Cagney <cagney@redhat.com>
9741 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9742 Nasser as past testsuite/lib/ (and other) maintainers.
9744 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9746 * infcmd.c (attach_command): Reread symbols if we already have
9749 2004-03-23 Andrew Cagney <cagney@redhat.com>
9751 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9753 2004-03-23 Andrew Cagney <cagney@redhat.com>
9755 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9756 * gdbarch.h, gdbarch.c: Re-generate.
9757 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9758 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9759 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9760 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9761 (DEPRECATED_SIGTRAMP_START): Update.
9762 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9763 (DEPRECATED_SIGTRAMP_START): Update.
9764 * blockframe.c (find_pc_sect_partial_function): Update.
9765 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9767 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9769 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9772 2004-03-23 Andrew Cagney <cagney@redhat.com>
9774 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9775 predicate, deprecate.
9776 * gdbarch.h, gdbarch.c: Re-generate.
9777 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9778 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9779 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9780 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9781 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9782 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9783 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9784 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9785 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9786 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9787 * blockframe.c (find_pc_partial_function): Update.
9788 * breakpoint.c (bpstat_what): Update.
9789 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9790 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9791 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9792 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9793 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9794 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9795 * i386-nto-tdep.c (i386nto_init_abi): Update.
9796 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9797 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9798 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9799 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9800 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9801 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9802 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9803 * infrun.c (pc_in_sigtramp): Update.
9804 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9805 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9806 * mips-tdep.c (mips_gdbarch_init): Update.
9807 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9808 * ppc-linux-tdep.c: Update comment.
9809 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9810 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9811 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9812 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9813 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9814 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9815 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9816 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9817 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9818 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9820 2004-03-23 Andrew Cagney <cagney@redhat.com>
9822 * tramp-frame.h, tramp-frame.h: New files.
9823 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9824 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9826 * Makefile.in: Update all dependencies.
9828 2004-03-23 Andrew Cagney <cagney@redhat.com>
9830 * Makefile.in (trad_frame_h): Add $(frame_h).
9831 * trad-frame.h: Update copyright. Include "frame.h".
9832 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9833 (trad_frame_set_id, trad_frame_get_id): Declare.
9834 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9835 * trad-frame.c: Update copyright.
9836 (struct trad_frame_cache): Define.
9837 (trad_frame_cache_zalloc): New function.
9838 (trad_frame_set_id, trad_frame_get_id): New functions.
9839 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9841 2004-03-22 Andrew Cagney <cagney@redhat.com>
9843 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9844 s390_pltstub_unwind_cache.
9845 (s390_stub_frame_unwind_cache): Rename
9846 s390_pltstub_frame_unwind_cache.
9847 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9848 (s390_stub_frame_prev_register): Rename
9849 s390_pltstub_frame_prev_register.
9850 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9851 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9853 From Ulrich Weigand:
9854 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9855 pointer calls like PLT calls.
9857 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9859 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9860 PC rather than the partial function start address. Use the start
9861 address to sanity check the found PDR.
9863 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9865 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9866 linux_handle_extended_wait.
9868 2004-03-22 Andrew Cagney <cagney@redhat.com>
9870 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9873 * frame.h (generic_pop_current_frame): Delete declaration.
9874 (deprecate_pop_dummy_frame): Deprecate
9875 generic_pop_dummy_frame.
9876 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9877 (generic_pop_current_frame): Delete function.
9878 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9879 generic_pop_current_frame.
9880 * v850-tdep.c (v850_pop_frame): Update.
9881 * mcore-tdep.c (mcore_pop_frame): Update.
9882 * sh64-tdep.c (sh64_pop_frame): Update.
9883 * h8300-tdep.c (h8300_pop_frame): Update.
9885 2004-03-22 Andrew Cagney <cagney@redhat.com>
9887 * frame.h (deprecated_pc_in_call_dummy): Rename
9888 generic_pc_in_call_dummy.
9889 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9890 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9891 generic_pc_in_call_dummy.
9892 (pc_in_dummy_frame): Make static.
9893 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9894 * gdbarch.h, gdbarch.c: Re-generate.
9895 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9896 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9897 (legacy_get_prev_frame): Ditto.
9898 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9901 2004-03-21 Andrew Cagney <cagney@redhat.com>
9903 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9904 declaration and out-of-date comment.
9905 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9907 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9908 deprecated_pc_in_call_dummy.
9910 * infrun.c (handle_inferior_event): For non legacy frames, use the
9911 frame ID and frame type to identify a signal trampoline. Update
9914 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9916 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9917 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9919 2004-03-21 Andrew Cagney <cagney@redhat.com>
9921 * frame-unwind.h: Update copyright.
9922 (struct frame_data): Add opaque declaration.
9923 (frame_sniffer_ftype): Declare.
9924 (struct frame_unwind): Add "unwind_data" and "sniffer".
9925 (frame_unwind_register_unwinder): Declare.
9926 (frame_unwind_find_by_frame): Add parameter "this_cache".
9927 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9928 (legacy_get_prev_frame, legacy_get_prev_frame)
9929 (get_frame_type): Pass the prologue_cache to
9930 frame_unwind_find_by_frame.
9931 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9933 (frame_unwind_register_unwinder): New function.
9934 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9936 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9938 * bcache.c (print_percentage): Use floating point to avoid
9939 incorrect results when portion*100 overflows.
9941 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9943 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9944 (ppc_linux_init_extra_frame_info)
9945 (ppc_linux_frameless_function_invocation)
9946 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9947 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9948 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9949 (rs6000_frame_chain): Delete declarations.
9950 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9951 (ppc_linux_init_extra_frame_info)
9952 (ppc_linux_frameless_function_invocation)
9953 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9954 (ppc_linux_init_abi): Remove registration of above deleted functions.
9955 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9956 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9957 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9958 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9959 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9960 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9961 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9962 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9963 frame management for all OSABIs.
9965 2004-03-19 Andrew Cagney <cagney@redhat.com>
9967 Committed by Kevin Buettner <kevinb@redhat.com>.
9969 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9971 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9972 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9973 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9974 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9975 unwinders. #ifdef legacy frame code.
9976 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9978 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9979 (struct rs6000_frame_cache, rs6000_frame_cache)
9980 (rs6000_frame_this_id, rs6000_frame_prev_register)
9981 (rs6000_frame_sniffer, rs6000_frame_unwind)
9982 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9983 (rs6000_frame_base): Implement a traditional frame unwinder.
9984 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9987 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9989 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9990 breakpoint address for watchpoints or the catch eventpoints.
9991 Add new paramter ``bptype''. Adjust all callers.
9993 2004-03-19 Andrew Cagney <cagney@redhat.com>
9995 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9997 * PROBLEMS: Delete note that ARM does not use frame code, problem
10000 2004-03-18 Andrew Cagney <cagney@redhat.com>
10002 * stack.c (return_command): Delete code wrapped in #ifdef
10003 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10005 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10007 2004-03-18 Andrew Cagney <cagney@redhat.com>
10009 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10010 DEPRECATED_IN_SIGTRAMP.
10011 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10012 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10013 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10014 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10015 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10016 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10017 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10018 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10019 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10020 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10022 2004-03-18 Andrew Cagney <cagney@redhat.com>
10024 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10025 (struct frame_base_table_entry): Define.
10026 (struct frame_base_table): Re-implement as a linked list.
10027 (frame_base_init): Re-implement.
10028 (frame_base_table): Delete function.
10029 (append_predicate): Delete function.
10030 (frame_base_append_sniffer): Update.
10031 (frame_base_set_default): Update.
10032 (frame_base_find_by_frame): Update.
10033 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10034 * Makefile.in (frame-base.o): Update dependencies.
10036 2004-03-17 Andrew Cagney <cagney@redhat.com>
10038 * frame.c (legacy_get_prev_frame): Pass correct frame to
10039 frame_unwind_find_by_frame.
10041 2004-03-17 David Carlton <carlton@kealia.com>
10043 * NEWS: Mention C++ nested types and namespaces
10045 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10047 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10048 and "Regressions since gdb 5.3.". Add known regressions since
10051 2004-03-16 David Carlton <carlton@kealia.com>
10053 * dwarf2read.c (process_structure_scope): Process children even
10054 when we're a declaration.
10056 2004-03-16 Andrew Cagney <cagney@redhat.com>
10058 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10059 * blockframe.c (find_pc_partial_function)
10060 (find_pc_sect_partial_function): Merge into a single
10061 find_pc_partial_function.
10063 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10065 * i386bsd-nat.c: s/regno/regnum/g.
10066 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10068 (store_inferior_registers): Likewise.
10070 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10072 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10073 of i387_fill_fsave.
10074 (store_inferior_registers): Call i387_collect_fsave and
10075 i387_collect_fxsave instead of i387_fill_fsave and
10078 2004-03-15 Andrew Cagney <cagney@redhat.com>
10080 * Makefile.in (frame-unwind.o): Update dependencies.
10081 * frame-unwind.c: Include "gdb_obstack.h".
10082 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10084 (append_predicate): Delete function.
10085 (struct frame_unwind_table_entry): New structure.
10086 (struct frame_unwind_table): Replace "sniffer" with "head" and
10088 (frame_unwind_append_sniffer): Update.
10089 (frame_unwind_find_by_frame): Update.
10090 (_initialize_frame_unwind): Registe frame_unwind_init using
10091 gdbarch_data_register_pre_init.
10093 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10095 * i386bsd-nat.c: Update copyright year.
10096 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10097 define unconditionally.
10099 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10101 * i387-tdep.h (i387_collect_fsave): New prototype.
10102 * i387-tdep.c (i387_collect_fsave): New function containing most
10103 of the code from i387_fill_fsave.
10104 (i387_fill_fsave): Call i387_collect_fsave.
10106 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10108 * i386-linux-tdep.c: Update copyright year.
10109 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10110 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10111 svr4_ilp32_link_map_offsets instead of
10112 i386_linux_svr4_fetch_link_map_offsets.
10114 2004-03-15 David Carlton <carlton@kealia.com>
10116 Fix for PR c++/1553:
10117 * dwarf2read.c (read_structure_type): Determine type name by
10118 calling determine_class_name.
10119 (determine_class_name): New.
10120 (determine_prefix): Look at TYPE_TAG_NAME and call
10121 determine_class_name when appropriate.
10122 (determine_prefix_aux, class_name): Delete.
10123 (read_namespace): Set die->type.
10125 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10127 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10128 unused macro definition. The definition in target.h (or perhaps
10129 elsewhere) takes precedence.
10131 2004-03-15 Andrew Cagney <cagney@redhat.com>
10133 * ppc-tdep.h: Update copyright.
10134 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10135 function signatures to match "regsets.h".
10136 * ppc-linux-tdep.c: Include "regset.h".
10137 (ELF_GREGSET_SIZE): Delete.
10138 (right_supply_register): New function.
10139 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10140 using right_supply_register.
10141 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10143 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10144 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10145 (_initialize_ppc_linux_tdep): Do not register
10146 ppc_linux_regset_core_fns.
10147 (ppc_linux_regset_from_core_section): Replace
10148 fetch_core_registers.
10149 (ppc_linux_regset_core_fns): Delete.
10150 * ppc-linux-nat.c: (right_fill_reg): New function.
10151 (supply_gregset): Update call to ppc_linux_supply_gregset.
10152 (fill_gregset): Clear the register set, use right_fill_reg.
10153 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10154 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10156 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10159 2004-03-15 Andrew Cagney <cagney@redhat.com>
10161 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10162 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10163 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10164 and register_gdbarch_data.
10165 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10166 (struct gdbarch_data): Replace "init" by "pre_init" and
10168 * gdbarch.h, gdbarch.c: Re-generate.
10169 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10170 with"obstack", use OBSTACK_ZALLOC.
10171 (dwarf2_frame_ops): Delete.
10172 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10173 (dwarf2_frame_init_reg): Use gdbarch_data.
10174 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10175 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10176 (_initialize_svr4_solib): Update.
10177 * user-regs.c (_initialize_user_regs): Update.
10178 * reggroups.c (_initialize_reggroup): Update.
10179 * regcache.c (_initialize_regcache): Update.
10180 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10181 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10182 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10183 * frame-unwind.c (_initialize_frame_unwind): Update.
10184 * frame-base.c (_initialize_frame_base): Update.
10185 * user-regs.c (user_reg_add): Update.
10186 * reggroups.c (reggroup_add): Update.
10187 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10188 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10189 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10190 * frame-base.c (frame_base_table): Update.
10191 * remote.c (_initialize_remote): Update.
10192 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10194 2004-03-15 Andrew Cagney <cagney@redhat.com>
10196 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10198 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10200 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10201 * frv-linux-tdep.c: New file.
10202 * frv-tdep.c (struct gdbarch_tdep): Add new field
10203 ``sigcontext_reg_addr''.
10204 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10205 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10206 (frv_sigramp_frame_sniffer): New functions.
10207 (frv_sigtramp_frame_unwind): New static global.
10208 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10210 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10211 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10213 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10215 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10216 but not via a call to error(), when unable to read memory.
10218 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10220 * frv-tdep.c (frv_call_dummy_words): Delete.
10221 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10223 2004-03-15 Andrew Cagney <cagney@redhat.com>
10225 * infrun.c (handle_step_into_function, step_over_function): Only
10226 update and use STEP_FRAME_ID when the system is using legacy
10227 frames. Update comments.
10229 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10231 * amd64-linux-tdep.h: Remove file.
10232 * amd64-linux-tdep.c: Don't include "inferior.h" and
10233 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10234 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10235 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10236 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10237 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10239 (user_to_gdb_regmap): Remove variable.
10240 (amd64_linux_gregset_reg_offset): New variable.
10241 (amd64_core_fns): Remove variable.
10242 (fetch_core_registers): Remove function.
10243 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10245 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10246 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10247 * Makefile.in (amd64_linux_tdep_h): Remove.
10248 (amd64-linux-nat.o): Update dependencies.
10249 (amd64-linux-tdep.o): Update dependencies.
10251 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10252 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10254 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10256 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10257 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10259 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10261 * dwarf2read.c (read_structure_type): Rename from
10262 read_structure_scope. Don't create a symbol or call process_die.
10263 Return immediately if die->type is set. Call read_type_die before
10264 dwarf2_add_member_fn.
10265 (process_structure_scope): New function.
10266 (read_enumeration_type, process_enumeration_scope): New functions,
10267 broken out from read_enumeration. Don't create the enumeration
10268 type if it has already been created.
10269 (read_enumeration): Removed.
10270 (process_die): Call read_structure_type, process_structure_scope,
10271 read_enumeration_type, and process_enumeration_scope. Just call
10272 new_symbol for base and subrange types. Add a comment about other
10274 (read_type_die): Call read_enumeration_type.
10275 (add_partial_structure, new_symbol): Update comments.
10277 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10279 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10281 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10283 * tui/tui-win.h (tui_get_cmd_list): Declare.
10284 * tui/tui-win.c (tui_command): New function.
10285 (tui_get_cmd_list): New function.
10286 (_initialize_tui_win): Moved initialization of tui command in
10289 * tui/tui-data.c (init_content_element): Setup new data members.
10290 (init_win_info): Likewise.
10291 (free_content_elements): Free it.
10292 * tui/tui-data.h (struct tui_data_element): Store the register
10294 (struct tui_data_info): Keep the current register group.
10296 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10298 * tui/tui-regs.h (tui_show_registers): Update prototype.
10299 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10300 (tui_resize_all): No need to calculate anything for register window.
10301 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10302 (tui_set_register_element, tui_set_general_regs_content): Remove.
10303 (tui_set_special_regs_content): Remove.
10304 (tui_set_general_and_special_regs_content): Remove.
10305 (tui_set_float_regs_content): Remove.
10306 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10307 (tui_set_regs_content): Remove.
10308 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10309 (tui_v_show_registers_command_support): Remove.
10310 (tui_show_registers): Use a reggroup to specify the registers to show.
10311 (tui_show_register_group): New function.
10312 (tui_display_registers_from): Compute the layout of register window
10313 and refresh with new API; be sure to delete old register windows.
10314 (tui_check_register_values): Update to use tui_get_register and
10316 (tui_display_register): Just refresh the register window part.
10317 (tui_register_format): Format registers and save in tui_data_element.
10318 (tui_get_register): New to combine tui_reg_value_has_changed and
10319 tui_get_register_raw_value; fix to use the new gdb API.
10320 (tui_show_float_command): Renamed tui_reg_float_command.
10321 (tui_show_general_command): Renamed tui_reg_general_command.
10322 (tui_show_special_command): Renamed tui_reg_system_command.
10323 (_initialize_tui_regs): Remove unused commands.
10325 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10327 * NEWS (New native configurations): Mention OpenBSD/amd64.
10329 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10330 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10332 * config/i386/nm-fbsd64.h: Likewise.
10333 * config/i386/nm-obsd.h: Likewise.
10334 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10335 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10337 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10339 * frv-tdep.c (set_variant_scratch_registers): New function.
10340 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10343 From Richard Sandiford <rsandifo@redhat.com>:
10344 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10346 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10348 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10349 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10350 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10351 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10352 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10353 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10354 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10355 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10356 definitions from frv-tdep.c to frv-tdep.h.
10358 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10360 Add shared library support for FR-V FDPIC ABI:
10361 * Makefile.in (solib-frv.o): Add dependencies.
10362 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10364 (frv_push_dummy_call): Add support for FDPIC ABI.
10365 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10367 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10368 (frv_fdpic_find_canonical_descriptor): Declare.
10369 * solib-frv.c: New file.
10370 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10371 * config/frv/tm-frv.h (solib.h): Include.
10373 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10375 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10376 (frv-tdep.o): Update dependencies.
10377 * frv-tdep.h: New file.
10378 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10379 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10381 (struct gdbarch_tdep): Add new member ``frv_abi''.
10382 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10384 (new_variant): Set ``frv_abi'' field.
10385 (gdb_arch_init): Detect FDPIC executables.
10387 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10389 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10392 2004-03-11 Andrew Cagney <cagney@redhat.com>
10394 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10396 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10398 * solist.h (master_so_list): New function.
10399 * solib.c (master_so_list): Likewise.
10400 * solib-svr4.c (enable_break): Iterate over so_list entries
10401 obtained from master list instead of entries obtained directly
10402 via svr4_current_sos().
10404 2004-03-10 Ben Elliston <bje@gnu.org>
10406 * MAINTAINERS: Update my mail address.
10408 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10410 * remote-m32r-sdi.c: Support hardware watchpoint.
10412 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10414 * user-regs.c: Update copyright years.
10415 (struct user_regs): Rename to gdb_user_regs.
10416 (append_user_reg, builtin_user_regs, user_regs_init)
10417 (user_reg_add, user_reg_map_name_to_regnum)
10418 (usernum_to_user_reg): Update.
10420 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10422 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10423 (skip_children): New functions.
10424 (locate_pdi_sibling): Call skip_children.
10426 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10428 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10429 * gdbtypes.c (check_typedef): Update comments.
10431 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10433 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10434 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10435 pointer. Update comment about comp_unit_head.
10436 (struct abbrev_info): Shorten two int flags.
10437 (dwarf_alloc_abbrev): Take a CU argument.
10438 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10439 each time through the loop. Update cleanup argument.
10440 (psymtab_to_symtab_1): Update cleanup call.
10441 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10443 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10444 Just call obstack_free and clear the pointer.
10446 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10448 * infrun.c (handle_inferior_event): Remove short-circuit code for
10449 events in a different thread.
10451 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10453 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10454 print the whole transfer.
10455 (initialize_targets): Update description of "set debug target".
10457 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10459 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10461 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10463 * MAINTAINERS (write after approval): Add myself.
10465 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10467 * sh-tdep.c (sh_print_registers_info): Use for loop.
10468 Don't skip multiple registers when a float register is encountered.
10470 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10473 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10474 to official SH documentation.
10476 2004-03-07 Andrew Cagney <cagney@redhat.com>
10478 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10481 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10483 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10484 (arm_get_next_pc): Handle BX and BLX.
10486 2004-03-07 Andrew Cagney <cagney@redhat.com>
10488 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10489 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10491 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10492 (hppa_target_read_fp): Delete.
10493 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10494 register_virtual_size, max_register_raw_size,
10495 max_register_virtual_size, register_byte, register_size,
10496 target_read_fp, fp_regnum, and register_bytes. Set register_type
10497 instead of register_virtual_type.
10498 (hppa32_register_type, hppa64_register_type): Replace
10499 hppa32_register_virtual_type and hppa64_register_virtual_type.
10500 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10501 (HPPA_FP_REGNUM): Define.
10503 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10505 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10506 (pa_do_registers_info): Delete.
10507 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10508 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10509 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10511 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10512 GDB_TARGET_IS_HPPA code.
10513 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10514 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10515 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10516 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10517 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10518 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10519 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10520 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10521 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10522 (hppa_frameless_function_invocation, hppa64_store_return_value)
10523 (hppa_store_struct_return, hppa64_extract_return_value)
10524 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10525 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10526 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10527 (find_proc_framesize, deposit_21, restore_pc_queue)
10528 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10529 (rp_saved, pc_in_linker_stub): Delete.
10531 Unconditionally enable 64-bit frame and ABI code.
10532 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10533 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10534 push_dummy_frame, fix_call_dummy, push_arguments,
10535 call_dummy_location, extract_return_value, use_struct_convention,
10536 store_return_value, store_struct_return, saved_pc_after_call,
10537 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10538 frame_chain, frame_chain_valid, frameless_function_invocation,
10539 frame_saved_pc, and pop_frame.
10541 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10542 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10543 (hppa_gdbarch_init): Do not set PC_REGNUM.
10545 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10547 * config/alpha/tm-fbsd.h: Remove file.
10548 * config/alpha/fbsd.mt: Tweak comment.
10549 (TM_FILE): Set to tm-alpha.h.
10551 2004-03-05 Andrew Cagney <cagney@redhat.com>
10553 * infrun.c (step_over_function): When non-legacy code, and no
10554 step_frame_id, use the unwinder to get the caller's frame ID.
10556 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10558 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10559 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10560 bfd_arch_unknown. Adjust comment.
10562 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10563 * i386obsd-tdep.c: Correct spelling in comment.
10564 * i386nbsd-tdep.c: Correct spelling in comment.
10565 * sparc-tdep.c: Correct spelling in comments.
10567 2004-03-05 David Carlton <carlton@kealia.com>
10569 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10572 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10574 * sparc-tdep.c: Fix typo in comment.
10576 2004-03-04 J. Brobecker <brobecker@gnat.com>
10578 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10580 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10582 * dwarf2read.c: Add comment describing memory lifetimes.
10583 (struct dwarf2_pinfo): Update comment.
10584 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10585 (read_enumeration, new_symbol): Don't use obsavestring.
10587 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10589 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10590 instead of amd64_fill_fxsave.
10591 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10592 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10594 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10595 Reorganize code a bit.
10597 2004-03-04 Orjan Friberg <orjanf@axis.com>
10599 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10600 when the frame pointer is pushed. Don't set the frame pointer's
10601 address on the stack unless it's actually located there.
10602 Set the SRP's address on the stack correctly when the PC is still in
10604 (cris_return_value): New function.
10605 (cris_gdbarch_init): Clear deprecated store_return_value,
10606 extract_return_value.
10608 2004-03-02 Jim Blandy <jimb@redhat.com>
10610 * stabsread.c (reg_value_complaint): The maximum register number
10611 is one less than the number of registers.
10613 2004-03-02 Andrew Cagney <cagney@redhat.com>
10615 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10616 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10617 trailing comma and redundant assignment of I386_ST0_REGNUM.
10618 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10619 32-bit segment registers.
10621 2004-03-01 Andrew Cagney <cagney@redhat.com>
10623 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10624 use frame_relative_level and get_next_frame.
10626 2004-02-29 Andrew Cagney <cagney@redhat.com>
10628 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10629 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10630 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10633 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10635 * inflow.c (terminal_inferior): Don't give up the terminal if we
10636 previously couldn't get the inferior's terminal state.
10638 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10640 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10643 2004-02-28 Andrew Cagney <cagney@redhat.com>
10645 * NEWS: Refer to GDB 6.1.
10646 * README: Refer to GDB 6.1.
10647 * PROBLEMS: Refer to GDB 6.1.
10649 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10651 * thread-db.c (disable_thread_signals): Remove unused function.
10653 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10655 * amd64-nat.c: Include "gdb_string.h".
10656 (amd64_collect_native_gregset): Zero-extend the 32-bit
10657 general-purpose registers and %eip.
10659 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10660 * amd64-tdep.c (amd64_collect_fxsave): New function.
10661 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10663 * i387-tdep.h: Update copyright year.
10664 (i387_collect_fxsave): New prototype.
10665 * i387-tdep.c: Update copyright year.
10666 (i387_collect_fxsave): New function containing most of the code
10667 from i387_fill_fxsave.
10668 (i387_fill_fxsave): Call i387_collect_fxsave.
10670 2004-02-28 Andrew Cagney <cagney@redhat.com>
10672 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10673 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10675 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10677 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10679 2004-02-28 Andrew Cagney <cagney@redhat.com>
10681 * utils.c: Use "", instead of <>, to include readline.
10682 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10683 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10684 * source.c, solib.c, exec.c, event-top.c: Ditto.
10685 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10686 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10687 * Makefile.in: Update all dependencies.
10688 (readline_tilde_h, readline_history_h): Define.
10689 (readline_headers): Delete.
10691 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10693 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10694 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10695 "config/i386/tm-lx64.h".
10697 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10698 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10699 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10701 2004-02-28 Andrew Cagney <cagney@redhat.com>
10703 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10705 * breakpoint.c (_initialize_breakpoint): Use
10706 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10707 Add help to show command.
10709 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10711 * i386-nat.c: Reformat to be closer to coding standards.
10712 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10713 `retval'. Make variables `align' and `size' local to while-loop.
10714 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10715 (_initialize_i386_nat): New prototype.
10717 * tui/tui.c: Include <readline/readline.h> instead of
10718 "readline/readline.h". Include it after <term.h> and
10721 2004-02-27 Andrew Cagney <cagney@redhat.com>
10723 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10724 the new frame unwind code.
10725 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10726 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10729 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10730 "return_value" and "push_dummy_call".
10731 (hppa32_use_struct_convention): Delete unused function.
10732 (hppa32_store_return_value): Delete unused function.
10733 (hppa32_extract_return_value): Delete unused function.
10734 (hppa32_stack_align): Delete function.
10736 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10738 * coffread.c (enter_linenos): Don't let rawptr reference memory
10739 outside linetab[]'s limits.
10741 2004-02-27 Andrew Cagney <cagney@redhat.com>
10743 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10744 inferior stack space - the stack needs to grow upwards.
10745 (hppa32_frame_align): New function.
10746 (hppa64_frame_align): Replace hppa_frame_align.
10747 (hppa_gdbarch_init): Update.
10749 2004-02-26 Orjan Friberg <orjanf@axis.com>
10751 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10752 (dwarf2-frame.h): Include.
10753 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10754 Remove static variables related to ABI setting.
10755 (struct gdbarch_tdep): Remove cris_abi member.
10756 (struct frame_extra_info): Remove.
10757 (cris_unwind_cache, stack_item): New structs.
10758 (cris_frame_unwind, cris_frame_base): New variables.
10759 (push_stack_item, pop_stack_item)
10760 (cris_frame_unwind_cache, cris_frame_this_id)
10761 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10762 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10763 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10764 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10765 (cris_reg_struct_has_addr): New functions.
10766 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10767 (cris_frame_saved_pc, cris_saved_pc_after_call,
10768 (cris_store_struct_return, cris_frameless_function_invocation)
10769 (cris_pop_frame, cris_skip_prologue_main)
10770 (cris_abi_original_store_return_value)
10771 (cris_abi_v2_store_return_value)
10772 (cris_abi_original_extract_return_value)
10773 (cris_abi_v2_extract_return_value)
10774 (cris_abi_original_reg_struct_has_addr)
10775 (cris_abi_v2_reg_struct_has_addr)
10776 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10777 (cris_push_return_address, cris_abi_update): Remove.
10778 (_initialize_cris_tdep): Remove ABI command.
10779 (cris_dump_tdep): Ditto.
10780 (cris_gdbarch_init): Remove ABI command.
10781 Set store_return_value, extract_return_value, push_dummy_code,
10782 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10783 frame_unwind_append_sniffer, frame_base_set_default.
10784 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10785 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10786 sizeof_call_dummy_words, get_saved_register, push_return_address,
10787 pop_frame, store_struct_return, frame_init_saved_regs,
10788 init_extra_frame_info, frameless_function_invocation, frame_chain,
10789 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10792 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10794 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10795 * valprint.c (print_hex_chars): Change from static to external.
10796 (print_char_chars): New function.
10797 * printcmd.c (print_scalar_formatted): For integer and enum types
10798 that are longer than LONGEST, perform processing via appropriate
10799 print_*_chars routines.
10801 2004-02-26 Andrew Cagney <cagney@redhat.com>
10803 * Makefile.in: Update dependencies.
10804 Changes from Ulrich Weigand,
10805 * s390-tdep.c: Include "dwarf2-frame.h".
10806 (s390_dwarf2_frame_init_reg): New function.
10807 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10808 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10810 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10812 * breakpoint.c (pending_break_support): New setting variable.
10813 (break_command_1): Account for pending_break_support setting
10814 when creating pending breakpoints.
10815 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10816 (_initialize_breakpoint): Add "set breakpoint pending" and
10817 "show breakpoint pending" commands.
10819 2004-02-26 Andrew Cagney <cagney@redhat.com>
10822 * charset.c (backslashable, backslashed, represented): Remove 'e'
10823 from list of escaped characters, not part of ISO-C.
10825 2004-02-25 J. Brobecker <brobecker@gnat.com>
10827 From Peter Schauer <schauer@pdf.de>:
10828 * tui/tui.c: Move system header includes after local includes.
10829 Fixes a build failure on solaris systems.
10831 2004-02-25 J. Brobecker <brobecker@gnat.com>
10833 * configure.in: Refine the previous change.
10834 * configure: Regenerate.
10836 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10838 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10839 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10840 "amd64-tdep.h" instead of "x86-64-tdep.h".
10841 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10842 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10843 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10844 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10845 and "x86-64-tdep.c".
10846 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10847 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10848 and "x86-64-tdep.c".
10849 * amd64bsd-nat.c: Update copyright year.
10850 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10851 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10853 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10855 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10857 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10859 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10861 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10863 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10864 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10865 * Makefile.in (amd64_linux_tdep_h): Renamed from
10866 x86_64_linux_tdep_h.
10867 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10868 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10869 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10870 (amd64obsd-tdep.o): Update dependencies.
10871 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10873 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10875 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10876 amd64-linux-nat.c amd64-linux-tdep.c.
10877 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10878 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10879 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10880 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10881 amd64-tdep.o and amd64-linux-tdep.o.
10882 (TM_FILE): Set to tm-linux64.h.
10883 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10884 (NAT_FILE): Set to nm-linux64.h.
10885 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10886 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10888 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10890 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10893 2004-02-25 Roland McGrath <roland@redhat.com>
10895 * remote.c (remote_protocol_qPart_auxv): New variable.
10896 (init_all_packet_configs): Initialize it.
10897 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10898 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10899 (show_remote_cmd): Call it.
10900 (_initialize_remote): Initialize commands.
10901 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10902 service TARGET_OBJECT_AUXV requests.
10904 2004-02-25 J. Brobecker <brobecker@gnat.com>
10906 * configure.in: Make sure that the wborder function is available.
10907 Otherwise, search for it in the cur_colr library.
10908 * configure: Regenerate.
10910 2004-02-25 Andrew Cagney <cagney@redhat.com>
10912 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10914 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10916 * config/i386/tm-x86-64linux.h: Tweak comments.
10918 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10920 * MAINTAINERS: Add self to write-after-approval list.
10922 2004-02-25 Andrew Cagney <cagney@redhat.com>
10924 PR cli/1566. Problem found, and fix suggested by David Allan.
10925 * cli/cli-script.c (execute_control_command): Unconditionally
10926 install a cleanup. Default "ret" to "invalid_control". Use
10927 "break" instead of "return" to escape from the switch.
10929 2004-02-24 J. Brobecker <brobecker@gnat.com>
10931 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10932 with the lines macro defined in term.h on AiX.
10933 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10934 a collision with the label_width macro defined in term.h on AiX.
10936 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10938 Committed by Kevin Buettner <kevinb@redhat.com>.
10940 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10941 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10942 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10943 instead of ia64_write_pc().
10944 * ia64-linux-tdep.c (regcache.h): Include.
10945 (ia64_linux_write_pc): New function.
10947 2004-02-23 Roland McGrath <roland@redhat.com>
10949 * auxv.c (info_auxv_command): Fix typos in error messages.
10951 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10953 * x86-64-tdep.h: Tweak comment.
10954 (enum amd64_regnum): New.
10955 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10956 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10957 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10958 (X86_64_XMM1_REGNUM): Removed.
10959 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10960 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10961 prototypes for renamed functions.
10962 * x86-64-tdep.c: Fix typo.
10963 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10965 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10966 Use constants from `enum amd64_regnum' for register numbers.
10967 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10968 (amd64_analyze_prologue, amd64_frame_cache,
10969 amd64_sigtramp_frame_cache): Use constants from `enum
10970 amd64_regnum' for register numbers.
10971 (amd64_supply_fpregset): Adjust for renamed functions.
10972 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10973 `enum amd64_regnum' for register numbers.
10974 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10975 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10976 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10977 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10978 (amd64_linux_fill_gregset): Adjust for renamed macros.
10979 (fetch_core_registers): Adjust for renamed functions.
10980 (amd64_linux_init_abi): Adjust for renamed functions.
10981 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10983 * amd64-nat.c: Adjust for renamed macros.
10984 * amd64bsd-nat.c (fetch_inferior_registers)
10985 (store_inferior_registers): Use constants from `enum amd64_regnum'
10986 for register numbers. Adjust for renamed variables.
10987 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10989 (_initialize_amd64fbsd_nat): Use constants from `enum
10990 amd64_regnum' for register numbers.
10991 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10992 `enum amd64_regnum' for register numbers.
10993 (amd64fbsd_init_abi): Adjust for renamed functions.
10994 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10995 `enum amd64_regnum' for register numbers.
10996 (amd64nbsd_init_abi): Adjust for renamed functions.
10997 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10998 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10999 `enum amd64_regnum' for register numbers.
11000 (amd64obsd_init_abi): Adjust for renamed functions.
11001 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11003 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11005 * breakpoint.c (print_one_breakpoint): Do not output spaces
11006 after printing <PENDING> for a pending breakpoint.
11008 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11010 * printcmd.c (print_scalar_formatted): Initialize val_long
11011 to remove compiler warning message.
11013 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11015 * defs.h (nquery, yquery): New prototypes.
11016 * breakpoint.c (break_command_1): Use new nquery interface.
11017 * utils.c (defaulted_query, nquery, yquery): New functions.
11019 2004-02-23 Andrew Cagney <cagney@redhat.com>
11021 * hppa-tdep.c (hppa_frame_align): New function.
11022 (hppa32_push_dummy_call): New function.
11023 (hppa64_push_dummy_call): New function.
11024 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11027 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11028 FIX_CALL_DUMMY when push_dummy_call is available.
11029 (call_function_by_hand, push_dummy_code): Ditto.
11031 2004-02-22 Andrew Cagney <cagney@redhat.com>
11033 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11034 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11035 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11036 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11037 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11038 call_dummy_location to ON_STACK.
11040 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11042 * x86-64-linux-tdep.c: Tweak comment.
11043 (amd64_linux_supply_gregset): Renamed from
11044 x86_64_linux_supply_gresget.
11045 (amd64_linux_fill_gregset): Renamed from
11046 x86_64_linux_fill_gregset.
11047 (fetch_core_registers): Adjust for renamed functions.
11048 (amd64_core_fns): Renamed from x86_64_core_fns.
11049 (amd64_linux_sigtramp_start): Renamed from
11050 x86_64_linux_sigtramp_start.
11051 (amd64_linux_pc_in_sigtramp): Renamed from
11052 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11053 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11054 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11055 (amd64_linux_sigcontext_addr): Renamed from
11056 x86_64_linux_sigcontext_addr.
11057 (amd64_linux_sc_reg_offset): Renamed from
11058 x86_64_linux_sc_reg_offset.
11059 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11060 Adjust for renamed functions and variables.
11061 (_initialize_amd64_linux_tdep): Renamed from
11062 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11064 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11065 Adjust for renamed functions.
11067 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11068 from x86_64_linux_gregset64_reg_offset.
11069 (amd64_linux_gregset32_reg_offset): Rename from
11070 x86_64_linux_gregset64_reg_offset.
11071 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11072 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11073 (amd64_linux_dr_set_control): Renamed from
11074 x86_64_linux_dr_set_control. Adjust for renamed functions.
11075 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11076 Adjust for renamed functions.
11077 (amd64_linux_dr_reset_addr): Renamed from
11078 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11079 (amd64_linux_dr_get_status): Renamed from
11080 x86_64_linux_dr_get_status. Adjust for renamed functions.
11081 (_initialize_amd64_linux_nat): Renamed from
11082 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11084 * config/i386/nm-x86-64linux.h: Update copyright year.
11085 Adjust for renamed functions.
11087 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11088 amd64fbsd_sigtramp_start.
11089 (amd64fbsd_sigtramp_end_addr): Renamed from
11090 amd64fbsd_sigtramp_end.
11091 (amd64fbsd_init_abi): Adjust for renamed variables.
11092 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11094 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11095 amd64fbsd_sigtramp_start.
11096 (amd64fbsd_sigtramp_end_addr): Renamed from
11097 amd64fbsd_sigtramp_end.
11099 2004-02-22 Andrew Cagney <cagney@redhat.com>
11101 * hppa-tdep.c (hppa32_return_value): New function.
11102 (hppa64_return_value): New function.
11103 (hppa_gdbarch_init): Set return_value; keep disabled.
11105 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11106 struct-return and inferior function call methods.
11108 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11110 (struct hppa_frame_cache): Define.
11111 (hppa_frame_cache, hppa_frame_this_id): New functions.
11112 (hppa_frame_prev_register): New function.
11113 (hppa_frame_unwind, hppa_frame_base): New variables.
11114 (hppa_frame_unwind_sniffer): New function.
11115 (hppa_frame_base_address, hppa_unwind_pc): New function.
11116 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11117 sniffer, and frame base sniffer; keep disabled.
11118 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11119 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11121 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11122 to predicates for "seriously old code".
11124 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11127 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11129 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11131 * config/pa/tm-hppa.h: Update copyright.
11132 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11133 (deprecated_init_frame_pc_default): Delete declaration.
11134 (hppa_frame_init_saved_regs): Delete declaration.
11135 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11136 * hppa-tdep.c: Include "arch-utils.h".
11137 (hppa_gdbarch_init): Set deprecated init_frame_pc
11138 and deprecated frame_init_saved_regs.
11139 (hppa_frame_init_saved_regs): Make static.
11141 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11143 Remove old 386BSD support.
11144 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11145 * configure.host: Remove i[34567]86-*-bsd*.
11146 * configure.tgt: Remove i[34567]86-*-bsd*.
11147 * i386b-nat.c: Removed.
11148 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11149 (i386b-nat.o): Remove dependencies.
11151 * config/i386/i386bsd.mh: Removed.
11152 * config/i386/i386bsd.mt: Removed.
11153 * config/i386/nm-i386bsd.h: Removed.
11154 * config/i386/tm-i386bsd.h: Removed.
11155 * config/i386/xm-i386bsd.h: Removed.
11157 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11159 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11160 (amd64fbsd_init_abi): Set link map offsets.
11161 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11162 (amd64nbsd_init_abi): Set link map offsets.
11163 * amd64obsd-tdep.c: Include "solib-svr4.h".
11164 (amd64obsd_init_abi): Set link map offsets.
11165 * i386fbsd-tdep.c: Include "solib-svr4.h".
11166 (i386fbsd_init_abi): Set link map offsets.
11167 * i386nbsd-tdep.c: Include "solib-svr4.h".
11168 (i386nbsdelf_init_abi): Set link map offsets.
11169 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11170 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11171 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11172 solib-legacy.o and core-aout.o. Reformat.
11173 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11174 solib-svr4.o, solib-legacy.o. Reformat.
11175 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11176 * config/i386/nbsdelf.mh: Reformat.
11177 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11178 solib-svr4.o, solib-legacy.o and corelow.o.
11179 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11180 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11181 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11182 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11183 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11184 (TM_FILE): Set to tm-fbsd.h.
11185 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11186 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11188 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11190 (TM_FILE): Set to nm-nbsd.h.
11191 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11192 Simplify shared library support. Don't include "elf/common.h".
11193 (SVR4_SHARED_LIBS): Don't define.
11194 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11196 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11197 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11198 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11199 Don't include "i386/tm-i386.h". Include "solib.h".
11200 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11201 Don't include "i386/tm-i386.h".
11202 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11203 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11204 Include "i386/xm-i386.h".
11205 (HOST_LONG_DOUBLE_FORMAT): Remove.
11207 Fix OpenBSD/i386 sigtramp recognition.
11208 * i386-tdep.h: Update copyright year.
11209 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11210 (i386bsd_sigtramp_end): New prototypes.
11211 (i386fbsd_sigtramp_start_addr): Renamed from
11212 i386fbsd_sigtramp_start.
11213 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11214 (i386obsd_sigtramp_start_addr): Renamed from
11215 i386obsd_sigtramp_start.
11216 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11217 * i386bsd-tdep.c: Update copyright year.
11218 (i386bsd_pc_in_sigtramp): Make public.
11219 * i386fbsd-nat.c: Update copyright year.
11220 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11221 * i386fbsd-tdep.c: Update copyright year.
11222 (i386fbsd_sigtramp_start_addr): Renamed from
11223 i386fbsd_sigtramp_start.
11224 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11225 (i386fbsdaout_init_abi): Adjust for renamed variables.
11226 * i386obsd-nat.c: Update copyright year.
11227 (_initialize_i386obsd_nat): Adjust for renamed variables.
11228 * i386obsd-tdep.c: Include "target.h".
11229 (i386obsd_page_size): New variable.
11230 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11231 (i386obsd_sigtramp_end): New functions.
11232 (i386obsd_sigtramp_start_addr): Renamed from
11233 i386obsd_sigtramp_start.
11234 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11235 (i386obsd_init_abi): Adjust for renamed variables. Set
11236 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11237 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11239 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11240 trampoline change in OpenBSD kernel.
11242 * amd64-nat.c: Update copyright year.
11243 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11244 architecture from REGCACHE.
11246 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11247 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11249 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11251 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11252 i[34567]86-*-openbsd3.[0-3].
11253 * config/i386/obsdaout.mh: New file.
11255 * config/i386/obsd.mh (MH_FLAGS): Remove.
11258 * i386obsd-tdep.c: Update copyright years. Include
11260 (i386obsd_init_abi): Don't set regset_from_core_section here.
11261 (i386obsd_aout_init_abi): New function. Set
11262 regset_from_core_section here.
11263 (i386obsd_elf_init_abi): New function.
11264 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11265 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11266 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11267 (TM_FILE): Set to tm-nbsd.h.
11269 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11272 * solib-svr4.h: Update copyright year.
11273 (svr4_ilp32_fetch_link_map_offsets)
11274 (svr4_lp64_fetch_link_map_offsets): New prototype.
11275 * solib-svr4.c: Update copyright year.
11276 (svr4_ilp32_fetch_link_map_offsets)
11277 (svr4_lp64_fetch_link_map_offsets): New function.
11279 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11281 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11282 to the partial symbol table.
11284 2004-02-20 J. brobecker <brobecker@gnat.com>
11286 * PROBLEMS: Add description of problem documented under gdb/1560.
11288 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11290 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11292 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11294 (amd64obsd_init_abi): Reorder initializations. Use
11295 amd64obsd_r_reg_offset to initialize the general-purpose register
11296 set details. Set regset_from_core_section.
11297 (_initialize_amd64obsd_tdep): Rename from
11298 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11299 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11300 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11302 * NEWS (New native configurations): Mention OpenBSD/alpha.
11303 * configure.tgt: Add alpha*-*-openbsd*.
11304 * configure.host: Add alpha*-*-openbsd*.
11305 * alphanbsd-tdep.c: Update copyright year.
11306 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11308 2004-02-20 Andrew Cagney <cagney@redhat.com>
11311 * configure.tgt: Delete target "none-*-*".
11312 * configure.host: Delete host "none-*-*".
11313 * config/none/none.mh: Delete file.
11314 * config/none/none.mt: Delete file.
11315 * config/none/xm-none.h: Delete file.
11316 * config/none/tm-none.h: Delete file.
11317 * config/none/nm-none.h: Delete file.
11319 2004-02-19 Fred Fish <fnf@redhat.com>
11321 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11322 cache->uses_fp prior to setting it.
11324 2004-02-19 Fred Fish <fnf@redhat.com>
11326 Fix for PR breakpoint/1558.
11327 * sh-tdep.c (IS_JSR): New macro.
11328 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11330 2004-02-19 Jim Blandy <jimb@redhat.com>
11332 * findvar.c (value_from_register): Doc fix.
11334 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11336 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11337 type being greater than sizeof of host's LONGEST. Always use
11338 unpack_long() unless format 'f' chosen.
11340 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11342 Committed by Elena Zannoni <ezannoni@redhat.com>
11344 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11345 contains a symbol wich is the best, non-exact match for the given
11346 pc. Update comments.
11348 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11350 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11351 macro, which was part of the now removed Mach 3 port.
11352 * utils.c (request_quit): Ditto.
11354 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11356 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11357 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11359 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11361 Committed by Mark Kettenis <kettenis@gnu.org>.
11363 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11366 2004-02-18 Andrew Cagney <cagney@redhat.com>
11368 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11369 CONFIG_INSTALL and CONFIG_UNINSTALL.
11370 * configure: Re-generate.
11371 * interps.h (INTERP_TUI): Define.
11372 * Makefile.in: Update dependencies.
11374 (tui-main.o): Specify dependencies.
11375 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11376 * tui/tui-main.c: New file.
11378 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11380 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11381 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11383 * configure.host: Add x86_64-*-openbsd*.
11384 * configure.tgt: Add x86_64-*-openbsd*.
11385 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11387 * tui/tui.c: Don't include <malloc.h>.
11389 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11390 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11393 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11394 static. Remove extraneous whitespace.
11395 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11398 2004-02-17 Jim Blandy <jimb@redhat.com>
11400 * findvar.c (value_from_register): Doc fix.
11402 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11404 Committed by Jim Blandy <jimb@redhat.com>.
11406 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11407 CORE_ADDR as type for selectors. Correct types for GNU run time
11408 message lookup function to use double indirection.
11409 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11410 * objc-lang.h (lookup_child_selector): Adapt prototype.
11412 * s390-nat.c (SUBOFF): New macro.
11413 (supply_gregset, fill_gregset): Use it to handle debugging
11414 of 32-bit exectuables running under a 64-bit kernel.
11415 * s390-tdep.c: Include "solib-svr4.h".
11416 (s390_svr4_fetch_link_map_offset): New function.
11417 (s390x_svr_fetch_link_map_offset): Likewise.
11418 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11419 * Makefile.in (s390-tdep.o): Update dependencies.
11421 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11423 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11424 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11425 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11426 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11427 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11428 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11429 S390_SIGNAL_FRAMESIZE,
11430 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11431 (struct frame_extra_info): Remove.
11432 (s390_memset_extra_info): Remove.
11433 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11434 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11435 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11436 (is_rse): Renamed to ...
11437 (is_rsy): ... this. Support long displacements.
11438 (is_rxe): Renamed to ...
11439 (is_rxy): ... this. Support long displacements.
11440 (compute_x_addr): Support long displacements.
11441 (struct s390_prologue_data): New data type.
11442 (s390_on_stack): Change API to use struct s390_prologue_data.
11443 (s390_store): Reimplement.
11444 (s390_load): New function.
11445 (s390_get_signal_frame_info): Remove.
11446 (s390_get_frame_info): Remove, replace by ...
11447 (s390_analyze_prolog): ... this new function.
11448 (s390_check_function_end): Remove.
11449 (s390_function_start): Remove.
11450 (s390_frameless_function_invokation): Remove.
11451 (s390_is_sigreturn): Remove.
11452 (s390_init_frame_pc_first): Remove.
11453 (s390_init_frame_extra_info): Remove.
11454 (s390_frame_init_saved_regs): Remove.
11455 (s390_frame_saved_pc_nofix): Remove.
11456 (s390_frame_saved_pc): Remove.
11457 (s390_frame_chain): Remove.
11458 (s390_fp_regnum, s390_read_fp): Remove.
11459 (s390_pop_frame_regular, s390_pop_frame): Remove.
11460 (s390_saved_pc_after_call): Remove.
11461 (s390_skip_prologue): Reimplement.
11462 (s390_in_function_epilogue_p): Support long displacements.
11463 (struct s390_unwind_cache): New data structure.
11464 (s390_frame_unwind_cache): New function.
11465 (s390_prologue_frame_unwind_cache): Likewise.
11466 (s390_backchain_frame_unwind_cache): Likewise.
11467 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11468 (s390_frame_unwind): Define.
11469 (s390_frame_sniffer): New function.
11470 (struct s390_pltstub_unwind_cache): New data structure.
11471 (s390_pltstub_frame_unwind_cache): New function.
11472 (s390_pltstub_frame_this_id): Likewise.
11473 (s390_pltstub_frame_prev_register): Likewise.
11474 (s390_pltstub_frame_unwind): Define.
11475 (s390_pltstub_frame_sniffer): New function.
11476 (struct s390_sigtramp_unwind_cache): New data structure.
11477 (s390_sigtramp_frame_unwind_cache): New function.
11478 (s390_sigtramp_frame_this_id): Likewise.
11479 (s390_sigtramp_frame_prev_register): Likewise.
11480 (s390_sigtramp_frame_unwind): Define.
11481 (s390_sigtramp_frame_sniffer): New function.
11482 (s390_frame_base_address, s390_local_base_address): New functions.
11483 (s390_frame_base): Define.
11484 (s390_unwind_pc, s390_unwind_sp): New function.
11485 (s390_push_dummy_call): Use new frame base location.
11486 (s390_unwind_dummy_id): Likewise.
11487 (s390_gdbarch_init): Remove calls to:
11488 set_gdbarch_frameless_function_invocation,
11489 set_gdbarch_deprecated_init_frame_pc,
11490 set_gdbarch_deprecated_frame_chain,
11491 set_gdbarch_deprecated_frame_init_saved_regs,
11492 set_gdbarch_deprecated_pop_frame,
11493 set_gdbarch_deprecated_init_extra_frame_info,
11494 set_gdbarch_deprecated_init_frame_pc_first,
11495 set_gdbarch_deprecated_target_read_fp,
11496 set_gdbarch_deprecated_frame_saved_pc,
11497 set_gdbarch_deprecated_saved_pc_after_call,
11498 set_gdbarch_deprecated_fp_regnum.
11500 set_gdbarch_in_solib_call_trampoline,
11501 frame_unwind_append_sniffer,
11502 frame_base_set_default,
11503 set_gdbarch_unwind_pc,
11504 set_gdbarch_unwind_sp.
11505 * Makefile.in (s390-tdep.o): Update dependencies.
11507 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11508 (S390_STACK_FRAME_OVERHEAD): Remove.
11509 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11510 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11511 (s390_promote_integer_argument): Remove.
11512 (s390_cannot_extract_struct_value_address): Remove.
11513 (s390_use_struct_convention, s390_store_struct_return): Remove.
11514 (s390_extract_return_value, s390_store_return_value): Remove.
11515 (s390_return_value_convention, s390_return_value): New functions.
11516 (is_float_singleton): Handle typedefs.
11517 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11518 Remove, replace by ...
11519 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11520 s390_function_arg_integer): ... these new functions.
11521 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11522 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11523 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11526 set_gdbarch_deprecated_store_struct_return,
11527 set_gdbarch_deprecated_extract_return_value,
11528 set_gdbarch_deprecated_store_return_value,
11529 set_gdbarch_use_struct_convention,
11530 set_gdbarch_extract_struct_value_address,
11531 set_gdbarch_deprecated_pc_in_call_dummy,
11532 set_gdbarch_deprecated_push_arguments,
11533 set_gdbarch_deprecated_save_dummy_frame_tos,
11534 set_gdbarch_deprecated_push_return_address,
11535 set_gdbarch_deprecated_sizeof_call_dummy_words,
11536 set_gdbarch_deprecated_call_dummy_words,
11537 set_gdbarch_deprecated_dummy_write_sp.
11539 set_gdbarch_push_dummy_call,
11540 set_gdbarch_unwind_dummy_id,
11541 set_gdbarch_return_value.
11543 * config/s390/nm-linux.h: Update comments.
11544 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11545 (STOPPED_BY_WATCHPOINT): Redefine.
11546 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11547 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11548 (s390_stopped_by_watchpoint): Likewise.
11549 (watch_area_cnt): Remove.
11550 * s390-nat.c: Update comments.
11551 (watch_area): Remove typedef.
11552 Global replace watch_area by struct watch_area.
11553 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11554 (s390_stopped_by_watchpoint): Remove pid argument,
11555 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11556 (s390_fix_watch_points): Remove pid argument,
11557 use s390_inferior_tid. Recompute area spanned by watchpoints.
11558 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11559 argument. Reimplement.
11561 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11562 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11563 (FETCH_INFERIOR_REGISTERS): Define.
11564 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11566 * config/s390/s390x.mt: Remove.
11567 * config/s390/tm-s390.h: Remove.
11568 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11569 (TARGET_ELF64): Remove.
11570 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11571 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11572 s390*-*-* case; always set gdb_target to s390.
11573 * regformats/reg-s390.dat: Remove control registers.
11574 * regformats/reg-s390x.dat: Likewise.
11575 * s390-tdep.h: New file.
11576 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11577 Include "inferior.h" and "s390-tdep.h".
11578 Remove private definition of offsetof.
11579 (s390_register_u_addr): Remove.
11580 (regmap_gregset, regmap_fpregset): Define.
11581 (supply_gregset, fill_gregset): Reimplement.
11582 (supply_fpregset, fill_fpregset): Likewise.
11583 (s390_inferior_tid): New function.
11584 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11585 (fetch_inferior_registers, store_inferior_registers): Likewise.
11586 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11587 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11588 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11589 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11590 (struct gdbarch_tdep): Define.
11591 (struct s390_register_info): Define.
11592 (s390_register_info): New variable.
11593 (s390_register_name): Reimplement.
11594 (s390_register_type): New function.
11595 (s390_register_raw_size, s390x_register_raw_size): Remove.
11596 (s390_cannot_fetch_register): Remove.
11597 (s390_register_byte): Remove.
11598 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11599 (s390_dwarf_regmap): New variable.
11600 (s390_dwarf_reg_to_regnum): New function.
11601 (s390_stab_reg_to_regnum): Remove.
11602 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11603 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11604 (s390_convert_register_p): Likewise.
11605 (s390_register_to_value, s390_value_to_register): Likewise.
11606 (s390_register_reggroup_p): Likewise.
11607 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11608 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11609 (s390_supply_regset, s390_regset_from_core_section): New functions.
11610 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11611 (S390_FPR_SIZE): Likewise.
11612 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11613 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11614 (S390_NUM_GPRS): Move here from tm-s390.h.
11615 (S390_NUM_FPRS): Likewise.
11616 (s390_in_function_epilogue_p): New function.
11617 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11618 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11619 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11620 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11621 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11623 set_gdbarch_deprecated_max_register_raw_size,
11624 set_gdbarch_deprecated_max_register_virtual_size,
11625 set_gdbarch_deprecated_register_byte,
11626 set_gdbarch_cannot_fetch_register,
11627 set_gdbarch_cannot_store_register,
11628 set_gdbarch_deprecated_register_size,
11629 set_gdbarch_deprecated_register_raw_size,
11630 set_gdbarch_deprecated_register_virtual_size,
11631 set_gdbarch_deprecated_register_virtual_type,
11632 set_gdbarch_deprecated_register_bytes.
11634 set_gdbarch_num_pseudo_regs,
11635 set_gdbarch_register_type,
11636 set_gdbarch_convert_register_p,
11637 set_gdbarch_register_to_value,
11638 set_gdbarch_value_to_register,
11639 set_gdbarch_register_reggroup_p,
11640 set_gdbarch_regset_from_core_section,
11641 set_gdbarch_pseudo_register_read,
11642 set_gdbarch_pseudo_register_write,
11643 set_gdbarch_in_function_epilogue_p.
11644 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11645 (s390_tdep_h): New variable.
11647 2004-02-17 Jim Blandy <jimb@redhat.com>
11649 * findvar.c (value_from_register): If the type has no length, just
11650 return an acceptable value --- don't report an internal error.
11652 * stabsread.c (read_type): If we find any type numbers that are
11653 forward references, complain if the references aren't resolved by
11654 the time we're finished reading.
11655 (cleanup_undefined_types): Make error message more appropriate for
11658 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11660 * Makefile.in (defs_h): Remove dependency on progress_h.
11661 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11663 * main.c (captured_main): Delete use of START_PROGRESS and
11666 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11668 * objfiles.c (terminate_minimal_symbol_table): Add back
11669 initialization of MSYMBOL_TYPE.
11671 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11673 Committed by Andrew Cagney.
11674 * Makefile.in (ia64_tdep_h): New macro.
11675 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11676 (ia64-tdep.o): Likewise.
11677 * ia64-tdep.h: New file.
11678 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11679 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11680 (ia64_aix_sigcontext_register_address): Likewise.
11681 (ia64_linux_getunwind_table): Delete declaration.
11682 * ia64-linux-tdep.c: Likewise.
11684 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11686 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11687 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11688 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11690 2004-02-17 Andrew Cagney <cagney@redhat.com>
11692 * symtab.c (skip_prologue_using_sal): New function.
11693 * symtab.h (skip_prologue_using_sal): Declare.
11694 * frv-tdep.c: Include "symtab.h".
11695 (skip_prologue_using_sal): Delete function.
11696 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11697 * rs6000-tdep.c (refine_prologue_limit): Mention
11698 skip_prologue_using_sal.
11699 * ia64-tdep.c (refine_prologue_limit): Ditto.
11700 * Makefile.in: Update dependencies.
11702 2004-02-16 Andrew Cagney <cagney@redhat.com>
11704 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11705 START_INFERIOR_TRAPS_EXPECTED.
11706 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11707 START_INFERIOR_TRAPS_EXPECTED.
11708 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11710 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11711 macro, moved to "nm-osf.h". Update copyright.
11712 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11715 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11716 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11717 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11718 frameless_look_for_prologue.
11719 * frame.h (legacy_frameless_look_for_prologue): Rename
11720 frameless_look_for_prologue.
11721 * gdbarch.h, gdbarch.c: Re-generate.
11722 * sh64-tdep.c (sh64_gdbarch_init): Update.
11723 * sh-tdep.c (sh_gdbarch_init): Update.
11724 * s390-tdep.c (s390_gdbarch_init): Update.
11725 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11726 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11727 * m68k-tdep.c (m68k_gdbarch_init): Update.
11728 (delta68_frame_args_address): Update.
11729 * m32r-tdep.c (m32r_gdbarch_init): Update.
11730 * hppa-tdep.c (hppa_gdbarch_init): Update.
11731 * h8300-tdep.c (h8300_gdbarch_init): Update.
11732 * frv-tdep.c (frv_gdbarch_init): Update.
11733 (frv_frameless_function_invocation): Update.
11734 * cris-tdep.c (cris_gdbarch_init): Update.
11735 (cris_frameless_function_invocation): Update.
11736 * avr-tdep.c (avr_gdbarch_init): Update.
11737 * arm-tdep.c (arm_gdbarch_init): Update.
11738 * stack.c (frame_info): Update, call predicate.
11739 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11740 * frame.c (legacy_get_prev_frame): Update, call predicate..
11741 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11742 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11743 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11745 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11746 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11747 * vax-tdep.c (vax_gdbarch_init): Ditto.
11749 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11752 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11754 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11757 2004-02-16 Andrew Cagney <cagney@redhat.com>
11759 * tui/tui-windata.c: Include "gdb_string.h".
11760 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11761 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11762 * Makefile.in: Update dependencies.
11764 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11766 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11767 * infrun.c: Include "gdb_assert.h".
11768 (singlestep_ptid, saved_singlestep_ptid)
11769 (stepping_past_singlestep_breakpoint): New variables.
11770 (resume): Set singlestep_ptid. Check for singlestep thread
11772 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11773 (handle_inferior_event): Handle singlestep thread hop.
11775 2004-02-16 Andrew Cagney <cagney@redhat.com>
11777 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11778 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11779 (dwarf2_frame_init_reg): Ditto.
11781 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11782 suggested by Joshua Neuheisel
11784 * configure.in: Always check for curses, including pdcurses.
11785 Warn, instead of error, when no curses are found. Enable TUI when
11786 curses is available.
11787 * configure: Re-generate.
11789 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11791 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11792 sh_sh4_register_convert_to_virtual.
11793 (sh_register_convert_to_raw): Rename from
11794 sh_sh4_register_convert_to_raw.
11795 (sh_pseudo_register_read): Accomodate above name change.
11796 (sh_pseudo_register_write): Ditto.
11798 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11800 * sh-tdep.c (sh_generic_register_name): Remove.
11801 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11803 2004-02-15 Andrew Cagney <cagney@redhat.com>
11805 * configure.in (build_warnings): Add -Wunused-function.
11806 * configure: Re-generate.
11808 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11809 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11811 * procfs.c (procfs_init_inferior): Assume that
11812 START_INFERIOR_TRAPS_EXPECTED is defined.
11813 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11814 * config/ns32k/tm-nbsd.h: Delete file,
11815 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11817 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11818 * config/vax/tm-vax.h: Delete file.
11820 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11821 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11822 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11823 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11824 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11825 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11826 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11828 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11830 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11831 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11832 (struct dwarf2_frame_ops): New.
11833 (dwarf2_frame_default_init_reg): New function, based on
11834 dwarf2_frame_init_reg.
11835 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11836 (dwarf2_frame_init_reg): Call architecture-specific function.
11837 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11838 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11839 instead of dwarf2_frame_data.
11840 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11841 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11843 2004-02-15 Andrew Cagney <cagney@redhat.com>
11845 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11846 register_gdbarch_swap.
11847 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11848 * f-lang.c (_initialize_f_language): Update, use
11849 DEPRECATED_REGISTER_GDBARCH_SWAP.
11850 * remote.c (_initialize_remote): Ditto.
11851 * regcache.c (_initialize_regcache): Ditto.
11852 * parse.c (_initialize_parse): Ditto.
11853 * infrun.c (_initialize_infrun): Ditto.
11854 * mi/mi-main.c (_initialize_mi_main): Ditto.
11855 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11857 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11858 poking .cacheable directly.
11859 * symfile.c (symfile_bfd_open): Ditto.
11861 * Makefile.in: Update all dependencies.
11863 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11864 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11865 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11866 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11867 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11869 2004-02-14 Andrew Cagney <cagney@redhat.com>
11871 * arch-utils.c (legacy_convert_register_p): Check
11872 DEPRECATED_REGISTER_CONVERTIBLE_P.
11873 * findvar.c (value_of_register): Ditto.
11875 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11876 * gdbarch.h, gdbarch.c: Re-generate.
11877 * arch-utils.c (deprecated_register_convertible_not): Delete.
11878 * arch-utils.h (deprecated_register_convertible_not): Delete.
11879 * mi/mi-main.c (get_register): Update. Update copyright.
11880 * infcmd.c (default_print_registers_info): Update.
11882 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11883 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11884 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11885 * gdbarch.h, gdbarch.c: Re-generate.
11886 * frame.c (deprecated_get_next_frame_hack): Delete function.
11887 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11888 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11890 * infcall.c (call_function_by_hand): Update.
11892 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11894 * symfile.c (init_entry_point_info, entry_point_address): Move
11896 * objfiles.c (init_entry_point_info, entry_point_address):..to
11898 * symfile.h (init_entry_point_info, entry_point_address): Remove
11900 * objfiles.h (init_entry_point_info, entry_point_address):Add
11902 * cris-tdep.c: Remove include of symfile.h. Add include of
11904 * infcall.c: Ditto.
11905 * mcore-tdep.c: Ditto.
11906 * mn10300-tdep.c: Ditto.
11907 * sh64-tdep.c: Ditto.
11908 * v850-tdep.c: Ditto.
11909 * arm-tdep.c: Remove include of symfile.h.
11910 * blockframe.c: Ditto.
11911 * coffread.c: Ditto.
11912 * dbxread.c: Ditto.
11913 * dwarf2read.c: Ditto.
11914 * dwarfread.c: Ditto.
11915 * frv-tdep.c: Ditto.
11916 * ia64-tdep.c: Ditto.
11917 * mdebugread.c: Ditto.
11918 * mipsread.c: Ditto.
11919 * rs6000-tdep.c: Ditto.
11920 * s390-tdep.c: Ditto.
11921 * sh-tdep.c: Ditto.
11922 * xstormy16-tdep.c: Ditto.
11923 * gdbarch.sh: Remove include of symfile.h.
11924 * gdbarch.c: Regenerate.
11925 * solib-irix.c (enable_break): Use entry_point_address().
11926 Add comment about include file.
11927 * xcoffread.c: Add comment about include file.
11928 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11929 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11930 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11931 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11932 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11934 2004-02-13 Andrew Cagney <cagney@redhat.com>
11936 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11937 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11939 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11941 2004-02-12 Fred Fish <fnf@redhat.com>
11943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11944 set_gdbarch_store_return_value.
11946 2004-02-12 Andrew Cagney <cagney@redhat.com>
11948 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11949 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11950 (interrupt_query): Ditto.
11951 (ofunc): Delete unused variable.
11952 * cris-tdep.c (cris_abi): Delete unused function.
11953 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11954 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11955 (cris_get_asr_quick_shift_steps): Ditto.
11956 (cris_skip_prologue_frameless_p): Ditto.
11957 * arm-tdep.c (arm_push_return_address): Delete unused function.
11958 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11959 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11960 * s390-tdep.c (s390_function_start): Delete unused function.
11962 2004-02-12 Andrew Cagney <cagney@redhat.com>
11964 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11965 gdbarch.h, gdbarch.c: Re-generate.
11966 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11967 to generic_prologue_frameless_p.
11968 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11969 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11971 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11973 * mips-linux-tdep.c: Include "frame.h".
11974 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11975 (mips_linux_skip_resolver): New functions.
11976 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11977 and set_gdbarch_in_solib_call_trampoline.
11978 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11979 to after set_gdbarch_in_solib_return_trampoline. Only set the
11980 solib hooks to mips16 functions if the OS ABI is unknown.
11981 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11982 including "config/tm-linux.h".
11983 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11984 * Makefile.in (mips-linux-tdep.o): Update.
11986 2004-02-11 David Carlton <carlton@kealia.com>
11988 * linespec.c (decode_compound): Only look for a class symbol when
11989 considering all but the rightmost component.
11991 2004-02-11 Andrew Cagney <cagney@redhat.com>
11993 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11994 abi code are are separatly grouped.
11996 2004-02-11 Andrew Cagney <cagney@redhat.com>
11998 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11999 * gdbarch.h, gdbarch.c: Re-generate.
12000 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12001 * v850-tdep.c (v850_gdbarch_init): Update.
12002 * sh64-tdep.c (sh64_gdbarch_init): Update.
12003 * sh-tdep.c (sh_gdbarch_init): Update.
12004 * s390-tdep.c (s390_gdbarch_init): Update.
12005 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12006 * mips-tdep.c (mips_gdbarch_init): Update.
12007 * mcore-tdep.c (mcore_gdbarch_init): Update.
12008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12009 * m32r-tdep.c (m32r_gdbarch_init): Update.
12010 * ia64-tdep.c (ia64_gdbarch_init): Update.
12011 * hppa-tdep.c (hppa_gdbarch_init): Update.
12012 * h8300-tdep.c (h8300_gdbarch_init): Update.
12013 * frv-tdep.c (frv_gdbarch_init): Update.
12014 * d10v-tdep.c (d10v_gdbarch_init): Update.
12015 * cris-tdep.c (cris_gdbarch_init): Update.
12016 * avr-tdep.c (avr_gdbarch_init): Update.
12017 * arm-tdep.c (arm_gdbarch_init): Update.
12018 * alpha-tdep.c (alpha_gdbarch_init): Update.
12020 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12022 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12024 (sh_sh4al_dsp_register_name): Ditto.
12026 2004-02-10 Andrew Cagney <cagney@redhat.com>
12028 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12029 (mips_init_frame_pc_first): Delete function.
12030 (mips_frame_saved_pc): Delete function.
12031 (mips_frame_chain): Delete function.
12032 (mips_init_extra_frame_info): Delete function.
12033 (mips_xfer_register): Delete unused variable "reg".
12034 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12035 (mips_n32n64_return_value): Delete unused variable "reg".
12036 (mips_n32n64_return_value): Delete unused variable "pos".
12037 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12038 (mips_o32_return_value): Delete unused variable "pos".
12039 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12040 (mips_print_fp_register): Delete unused variable "namelen"
12041 (mips_print_fp_register): Delete unused variable "flt2"
12042 (get_frame_pointer): Delete function.
12043 (cached_proc_desc): Delete static variable.
12044 (mips_pop_frame): Delete function.
12045 (mips_find_saved_regs): Delete function.
12046 (mips_get_saved_register): Delete function.
12047 (mips_saved_pc_after_call): Delete function.
12048 (SIGFRAME_BASE): Delete macro.
12049 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12050 (SIGFRAME_PC_OFF): Delete macro.
12051 (SIGFRAME_REGSAVE_OFF): Delete macro.
12052 (mips_dump_tdep): Do not print deleted macro definitions.
12054 2004-02-10 Andrew Cagney <cagney@redhat.com>
12056 * Makefile.in (SFILES): Remove explictly listed tui files.
12057 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12059 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12061 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12062 to use paddr functions to format ia64 addresses and long values.
12063 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12064 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12065 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12066 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12067 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12069 2004-02-10 Andrew Cagney <cagney@redhat.com>
12071 * defs.h: Do not include "tui.h".
12072 * gdb_curses.h: New file.
12073 * tui/tui-hooks.h: New file.
12074 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12075 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12076 (tui_initialize_io): Delete declaration.
12077 (tui_initialize_readline: Delete redundant declaration.
12078 (struct tui_point): Delete definition.
12079 * tui/tui-data.h (struct tui_point): Define.
12080 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12081 * utils.c: Include "tui/tui.h".
12082 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12083 * printcmd.c [TUI]: Include "tui/tui.h".
12084 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12085 * tui/tui-command.c: Include "gdb_curses.h".
12086 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12087 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12088 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12089 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12090 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12091 * Makefile.in: Update all dependencies.
12092 (tui_hooks_h, gdb_curses_h): Define.
12093 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12095 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12097 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12098 auxf2. Add comments about some other rarely used fields.
12100 2004-02-10 Andrew Cagney <cagney@redhat.com>
12102 * Makefile.in (init.c): Fix script removing duplicates. Problem
12103 reported by Peter Schauer.
12105 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12107 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12108 obstack_specify_allocation.
12109 * objfiles.c (allocate_objfile): Ditto.
12110 * solib-sunos.c (solib_add_common_symbols)
12111 (allocate_rt_common_objfile): Ditto.
12112 * symfile.c (reread_symbols): Ditto.
12113 * gdb_obstack.h: Add comment.
12115 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12117 * linespec.c (decode_line_1, locate_first_half)
12118 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12119 commented out code.
12121 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12123 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12126 2004-02-09 Andrew Cagney <cagney@redhat.com>
12128 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12129 fails, try find_pc_section. Fix PR c++/1267.
12130 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12131 instead of find_pc_mapped_section.
12132 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12133 not default to the section containing PC. Fix PR symtab/1519.
12135 2004-02-09 Andrew Cagney <cagney@redhat.com>
12137 * Makefile.in (mips-tdep.o): Update dependencies.
12138 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12140 (mips_unwind_pc): Return the pseudo PC register.
12141 (mips_unwind_dummy_id): New function.
12142 (mips16_fetch_instruction): New function.
12143 (mips32_fetch_instruction): New function.
12144 (struct mips_frame_cache): Define.
12145 (mips_mdebug_frame_cache): New function.
12146 (mips_mdebug_frame_this_id): New function.
12147 (mips_mdebug_frame_prev_register): New function.
12148 (mips_mdebug_frame_unwind): Define.
12149 (mips_mdebug_frame_sniffer): New function.
12150 (mips_mdebug_frame_base_address): New function.
12151 (mips_mdebug_frame_base): Define.
12152 (mips_mdebug_frame_base_sniffer): New function.
12153 (mips_gdbarch_init): Append unwind and base sniffers. Set
12156 2004-02-08 Andrew Cagney <cagney@redhat.com>
12158 * frame.c: Print both the register number and name.
12160 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12161 and a sed into a single sed. Make .c and .o patterns more robust.
12163 (INIT_FILES): Replace OBS with COMMON_OBS.
12164 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12166 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12168 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12169 the PT_WCOOKIE request.
12171 2004-02-08 Andrew Cagney <cagney@redhat.com>
12173 * mips-tdep.c (mips_unwind_pc): New function.
12174 (mips_gdbarch_init): Set mips_unwind_pc.
12176 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12177 (get_frame_id): Allow the UNKNOWN_FRAME.
12178 (frame_register_unwind, get_frame_type): Ditto.
12180 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12181 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12182 unwind_dummy_id indicates a legacy frame.
12184 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12185 * configure: Re-generate.
12187 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12190 2004-02-08 Andrew Cagney <cagney@redhat.com>
12192 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12194 * configure: Re-generate.
12195 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12196 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12197 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12198 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12199 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12200 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12201 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12202 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12203 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12204 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12206 2004-02-07 Andrew Cagney <cagney@redhat.com>
12208 * Makefile.in: Update all dependencies.
12210 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12211 * configure: Re-generate.
12212 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12213 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12214 (COMMON_OBS): Add "main.o" and "annotate.o".
12215 (ANNOTATE_OBS): Delete.
12216 (OBS): Remove ANNOTATE_OBS.
12217 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12219 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12220 against CONFIG_OBS and "main.o".
12221 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12222 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12224 * tui/tui-command.c: Include "gdb_string.h", delete register
12225 attribute, use ISO-C function signatures.
12226 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12227 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12228 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12229 * tui/tui.c: Ditto.
12231 * tui/tui-command.c: Change variable and function names to lower
12233 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12234 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12235 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12236 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12237 * tui/tui-winsource.c, tui/tui.c: Ditto.
12239 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12241 * buildsym.c (free_pending_blocks, finish_block)
12242 (record_pending_block, make_blockvector, end_symtab): Replace
12243 symbol_obstack with objfile_obstack.
12244 * coffread.c (process_coff_symbol, coff_read_struct_type)
12245 (coff_read_enum_type): Ditto.
12246 * cp-namespace.c (initialize_namespace_symtab)
12247 (check_one_possible_namespace_symbol): Ditto.
12248 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12249 (dwarf2_symbol_mark_computed): Ditto.
12250 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12251 * elfread.c (elf_symtab_read): Ditto.
12252 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12253 (hpread_read_enum_type, hpread_read_function_type)
12254 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12256 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12257 (java_link_class_type): Ditto.
12258 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12259 (new_symbol): Ditto.
12260 * minsyms.c (install_minimal_symbols): Ditto.
12261 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12262 (terminate_minimal_symbol_table): Replace symbol_obstack with
12264 (free_objfile): Remove freeing of symbol_obstack.
12265 * objfiles.h: Remove symbol_obstack field.
12266 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12268 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12270 (solib_add_common_symbols): Replace symbol_obstack with
12272 * somsolib.c (som_solib_add): Ditto.
12273 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12274 (common_block_start, common_block_end): Ditto.
12275 * symfile.c (reread_symbols): Remove freeing and init of
12277 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12278 * symfile.h: Update comment.
12279 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12281 * symtab.c (symbol_set_names): Replace symbol_obstack with
12283 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12285 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12286 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12289 2004-02-07 Andrew Cagney <cagney@redhat.com>
12291 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12292 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12293 fields and variables.
12294 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12295 (m_beInvisible): Delete macro.
12296 * tui/tui-data.h: Fix case case fields and variables.
12297 (m_genWinPtrIsNull): Delete macro.
12298 (tui_win_list): Rename winList.
12299 (TUI_SRC_WIN): Rename srcWin.
12300 (TUI_DISASM_WIN): Rename disassemWin.
12301 (TUI_DATA_WIN): Rename dataWin.
12302 (TUI_CMD_WIN): Rename cmdWin.
12303 (m_genWinPtrNotNull): Delete macro.
12304 (m_winPtrIsNull): Delete macro.
12305 (m_winPtrNotNull): Delete macro.
12306 (tui_win_is_source_type): Replace m_winIsSourceType
12307 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12308 (tui_win_has_locator): Replace m_hasLocator.
12309 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12310 m_setWinHighlightOff.
12311 * tui/tui-data.c: Update references.
12312 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12313 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12314 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12315 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12316 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12317 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12318 * tui/tui-winsource.c, tui/tui.c: Ditto.
12320 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12322 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12323 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12326 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12327 variable `i6' to `i7'.
12328 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12330 2004-02-07 Andrew Cagney <cagney@redhat.com>
12332 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12333 (TuiPoint, TuiPointPtr): Ditto.
12334 (TuiStatus, TuiStatusPtr): Ditto.
12335 (TuiWinType, TuiWinTypePtr): Ditto.
12336 (struct tui_point): Rename _TuiPoint.
12337 (tui_get_low_disassembly_address): Rename
12338 tuiGetLowDisassemblyAddress.
12339 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12340 (tuiFree): Delete declaration.
12341 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12342 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12343 * tui/tui.c (tuiFree): Delete function.
12344 * cli/cli-cmds.c (disassemble_command): Update references.
12345 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12346 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12347 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12348 * tui/tui-winsource.c: Ditto.
12350 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12352 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12353 coffstab_build_psymtabs, elfstab_build_psymtabs)
12354 (stabsect_build_psymtabs): Replace psymbol_obstack with
12356 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12357 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12359 * dwarfread.c (scan_compilation_units): Ditto.
12360 * elfread.c (elfstab_offset_sections): Ditto.
12361 * hppa-tdep.c (read_unwind_info): Ditto.
12362 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12363 (hpread_end_psymtab): Ditto.
12364 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12365 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12367 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12368 * objfiles.c (add_to_objfile_sections)
12369 (build_objfile_section_table): Ditto.
12370 (allocate_objfile): Remove init of psymbol_obstack.
12371 (free_objfile): Remove freeing of psymbol_obstack.
12372 * objfiles.h (struct objfile): Remove field
12373 psymbol_obstack. Update comments.
12374 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12375 psymbol_obstack with objfile_obstack.
12376 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12378 * somread.c (som_symfile_offsets, init_import_symbols)
12379 (init_export_symbols): Replace psymbol_obstack with
12381 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12382 * symfile.c (default_symfile_offsets, syms_from_objfile)
12383 (reread_symbols): Remove freeing and init of psymbol_obstack.
12384 (cashier_psymtab): Update comment.
12385 * symmisc.c (print_objfile_statistics): Don't report stats for
12387 * symtab.h (struct general_symbol_info, struct partial_symtab):
12389 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12390 (xcoff_symfile_offsets): Replace psymbol_obstack with
12393 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12395 * objfiles.h (struct objfile): Add objfile_obstack field.
12396 Remove type_obstack field.
12398 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12399 read_structure_scope read_enumeration, new_symbol): Replace
12400 type_obstack with objfile_obstack.
12401 * dwarfread.c (struct_type, enum_type): Ditto.
12402 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12403 (lookup_fundamental_type): Ditto.
12404 * gdbtypes.h (TYPE_ALLOC): Ditto.
12405 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12406 (hpread_read_doc_function_type, hpread_read_struct_type)
12407 (fix_static_member_physnames, hpread_read_array_type)
12408 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12409 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12410 (java_link_class_type): Ditto.
12411 * mdebugread.c (parse_type): Ditto.
12412 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12413 * solib-sunos.c (solib_add_common_symbols): Ditto.
12414 * stabsread.c (define_symbol, read_type, read_member_functions,
12415 read_cpp_abbrev, read_one_struct_field): Ditto.
12416 * symfile.c (reread_symbols): Ditto.
12417 * symmisc.c (print_objfile_statistics): Ditto.
12419 2004-02-07 Andrew Cagney <cagney@redhat.com>
12421 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12422 (tui_exec_info_content): Rename TuiExecInfoContent.
12423 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12424 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12425 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12426 (TuiList, TuiListPtr): Ditto.
12427 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12428 (TuiDataType, TuiDataTypePtr): Ditto.
12429 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12430 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12431 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12432 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12433 (TuiDataElement, TuiDataElementPtr): Ditto.
12434 (TuiWinElement, TuiWinElementPtr): Ditto.
12435 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12436 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12437 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12438 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12439 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12440 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12441 * tui/tui-command.c, tui/tui-data.c: Update references.
12442 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12443 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12444 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12445 * tui/tui-winsource.c, tui/tui.c: Ditto.
12447 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12449 * dwarf2-frame.h: Update copyright.
12450 (enum dwarf2_frame_reg_rule): New.
12451 (struct dwarf2_frame_state_reg): New.
12452 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12453 * dwarf2-frame.c: Update copyright.
12454 (enum dwarf2_reg_rule): Remove.
12455 (struct dwarf2_frame_state): Remove defenition of `struct
12456 dwarf2_frame_state_reg'.
12457 (read_reg): Call get_frame_arch to get the architecture instead of
12458 using CURRENT_GDBARCH.
12459 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12461 (dwarf2_frame_init_reg): New function.
12462 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12463 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12464 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12465 tags with DWARF2_FRAME_.
12466 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12467 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12468 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12470 2004-02-06 Andrew Cagney <cagney@redhat.com>
12472 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12473 (enum tui_data_type): Rename _TuiDataType.
12474 (struct tui_layout_def): Rename _TuiLayoutDef.
12475 (struct tui_source_element): Rename _TuiSourceElement.
12476 (struct tui_data_element): Rename _TuiDataElement.
12477 (struct tui_command_element): Rename _TuiCommandElement.
12478 (struct tui_locator_element): Rename _TuiLocatorElement.
12479 (union tui_which_element): Define.
12480 (struct tui_win_element): Rename _TuiWinElement.
12481 (struct tui_data_info): Rename _TuiDataInfo.
12482 (struct tui_source_info): Rename _TuiSourceInfo.
12483 (struct tui_command_info): Rename _TuiCommandInfo.
12484 (tui_initialize_static_data): Rename initializeStaticData.
12485 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12486 (tui_alloc_win_info): Rename allocWinInfo.
12487 (tui_init_generic_part): Rename initGenericPart.
12488 (tui_init_win_info): Rename initWinInfo.
12489 (tui_alloc_content): Rename allocContent.
12490 (tui_add_content_elements): Rename addContentElements.
12491 (tui_init_content_element): Rename initContentElement.
12492 (tui_free_window): Rename freeWindow.
12493 (tui_free_win_content): Rename freeWinContent.
12494 (tui_free_data_content): Rename freeDataContent.
12495 (tui_free_all_source_wins_content): Rename
12496 freeAllSourceWinsContent.
12497 (tui_del_window): Rename tuiDelWindow.
12498 (tui_del_data_windows): Rename tuiDelDataWindows.
12499 (tui_partial_win_by_name): Rename partialWinByName.
12500 (tui_win_name): Rename winName.
12501 (tui_current_layout): Rename currentLayout.
12502 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12503 (tui_term_height): Rename termHeight.
12504 (tui_set_term_height_to): Rename setTermHeightTo.
12505 (tui_term_width): Rename termWidth.
12506 (tui_set_term_width_to): Rename setTermWidthTo.
12507 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12508 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12509 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12510 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12511 (tui_source_windows): Rename sourceWindows.
12512 (tui_clear_source_windows): Rename clearSourceWindows.
12513 (tui_clear_source_windows_detail): Rename
12514 clearSourceWindowsDetail.
12515 (tui_clear_win_detail): Rename clearWinDetail.
12516 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12517 (tui_default_tab_len): Rename tuiDefaultTabLen.
12518 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12519 (tui_win_with_focus): Rename tuiWinWithFocus.
12520 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12521 (tui_layout_def): Rename tuiLayoutDef.
12522 (tui_win_resized): Rename tuiWinResized.
12523 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12524 (tui_next_win): Rename tuiNextWin.
12525 (tui_prev_win): Rename tuiPrevWin.
12526 (tui_add_to_source_windows): Rename addToSourceWindows.
12527 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12528 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12529 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12530 * tui/tui.c, tui/tui-data.c: Ditto.
12531 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12532 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12534 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12535 (struct symtab): Declare.
12536 (tui_set_source_content): Rename tuiSetSourceContent.
12537 (tui_show_symtab_source): Rename tuiShowSource.
12538 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12539 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12540 * tui/tui-source.c: Update copyright. Update references.
12541 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12542 * tui/tui-stack.c: Update references.
12544 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12545 (struct tui_win_info): Declare.
12546 (tui_scroll_forward): Rename tuiScrollForward.
12547 (tui_scroll_backward): Rename tuiScrollBackward.
12548 (tui_scroll_left): Rename tuiScrollLeft.
12549 (tui_scroll_right): Rename tuiScrollRight.
12550 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12551 (tui_resize_all): Rename tuiResizeAll.
12552 (tui_refresh_all_win): Rename tuiRefreshAll.
12553 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12554 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12555 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12556 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12558 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12559 (tui_erase_data_content): Rename tuiEraseDataContent.
12560 (tui_display_all_data): Rename tuiDisplayAllData.
12561 (tui_check_data_values): Rename tuiCheckDataValues.
12562 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12563 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12564 (tui_first_data_element_no_in_line): Rename
12565 tuiFirstDataElementNoInLine.
12566 (tui_delete_data_content_windows): Rename
12567 tuiDeleteDataContentWindows.
12568 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12569 (tui_display_data_from): Rename tuiDisplayDataFrom.
12570 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12571 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12572 * tui/tui-win.c, tui/tui-regs.c: Update references.
12573 * tui/tui-layout.c, tui/tui.c: Update references.
12575 * tui/tui-wingeneral.h: Update copyright.
12576 (m_allBeVisible): Delete macro.
12577 (m_allBeInvisible): Delete macro.
12578 (struct tui_gen_win_info): Declare.
12579 (struct tui_win_info): Declare.
12580 (tui_unhighlight_win): Rename unhighlightWin.
12581 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12582 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12583 (tui_make_window): Rename makeWindow.
12584 (tui_copy_win): Rename copyWin.
12585 (tui_box_win): Rename boxWin.
12586 (tui_highlight_win): Rename highlightWin.
12587 (tui_check_and_display_highlight_if_needed): Rename
12588 checkAndDisplayHighlightIfNeeded.
12589 (tui_refresh_all): Rename refreshAll.
12590 (tui_delete_win): Rename tuiDelwin.
12591 (tui_refresh_win): Rename tuiRefreshWin.
12592 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12593 (tui_make_visible, tui_make_invisible): New functions.
12594 (tui_make_all_visible, tui_make_all_invisible): New functions.
12595 (make_all_visible): Rename makeAllVisible.
12596 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12597 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12598 * tui/tui-windata.c, tui/tui-win.c: Update references.
12599 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12600 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12602 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12604 * proc-api.c (write_with_trace): Initialize local variable to
12605 silence compiler warning.
12607 2004-02-06 Andrew Cagney <cagney@redhat.com>
12609 * tui/tui-source.h: Do not include "defs.h".
12610 (struct tui_win_info): Declare.
12611 (tui_set_source_content_nil): Declare.
12612 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12613 (union tui_line_or_address): Rename _TuiLineOrAddress.
12614 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12615 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12616 (tui_update_source_window_as_is): Rename
12617 tuiUpdateSourceWindowAsIs.
12618 (tui_update_source_windows_with_addr): Rename
12619 tuiUpdateSourceWindowsWithAddr.
12620 (tui_update_source_windows_with_line): Rename
12621 tuiUpdateSourceWindowsWithLine.
12622 (tui_clear_source_content): Rename tuiClearSourceContent.
12623 (tui_erase_source_content): Rename tuiEraseSourceContent.
12624 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12625 (tui_show_source_content): Rename tuiShowSourceContent.
12626 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12627 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12628 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12629 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12630 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12631 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12632 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12633 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12634 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12635 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12636 (struct tui_win_info): Declare.
12637 * tui/tui-stack.c: Update references.
12638 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12639 * tui/tui-win.c, tui/tui-source.c: Ditto.
12640 * tui/tui.c, tui/tui-disasm.c: Ditto.
12642 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12644 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12645 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12647 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12649 * infrun.c (handle_inferior_event): Allow for breakpoint
12650 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12651 and SIGEMT. Update comments.
12652 * NEWS (Revised SPARC target): Mention support for non-executable
12655 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12657 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12658 * inftarg.c: Update copyright year.
12659 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12660 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12661 (sparc_xfer_wcookie): New function.
12662 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12663 * Makefile.in (sparc-nat.o): Update dependencies.
12664 * config/sparc/nm-nbsd.h: Include "target.h".
12665 (NATIVE_XFER_WCOOKIE): New define.
12666 (sparc_xfer_wcookie): New prototype.
12668 2004-02-04 Andrew Cagney <cagney@redhat.com>
12670 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12671 SYSCALL_TRAP function.
12672 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12674 2004-02-04 Andrew Cagney <cagney@redhat.com>
12675 Daniel Jacobowitz <drow@mvista.com>
12677 * objfiles.h: Delete comments refering to inside_entry_func and
12678 DEPRECATED_FRAME_CHAIN_VALID.
12679 * defs.h (inside_entry_func): Update prototype..
12680 * blockframe.c (inside_entry_func): Rename to
12681 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12682 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12684 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12686 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12687 outside of #ifdef SOLIB_ADD region.
12688 (do_restore_lang_radix_cleanup): Ditto.
12689 (resolve_pending_breakpoint): Ditto.
12691 2004-02-03 Andrew Cagney <cagney@redhat.com>
12693 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12694 (process_note_abi_tag_sections): Delete unused function.
12695 (ia64_read_fp): Delete unused function.
12696 (gdbarch_extract_struct_value_address): Delete declaration.
12698 2004-02-02 Andrew Cagney <cagney@redhat.com>
12700 * vax-tdep.c (vax_frame_chain): Delete call to
12701 deprecated_inside_entry_file.
12702 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12704 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12706 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12707 column that's "empty" or "same value" when eliminating REG_RA
12710 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12712 * NEWS: Add information about new pending breakpoint support.
12714 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12716 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12717 and pending fields for pending breakpoint support.
12718 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12719 (condition_command): Only parse condition if not a pending
12721 (print_one_breakpoint): Add support for pending breakpoints.
12722 (describe_other_breakpoints): Add checks to verify we are not
12723 dealing with pending breakpoints.
12724 (check_duplicates): Don't check pending breakpoints.
12725 (set_raw_breakpoint): Initialize pending flag.
12726 (do_restore_lang_radix_cleanup): New cleanup routine.
12727 (resolve_pending_breakpoint): New function.
12728 (re_enable_breakpoints_in_shlibs): Try and resolve any
12729 pending breakpoints via resolve_pending_breakpoint.
12730 (mention): Add pending breakpoint support.
12731 (parse_breakpoint_sals): Add new parameter to pass to
12732 decode_line_1 to indicate silent errors when files or functions
12733 are not found. Change all callers.
12734 (do_captured_parse_breakpoint): New function.
12735 (break_command_1): Change prototype to return an rc value and to
12736 take an optional pending breakpoint pointer. Support creating
12737 a pending breakpoint if a "not found" form of error occurs when
12738 parsing the breakpoint. Also support resolving an existing pending
12739 breakpoint and be silent if the resolution fails.
12740 (create_breakpoints): Change prototype to take pending breakpoint
12741 pointer. When resolving a pending breakpoint, use the new pointer
12742 to provide a conditional or commands added by the end-user.
12743 (delete_breakpoint): Add appropriate check for pending.
12744 (breakpoint_re_set_one): Ditto.
12745 (do_enable_breakpoint): Ditto.
12747 2004-02-02 David Carlton <carlton@kealia.com>
12749 * valops.c (enum oload_classification): New.
12750 (find_overload_match): Break implementation into separate
12751 functions; delete #if 0'd code; look for symbols within
12753 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12754 (find_oload_champ,oload_method_static,classify_oload_match): New.
12755 * cp-support.h: Add declaration for cp_func_name; update
12756 declaration for make_symbol_overload_list.
12757 * cp-support.c (cp_func_name): New.
12758 (overload_list_add_symbol): Fix comment, use
12759 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12760 (make_symbol_overload_list): Take a function name and a namespace
12761 instead of a symbol; change implementation.
12762 (make_symbol_overload_list_using): New.
12763 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12765 2004-02-02 Fred Fish <fnf@redhat.com>
12767 * main.c (gdb_stdtarg): Move definition to group with other
12768 gdb_stdtarg definitions and update copyright years.
12769 * remote-sim.c (gdb_os_write_stderr): Write output to
12770 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12771 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12772 gdb_stderr stream and update copyright years.
12774 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12776 * Makefile.in (mips-linux-nat.o): Update dependencies.
12777 * mips-linux-nat.c: Include mips-tdep.h.
12779 2004-02-01 Roland McGrath <roland@redhat.com>
12781 * sol-thread.c (sol_thread_xfer_partial): New function.
12782 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12783 (init_sol_core_ops): Likewise.
12785 * procfs.c (procfs_xfer_partial): New function.
12786 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12787 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12789 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12790 procfs_xfer_auxv function.
12792 * procfs.c (procfs_make_note_section): If we can read
12793 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12794 * linux-proc.c (linux_make_note_section): Likewise.
12796 * auxv.h: New file.
12797 * auxv.c: New file.
12798 * Makefile.in (auxv_h): New variable.
12799 (COMMON_OBS): Add auxv.o here.
12800 (auxv.o): New target.
12802 * corelow.c (core_xfer_partial): New function.
12803 (init_core_ops): Use it for core_ops.to_xfer_partial.
12805 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12806 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12807 macro if that is defined.
12809 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12811 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12812 and check the specified thread for each breakpoint.
12813 * breakpoint.h (bpstat_stop_status): Update prototype.
12814 * infrun.c (handle_inferior_event): Update calls to
12815 bpstat_stop_status.
12817 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12819 * Makefile.in (cli-cmds.o): Add $(readline_h).
12821 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12823 * cli/cli-cmds.c: Include readline.h.
12824 (complete_command): Pass the start of the last word to
12827 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12829 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12830 argument, and change first argument to a CORE_ADDR.
12831 * breakpoint.h (bpstat_stop_status): Update prototype.
12832 * infrun.c (adjust_pc_after_break): Add a new comment.
12833 (handle_inferior_event): Update calls to bpstat_stop_status.
12835 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12837 * breakpoint.h: Update copyright years.
12839 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12841 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12842 (bpstat_stop_status): Don't decrement PC.
12843 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12845 * infrun.c (adjust_pc_after_break): New function.
12846 (handle_inferior_event): Call it, early. Remove later references
12847 to DECR_PC_AFTER_BREAK.
12848 (normal_stop): Add commentary.
12850 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12852 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12853 2004-01-27 double-free fix.
12855 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12857 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12858 (sparc32_frame_prev_register): Handle StackGhost.
12859 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12861 2004-01-29 Roland McGrath <roland@redhat.com>
12863 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12864 * configure: Regenerated.
12866 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12867 * Makefile.in (procfs.o): Add dep.
12869 2004-01-28 Andrew Cagney <cagney@redhat.com>
12871 * tui/tui-stack.h: Update copyright.
12872 (struct frame_info): Add opaque declaration.
12873 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12874 (tui_show_locator_content): Rename tuiShowLocatorContent.
12875 (tui_show_frame_info): Rename tuiShowFrameInfo.
12876 * tui/tui-stack.c: Update copyright. Update references.
12877 * tui/tui-winsource.c: Update references.
12878 * tui/tui-win.c: Update references.
12879 * tui/tui-layout.c: Update references.
12880 * tui/tui-hooks.c: Update copyright, update references.
12881 * tui/tui.c: Update copyright, update references.
12882 * tui/tui-disasm.c: Update references.
12884 2004-01-28 David Carlton <carlton@kealia.com>
12886 * dwarf2read.c (add_partial_structure): Use demangled name if
12887 namespace equals "".
12889 2004-01-27 Jim Blandy <jimb@redhat.com>
12891 Clean up misapplied patch:
12892 * dwarf2read.c (determine_prefix): Change one of the two forward
12893 declarations for 'determine_prefix_aux' to a declaration for this.
12894 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12895 argument to 'die_specification'.
12897 * dwarf2read.c (read_func_scope): Re-indent comment.
12899 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12901 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12902 b->exp to NULL after freeing so that error during re-parsing or
12903 evaluation of expressions associated with breakpoint don't
12904 eventually lead to re-freeing of storage.
12905 Committed by Andrew Cagney.
12907 2004-01-27 Andrew Cagney <cagney@redhat.com>
12909 * source.c (ambiguous_line_spec): Delete undefined declaration.
12910 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12911 (m32r_set_server_address, m32r_set_download_path): Ditto.
12912 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12914 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12916 * dwarf2read.c: Update calls to changed and renamed functions, and
12917 references to moved variables.
12919 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12920 language, language_defn, list_in_scope, and ftypes members.
12921 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12922 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12923 (baseaddr): Remove globals.
12925 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12926 (set_cu_language, die_is_declaration, die_specification)
12927 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12928 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12929 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12930 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12932 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12933 cu.list_in_scope. Don't initialize cu_header_offset.
12934 (add_partial_symbol): Add local baseaddr.
12935 (psymtab_to_symtab_1): Add local baseaddr. Use
12936 objfile->section_offsets for consistency. Don't initialize
12937 cu_header_offset; do initialize cu.header.offset and
12939 (read_file_scope, read_func_scope, read_lexical_block_scope)
12940 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12942 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12944 * PROBLEMS: Add gdb/1516.
12946 2003-12-29 Robert Millan <robertmh@gnu.org>
12948 Patch committed by Andrw Cagney.
12949 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12950 * configure.tgt: Match knetbsd*-gnu.
12952 2004-01-26 Andrew Cagney <cagney@redhat.com>
12954 * breakpoint.c (catch_command_1): Delete #ifdef code.
12955 (catch_fork_command_1): Delete #ifdef wrapper.
12956 (catch_exec_command_1): Ditto.
12957 (catch_load_command_1): Ditto.
12958 (catch_unload_command_1): Ditto.
12960 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12961 (catch_breakpoint): Delete #if0ed function.
12962 (disable_catch_breakpoint): Ditto.
12963 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12964 (disable_catch, enable_catch, delete_catch): Ditto.
12966 2004-01-26 Andrew Cagney <cagney@redhat.com>
12968 * remote.c (echo_check, quit_flag): Delete variables.
12969 (cisco_kernel_mode): Delete variable.
12970 (minitelnet_return, tty_input, escape_count): Delete variables.
12971 (remote_cisco_mode): Delete variable.
12972 (remote_cisco_open, remote_cisco_close): Delete function.
12973 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12974 (init_remote_cisco_ops): Delete function.
12975 (_initialize_remote): Do not install "remote cisco" code.
12976 (read_frame): Delete cisco specific code.
12977 (remote_info_process): Delete function.
12978 (remote_wait): Delete cisco specific code.
12979 (remote_cisco_section_offsets): Delete function.
12980 (remote_cisco_objfile_relocate): Delete function.
12981 (remote_async_wait): Delete cisco specific code.
12982 (minitelnet, readtty, readsocket): Delete function.
12984 2004-01-26 Andrew Cagney <cagney@redhat.com>
12986 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12987 comments mentioning extract_returned_value_address.
12988 * infcmd.c (print_return_value): Update. Add comments on
12989 extract_returned_value_address.
12990 * stack.c (return_command): Add comments on
12991 extract_returned_value_address.
12992 * values.c: Update comment.
12993 * m32r-tdep.c: Update comment.
12994 * sparc-tdep.c: Update comment.
12995 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12997 * sh64-tdep.c (sh64_gdbarch_init): Update.
12998 * sh-tdep.c (sh_gdbarch_init): Update.
12999 * s390-tdep.c (s390_gdbarch_init): Update.
13000 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13001 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13002 * m68k-tdep.c (m68k_gdbarch_init): Update.
13003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13004 * m32r-tdep.c (m32r_gdbarch_init): Update.
13005 * ia64-tdep.c (ia64_gdbarch_init): Update.
13006 * h8300-tdep.c (h8300_gdbarch_init): Update.
13007 * frv-tdep.c (frv_gdbarch_init): Update.
13008 * arm-tdep.c (arm_gdbarch_init): Update.
13009 * alpha-tdep.c (alpha_gdbarch_init): Update.
13011 2004-01-26 Andrew Cagney <cagney@redhat.com>
13013 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13014 SYMBOL_LOCATION_FUNCS
13015 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13016 "struct symbol_ops".
13017 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13018 type to "struct symbol_ops".
13019 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13020 (struct symbol): Replace ".aux_value.loc.funcs" and
13021 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13022 (SYMBOL_OBJFILE): Delete macro.
13023 (SYMBOL_LOCATION_FUNCS): Delete macro.
13024 (SYMBOL_LOCATION_BATON): Update.
13025 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13026 intead of SYMBOL_LOCATION_FUNCS.
13027 * ax-gdb.c (gen_var_ref): Ditto.
13028 * printcmd.c (address_info): Ditto.
13029 * findvar.c (read_var_value): Ditto.
13030 (symbol_read_needs_frame): Ditto.
13032 2004-01-26 Andrew Cagney <cagney@redhat.com>
13034 * dwarf2read.c (read_func_scope): Document frame-base hack.
13036 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13038 * infcmd.c (print_return_value): Plug memory leak; delete
13039 ui_stream object. Rename argument `structure_return' to
13042 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13044 * infcmd.c (print_return_value): Wrap long lines.
13045 (finish_command_continuation, finish_command): Remove unused
13046 variable `funcaddr'. Fix some coding-standards problems.
13048 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13049 SECT_SIZE is large enough, not whether it's exactly the right size.
13050 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13051 TDEP->fpregset to zero.
13053 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13054 floating-point registers for traditional NetBSD core files.
13055 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13056 TDEP->sizeof_fpregset here.
13058 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13060 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13061 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13062 function with code split out from
13063 sparc32nbsd_sigcontext_frame_cache.
13064 (sparc32nbsd_sigcontext_frame_cache): Use
13065 sparc32nbsd_sigcontext_saved_regs.
13066 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13068 * sparcobsd-tdep.c: New file.
13069 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13070 (sparcobsd-tdep.o): New dependency.
13071 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13072 * config/sparc/obsd.mt: New file.
13074 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13075 TDEP->fpregset to be initialized to enable core file register
13078 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13080 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13081 Add opaque declarations.
13082 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13083 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13084 function with code split out from
13085 sparc64nbsd_sigcontext_frame_cache.
13086 (sparc64nbsd_sigcontext_frame_cache): Use
13087 sparc64nbsd_sigcontext_saved_regs.
13088 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13090 * sparc64obsd-tdep.c: New file.
13091 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13092 (sparc64obsd-tdep.o): New dependency.
13093 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13094 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13095 * config/sparc/obsd64.mt: New file.
13097 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13098 read the instruction at PC.
13100 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13101 value of GDB_OSABI_DEFAULT.
13102 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13103 instead of GDB_OSABI_NETBSD_AOUT.
13105 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13107 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13110 2004-01-23 Andrew Cagney <cagney@redhat.com>
13112 * printcmd.c (display_command): Replace tui_set_display call with
13113 tui_set_layout_for_display_command.
13114 * tui/tui.h (enum tui_win_type): Define.
13115 (tui_set_layout): Delete declaration.
13116 (tui_set_layout_for_display_command): Rename set_tui_layout.
13117 * tui/tui-data.h (enum tui_layout_type): Define.
13118 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13120 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13121 (tui_default_win_height): Rename tuiDefaultWinHeight.
13122 (tui_default_win_viewport_height): Rename
13123 tuiDefaultWinViewportHeight.
13124 (tui_set_layout): RenametuiSetLayout.
13125 * tui/tui-layout.c: Update references.
13126 * tui/tui.c: Update references.
13127 * tui/tui-disasm.c: Update references.
13129 2004-01-23 David Carlton <carlton@kealia.com>
13131 Partial workaround for PR c++/1511:
13132 * cp-namespace.c: Include frame.h.
13133 (cp_lookup_transparent_type): New
13134 (cp_lookup_transparent_type_loop): New.
13135 * cp-support.h: Declare cp_lookup_transparent_type.
13136 * symtab.c (basic_lookup_transparent_type): Renamed from
13137 lookup_transparent_type.
13138 (lookup_transparent_type): Replace old body by a call to
13139 current_language->la_lookup_transparent_type.
13140 * symtab.h: Update copyright. Declare
13141 basic_lookup_transparent_type.
13142 * language.h: Update copyright.
13143 (struct language_defn): Add la_lookup_transparent_type.
13144 * language.c: Update copyright.
13145 (unknown_language_defn): Add basic_lookup_transparent_type.
13146 (auto_language_defn): Add basic_lookup_transparent_type.
13147 (local_language_defn): Add basic_lookup_transparent_type.
13148 * ada-lang.c: Update copyright.
13149 (ada_language_defn): Add basic_lookup_transparent_type.
13150 * c-lang.c: Update copyright.
13151 (c_language_defn): Add basic_lookup_transparent_type.
13152 (cplus_language_defn): Add basic_lookup_transparent_type.
13153 (asm_language_defn): Add basic_lookup_transparent_type.
13154 (minimal_language_defn): Add basic_lookup_transparent_type.
13155 * f-lang.c: Update copyright.
13156 (f_language_defn): Add basic_lookup_transparent_type.
13157 * jv-lang.c: Update copyright.
13158 (java_language_defn): Add basic_lookup_transparent_type.
13159 * m2-lang.c: Update copyright.
13160 (m2_language_defn): Add basic_lookup_transparent_type.
13161 * objc-lang.c: Update copyright.
13162 (objc_language_defn): Add basic_lookup_transparent_type.
13163 * p-lang.c: Update copyright.
13164 (p_language_defn): Add basic_lookup_transparent_type.
13165 * scm-lang.c: Update copyright.
13166 (scm_language_defn): Add basic_lookup_transparent_type.
13167 * Makefile.in (cp-namespace.o): Depend on frame.h.
13169 2004-01-23 David Carlton <carlton@kealia.com>
13171 Patch for PR c++/1520:
13172 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13173 properly if we have a specification die.
13174 (determine_prefix_aux): Rename from determine_prefix.
13175 (determine_prefix): Like the old determine_prefix, but never
13178 2004-01-23 Theodore A. Roth <troth@openavr.org>
13180 * avr-tdep.c: Update copyright.
13181 (avr_iaddr_p): Delete unused function.
13182 (avr_saddr_p): Delete unused function.
13184 2004-01-23 David Carlton <carlton@kealia.com>
13186 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13187 Fix for PR symtab/1534.
13189 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13191 * NEWS (New native configurations): Mention OpenBSD/sparc and
13193 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13194 * configure.host: Likewise.
13195 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13196 handler for OpenBSD.
13197 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13199 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13201 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13202 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13204 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13205 * cli/cli-cmds.c (shell_escape): Likewise.
13207 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13208 OpenBSD .note.openbsd.ident sections.
13210 2004-01-22 David Carlton <carlton@kealia.com>
13212 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13213 get_scope_pc_bounds.
13214 (read_file_scope): Ditto.
13215 (get_scope_pc_bounds): New function, produced by extracting code
13216 from the above two functions, consolidating it, and adding support
13217 for DW_TAG_namespace.
13219 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13221 * osabi.c (MAX_NOTESZ): New define.
13222 (check_note): New function.
13223 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13226 2004-01-21 Roland McGrath <roland@redhat.com>
13228 * MAINTAINERS (write after approval): Add myself.
13230 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13232 * utils.c (init_page_info): Move declarations of `rows' and
13233 `cols' before the __GO32__-specific code. Move the closing brace
13234 outside the #ifdef __GO32__..#endif block.
13235 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13237 2004-01-21 Paul Brook <paul@codesourcery.com>
13239 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13240 BPSTAT_WHAT_CHECK_SHLIBS.
13242 2004-01-21 Paul Brook <paul@codesourcery.com>
13244 * MAINTAINERS: Add myself to write-after-approval.
13246 2004-01-20 Andrew Cagney <cagney@redhat.com>
13248 * ax-gdb.c (print_axs_value): Delete unused function.
13249 * jv-lang.c (java_lookup_type): Delete unused function.
13250 * cli/cli-dump.c (dump_filetype): Delete unused function.
13251 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13252 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13253 (mips_getstring): Delete unused function.
13254 (pmon_insert_breakpoint): Delete #if0ed function.
13255 (PMON_MAX_BP): Delete #if0ed MACRO.
13256 (mips_pmon_bp_info): Delete #if0ed variable.
13257 (pmon_remove_breakpoint): Delete #if0ed function.
13258 * monitor.c (monitor_write_even_block): Delete unused function.
13259 (monitor_write_memory_block): Delete #if0ed code.
13260 * dink32-rom.c (dink32_load): Delete unused function.
13261 (_initialize_dink32_rom): Delete #if0ed code.
13262 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13264 * tui/tui-command.c: Update references.
13265 * tui/tui-io.c: Update references.
13266 * tui/tui-command.h: Update copyright.
13267 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13269 * source.c (ambiguous_line_spec): Delete never-defined function.
13270 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13271 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13272 * cli/cli-cmds.c (validate_comname): Ditto.
13274 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13276 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13277 (tui_show_disassem): Rename tuiShowDisassem.
13278 (tui_show_disassem_and_update_source): Rename
13279 tuiVerticalDisassemScroll.
13280 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13281 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13282 * tui/tui.h: Update copyright.
13283 (enum tui_status): Define.
13284 * tui/tui-data.h (enum tui_scroll_direction): Define.
13285 * tui/tui-disasm.c: Update copyright. Update references.
13286 * tui/tui-winsource.c: Update copyright. Update references.
13287 * tui/tui-win.c: Update references.
13288 * tui/tui-layout.c: Update references.
13290 2004-01-20 Andrew Cagney <cagney@redhat.com>
13292 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13293 sym2 to start of block.
13295 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13297 * MAINTAINERS: Delete mmalloc.
13298 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13299 * NEWS: Mention removal of --with-malloc.
13300 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13301 * config.in: Regenerate.
13302 * configure: Regenerate.
13303 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13304 USE_MMALLOC, MMCHECK_FORCE.
13305 * gdbinit.in: Remove mmalloc.
13306 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13307 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13308 * config/i386/go32.mh: Likewise.
13309 * config/i386/interix.mh: Likewise.
13310 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13312 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13314 * linespec.c (decode_variable, symtab_from_filename): Call
13315 error_silent with error message instead of throwing an exception
13317 * defs.h (error_silent, error_output_message): Add prototypes.
13318 (catch_exceptions_with_msg): Ditto.
13319 * utils.c (error_silent, error_output_message): New functions.
13320 * top.c (catch_exceptions_with_msg): New function.
13322 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13324 * mi/mi-cmds.h (enum print_values): Add definition.
13326 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13327 type and value for simple data types and just the name and type
13328 for complex ones, if required.
13330 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13331 children, if required.
13333 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13335 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13336 unused declarations.
13338 2004-01-19 Andrew Cagney <cagney@redhat.com>
13340 * top.h (mapped_symbol_files): Delete declaration.
13341 * main.c (captured_main): Delete option "m" and "mapped".
13342 * objfiles.c (mapped_symbol_files): Delete variable.
13343 * symfile.c (symbol_file_command): Delete mmap code.
13344 (symbol_file_add_with_addrs_or_offsets): Ditto.
13345 (add_symbol_file_command, reread_separate_symbols): Ditto.
13346 * objfiles.h (OBJF_MAPPED): Delete.
13347 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13348 (free_objfile) [USE_MMALLOC]: Ditto.
13349 (open_existing_mapped_file): Delete function.
13350 (open_mapped_file): Delete function.
13351 (map_to_file): Delete function.
13353 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13355 * infrun.c (step_into_function): Account for possible breakpoint
13356 adjustment when computing ``stop_func_start''.
13358 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13360 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13361 the region size against the size of a pointer, not the size of
13362 a register as given by DEPRECATED_REGISTER_SIZE.
13364 2004-01-19 Andrew Cagney <cagney@redhat.com>
13366 * tui/tui-regs.h: Include "tui-data.h".
13367 (tuiFirstRegElementNoInLine): Delete declaration.
13368 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13369 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13370 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13371 (tui_calculate_regs_column_count): Rename
13372 tuiCalculateRegsColumnCount.
13373 (tui_check_register_values): Rename tuiCheckRegisterValues.
13374 (tui_show_registers): Rename tuiShowRegisters.
13375 (tui_display_registers_from_line): Rename
13376 tuiDisplayRegistersFromLine.
13377 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13378 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13379 (tui_first_reg_element_no_inline): Rename
13380 tuiFirstRegElementNoInLine.
13381 * tui/tui-data.h: Update copyright.
13382 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13383 * tui/tui-windata.c: Update copyright, update references.
13384 * tui/tui-regs.c: Update copyright, update references.
13385 * tui/tui-win.c: Update copyright, update references.
13386 * tui/tui-layout.c: Update copyright, update references.
13388 2004-01-18 Andrew Cagney <cagney@redhat.com>
13390 * tui/tui-io.c: Update copyright.
13391 (key_is_end_sequence, key_is_backspace): New functions.
13392 (key_is_command_char, key_is_start_sequence): New function.
13393 (tui_getc): Update references.
13394 * tui/tui-io.h: Update copyright.
13395 (m_tuiStartNewLine): Delete macro.
13396 (m_isBackspace, m_isDeleteChar): Delete macros.
13397 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13398 (m_isNextPage, m_isPrevPage): Delete macros.
13399 (m_isLeftArrow, m_isRightArrow): Delete macros.
13400 (m_isXdbStyleCommandChar): Delete macro.
13401 (key_is_start_sequence): Declare, replace m_isStartSequence.
13402 (key_is_end_sequence): Declare, replace m_isEndSequence.
13403 (key_is_backspace): Declare ,replace m_isBackspace.
13404 (key_is_command_char): Declare, replace m_isCommandChar.
13405 * tui/tui-command.c: Update copyright.
13406 (tuiDispatchCtrlChar): Update references.
13408 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13411 * tui/tui-command.c: Rename tui/tuiCommand.c.
13412 * tui/tui-command.h: Rename tui/tuiCommand.h.
13413 * tui/tui-data.c: Rename tui/tuiData.c.
13414 * tui/tui-data.h: Rename tui/tuiData.h.
13415 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13416 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13417 * tui/tui-io.c: Rename tui/tuiIO.c.
13418 * tui/tui-io.h: Rename tui/tuiIO.h.
13419 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13420 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13421 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13422 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13423 * tui/tui-source.c: Rename tui/tuiSource.c.
13424 * tui/tui-source.h: Rename tui/tuiSource.h.
13425 * tui/tui-stack.c: Rename tui/tuiStack.c.
13426 * tui/tui-stack.h: Rename tui/tuiStack.h.
13427 * tui/tui-win.c: Rename tui/tuiWin.c.
13428 * tui/tui-win.h: Rename tui/tuiWin.h.
13429 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13430 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13431 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13432 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13433 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13434 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13435 * tui/tui-file.c: Update includes.
13436 * tui/tui-hooks.c: Update includes.
13437 * tui/tui-interp.c: Update includes.
13438 * tui/tui.c: Update includes.
13439 * Makefile.in: Update all tui/ dependencies.
13440 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13442 * Makefile.in: Update copyright. Update dependencies.
13444 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13447 2004-01-18 Andrew Cagney <cagney@redhat.com>
13449 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13450 instead of register_gdbarch_init.
13452 * remote-sds.c (tohex): Delete unused function. Update copyright.
13453 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13454 * v850-tdep.c (v850_register_virtual_size): Ditto.
13455 * target.c (normal_target_post_startup_inferior): Ditto.
13456 * source.c (ambiguous_line_spec): Ditto.
13457 * remote.c (adapt_remote_get_threadinfo): Ditto.
13458 * mi/mi-out.c (out_field_fmt): Ditto.
13459 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13460 (output_control_change_notification): Ditto.
13461 * m68k-tdep.c (m68k_register_byte): Ditto.
13462 (m68k_remote_breakpoint_from_pc): Ditto.
13463 * ui-out.c (init_ui_out_state): Delete unused declaration.
13464 * stabsread.c (search_value): Ditto.
13465 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13466 * maint.c (print_section_table): Ditto.
13467 * infrun.c (set_follow_fork_mode_command): Ditto.
13469 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13471 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13472 DW_CFA_def_cfa_exporession. Add support for
13473 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13474 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13476 2004-01-18 Andrew Cagney <cagney@redhat.com>
13478 * ocd.c: Update copyright.
13479 (bdm_read_register_command): Delete unused function.
13480 (_initialize_remote_ocd): Delete commented out reference.
13481 (get_quoted_char, reset_packet): Delete #if0ed function.
13482 (output_packet, put_quoted_char): Delete #if0ed function.
13483 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13484 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13485 (BDM_BREAKPOINT): Delete #if0ed macro.
13486 (remote_timeout): Delete #if0ed variable.
13488 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13490 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13491 (core-sol2.o): Remove dependency.
13492 * core-sol2.c: Remove file.
13494 2004-01-17 Andrew Cagney <cagney@redhat.com>
13496 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13497 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13500 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13502 * remote.c: Update copyright years.
13504 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13506 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13508 2004-01-17 Andrew Cagney <cagney@redhat.com>
13510 * mdebugread.c: Update copyright.
13511 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13512 (parse_type, parse_procedure): Ditto.
13513 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13515 * cris-tdep.c (cris_store_struct_return): Put back accidently
13518 * gdbarch.sh: Update copyright year.
13519 * gdbarch.h, gdbarch.c: Re-generate.
13521 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13523 Suggested by George Anzinger.
13524 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13525 correct stack offset. Include unknown opcode numbers in the error
13528 2004-01-17 Andrew Cagney <cagney@redhat.com>
13530 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13531 extract_struct_value_address, i386 does not set it.
13532 * sparc64-tdep.c (sparc64_init_abi): Do not set
13533 extract_struct_value_address, never called.
13534 (sparc64_extract_struct_value_address): Delete function.
13535 * m68hc11-tdep.c: Update copyright.
13536 (m68hc11_gdbarch_init): Delete redundant assignment of
13537 extract_struct_value_address.
13538 * i386-tdep.c: Update copyright.
13539 (i386_gdbarch_init): Do not set extract_struct_value_address,
13541 (i386_extract_struct_value_address): Delete function.
13542 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13543 extract_struct_value_address, never called.
13544 (sparc32_extract_struct_value_address): #if 0 function. Add
13545 comments explaining its future.
13547 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13549 * arm-tdep.c (arm_write_pc): New function.
13550 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13552 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13554 * breakpoint.c (must_shift_inst_regs): Delete.
13555 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13556 and SHIFT_INST_REGS.
13557 * infcmd.c (step_1, step_1_continuation): Delete references to
13559 * infrun.c (keep_going): Likewise.
13560 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13561 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13563 2004-01-17 Andrew Cagney <cagney@redhat.com>
13565 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13566 * gdbarch.h, gdbarch.c: Re-generate.
13567 * infcmd.c (print_return_value): Delete reference to
13568 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13570 * cris-tdep.c (cris_gdbarch_init): Do not set
13571 deprecated_extract_struct_value_address.
13573 * xstormy16-tdep.c: Update copyright.
13574 (xstormy16_extract_struct_value_address): Update to current
13575 extract struct value address interface.
13576 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13577 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13578 current extract struct value address interface.
13579 (sh64_gdbarch_init): Set extract_struct_value_address.
13581 * cris-tdep.c: Update copyright.
13582 (cris_extract_struct_value_address): Delete function.
13583 (struct_return_address): Delete variable.
13584 (cris_store_struct_return): Do not set struct_return_address.
13586 * mcore-tdep.c: Update copyright.
13587 (mcore_extract_struct_value_address): Delete function. Update
13589 (mcore_gdbarch_init): Update.
13590 * mn10300-tdep.c: Update copyright.
13591 (mn10300_extract_struct_value_address): Delete function.
13592 (mn10300_gdbarch_init): Update.
13593 * v850-tdep.c: Update copyright.
13594 (v850_extract_struct_value_address): Delete.
13595 (v850_gdbarch_init): Update.
13596 * ns32k-tdep.c: Update copyright.
13597 (ns32k_extract_struct_value_address): Delete.
13598 (ns32k_gdbarch_init): Update.
13599 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13600 (hppa_gdbarch_init): Update.
13601 * vax-tdep.c: Update copyright.
13602 (vax_extract_struct_value_address): Delete.
13603 (vax_gdbarch_init): Update.
13605 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13606 * gdbarch.h, gdbarch.c: Re-generate.
13607 * procfs.c (procfs_fetch_registers): Delete reference to
13608 DEPRECATED_NPC_REGNUM.
13609 (procfs_store_registers): Ditto.
13610 * regcache.c (generic_target_write_pc): Simplify.
13611 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13613 * core-sol2.c (fetch_core_registers): Replace
13614 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13616 * hppa-tdep.c: Update copyright year.
13617 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13619 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13621 * mips-tdep.c (mips_write_pc): New function.
13622 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13623 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13624 (mips_find_saved_regs, mips_software_single_step: Ditto.
13625 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13626 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13628 2004-01-17 Andrew Cagney <cagney@redhat.com>
13630 * mips-tdep.c: Re-indent. Group functions by ABI.
13632 2004-01-17 Andrew Cagney <cagney@redhat.com>
13634 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13635 * gdbarch.c: Re-generate.
13636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13637 DECR_PC_AFTER_BREAK to zero.
13638 * vax-tdep.c (vax_gdbarch_init): Ditto.
13639 * v850-tdep.c (v850_gdbarch_init): Ditto.
13640 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13641 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13642 * sh-tdep.c (sh_gdbarch_init): Ditto.
13643 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13644 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13645 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13646 * mips-tdep.c (mips_gdbarch_init): Ditto.
13647 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13649 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13650 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13651 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13652 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13653 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13654 * frv-tdep.c (frv_gdbarch_init): Ditto.
13655 * cris-tdep.c (cris_gdbarch_init): Ditto.
13656 * avr-tdep.c (avr_gdbarch_init): Ditto.
13657 * arm-tdep.c (arm_gdbarch_init): Ditto.
13658 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13660 2004-01-17 J. Brobecker <brobecker@gnat.com>
13662 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13663 Delete, no longer used.
13664 (read_subrange_type): New function, mostly extracted from
13666 (read_array_type): Replace extracted code by call to
13667 read_subrange_type().
13668 (dwarf2_get_attr_constant_value): New function.
13669 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13670 (add_partial_symbol): Likewise.
13671 (process_die): Likewise.
13672 (new_symbol): Likewise.
13673 (read_type_die): Likewise.
13675 2004-01-16 Andrew Cagney <cagney@redhat.com>
13677 * symfile.c: Update copyright year.
13678 (compare_symbols): Delete unused function.
13679 * stabsread.c: Update copyright year.
13680 (lrs_general_complaint): Delete unused function.
13681 (ref_search_value): Ditto.
13682 (get_substring): Delete declaration.
13683 * sh64-tdep.c: Update copyright year.
13684 (sh64_get_gdb_regnum): Delete unused function.
13685 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13686 Delete unused function.
13688 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13690 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13691 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13693 2004-01-16 Andrew Cagney <cagney@redhat.com>
13695 Changes from Peter Schauer.
13696 * rs6000-tdep.c: Update copyright year.
13697 (rs6000_push_dummy_call): Update the stack pointer before
13698 accessing the corresponding stack region.
13699 * rs6000-nat.c: Update copyright year.
13700 (set_host_arch): Set "info.abfd" to "exec_bfd".
13702 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13704 * blockframe.c: Update copyright year.
13705 (inside_entry_func): Don't treat a zero PC specially.
13707 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13709 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13711 (gcore_create_callback): Ditto. Skip any memory segment that has
13712 no permissions set.
13714 2004-01-14 David Carlton <carlton@kealia.com>
13716 Change symbols for C++ nested types to contain the fully qualified
13717 name, if possible. (At least in the DWARF-2 case.) Partial fix
13718 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13720 * c-exp.y (qualified_type): Handle types nested within classes.
13721 * cp-namespace.c: Update comments.
13722 (cp_set_block_scope): Delete #if 0.
13723 (cp_lookup_nested_type): Handle types nested within classes.
13724 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13726 (add_partial_symbol): Add the name of the enclosing namespace to
13728 (pdi_needs_namespace): New.
13729 (add_partial_namespace): Tweak comment.
13730 (add_partial_structure): New.
13731 (psymtab_to_symtab_1): Initialize processing_current_prefix
13733 (process_die): instead of here.
13734 (read_structure_scope): Try to figure out the name of the class or
13735 namespace that the structure might be defined within.
13736 (read_enumeration): Generate fully-qualified names, if possible.
13737 (read_namespace): Don't set name to NULL.
13738 (die_specification): New.
13739 (new_symbol): Generate fully-qualified names for types.
13740 (read_type_die): Determine appropriate prefix.
13741 (determine_prefix): New.
13742 (typename_concat): New.
13744 * valops.c (value_aggregate_elt): Pass NOSIDE to
13745 value_struct_elt_for_reference.
13746 (value_struct_elt_for_reference): Make static, add NOSIDE
13747 parameter, call value_maybe_namespace_elt as a last resort.
13748 (value_namespace_elt): Break out code into
13749 value_maybe_namespace_elt.
13750 (value_maybe_namespace_elt): New.
13752 2004-01-12 Andrew Cagney <cagney@redhat.com>
13754 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13755 cooked floating-point registers.
13756 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13757 and value_to_register.
13759 2004-01-13 Andrew Cagney <cagney@redhat.com>
13761 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13762 * gdbarch.c: Re-generate.
13763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13764 FUNCTION_START_OFFSET.
13765 * v850-tdep.c (v850_gdbarch_init): Ditto.
13766 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13767 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13768 * sh-tdep.c (sh_gdbarch_init): Ditto.
13769 * s390-tdep.c (s390_gdbarch_init): Ditto.
13770 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13771 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13772 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13773 * mips-tdep.c (mips_gdbarch_init): Ditto.
13774 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13775 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13777 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13778 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13779 * i386-tdep.c (i386_gdbarch_init): Ditto.
13780 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13781 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13782 * frv-tdep.c (frv_gdbarch_init): Ditto.
13783 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13784 * cris-tdep.c (cris_gdbarch_init): Ditto.
13785 * avr-tdep.c (avr_gdbarch_init): Ditto.
13786 * arm-tdep.c (arm_gdbarch_init): Ditto.
13787 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13789 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13791 * infrun.c (follow_fork_mode_ask): Remove.
13792 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13793 (follow_fork): Simplify and remove internal error for
13794 follow_fork_mode_ask.
13795 (_initialize_infrun): Update "set follow-fork-mode" help text.
13797 2004-01-13 Andrew Cagney <cagney@redhat.com>
13799 * configure.in: Update copyright year.
13800 (build_warnings): Add -Wunused-label.
13801 * configure: Re-generate.
13803 2004-01-12 Andrew Cagney <cagney@redhat.com>
13805 * exec.h (exec_ops): Make "extern".
13807 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13808 the function is void.
13809 (mips_pseudo_register_write): Ditto.
13811 2004-01-12 Andrew Cagney <cagney@redhat.com>
13813 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13814 call. Never defined.
13815 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13816 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13817 (struct sparc_gregset, struct regcache): Ditto.
13818 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13820 2004-01-12 Andrew Cagney <cagney@redhat.com>
13822 * mi/ChangeLog: Delete file. Renamed to ...
13823 * mi/ChangeLog-1999-2003: New file.
13824 * tui/ChangeLog: Delete file. Renamed to ...
13825 * tui/ChangeLog-1998-2003: New file.
13827 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13829 * sparc64nbsd-tdep.c: Include "regset.h".
13830 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13832 (fetch_core_registers): Remove function.
13833 (sparc64nbsd_core_fns): Remove variable.
13834 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13836 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13837 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13838 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13840 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13841 sparc_extract_struct_value_address.
13842 (sparc32_gdbarch_init): Set extract_struct_value_address.
13843 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13845 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13846 return_value_on_stack.
13848 * NEWS: Mention that %cs and %ss have been added to the AMD64
13851 * frame.c: Update copyright year.
13852 (get_prev_frame): Improve comment.
13854 * sparc64fbsd-tdep.c: Include "regset.h".
13855 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13857 (fetch_core_registers): Remove function.
13858 (sparc64fbsd_core_fns): Remove variable.
13859 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13861 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13862 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13863 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13865 * sparcnbsd-tdep.c: Include "regset.h".
13866 (fetch_core_registers): Remove function.
13867 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13868 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13870 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13872 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13874 * sparc-tdep.h (struct regset): Provide opaque declaration.
13875 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13876 fpregset and sizeof_fpregset members.
13877 * sparc-tdep.c (struct regset): Provide opaque declaration.
13878 (sparc_regset_from_core_section): New function.
13879 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13880 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13881 Set regset_from_core_section when appropriate.
13883 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13885 * x86-64-tdep.c (amd64_non_pod_p): New function.
13886 (amd64_classify_aggregate): Return class memory for non-POD
13887 C++ structure types.
13889 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13890 argument. Use it to reserve a register if necessary.
13891 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13892 amd64_push_arguments.
13894 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13896 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13897 register numbers in comments.
13898 * x86-64-tdep.h: Update copyright year.
13899 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13900 Adjust for addition of %cs and %ss.
13901 * amd64fbsd-nat.c: Update copyright year.
13902 (reg_offset): Add register offsets for %cs and %ss.
13903 * amd64fbsd-tdep.c: Update copyright year.
13904 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13905 (amd64fbsd_sc_reg_offset): Likewise.
13906 * x86-64-linux-nat.c: Update copyright year.
13907 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13909 * amd64nbsd-nat.c: Update copyright year.
13910 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13911 * amd64nbsd-tdep.c: Update copyright year.
13912 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13913 * x86-64-linux-tdep.c: Update copyright year.
13914 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13915 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13916 * regformats/reg-x86-64.dat: Add %cs and %ss.
13918 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13919 variables to prevent long lines. Update comments to reflect
13922 2004-01-09 David Carlton <carlton@kealia.com>
13924 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13925 * dwarf2read.c (read_namespace): Pull out name-generating code
13926 into namespace_name. Rename previous_namespace to previous_prefix
13927 and processing_current_namespace to processing_current_prefix..
13928 (namespace_name): New function.
13929 (add_partial_symbol): Substitute uses of pdi->name with
13931 * cp-support.h: Rename processing_current_namespace to
13932 processing_current_prefix.
13933 Update copyright year.
13934 * cp-namespace.c: Rename processing_current_namespace to
13935 processing_current_prefix.
13936 Update copyright year.
13938 2004-01-09 Andrew Cagney <cagney@redhat.com>
13940 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13942 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13944 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13946 (process_one_symbol): Deal with N_PATCH stabs.
13948 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13950 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13952 Update copyright year.
13954 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13956 * config/pa/tm-hppa.h: Update extern declarations for
13957 hppa32_hpux_frame_saved_pc_in_sigtramp,
13958 hppa32_hpux_frame_base_before_sigtramp, and
13959 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13961 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13963 * config/pa/tm-hppah.h: Update copyright years.
13965 2004-01-08 Andrew Cagney <cagney@redhat.com>
13967 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13968 (mips_o32_reg_struct_has_addr): Delete function.
13969 (mips_gdbarch_init): Update.
13970 (mips_extract_struct_value_address): Delete function.
13972 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13974 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13977 2004-01-07 Andrew Cagney <cagney@redhat.com>
13979 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13980 architecture's elf flags (when available).
13982 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13983 FPU to the start, check the MIPS FPU when looking for an old
13985 (set_mipsfpu_single_command): Update the architecture.
13986 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13988 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13989 (mips_mask_address_p): Add "tdep" parameter.
13990 (show_mask_address, mips_addr_bits_remove): Update.
13991 (mips_dump_tdep): Update.
13992 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13993 (MIPS_STACK_ARGSIZE): Delete macro.
13994 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13995 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13996 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13997 (mips_dump_tdep): Update.
13998 (MIPS_SAVED_REGSIZE): Delete macro.
13999 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14000 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14001 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14002 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14003 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14004 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14005 (mips_pop_frame, return_value_location): Update.
14006 (mips_n32n64_return_value, mips_dump_tdep): Update.
14008 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14011 * mips-tdep.c: Update copyright.
14012 (mips_gdbarch_init): Merge two code blocks handling the register
14013 name and number layout.
14015 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14017 * tracepoint.c (validate_actionline): Fix segv at EOF
14019 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14021 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14022 properly for static fields.
14024 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14025 Jason Molenda <jmolenda@apple.com>
14027 * disasm.c: Update copyright to include 2004.
14028 (do_mixed_source_and_assembly): For uiout asm list
14029 and tuple cleanups, initialize to null_cleanup instead of
14030 NULL and do so prior to loop. Only reset when we close off
14031 the tuple/list. Move check for whether to close off the
14032 asm tuple/list to after dump_insns call where it will be run
14033 on each loop iteration.
14035 2004-01-05 Andrew Cagney <cagney@redhat.com>
14037 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14038 should be a switch case and not a label.
14039 * mips-tdep.c (mips32_next_pc): Delete unused labels
14040 "greater_equal_branch" and "less_zero_branch".
14041 * jv-valprint.c (java_print_value_fields): Delete unused label
14044 * target.c (unpush_target): Only close a target that is in the
14047 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14049 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14050 address from [sp + 64] instead of %o2.
14052 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14053 fixes PR backtrace/1476.
14055 2004-01-05 Andrew Cagney <cagney@redhat.com>
14057 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14058 move to start of file.
14059 * i386-tdep.h (struct regcache): Add opaque declaration.
14060 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14062 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14063 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14064 * win32-nat.c (fake_create_process): Use ISO C style definition.
14065 * stabsread.c (define_symbol): Delete #ifndef
14066 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14067 stabs_argument_has_addr call, macro never defined.
14069 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14071 * op50-rom.c: Delete.
14072 * w89k-rom.c: Delete.
14073 * Makefile.in: Remove references.
14075 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14077 * x86-64-tdep.c: Update copyright year.
14078 (struct amd64_register_info): Rename from x86_64_register_info.
14079 (amd64_register_info): Rename from x86_64_register_info.
14080 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14081 (amd64_register_name): Rename from x86_64_register_name.
14082 (amd64_register_type): Rename from x86_64_register_type.
14083 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14084 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14085 (amd64_dwarf_reg_to_regnum): Rename from
14086 x86_64_dwarf_reg_to_regnum.
14087 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14088 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14089 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14090 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14091 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14092 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14093 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14094 (amd64_frame_cache): Rename from x86_64_frame_cache.
14095 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14096 (amd64_frame_prev_register): Rename from
14097 x86_64_frame_prev_register.
14098 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14099 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14100 (amd64_sigtramp_frame_cache): Rename from
14101 x86_64_sigtramp_frame_cache.
14102 (amd64_sigtramp_frame_prev_register): Rename from
14103 x86_64_sigtramp_frame_prev_register.
14104 (amd64_sigtramp_frame_unwind): Rename from
14105 x86_64_sigtramp_frame_unwind.
14106 (amd64_sigtramp_frame_sniffer): Rename from
14107 x86_64_sigtramp_frame_sniffer.
14108 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14109 (amd64_frame_base): Rename from x86_64_frame_base.
14110 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14111 (amd64_frame_align): Rename from x86_64_frame_align.
14112 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14113 (amd64_regset_from_core_section): Rename from
14114 x86_64_regset_from_core_section.
14115 (x86_64_init_abi): Update comments.
14117 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14119 * MAINTAINERS (write after approval): Add myself.
14121 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14123 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14126 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14128 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14129 such that it mentions a specific version of GCC that exhibits this
14132 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14134 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14135 structure that has a single `float' member, store it in %f1 in
14138 * sparc-sol2-nat.c: Add missing '\'.
14140 * sparc-tdep.c (sparc32_return_value): New function.
14141 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14143 (sparc32_gdbarch_init): Set return_value, don't set
14144 extract_return_value, store_return_value, use_struct_convention
14145 and return_value_on_stack.
14147 * sparc-sol2-nat.c: Add missing ')'.
14149 2004-01-03 J. Brobecker <brobecker@gnat.com>
14151 * infrun.c (handle_step_into_function): New function.
14152 (handle_inferior_event): Extract out some code into the new
14155 2004-01-03 J. Brobecker <brobecker@gnat.com>
14157 * infrun.c (handle_inferior_event): Move the declaration of
14158 real_stop_pc inside the if blocks where it is used.
14160 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14162 * sparc64-tdep.c (sparc64_16_byte_align_p)
14163 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14164 Use check_typedef to get subtypes of structures and unions.
14165 (sparc64_store_return_value): Fix calculation of the appropriate
14166 offset into VALBUF when storing a structure or union.
14167 (sparc64_return_value): New function.
14168 (sparc64_use_struct_convention): Remove function.
14169 (sparc64_init_abi): Set return_value, don't set
14170 extract_return_value, store_return_value and
14171 use_struct_convention.
14173 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14175 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14176 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14177 gdb/config/alpha/xm-alphaosf.h,
14178 gdb/config/powerpc/tm-ppcle-eabi.h,
14179 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14180 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14181 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14182 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14183 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14184 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14185 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14186 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14187 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14188 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14189 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14190 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14191 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14192 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14193 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14194 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14195 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14196 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14197 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14198 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14199 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14200 Remove lines for .cvsignore files.
14202 2004-01-03 J. Brobecker <brobecker@gnat.com>
14204 * infrun.c: Back out the previous change.
14206 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14208 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14209 sparc-*-sunos4* to the list of REMOVED configurations.
14211 * configure.tgt: Add back sparc-*-vxworks*.
14212 * remote-vxsparc.c: Remove all includes except for "defs.h",
14213 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14214 Include "sparc-tdep.h".
14215 (SPARC_R_G1): New define.
14216 (vxsparc_gregset): New variable.
14217 (ext_format_sparc): Remove extern declaration.
14218 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14219 sparc32_supply_fpregset.
14220 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14221 sparc_collect_rwindow and sparc32_collect_fpregset.
14222 * config/sparc/tm-vxworks.h: New file, based on recently removed
14224 * config/sparc/vxworks.mt: New file, based on recently removed
14227 2004-01-03 J. Brobecker <brobecker@gnat.com>
14229 * infrun.c (handle_step_into_function): New function.
14230 (handle_inferior_event): Extract out some code into the new
14233 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14235 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14236 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14237 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14238 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14239 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14240 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14241 (sparc_nat_h): New variable.
14242 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14243 (tm-sun4os4.h): Remove dependency.
14244 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14245 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14246 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14247 sparc-tdep.o): Update dependencies.
14248 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14249 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14250 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14252 * configure.host: Remove existing sparc-*-lynxos*,
14253 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14254 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14255 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14256 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14258 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14259 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14260 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14261 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14262 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14263 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14264 sparc64-*-solaris2* and sparc64-*-* triplets.
14265 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14266 "symtab.h" and "objfiles.h".
14267 (BIAS): Remove define.
14268 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14269 (X_DISP19): Remove macros.
14270 (sparc_fetch_instruction): Remove function.
14271 (struct gdbarch_tdep): Remove definition.
14272 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14273 (sparc_breakpoint_from_pc): Remove function.
14274 (struct sparc64_frame_cache): Remove definition.
14275 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14276 sparc64_unwind_pc): Remove functions.
14277 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14278 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14279 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14280 (sparc64_frame_cache): Change return type to `struct
14281 sparc_frame_cache *'. Simply call sparc_frame_cache.
14282 (sparc64_frame_this_id, sparc64_frame_prev_register,
14283 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14284 instead of `struct sparc64_frame_cache.
14285 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14286 sparc_analyze_control_transfer, sparc_software_single_step,
14287 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14288 _initialize_sparc64_tdep): Remove functions.
14289 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14290 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14292 (sparc64_supply_gregset, sparc64_collect_gregset,
14293 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14294 (sparc64_init_abi): New function.
14295 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14296 inclusion guard. Include "sparc-tdep.h".
14298 (r_tstate_offset, r_fprs_offset): New defines.
14299 (enum sparc_regnum): Remove defenition.
14300 (enum sparc64_regnum): Reformat.
14301 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14302 (sparc64_init_abi, sparc64_supply_gregset,
14303 sparc64_collect_gregset, sparc64_supply_fpregset,
14304 sparc64_collect_fpregset): New prototypes.
14305 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14306 Add extern declarations.
14307 (sparc64_sol2_init_abi): New prototype.
14308 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14309 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14311 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14313 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14315 (_initialize_sparc64fbsd_nat): Remove initialization of
14316 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14317 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14318 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14319 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14320 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14321 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14322 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14323 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14324 (sparc64fbsd_r_y_offset): Remove variables.
14325 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14326 Make static and const.
14327 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14328 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14330 (sparc64fbsd_gregset): New variable.
14331 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14332 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14333 and sparc64_supply_fpregset.
14334 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14335 (sparc64fbsd_sigtramp_frame_this_id)
14336 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14337 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14338 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14339 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14340 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14341 * sparcnbsd-tdep.c: Update copyright year. Include
14342 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14343 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14344 "value.h" and "sparcnbsd-tdep.h".
14345 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14346 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14347 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14348 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14350 (sparcnbsd_gregset): New variable.
14351 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14352 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14353 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14354 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14355 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14357 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14358 (sparc32nbsd_sigcontext_frame_this_id)
14359 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14360 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14361 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14362 (sparcnbsd_get_longjmp_target_32,
14363 sparcnbsd_get_longjmp_target_64): Remove functions.
14364 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14365 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14366 sparcnbsd_init_elf): Remove.
14367 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14368 (sparcnbsd_elf_init_abi): New functions.
14369 (_initialize_sparcnbsd_tdep): New prototype.
14370 (_initialize_sparnbsd_tdep): Update.
14371 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14372 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14373 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14374 * config/sparc/linux.mh: Update comment.
14375 (XM_FILE, HOST_IPC): Remove variables.
14376 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14378 * config/sparc/linux.mt: Update comment.
14379 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14380 * config/sparc/nbsd.mt: Reformat.
14381 * config/sparc/nbsd64.mh: Update comment.
14382 (NATDEPFILES): Add sparc-nat.o.
14383 * config/sparc/nbsd64.mt: Update comment.
14384 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14385 (TM_FILE): Set to tm-nbsd.h.
14386 * config/sparc/nbsdelf.mh: Update comment.
14387 (NATDEPFILES): Add sparc-nat.o.
14389 * config/sparc/nbsdaout.mh: Update comment.
14390 (NATDEPFILES): Add sparc-nat.o
14392 * config/sparc/nm-linux.h: Update copyright year. Don't include
14393 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14395 (KERNEL_U_SIZE): Remove define.
14396 (kernel_u_size): Remove prototype.
14397 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14398 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14400 (CHILD_PREPARE_TO_STORE): Remove define.
14401 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14402 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14403 sparcnbsd-nat.c: Rewrite files.
14404 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14405 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14406 sparcnbsd-tdep.h: Remove files.
14407 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14408 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14409 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14410 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14411 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14412 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14413 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14414 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14415 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14416 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14417 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14418 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14419 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14420 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14421 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14422 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14423 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14424 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14425 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14427 2004-01-02 Andrew Cagney <cagney@redhat.com>
14429 From 2003-12-18 Kazuhiro Inaoka:
14430 * configure.host: Add m32r-linux target.
14432 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14434 * top.c (print_gdb_version): Update year to 2004.
14436 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14438 * MAINTAINERS: Add myself to the write-after-approval category.
14440 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14442 From Bernardo Innocenti <bernie@develer.com>:
14443 * configure.tgt: Add uClinux target.
14445 2004-01-02 Andrew Cagney <cagney@redhat.com>
14447 * utils.c (do_my_cleanups): Make static, add forward declaration.
14448 * defs.h (do_my_cleanups): Delete declaration.
14450 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14452 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14453 bfd/ChangeLog-0203.
14455 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14457 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14458 in <machine/reg.h>.
14459 * configure, config.in: Regenerate.
14461 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14462 tui/ChangeLog-1998-2003.
14468 version-control: never